Add PR number to ChangeLog entry:
[official-gcc.git] / gcc / ChangeLog
blob3c35514a7542b6953e7d2c2a235e59552e3ed6ac
1 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
3         * Makefile.in (tm.texi): Replace with rule for:
4         ($(srcdir)/doc/tm.texi).
5         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
6         $(srcdir)/doc/tm.texi .
7         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
8         tm.texi .
10         PR target/46427
11         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
13 2010-11-15  Richard Guenther  <rguenther@suse.de>
15         PR lto/44150
16         * lto-opts.c (lto_write_options): Write -fexceptions even if
17         not set by the user.
19 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
21         PR c/46462
22         * c-decl.c (declspecs_add_type): Make variables with error types
23         integers.
24         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
25         do not start a declaration before an Objective-C foreach.
26         (c_parser_declaration_or_fndef): Improve recovery after unknown
27         type name.
28         (c_parser_for_statement): Hoist entrance of "foreach context"
29         before ifs, add corresponding reset where it was missing.  Do
30         not set objc_could_be_foreach_context for C.
32 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
34         PR tree-optimization/45722
35         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
36         this is a reference to a component.
37         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
38         (ipa_note_param_call): Adjust comment.
40 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
42         * config/mips/mips.c (machine_function): Remove
43         initialized_mips16_gp_pseudo_p.
44         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
45         detect whether a pseudo has already been created.  Unconditionally
46         create a new one if not.
47         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
48         expanding to rtl.  Create a new pseudo otherwise, if allowed.
50 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
52         PR target/43440
53         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
54         * tm.texi: Regenerated.
55         * output.h (decode_reg_name_and_count): Declare.
56         * varasm.c (decode_reg_name_and_count): New function.
57         (decode_reg_name): Reimplement using decode_reg_name_and_count.
58         * reginfo.c (fix_register): Use decode_reg_name_and_count and 
59         iterate over all regs used.
60         * stmt.c (expand_asm_operands): Likewise.
61         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
62         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
63         multiple machine registers.
65 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
67         * stor-layout.c (place_union_field): Do not put location information
68         on offset expressions.
69         (place_field): Likewise.
70         (finalize_record_size): Likewise on size expressions.
71         (finalize_type_size): Likewise.
72         (layout_type): Likewise.
74 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
76         PR debug/42889
77         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
78         * df-core.c (df_set_bb_dirty_nonrl): Remove.
79         * df.h (df_set_bb_dirty_nonlr): Likewise.
81 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
83         * config/mips/mips.md (call_internal): Pass curr_insn to
84         mips_split_call.
85         (call_internal_direct): Ditto.
86         (call_value_internal): Ditto.
87         (call_value_internal_direct): Ditto.
88         (call_value_multiple_internal): Ditto.
89         * config/mips/mips.c (mips_split_call): Do not copy
90         CALL_INSN_FUNCTION_USAGE here.
92 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
94         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
95         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
96         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
97         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
98         (TUNE_LOONGSON_3A): Define.
99         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
100         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
101         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
102         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
103         (mips_rtx_cost_data): Add Loongson-3A.
105 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
107         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
108         switches.
110 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
112         * dwarf2out.c (macinfo_entry): New struct.
113         (output_comp_unit): Emit the section start label here and flag that we
114         will emit an info section.
115         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
116         emitting directly.
117         (dwarf2out_end_source_file): Likewise.
118         (dwarf2out_define): Likewise.
119         (dwarf2out_undef): Likewise.
120         (output_macinfo): New.
121         (dwarf2out_init): Do not emit debug section switches here, allocate a
122         vec for macinfo, when required.
123         (dwarf2out_finish): First switch to debug_abbrev_section here.
124         debug_line_section,  debug_macinfo_section, Likewise.  
125         Check that the pubtypes table has at least one unpruned entry before
126         trying to emit it.
128 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
130         PR c/20385
131         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
132         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
133         token lookahead.
134         (c_parser_compound_statement_nostart, c_parser_label,
135         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
136         (c_parser_declaration_or_fndef): Detect the case now matched by
137         c_parser_next_tokens_start_declaration, give error and correct it.
139 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
141         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
142         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
143         with typespec_kind.
144         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
145         (shadow_tag_warned, check_compound_literal_type): Adjust
146         uses of tag_defined_p.
147         (declspecs_add_type): Set typespec_kind.
148         * c-parser.c (c_parser_declaration_or_fndef,
149         c_parser_declspecs, c_parser_struct_declaration,
150         c_parser_parameter_declaration, c_parser_type_name,
151         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
152         of type_seen_p.
153         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
154         tag_defined_p, pass ctsk_firstref through.
156 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
158         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
159         (struct format_wanted_type): Replace field "name" with "kind", add
160         "format_start" and "format_length".
161         (check_format_info_main): Fill in new fields.  Fill in
162         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
163         after the final NUL outside the while loop.  Do not include
164         width and precision modifiers in the format_start/format_length
165         of the main format.
166         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
167         arguments.  Compute WANTED_TYPE first so that format_type_warning
168         can be called for missing arguments.  Adjust calls to
169         format_type_warning.
170         (format_type_warning): Fetch as much information as possible
171         from format_wanted_type.  Adjust printing now that every
172         warning has a "descr", as well as for missing argument warnings
173         and to include % sign for format specifiers.
175 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
177         PR rtl-optimization/46204
178         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
179         Update all callers.  Do not recompute topological order.  Adjust
180         fallthrough edges following a degenerate conditional jump.
182 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
184         * opts-common.c (control_warning_option): New.
185         * opts.c (set_default_handlers): New.
186         (decode_options): Use set_default_handlers and
187         control_warning_option.
188         (common_handle_option): Update call to enable_warning_as_error.
189         (enable_warning_as_error): Take gcc_options parameters.  Use
190         control_warning_option.
191         * opts.h (set_default_handlers, control_warning_option): Declare.
193 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
195         * Makefile.in (OPTS_H): Define.
196         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
197         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
198         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
199         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
200         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
201         * gcc.c (driver_handle_option): Take location_t parameter.
202         (process_command, do_self_spec): Update calls to
203         read_cmdline_option.
204         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
205         * langhooks.c (lhd_handle_option): Take location_t parameter.
206         * langhooks.h (handle_option): Take location_t parameter.
207         * lto-opts.c (lto_reissue_options): Update call to set_option.
208         * opts-common.c (handle_option): Make static.  Take location_t
209         parameter and pass it to other functions.
210         (handle_generated_option): Take location_t parameter and pass it
211         to other functions.
212         (read_cmdline_option): Take location_t parameter and pass it to
213         other functions.  Use warning_at and error_at.
214         (set_option): Take location_t parameter and pass it to other
215         functions.
216         * opts.c (common_handle_option): Take location_t parameter and
217         pass it to other functions.
218         (enable_warning_as_error): Make static.  Take location_t parameter
219         and pass it to other functions.
220         (lang_handle_option): Take location_t parameter and pass it to
221         other functions.
222         (target_handle_option): Take location_t parameter.
223         (read_cmdline_options, maybe_default_option,
224         maybe_default_options, default_options_optimization,
225         decode_options): Take location_t parameter and pass it to other
226         functions.
227         * opts.h: Include input.h.
228         (struct cl_option_handler_func, decode_options, set_option,
229         handle_generated_option, read_cmdline_option): Take location_t
230         parameters.
231         (handle_option, enable_warning_as_error): Remove.
232         * toplev.c (toplev_main): Update call to decode_options.
234 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
236         * graphite-cloog-util.c (oppose_constraint,
237         cloog_matrix_to_ppl_constraint,
238         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
239         CLooG isl uses unsigned integers.  This triggered a warning.
241 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
243         PR target/46438
244         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
245         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
246         (xtensa_function_arg_1): De-constify cum.
247         (xtensa_expand_prologue): Use add_reg_note.
249         PR target/46435
250         * config/cris/cris.c (saved_regs_mentioned): Delete.
251         (cris_reload_address_legitimized): Cast itype to enum reload_type.
252         Remove unused variable op0p.
253         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
254         (cris_emit_movem_store): Use add_reg_note.
256         PR bootstrap/46456
257         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
259 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
261         * function.c (expand_function_end): Set the locator of the prologue on
262         the stack checking insns.
264 2010-11-12  Richard Henderson  <rth@redhat.com>
266         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
267         * config/xtensa/xtensa.opt (mfused-madd): Remove.
268         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
269         MASK_FUSED_MADD.
270         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
271         (fnmasf4): Rename from mulsubsf3; use fma.
273 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
274             Richard Henderson  <rth@redhat.com>
276         PR target/46428
277         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
278         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
279         comparison.
281 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
283         * opts-common.c (decode_cmdline_option): Initialize separate_args.
285 2010-11-12  Jan Hubicka  <jh@suse.cz>
287         * doc/invoke.texi (early-inlining-insns): Update default.
288         * params.def (early-inlining-insns): Default to 10.
290 2010-11-12  Olivier Hainque  <hainque@adacore.com>
292         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
294 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
296         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
297         (SUPPORTS_INIT_PRIORITY): Define.
299 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
301         PR target/46430
302         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
303         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
304         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
305         (avr_device_to_devicelib): Likewise.
306         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
307         into block.
308         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
309         (zero_extendhidi2, zero_extendsidi2): Likewise.
310         * config/avr/avr.c (avr_num_arg_regs): Constify type.
311         (avr_return_addr_rtx): De-constify tem.
312         (avr_rotate_bytes): Move declarations to start of block.
313         Don't use variable length array.
314         Put nested if/else into block.
316         PR rtl-optimization/46433
317         * var-tracking.c: Include tm_p.h .
319         PR bootstrap/44756
320         PR build/44767
321         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
322         should be unsigned.
323         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
324         * doc/tm.texi: Regenerate.
326         PR target/46412
327         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
328         * config/bfin/bfin.c: Include sel-sched.h .
329         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
330         (expand_interrupt_handler_prologue): Remove unused variable insn.
331         (bfin_load_pic_reg): Likewise.
332         (bfin_rtx_costs): Make code / outer_code variables of type
333         enum rtx_code, copied from re-named parameters.
334         (bfin_local_alignment): Change align argument and return type
335         to unsigned.
336         (bfin_adjust_cost): Remove unused variable insn_type.
337         Declare variables at start of block.
338         (struct loop_info): Rename to...
339         (struct loop_info_d).
340         (workaround_rts_anomaly): Change type of icode to int.
341         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
342         with int-typed variable.
343         (note_np_check_stores): Likewise.
344         (trapping_loads_p): Remove unused variable pat.
345         (bfin_expand_binop_builtin): Use expand_normal.
346         (bfin_expand_unop_builtin): Likewise.
347         (bfin_expand_builtin): Likewise.
348         Set tmode before use.
350         PR middle-end/44769
351         * final.c (split_double): Don't use BITS_PER_WORD directly in
352         shift count.
354         PR target/46431
355         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
356         assignment.
358         PR target/46450
359         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
360         Use add_reg_note.
361         (xstormy16_function_arg): Dereference cum.
362         (xstormy16_expand_builtin): Use expand_normal.
363         Change type of omode to enum machine_mode.
364         (combine_bnp): Rename and to and_insn.
366         PR target/46437
367         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
368         localreg.
370 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
372         PR debug/46375
373         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
375 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
377         PR lto/46376
378         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
380 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
382         PR c/44782
383         * common.opt (fmax-errors=): New option.
384         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
385         * diagnostic.h (struct diagnostic_context): Add max_errors field.
386         * diagnostic.c (diagnostic_initialize): Initialize it.
387         (diagnostic_action_after_output): Exit if more than max_errors
388         have been output.
389         * doc/invoke.texi (Warning Options): Add -fmax-errors.
390         (-fmax-errors): Document.
392 2010-11-11  Richard Henderson  <rth@redhat.com>
394         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
396 2010-11-11  Richard Henderson  <rth@redhat.com>
398         * config/fused-madd.opt: New file.
399         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
400         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
401         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
402         * config/i386/i386.opt (mfused-madd): Remove.
403         * config/i386/sse.md (split_fma): Remove.
404         (split_fms, split_fnma, split_fnms): Remove.
406 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
408         PR target/46088
409         * config/i386/i386.md (*ashl<mode>3_cconly,
410         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
411         change nonimmediate_operand predicate to register_operand.
413 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
415         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
417 2010-11-11  Jan Hubicka  <jh@suse.cz>
419         * opts.c (finish_options): Do not error on -flto-partition alone.
421         * doc/invoke.texi (-fwhopr): Merge into -flto section.
422         (-flto-partition): Document none.
423         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
424         * lto-wrapper.c: Update comment.
425         (run_gcc): Update LTO option parsing.
426         * opts.c (finish_options): add support -flto-partition=none
427         (common_handle_option): Remove fwhopr.
428         * common.opt: Turn fwhopr into flto.
429         * collect2.c (main): Update option handling.
430         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
431         * ipa-split.c (execute_split_functions): Remove flag_whopr.
432         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
433         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
434         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
436 2010-11-11  Jan Hubicka  <jh@suse.cz>
438         PR tree-optimize/40436
439         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
440         (eliminated_by_inlining_prob): ... this one; return 50% probability for
441         SRA.
442         (estimate_function_body_sizes): Update use of eliminated_by_inlining_prob;
443         estimate static function size for 2 instructions.
445 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
447         PR target/44749
448         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
449         declare.  Change type of argument four to type int.
450         (mep_secondary_input_reload_class): Returns enum reg_class.
451         (mep_secondary_output_reload_class): Likewise.
452         (mep_function_value): Change types of arguments to cont_tree.
453         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
454         argument four to type int.
455         (mep_secondary_input_reload_class): Returns enum reg_class.
456         (mep_secondary_output_reload_class): Likewise.
457         (mep_function_value): Change types of arguments to cont_tree.
458         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
459         mep_regno_reg_class to enum reg_class.
461 2010-11-11  Richard Henderson  <rth@redhat.com>
463         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
464         that the target has the exact fma operation that we matched.
466 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
468         * reginfo.c (fix_register): Avoid inserting English word in
469         diagnostic sentence.  Use %qs for quoting and %'.
471 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
473         * config/i386/driver-i386.c (host_detect_local_cpu): Support
474         Intel processor family 6, model 0x2c.
476 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
478         * opts.c (warning_as_error_callback,
479         register_warning_as_error_callback): Remove.
480         (enable_warning_as_error): Don't use warning_as_error_callback.
481         * opts.h (register_warning_as_error_callback): Remove.
483 2010-11-11  Richard Henderson  <rth@redhat.com>
485         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
486         in between the MULT and the PLUS/MINUS.
488 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
490         PR middle-end/46388
491         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
492         BLKmode mode for it.
493         (expand_expr_real_1): Similarly for op0.
495 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
497         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
498         Document optional target selector.
500 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
502         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
503         assembling high and low parts of size if not using 32-bit HWINT; else
504         use DECL_SIZE_UNITS, not DECL_SIZE.
506 2010-11-11  Martin Jambor  <mjambor@suse.cz>
508         PR tree-optimization/46383
509         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
510         offsets.
511         (compute_complex_ancestor_jump_func): Likewise.
512         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
514 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
516         PR debug/46150
517         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
518         true if expr1->hash != expr2->hash.
520 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
522         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
523         diagnostics with lowercase letters.
524         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
525         lowercase letters.
526         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
527         diagnostic.
528         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
529         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
530         lowercase letters.
531         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
532         Remove trailing ' ' from diagnostic.
533         * config/avr/avr.c (print_operand_address): Start diagnostic with
534         a lowercase letter and remove trailing '.'.
535         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
536         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
537         with lowercase letters.  Use %' in diagnostics.  Remove trailing
538         '.' from diagnostics.
539         (bfin_handle_longcall_attribute): Use %' in diagnostic.
540         * config/cris/cris.c (cris_split_movdx,
541         cris_expand_pic_call_address): Start diagnostics with lowercase
542         letters.
543         (cris_asm_output_label_ref): Use %' in diagnostic.
544         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
545         letter.
546         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
547         lowercase letter.
548         * config/darwin-c.c (version_as_macro): Start diagnostic with a
549         lowercase letter.
550         * config/darwin-driver.c (darwin_default_min_version): Use %' in
551         diagnostic.
552         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
553         diagnostic.
554         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
555         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
556         diagnostics.
557         * config/i386/i386.c (ix86_option_override_internal): Write
558         diagnostic as a single sentence without trailing '.'.  Use %' in
559         diagnostics.
560         (ix86_function_sseregparm, classify_argument): Start diagnostics
561         with lowercase letters.
562         (ix86_expand_prologue): Use %' in diagnostic.
563         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
564         diagnostic.
565         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
566         lowercase letter.
567         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
568         diagnostic.
569         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
570         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
571         '`' in help text.
572         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
573         lowercase letter.
574         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
575         lowercase letters.
576         * config/microblaze/microblaze.c (microblaze_handle_option):
577         Remove trailing '.' from diagnostic.
578         (print_operand): Start diagnostic with a lowercase letter.
579         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
580         lowercase letters.  Avoid '`' in diagnostics.
581         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
582         lowercase letters.  Avoid '`' in diagnostics.
583         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
584         lowercase letters.  Avoid '`' in diagnostics.
585         * config/picochip/picochip.c (picochip_option_override,
586         picochip_emit_save_register, picochip_function_arg,
587         picochip_output_label, picochip_output_internal_label,
588         picochip_asm_output_opcode, picochip_output_cbranch,
589         picochip_output_compare, picochip_output_branch,
590         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
591         diagnostics. Start diagnostics with lowercase letters.  Use %' in
592         diagnostics.
593         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
594         "SPE" capitalization.  Start diagnostic with a lowercase letter.
595         (rs6000_handle_option): Start diagnostics with lowercase letters.
596         (def_builtin): Remove trailing '.' from diagnostic.
597         (rs6000_savres_routine_name): Start diagnostic with a lowercase
598         letter.
599         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
600         diagnostic.
601         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
602         lowercase letter.
603         * config/s390/s390.c (s390_option_override) Start diagnostics with
604         lowercase letters.  Use %' in diagnostic.
605         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
606         lowercase letters.
607         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
608         diagnostic.
609         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
610         diagnostic.
611         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
612         diagnostic.
613         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
614         * config/spu/spu.c (spu_option_override): Start diagnostics with
615         lowercase letters.  Use %qs for quoting in diagnostics.
616         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
617         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
618         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
619         from diagnostic.
620         * convert.c (convert_to_integer, convert_to_vector): Use %' in
621         diagnostics.
622         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
623         letter and use "cannot" spelling.
624         * expmed.c (extract_fixed_bit_field): Start diagnostic with
625         lowercase letter and format as a single sentence without '.'.
626         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
627         Use %' in diagnostics.
628         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
629         Use %' in diagnostics.
630         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
631         Use %' in diagnostics.
632         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
633         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
634         with lowercase letters and remove tailing '.' and '\n'.
635         * lto-cgraph.c (input_profile_summary): Start diagnostic with
636         lowercase letter and remove trailing '.'.
637         (input_cgraph): Start diagnostics with lowercase letters and
638         remove trailing '\n'.
639         * opts.c (finish_options, common_handle_option): Start diagnostics
640         with lowercase letters and remove trailing '.'.  Fix typo in
641         diagnostic.
642         * passes.c (position_pass): Start diagnostic with lowercase
643         letter. 
644         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
645         register_callback, try_init_one_plugin): Start diagnostics with
646         lowercase letters.
647         * reload1.c (spill_failure): Use %' in diagnostic.
648         (gen_reload): Start diagnostic with a lowercase letter.
649         * stor-layout.c (place_field): Start diagnostic with a lowercase
650         letter.
651         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
652         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
653         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
654         Start diagnostics with lowercase letters, remove trailing '.' and
655         use %' in diagnostics.
656         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
657         (verify_ssa): Don't split diagnostic across two error calls.
658         Spell out "number" and use %' in diagnostic.
659         * value-prof.c (visit_hist, check_counter): Start diagnostics with
660         lowercase letters.
662 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
664         PR middle-end/46419
665         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
666         (_mm_cvtpu16_ps): Ditto.
668 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
670         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
671         warn_larger_than, larger_than_size, warn_frame_larger_than,
672         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
673         default_visibility, flag_tls_default): New Variable declarations.
674         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
675         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
676         (v): Declare as Common and document here.
677         * flags.h (default_visibility, flag_generate_lto,
678         warn_larger_than, larger_than_size, warn_frame_larger_than,
679         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
680         flag_shlib, flag_excess_precision_cmdline): Remove.
681         (set_Wstrict_aliasing): Update prototype.
682         * gcc.c (verbose_flag): Remove.
683         (driver_handle_option): Add diagnostic_context parameter.  Don't
684         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
685         incrementing it.
686         * opts-common.c (handle_option): Pass dc to handler.
687         * opts.c (warn_larger_than, larger_than_size,
688         warn_frame_larger_than, frame_larger_than_size,
689         default_visibility): Remove.
690         (common_handle_option): Add diagnostic_context parameter.
691         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
692         gcc_options parameters.
693         (lang_handle_option, target_handle_option, read_cmdline_options,
694         decode_options): Add diagnostic_context parameters.
695         (finish_options): Access option state through opts pointer where
696         possible.
697         (common_handle_option): Access option state through opts pointer
698         where possible.  Do not set local static variable verbose.  Do not
699         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
700         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
701         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
702         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
703         OPT_fwhopr_.  Do not explicitly set .opt file variables for
704         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
705         (set_Wstrict_aliasing): Add gcc_options parameter.
706         * opts.h (struct cl_option_handler_func): Add diagnostic_context
707         parameter to handler.
708         (decode_options): Add diagnostic_context parameter.
709         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
710         asm_file_name, flag_generate_lto, flag_gen_aux_info,
711         aux_info_file_name, flag_shlib, flag_tls_default,
712         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
713         (toplev_main): Pass global_dc to decode_options.
714         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
715         aux_info_file_name, asm_file_name): Remove.
716         * tree.h (flag_tls_default): Remove.
718 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
720         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
721         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
723 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
725         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
726         (x86_64-*-*): Likewise.
727         * config/i386/cpuid.h: Define TBM bit.
728         * config/i386/driver-i386.c (host_detect_local_cpu): Define
729         and set has_tbm.
730         * config/i386/i386-c.c (ix86_target_macros_internal): Check
731         isa_flag for TBM.
732         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
733         (OPTION_MASK_ISA_TBM_UNSET): New.
734         (ix86_handle_option): Handle -mtbm.
735         (isa_opts): Add -mtbm.
736         (enum pta_flags): Add PTA_TBM.
737         (ix86_option_override_internal): Add TBM support.
738         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
739         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
740         (IX86_BUILTIN_BEXTRI64): Likewise.
741         (bdesc_args): Add TBM intrinsics.
742         (ix86_expand_builtin): Add TBM specific case.
743         * config/i386/i386.h (TARGET_TBM): New for TBM.
744         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
745         (tbm_bextri_<mode>): Likewise.
746         (*tbm_blcfill_<mode>): Likewise.
747         (*tbm_blci_<mode>): Likewise.
748         (*tbm_blcic_<mode>): Likewise.
749         (*tbm_blcmsk_<mode>): Likewise.
750         (*tbm_blcs_<mode>): Likewise.
751         (*tbm_blsfill_<mode>): Likewise.
752         (*tbm_blsic_<mode>): Likewise.
753         (*tbm_t1mskc_<mode>): Likewise.
754         (*tbm_tzmsk_<mode>): Likewise.
755         * config/i386/i386.opt: Add -mtbm.
756         * config/i386/tbmintrin.h (__bextri_u32): New.
757         (__blcfill_u32): Likewise.
758         (__blci_u32): Likewise.
759         (__blcic_u32): Likewise.
760         (__blcmsk_u32): Likewise.
761         (__blcs_u32): Likewise.
762         (__blsfill_u32): Likewise.
763         (__blsic_u32): Likewise.
764         (__t1mskc_u32): Likewise.
765         (__tzmsk_u32): Likewise.
766         (__bextri_u64): Likewise.
767         (__blcfill_u64): Likewise.
768         (__blci_u64): Likewise.
769         (__blcic_u64): Likewise.
770         (__blcmsk_u64): Likewise.
771         (__blcs_u64): Likewise.
772         (__blsfill_u64): Likewise.
773         (__blsic_u64): Likewise.
774         (__t1mskc_u64): Likewise.
775         (__tzmsk_u64): Likewise.
776         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
777         * doc/invoke.texi: Document -mtbm.
778         * doc/extend.texi: Document TBM built-in functions.
780 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
782         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
783         (x86_64-*-*): Likewise.
784         * config/i386/cpuid.h: Define BMI bit.
785         * config/i386/driver-i386.c (host_detect_local_cpu): Define
786         and set has_bmi.
787         * config/i386/i386-c.c (ix86_target_macros_internal): Check
788         isa_flag for BMI.
789         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
790         (OPTION_MASK_ISA_BMI_UNSET): New.
791         (ix86_handle_option): Handle -mbmi.
792         (isa_opts): Add -mbmi.
793         (enum pta_flags): Add PTA_BMI.
794         (ix86_option_override_internal): Add BMI support.
795         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
796         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
797         (IX86_BUILTIN_BEXTR64): Likewise.
798         (IX86_BUILTIN_CTZS): Likewise.
799         (bdesc_args): Add BMI intrinsics.
800         (ix86_expand_args_builtin): Add BMI specific cases.
801         * config/i386/i386.h (TARGET_BMI): New for BMI.
802         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
803         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
804         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
805         (UNSPEC_TZCNT): Likewise.
806         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
807         (bmi_andn_<mode>): New for BMI.
808         (bmi_bextr_<mode>): Likewise.
809         (bmi_blsi_<mode>): Likewise.
810         (bmi_blsmsk_<mode>): Likewise.
811         (bmi_blsr_<mode>): Likewise.
812         * config/i386/i386.opt: Add -mbmi.
813         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
814         * config/i386/bmiintrin.h (__lzcnt_u16): New.
815         (__tzcnt_u16): Likewise.
816         (__andn_u32): Likewise.
817         (__bextr_u32): Likewise.
818         (__blsi_u32): Likewise.
819         (__blsmsk_u32): Likewise.
820         (__blsr_u32): Likewise.
821         (__lzcnt_u32): Likewise.
822         (__tzcnt_u32): Likewise.
823         (__andn_u64): Likewise.
824         (__bextr_u64): Likewise.
825         (__blsi_u64): Likewise.
826         (__blsmsk_u64): Likewise.
827         (__blsr_u64): Likewise.
828         (__lzcnt_u64): Likewise.
829         (__tzcnt_u64): Likewise.
830         * doc/invoke.texi: Document -mbmi and -mno-bmi.
831         * doc/extend.texi: Document BMI built-in functions.
833 2010-11-10  Jan Hubicka  <jh@suse.cz>
835         PR tree-optimize/46228
836         * doc/invoke.texi (comdat-sharing-probability): Document.
837         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
838         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
840 2010-11-10  Jan Hubicka  <jh@suse.cz>
842         PR tree-optimize/46228
843         * cgraph.c (cgraph_propagate_frequency): Fix typo.
845 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
847         PR tree-optimization/46414
848         * tree-inline.c (estimate_move_cost): Check preferred vector
849         mode for vector type.
851 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
853         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
855 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
857         PR tree-optimization/45971
858         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
859         for phi nodes analyzable by scev.
861 2010-11-10  Richard Guenther  <rguenther@suse.de>
863         PR tree-optimization/44964
864         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
866 2010-11-10  Martin Jambor  <mjambor@suse.cz>
868         PR tree-optimization/46351
869         PR tree-optimization/46377
870         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
871         aggregate bit-fields.
873 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
875         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
876         * doc/tm.texi: Regenerate.
877         * opts-common.c (tm.h): Don't include.
878         (target_option_translations): Remove.
879         (decode_cmdline_options_to_array): Don't handle translating options.
880         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
881         * config/darwin-driver.c: Don't condition includes on
882         CROSS_DIRECTORY_STRUCTURE.
883         (darwin_default_min_version): Make static.
884         (darwin_driver_init): New.  Call darwin_default_min_version if not
885         CROSS_DIRECTORY_STRUCTURE.
886         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
887         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
888         (ASM_SPEC): Add %{static}.
889         (darwin_default_min_version): Don't declare.
890         (darwin_driver_init): Declare.
891         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
892         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
893         * config/darwin.opt (all_load, allowable_client,
894         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
895         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
896         exported_symbols_list, filelist, findirect-virtual-calls,
897         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
898         framework, fterminated-vtables, gfull, gused, image_base, init,
899         install_name, multi_module, multiply_defined,
900         multiply_defined_unused, no_dead_strip_inits_and_terms,
901         seg_addr_table, seg_addr_table_filename, segaddr,
902         segs_read_only_addr, segs_read_write_addr, single_module,
903         umbrella, unexported_symbols_list, weak_reference_mismatches,
904         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
905         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
906         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
907         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
908         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
909         (ASM_SPEC): Add %{static}.
910         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
911         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
912         (DRIVER_SELF_SPECS): Handle options formerly in
913         TARGET_OPTION_TRANSLATE_TABLE.
914         * config/mep/mep.opt (mfar): New.
915         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
916         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
917         TARGET_OPTION_TRANSLATE_TABLE.
918         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
919         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
920         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
921         ffix-and-continue, findirect-data): New.
922         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
923         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
924         (mnofpu): Define mask and use Report here.
926 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
928         * config/s390/s390.c (s390_emit_prologue): Report the stack
929         size if -fstack-usage is used.
931 2010-11-10  Richard Guenther  <rguenther@suse.de>
933         PR tree-optimization/46398
934         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
936 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
938         PR target/44760
939         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
940         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
941         GP_REG_OR_PSEUDO_STRICT_P.
942         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
943         unexpected alternative.
944         (*movsf_internal): Likewise.
945         (indirect_jump): Replace call to non-existant function with call to
946         internal_error.
947         (tablejump): Likewise.
948         * config/iq2000/iq2000.c: Include df.h .
949         (iq2000_function_arg_advance): Use CONST_CAST2.
950         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
951         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
952         a non-zero function address.
953         (iq2000_initial_elimination_offset): Add gcc_unreachable for
954         unexpected value of FROM.
955         (symbolic_expression_p): Delete.
956         (iq2000_function_value): Constify func.
957         (expand_one_builtin): Use expand_normal.
958         (iq2000_print_operand): Don't print VALUE if calculating it failed.
960         PR rtl-optimization/44764
961         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
963         PR target/46407
964         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
965         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
966         with ATTRIBUTE_UNUSED.
967         (valid_psw_flag): Constify parameter which.
968         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
970         PR target/46415
971         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
972         (mmix_dbx_register_number): Likewise.
973         * config/mmix/mmix.c: Include df.h .
974         (mmix_local_alignment): Change argument basic_align and return type
975         to unsigned.
976         (mmix_dbx_register_number): Change argument and return type to
977         unsigned.
978         (mmix_expand_prologue): Use add_reg_note.
980         PR target/46417
981         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
982         (spu_split_store): Use aform.
983         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
985 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
987         PR/46268
988         * doc/gty.texi (GTY Options): Clarify that variable_size produces
989         allocators taking size in bytes, compare with length option.  Add
990         size calculation example.
991         (Invoking the garbage collector): Ensure that sentences are
992         followed by two spaces.  Describe that pointer fields must be
993         initialized at ggc_collect call.
994         (Troubleshooting): New section.
996 2010-11-09  Jan Hubicka  <jh@suse.cz>
998         PR tree-optimization/40436
999         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
1000         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
1001         normal instructions; be sure bultin is not implemented in this file;
1002         compute non-zero return cost.
1003         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
1004         * tree-inline.h (eni_weights_d): Add return cost.
1006 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
1008         * c-parser.c (c_parser_struct_declaration): Handle declaration
1009         specifiers followed by CPP_CLOSE_BRACE.
1011 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1013         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
1014         split occurs before reload, and we allocate memory at the time of
1015         the split, not during expansion.  Add attributes.
1016         (floatsi<mode>2_lfiwax_mem): Ditto.
1017         (floatunssi<mode>2_lfiwzx): Ditto.
1018         (floatunssi<mode>2_lfiwzx_mem): Ditto.
1019         (floatsidf2): Ditto.
1020         (floatunssisf2): Ditto.
1021         (floatunssidf2): Ditto.
1022         (fix_trunc<mode>si2): Ditto.
1023         (fix_trunc<mode>si2_stfiwx): Ditto.
1024         (fix_trunc<mode>si2_internal): Ditto.
1025         (fix_trunc<mode>si2): Ditto.
1026         (fix_trunc<mode>di2): Ditto.
1027         (fixuns_trunc<mode>si2_stfiwx): Ditto.
1028         (floatsisf2): Ditto.
1029         (floatdidf2_mem): Ditto.
1030         (floatunsdidf2_mem): Ditto.
1031         (floatunsdidf2): Ditto.
1032         (floatdisf2_internal1): Ditto.
1033         (floatdisf2_mem): Ditto.
1034         (floatunsdisf2_mem): Ditto.
1035         (floatsi<mode>2_lfiwax_mem2): Delete.
1036         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
1037         (fix_trunc<mode>si2_mem): Ditto.
1038         (fixuns_trunc<mode>si2_mem): Ditto.
1039         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
1040         type operations to reduce copying the values to multiple memory slots.
1041         (roundu32<mode>2_fprs): Ditto.
1043         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
1044         PRE_INC, PRE_DEC, PRE_MODIFY.
1045         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
1047         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
1048         Delete prototype.
1050 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
1052         PR target/43808
1053         * cfgexpand.c (partition_stack_vars): Call
1054         update_alias_info_with_stack_vars unconditionally.
1055         (update_alias_info_with_stack_vars): Allow unused
1056         unreferenced vars when not optimizing.
1058 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
1060         PR tree-optimization/46036
1061         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
1062         add_to_dst_predicate_list.
1064 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
1066         PR debug/46171
1067         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
1068         earlier.
1069         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
1070         argument, call dead_debug_reset when adding REG_UNUSED note.
1071         (dead_debug_reset): New function.
1072         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
1073         df_create_unused_note callers.
1075 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
1077         * config/fr30/fr30.c: Include "df.h".
1079 2010-11-09  Richard Guenther  <rguenther@suse.de>
1081         PR tree-optimization/46355
1082         * tree-loop-distribution.c (tree_loop_distribution): Do not
1083         distribute loops without a single exit.
1085 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1087         PR rtl-optimization/46237
1088         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
1089         saved hard regs if they might get partially clobbered.
1091 2010-11-09  Paul Koning  <ni1d@arrl.net>
1093         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
1095 2010-11-09  Richard Guenther  <rguenther@suse.de>
1097         PR tree-optimization/46177
1098         * tree-loop-distribution.c (prop_phis): Remove.
1099         (generate_builtin): Re-use the old loop exit edge to avoid
1100         needing to update PHI nodes.
1102 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
1104         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
1105         type of args_size to unsigned HOST_WIDE_INT.
1107         PR target/44755
1108         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
1109         * config/t-pnt16-warn: New file.
1110         * config/picochip/picochip.c (picochip_emit_stack_allocate):
1111         Use add_reg_note.
1112         (picochip_emit_save_register): Likewise.
1113         (picochip_emit_restore_register): Remove variable insn.
1114         (picochip_legitimize_address): Don't use C++ style comments.
1115         (picochip_legitimize_reload_address): Likewise.
1116         (reorder_var_tracking_notes): Remove variable vliw_start.
1117         (picochip_reorg): Cast first arguemnt to emit_note_after to
1118         enum insn_note.
1119         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
1120         (picochip_expand_builtin_3op): Likewise.
1121         (picochip_expand_builtin_2opvoid): Likewise.
1122         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
1123         (picochip_expand_array_testport): Likewise.
1124         (picochip_init_builtins): Remove unused variables.
1125         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
1126         to unsigned long, and output it as such.
1127         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
1128         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
1129         (schedType): Cast result of picochip_schedule_type to
1130         enum attr_schedType.
1132         PR target/44759
1133         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
1134         conditional to type of S.
1135         (mn10300_function_arg): Remove unused variable align.
1136         (mn10300_arg_partial_bytes): Likewise.
1137         * config/mn10300/mn10300.md (attribute cpu): Cast value to
1138         enum attr_cpu.
1140 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1142         PR bootstrap/46392
1143         * gengtype-parse.c (type): Call get_input_file_name to get file name.
1145 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1147         * tree.h (contains_placeholder_p): Fix comment.
1148         (type_contains_placeholder_p): Adjust comment.
1149         * tree.c (contains_placeholder_p): Fix comment.
1150         (type_contains_placeholder_1): Do not recurse on pointed-to types and
1151         adjust comment.
1152         (type_contains_placeholder_p): Add comment.
1154 2010-11-09  Paul Koning  <ni1d@arrl.net>
1156         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
1157         output of byte values.
1159 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
1161         PR middle-end/46360
1162         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
1163         not in SSA mode.
1165 2010-11-09  Richard Guenther  <rguenther@suse.de>
1167         PR middle-end/46221
1168         * varasm.c (compute_visible_aliases): New function.
1169         (remove_unreachable_alias_pairs): Aliases make a target available
1170         even though we reclaimed the cgraph node.
1171         (finish_aliases_1): Likewise.
1172         * Makefile.in (varasm.o): Add pointer-set.h dependency.
1174 2010-11-09  Nick Clifton  <nickc@redhat.com>
1176         * config/mn10300/mn10300-modes.def: New file.
1178 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
1179             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1181         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
1182         (plugin_files, get_file_basename, get_file_realbasename)
1183         (get_file_langdir, error_at_line, gt_files, this_file)
1184         (system_h_file, read_input_list, create_field_all)
1185         (get_file_srcdir_relative_path, get_file_basename)
1186         (get_file_langdir, get_file_gtfilename)
1187         (get_output_file_with_visibility, get_output_file_name)
1188         (struct flist, put_mangled_filename, walk_type)
1189         (put_mangled_filename, finish_root_table, write_roots): Use
1190         input_file-s.
1191         (lang_dir_names, num_lang_dirs): Remove static.
1192         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
1193         (main): Use input_file-s.
1195         * gengtype.h: (struct input_file_st, input_file): New type.
1196         (struct fileloc): Use it.
1197         (gt_files, num_gt_files, this_file, system_h_file)
1198         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
1199         (get_input_file_name): New function.
1200         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
1201         use input_file.
1202         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
1203         (get_output_file_name): Ditto.
1205         * gengtype-lex.l (yybegin): Use input_file.
1207         * gengtype-parse.c (parse_error): Use input_file.
1209 2010-11-08  Xinliang David Li  <davidxl@google.com>
1211         PR tree-optimization/46316
1212         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
1213         * double-int.h (double_int_mul_with_sign): New function.
1214         * double-int.c (double_int_mul_with_sign): New function.
1216 2010-11-08  Paul Koning  <ni1d@arrl.net>
1218         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
1220 2010-11-08  Paul Koning  <ni1d@arrl.net>
1222         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
1224 2010-11-08  Paul Koning  <ni1d@arrl.net>
1226         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
1227         to 8 bits.
1229 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1231         PR target/46378
1232         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1233         turn on ISA 2.04 rounding instructions for power5.
1235         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
1236         not ISA 2.02.
1238         PR target/45585
1239         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
1240         in FPR registers.
1241         (movdi_low_st): Ditto.
1243 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
1244             Richard Henderson  <rth@redhat.com>
1246         PR target/44758
1247         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
1248         (attribute acc_group): Cast value to enum attr_acc_group.
1249         (*movdi_nodouble+6): Use gen_int_mode.
1250         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
1251         if RTX_CODE is defined or not.
1252         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
1253         struct frv_io.
1254         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
1255         (frv_frame_access, frv_expand_prologue): Remove unused variables.
1256         (frv_expand_block_clear): Likewise.
1257         (frv_trampoline_init): Use LCT_NORMAL.
1258         (struct frv_packet_group): New struct, broken out of type of
1259         frv_packet.
1260         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
1261         use cast in loop counter increment.
1262         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
1263         assigning to io->type.
1264         (bdesc_set): Use rtx_code UNKNOWN in initializer.
1265         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
1266         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
1267         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
1268         (frv_read_argument): Use expand_normal.
1270         PR target/44757
1271         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
1272         lm32_legitimate_constant_p.
1273         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
1274         * config/lm32/lm32.c (gen_int_relational): Make new block for
1275         LE / LT / LEU / LTU case.  Declare variables at start of block.
1276         (lm32_block_move_inline): Use XALLOCAVEC.
1278 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1280         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
1282 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
1284         * gengtype (get_output_file_for_structure): Ensure type is union
1285         or struct.
1286         (write_splay_tree_allocator_def): Use
1287         get_output_file_with_visibility.
1289 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1291         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
1292         to defined values in case of an error.
1293         (s390_option_override): Skip further processing if the -march
1294         parameter wasn't recognized.
1296 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
1298         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
1299         assert that REG is a hard register number before using it as an index.
1301         PR bootstrap/46358
1302         * config/i386/i386.c (ix86_expand_split_stack_prologue):
1303         Avoid warnings when HOST_WIDE_INT is 32 bit.
1305 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1307         PR target/46208
1308         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
1309         (sparc_promote_prototypes): Likewise.
1310         (sparc_promote_function_mode): Promote in 32-bit mode as well.
1311         (sparc_return_in_memory): Remove superfluous parentheses.
1312         (sparc_struct_value_rtx): Fix long lines.
1313         (sparc_function_value_1): Promote in 32-bit mode as well.
1315 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
1317         PR rtl-optimization/45352
1318         * sel-sched.c (find_best_expr): Do not set pneed_stall when
1319         the variable_issue hook is not implemented.
1320         (fill_insns): Remove dead variable stall_iterations.
1321         (init_seqno_1): Force EBB start for resetting sched cycles on any
1322         successor blocks of the rescheduled region.
1323         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
1324         (reset_sched_cycles_in_current_ebb): Add debug printing.
1325         New variable issued_insns.  Advance state when we have issued
1326         issue_rate insns.
1328 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
1330         * gengtype (main): Get here's position using POS_HERE macro for
1331         do*typedef calls.
1333 2010-11-07  Ian Lance Taylor  <iant@google.com>
1335         PR target/46089
1336         * config/i386/i386.c (split_stack_fn_large): New static variable.
1337         (ix86_expand_split_stack_prologue): Handle large model.
1339 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
1341         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
1342         all possible addressing modes.
1344 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
1346         PR tree-optimization/46346
1347         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
1349 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
1351         * config/mips/mips.c: Revert previous patch.
1352         * config/mips/mips.md: Likewise.
1354 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
1356         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
1357         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
1358         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
1359         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
1360         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
1361         to use FMA.
1362         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
1363         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
1364         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
1365         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
1367 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
1369         PR c/43384
1370         * c-decl.c (lookup_label): Labels can only be referenced in a
1371         function's scope.
1372         (store_parm_decls_oldstyle): Skip erroneous parameters.
1374 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
1376         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1377         LIBCALL_VALUE): Remove macros.
1378         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1379         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1380         (fr30_function_value_regno_p, fr30_function_value,
1381         fr30_libcall_value): New functions.
1383 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
1385         PR middle-end/46314
1386         * target.def (generate_internal_label): New asm_out hook.
1387         * output.h (default_generate_internal_label): Declare.
1388         * varasm.c (default_generate_internal_label): Define.
1390 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
1392         PR target/44981
1393         * doc/extend.tex (format): Document NSString extension.
1394         (format_arg): Likewise.
1395         (Darwin Format Checks): New section.
1396         * doc/tm.texi: Document string object hooks (generated).
1397         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
1398         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
1399         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
1400         * target.def (objc_construct_string_object): Rename, amend
1401         documentation.
1402         (string_object_ref_type_p): New hook.
1403         (check_string_object_format_arg): New hook.
1404         * c-parser.c (c_parser_attributes): Allow objective-c class names as
1405         attribute identifiers.
1406         * config/darwin-c.c (darwin_cfstring_ref_p): New.
1407         (darwin_check_cfstring_format_arg): New.
1408         (darwin_additional_format_types): New.
1409         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
1410         (darwin_check_cfstring_format_arg): New.
1411         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
1412         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
1413         (TARGET_N_FORMAT_TYPES): New.
1414         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
1416 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
1417             Pascal Obry  <obry@adacore.com>
1419         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
1420         in 64-bit mode and 17 otherwise.
1422 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1424         PR debug/45939
1425         * var-tracking.c (emit_note_insn_var_location): Make sure that
1426         call related var location notes come before the normal ones.
1428 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1430         PR target/46326
1431         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
1432         in the last change.
1434 2010-11-05  Ian Lance Taylor  <iant@google.com>
1436         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
1438 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
1440         PR c/44772
1441         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
1442         pointer_set_contains if DECL_NAME is NULL.
1444 2010-11-05  Ian Lance Taylor  <iant@google.com>
1446         PR target/46084
1447         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
1448         request enough additional space for alignment, and force alignment.
1450 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
1452         * config/i386/i386.c (legitimate_pic_address_disp_p):
1453         Handle UNSPEC_PCREL.
1454         (ix86_legitimate_address_p): Likewise.
1455         (legitimize_pic_address): Likewise.
1456         (output_pic_addr_const): Likewise.
1457         (ix86_delegitimize_address): Likewise.
1458         (ix86_find_base_term): Likewise.
1459         (memory_address_length): Likewise.
1460         (x86_output_mi_thunk): Handle special case x64
1461         for non local binding.
1462         * config/i386/i386.md (UNSPEC_PCREL): New.
1463         * config/i386/winnt.c (i386_pe_binds_local_p):
1464         Allow weak symbol for x64 windows with non-local binding.
1466 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
1468         PR target/45670
1469         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
1470         instead of EXPAND_NORMAL for base expansion.
1472 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
1474         * config.gcc: Support --with-fpmath=avx for x86.
1475         * config/i386/avxmath.h: New.
1476         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
1478 2010-11-05  Ian Lance Taylor  <iant@google.com>
1480         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
1481         * gengtype.c (walk_type): Don't recognize descbits option.
1483 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
1485         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
1486         WORD_SWITCH_TAKES_ARG): Remove.
1487         * doc/options.texi (Args): Document.
1488         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
1489         * doc/tm.texi: Regenerate.
1490         * opt-functions.awk (switch_flags): Handle Args.
1491         * opts-common.c: Update comment on tm.h include.
1492         (decode_cmdline_option): Handle options with multiple arguments.
1493         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
1494         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
1495         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
1496         CL_COMMON): Update values.
1497         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
1498         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
1499         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
1500         sectobjectsymbols, sectorder, segcreate, segprot): New.
1502 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1503             Uros Bizjak  <ubizjak@gmail.com>
1505         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
1506         256bit AVX register is used.
1507         (ix86_expand_vector_move_misalign): Likewise.
1508         (ix86_expand_vector_move): Replace use_avx256_p with
1509         VALID_AVX256_REG_MODE.
1511 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
1513          PR target/44750
1514         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
1515         change.  Set $@-warn.o to -Wno-error.
1517         PR bootstrap/44756
1518         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
1519         comparing it to a signed value.
1521         PR middle-end/44766
1522         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
1523         PR bootstrap/44770
1524         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
1525         to i.
1527         PR target/44754
1528         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
1529         (m32c_function_arg).  Add comma between arguments two and three.
1530         (m32c_promote_prototypes): Remove declaration.
1531         (current_function_special_page_vector): Likewise.
1532         (m32c_regno_reg_class): Change return type to enum reg_class.
1533         (m32c_pushm_popm): Use add_reg_note.
1534         (m32c_push_rounding): Change return type to unsigned int.
1535         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
1536         enum reload_type.
1537         (m32c_insert_attributes): Constify variable name.
1538         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
1539         (m32c_prepare_shift): Remove variable lref.
1540         (m32c_expand_movcc): Remove variable cmp.
1541         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
1542         (m32c_compare_redundant): Remove variable op2.
1543         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
1544         (m32c_pragma_memregs): Assign the number to target_memregs.
1545         (m32c_pragma_address): Remove variable var_str.
1546         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
1547         enum reg_class.
1548         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
1549         * config/m32c/bitops.md (andsi3): Add default case to switch.
1550         (iorsi3, xorsi3): Likewise.
1551         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
1552         * config/m32c/jump.md (call, call_value): Likewise.
1553         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
1554         (m32c_regno_reg_class): Likewise.
1555         (current_function_special_page_vector): Declare.
1557 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
1559         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
1561         PR tree-optimization/46099
1562         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
1563         if it is NULL and uid wasn't found in the hash table.  Just fold the
1564         result if it is NULL otherwise.  Insert other potentially needed
1565         stmts right before current stmt instead of on the entry edge.
1566         (struct elv_data): Add gsi and reset fields.
1567         (eliminate_local_variables_1): Adjust caller.  If take_address_of
1568         failed for debug stmt, set dta->reset and return.
1569         (eliminate_local_variables_stmt): Change STMT argument for GSI,
1570         pass GSI through to the callback, handle resetting of debug stmts.
1571         (eliminate_local_variables): Adjust caller.  Process debug stmts
1572         in second phase.
1574         PR middle-end/43690
1575         * gimplify.c (gimplify_asm_expr): If a "m" input is a
1576         {pre,post}{in,de}crement, fail.
1578         PR debug/46307
1579         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
1580         * tree-pretty-print.c (dump_generic_node): Likewise.
1581         (op_code_prio): Likewise.
1582         * cfgexpand.c (expand_debug_expr): Likewise.
1584 2010-11-04  Paul Koning  <ni1d@arrl.net>
1586         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
1587         constraints.
1589 2010-11-04  Chao-ying Fu  <fu@mips.com>
1591         * configure.ac: Test assembler support for DSP Rev1 mult.
1592         * configure: Regenerate.
1593         * config.in: Regenerate.
1594         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
1595         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
1596         (CODE_FOR_mips_multu): New define.
1597         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
1598         dspr2_32 to dsp_32.
1599         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
1600         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
1601         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
1602         New define_expand patterns.
1603         * config/mips/constraints.md (ka): Update the constraint to test
1604         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
1605         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
1606         mips_multu): Delete.
1607         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
1608         Change target constraint to "ka".
1609         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
1610         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
1611         Emit the accumulator destination when ISA_HAS_DSP_MULT.
1612         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
1613         Emit the accumulator destination when ISA_HAS_DSP_MULT.
1614         (<u>maddsidi4): Likewise.
1615         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
1616         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
1618 2010-11-04  Paul Koning  <ni1d@arrl.net>
1620         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
1622 2010-11-04  Paul Koning  <ni1d@arrl.net>
1624         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
1626 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
1628         Fixed using the Objective-C 2.0 dot-syntax with class names.
1629         * c-parser.c (c_parser_next_token_starts_declspecs): In
1630         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
1631         (c_parser_next_token_starts_declaration): Same.
1632         (c_parser_postfix_expression): Parse the Objective-C 2.0
1633         dot-syntax with a class name.
1635 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
1637         * final.c (compute_alignments): Compute/free loop info all the time.
1638         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
1639         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
1640         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
1641         * config/rs6000/rs6000.c (cfgloop.h): Include.
1642         (can_override_loop_align): New.
1643         (rs6000_option_override_internal): Set it.
1644         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
1645         (rs6000_loop_align): New function.
1646         (rs6000_loop_align_max_skip): Likewise.
1648 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1650         PR driver/45703
1651         * collect2.c (main): Print --help output to stdout.  Do not
1652         exit right away, so ld --help is appended.  Add empty lines
1653         to separate output suitably.
1655 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
1657         PR tree-optimization/46233
1658         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
1659         after calling analyze_function, not before.
1661         PR target/46234
1662         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
1663         instead of build_va_arg_indirect_ref.
1664         * config/spu/spu.c (spu_va_start): Likewise.
1665         * config/s390/s390.c (s390_va_start): Likewise.
1667 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
1669         PR middle-end/46292
1670         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
1671         if the innermode is not vector mode, determine the mode of a subreg
1672         by using mode_for_size of inner_size.
1674 2010-11-04  Richard Guenther  <rguenther@suse.de>
1676         PR rtl-optimization/46183
1677         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
1678         (execute_rtl_pre): Likewise.
1679         (execute_rtl_hoist): Likewise.
1681 2010-11-04  Richard Guenther  <rguenther@suse.de>
1683         PR tree-optimization/46068
1684         * ipa-split.c (consider_split): Remove gcc_unreachable.
1686 2010-11-04  Richard Guenther  <rguenther@suse.de>
1688         * tree-nested.c (build_addr): Use build_fold_addr_expr.
1690 2010-11-04  Richard Guenther  <rguenther@suse.de>
1692         PR tree-optimization/45991
1693         * gimplify.c (force_gimple_operand_1): Use the provded test
1694         function in the initial test.
1696 2010-11-04  Jeff Law  <law@redhat.com>
1698         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
1699         of readonly memory equivalances for const/pure calls.
1701 2010-11-04  Richard Guenther  <rguenther@suse.de>
1703         PR tree-optimization/45733
1704         * tree-vect-stmts.c (reverse_vec_elements): Honor the
1705         permute builtins function return type.
1707 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
1709         PR middle-end/44765
1710         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
1711         as an index, check it is not INVALID_REGNUM.
1713         PR bootstrap/44756
1714         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
1715         unsignedp.
1716         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
1718         PR bootstrap/44756
1719         * function.c (thread_prologue_and_epilogue_insns): Add
1720         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
1722         PR bootstrap/44756
1723         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
1725         PR target/44750
1726         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
1727         (pdp11_preferred_reload_class): Rename class to rclass.
1728         (pdp11_preferred_output_reload_class): Likewise.
1729         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
1730         ALL_COMPILERFLAGS .
1731         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
1733         PR bootstrap/44756
1734         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
1735         iteration variables to enum machine_mode.
1737         PR target/44751
1738         * config/h8300/h8300.c: Include df.h.
1739         (push, pop): Use add_reg_note.
1740         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
1741         (compute_a_shift_cc): Likewise.
1742         (expand_a_shift): Argument code has type enum rtx_code.
1743         (struct shift_insn): Member cc_valid has type enum attr_cc.
1744         (struct shift_info) <cc_inline, cc_special>: Likewise.
1745         enum attr_cc.
1746         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
1747         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
1749 2010-11-04  Ira Rosen  <irar@il.ibm.com>
1751         PR tree-optimization/46213
1752         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
1753         MINUS_EXPR only if the first operand is reduction operand.
1755 2010-11-04  Richard Guenther  <rguenther@suse.de>
1756             Richard Henderson  <rth@redhat.com>
1758         * tree.def (FMA_EXPR): New tree code.
1759         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
1760         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
1761         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
1762         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
1763         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
1764         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
1765         (execute_optimize_widening_mul): Call it.  Reorganize to allow
1766         dead stmt removal.  Move TODO flags ...
1767         (pass_optimize_widening_mul): ... here.
1768         * flag-types.h (enum fp_contract_mode): New enum.
1769         * common.opt (flag_fp_contract_mode): New variable.
1770         (-ffp-contract): New option.
1771         * opts.c (common_handle_option): Handle it.
1772         * doc/invoke.texi (-ffp-contract): Document.
1773         * tree.h (fold_fma): Declare.
1774         * builtins.c (fold_fma): New function.
1775         (fold_builtin_fma): Likewise.
1776         (fold_builtin_3): Call it for fma.
1777         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
1778         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
1779         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
1780         New expanders.
1781         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
1782         named patterns.
1783         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
1784         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
1785         (fms_optab, fnma_optab, fnms_optab): New defines.
1786         * gimplify.c (gimplify_expr): Handle binary truth expressions
1787         explicitly.  Handle FMA_EXPR.
1788         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
1789         operations.
1791 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
1792             Richard Guenther  <rguenther@suse.de>
1794         * passes.c (init_optimization_passes): Move veclower after SSA.
1795         * tree-vect-generic.c (uniform_vector_p): New function.
1796         (expand_vector_operations_1): Handle conversion.
1797         (pass_lower_vector): Update SSA form.
1799 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
1801         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
1802         plugin capabilities.
1803         * configure: Regenerate.
1805 2010-11-03  Xinliang David Li  <davidxl@google.com>
1807         PR target/46200
1808         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
1809         Adjust cbase if the use stmt is after iv update.
1811 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1813         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
1815 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1817         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
1818         comment.  Pass true to the last argument of output_stack_adjust.
1820 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
1822         PR target/46295
1823         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
1824         if 256bit AVX register is used.
1826 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
1828         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
1829         xsmindp/xsmaxdp on VSX for single precision min/max.
1830         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
1831         (vsx_sminsf3): Ditto.
1833 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1835         * combine.c (try_combine): Fix formatting issues, improve comments and
1836         fix a pasto.
1838 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1840         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
1841         of the result before building binary expressions.
1843 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
1845         PR rtl-optimization/45865
1846         * Makefile.in (df-problems.o): Revert revision 164552.
1847         * basic-block.h (enum bb_flags): Likewise.
1848         * cfgcleanup.c (block_was_dirty): Likewise.
1849         (try_forward_edges): Likewise.
1850         (try_crossjump_bb): Likewise.
1851         (try_head_merge_bb): Likewise.
1852         (try_optimize_cfg): Likewise.
1853         (cleanup_cfg): Likewise.
1854         * df-core.c (df_set_bb_dirty): Likewise.
1855         * df-problems.c: Likewise.
1856         (df_simulate_find_uses): Likewise.
1857         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
1858         (find_memory, find_memory_store): Likewise.
1859         (can_move_insns_across): Likewise.
1860         * df.h (can_move_insns_across): Likewise.
1861         * ifcvt.c (find_memory): Likewise.
1862         (dead_or_predicable): Likewise.
1864 2010-11-03  Richard Guenther  <rguenther@suse.de>
1866         PR middle-end/46288
1867         * predict.c (strip_predict_hints): Simply DCE builtin expect if
1868         the result is unused.
1870 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
1872         PR tree-optimization/46009
1873         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
1874         cond_if_else_store_replacement if bb1 and bb2 have the same
1875         single successor.
1876         (cond_store_replacement): Use gimple_assign_single_p, don't
1877         check if rhs is SSA_NAME or invariant.  Call release_defs for
1878         assign.
1879         (cond_if_else_store_replacement): New function.
1881 2010-11-03  Richard Guenther  <rguenther@suse.de>
1883         * opts.c (finish_options): Properly check for all WHOPR
1884         flags before complaining about -flto-partition.
1886 2010-11-04  Alan Modra  <amodra@gmail.com>
1888         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
1889         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
1890         TARGET_SECURE_PLT.
1891         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
1892         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
1893         on input, "r" on output.
1895 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
1897         Implemented -fobjc-std=objc1 flag.
1898         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
1899         option.
1900         * doc/standards.texi (Standards): Updated the section on
1901         Objective-C; mention support for Objective-C 2.0 features and the
1902         new -fstd-objc=objc1 flag to disable them.
1904 2010-11-03  Richard Guenther  <rguenther@suse.de>
1906         PR middle-end/46241
1907         * dwarf2out.c (scope_die_for): Properly detect global scope.
1909 2010-11-03  Richard Guenther  <rguenther@suse.de>
1911         PR tree-optimization/46190
1912         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1913         Properly compute peel iterations.
1915 2010-11-03  Richard Guenther  <rguenther@suse.de>
1917         PR tree-optimization/46286
1918         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
1919         re-allocated vector data.
1921 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
1923         PR target/46285
1924         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
1925         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
1926         is completed.
1928 2010-11-03  Richard Guenther  <rguenther@suse.de>
1930         PR tree-optimization/46217
1931         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
1932         flag matches.
1933         (execute_update_addresses_taken): Likewise.
1935 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
1937         PR bootstrap/44335
1938         * targhooks.c (targhook_words_big_endian): New function.
1939         (targhook_float_words_big_endian): Likewise.
1940         * targhooks.h (targhook_words_big_endian): Declare.
1941         (targhook_float_words_big_endian): Likewise.
1942         * target.def (words_big_endian, float_words_big_endian): New hooks.
1944 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
1946         PR tree-optimization/46165
1947         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
1948         a normal call into noreturn call.
1950 2010-11-03  Richard Guenther  <rguenther@suse.de>
1952         PR middle-end/46251
1953         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
1954         not INDIRECT_REFs.
1956 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
1958         PR tree-optimization/46107
1959         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
1960         if cfg_hook_duplicate_loop_to_header_edge failed.
1962 2010-11-03  Ian Lance Taylor  <iant@google.com>
1964         PR lto/46273
1965         * config.gcc: Don't set lto_binary_reader.
1966         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
1967         (Configuration): Mention --disable-lto.  Remove --with-libelf
1968         paragraph.
1970 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
1972         PR debug/46252
1973         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
1974         prev_real_insn.
1975         * gcse.c (insert_insn_end_basic_block): Likewise.
1977         PR rtl-optimization/46034
1978         PR rtl-optimization/46212
1979         PR rtl-optimization/46248
1980         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
1981         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
1982         before i0dest -> i0src substitution and pass 1 instead of 0 as last
1983         argument to subst on i2pat.
1985 2010-11-02  Ian Lance Taylor  <iant@google.com>
1987         * configure.ac: Use AC_SYS_LARGEFILE.
1988         * configure: Rebuild.
1989         * config.in: Rebuild.
1991 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
1993         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
1994         fold_convert.
1995         * c-typeck.c (build_function_call_vec): Likewise.
1996         * cfgexpand.c (expand_debug_expr): Likewise.
1997         * cgraphunit.c (assemble_thunk): Likewise.
1998         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
1999         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
2000         (fold_binary_loc, fold_ternary_loc): Likewise.
2001         * gimple-fold.c (get_symbol_constant_value): Likewise.
2002         * gimple-low.c (lower_builtin_setjmp): Likewise.
2003         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
2004         * gimplify.c (gimplify_init_constructor): Likewise.
2005         * lambda.h (build_linear_expr): Likewise.
2006         * omp-low.c (omp_reduction_init): Likewise.
2007         * tree-inline.c (remap_ssa_name): Likewise.
2008         * tree-object-size.c (compute_object_sizes): Likewise.
2009         * tree-sra.c (init_subtree_with_zero): Likewise.
2010         (sra_ipa_modify_assign): Likewise.
2011         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
2012         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
2013         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
2014         (undistribute_ops_list): Likewise.
2015         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
2016         * tree-vect-stmts.c (vectorizable_call): Likewise.
2017         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
2018         (build_zero_cst): Handle more cases directly.  Update comment.
2020 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2022         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
2023         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
2025         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
2026         and call ix86_split_call_vzeroupper instead of
2027         ix86_split_call_pop_vzeroupper.
2028         (*call_pop_1_vzeroupper): Likewise.
2029         (*sibcall_pop_1_vzeroupper): Likewise.
2030         (*call_value_pop_0_vzeroupper): Likewise.
2031         (*call_value_pop_1_vzeroupper): Likewise.
2032         (*sibcall_value_pop_1_vzeroupper): Likewise.
2034 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2036         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
2038 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
2040         * basic-block.h (insert_insn_end_bb_new): Delete.
2041         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
2043 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
2044             H.J. Lu  <hongjiu.lu@intel.com>
2046         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
2047         (ix86_split_call_pop_vzeroupper): Likewise.
2049         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
2050         (ix86_expand_call): Conditionally decorate calls with
2051         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
2052         (ix86_split_call_vzeroupper): New.
2053         (ix86_split_call_pop_vzeroupper): Likewise.
2055         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
2056         (*call_pop_0_vzeroupper): New insn_and_split pattern.
2057         (*call_pop_1_vzeroupper): Likewise.
2058         (*sibcall_pop_1_vzeroupper): Likewise.
2059         (*call_0_vzeroupper): Likewise.
2060         (*call_1_vzeroupper): Likewise.
2061         (*sibcall_1_vzeroupper): Likewise.
2062         (*call_1_rex64_vzeroupper): Likewise.
2063         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
2064         (*call_1_rex64_large_vzeroupper): Likewise.
2065         (*sibcall_1_rex64_vzeroupper): Likewise.
2066         (*call_value_pop_0_vzeroupper): Likewise.
2067         (*call_value_pop_1_vzeroupper): Likewise.
2068         (*sibcall_value_pop_1_vzeroupper): Likewise.
2069         (*call_value_0_vzeroupper): Likewise.
2070         (*call_value_0_rex64_vzeroupper): Likewise.
2071         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
2072         (*call_value_1_vzeroupper): Likewise.
2073         (*sibcall_value_1_vzeroupper): Likewise.
2074         (*call_value_1_rex64_vzeroupper): Likewise.
2075         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
2076         (*call_value_1_rex64_large_vzeroupper): Likewise.
2077         (*sibcall_value_1_rex64_vzeroupper): Likewise.
2079 2010-11-02  Ian Lance Taylor  <iant@google.com>
2081         PR lto/46273
2082         * config.gcc: Revert last patch: set lto_binary_reader.
2084 2010-11-02  Richard Guenther  <rguenther@suse.de>
2086         PR tree-optimization/46149
2087         * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
2088         non-indirect MEM_REF variants.
2090 2010-11-02  Richard Guenther  <rguenther@suse.de>
2092         PR tree-optimization/46216
2093         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2094         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
2096 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2098         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
2099         (*-*-osf*): Likewise.
2100         * configure: Regenerate.
2102 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2104         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
2105         for Intel Core 2 and Core i7.
2107 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
2109         Model decoder of Core 2/i7 for multipass scheduling.
2111         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
2112         New type to hold target-specific data for multipass scheduling.
2113         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
2114         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
2115         Core 2/i7.
2116         (core2i7_secondary_decoder_max_insn_size,)
2117         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
2118         New static variables.
2119         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
2120         ([_]ix86_first_cycle_multipass_data): New static variable.
2121         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
2122         Implement targetm.sched hooks.
2123         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
2124         of ...
2125         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
2126         Implement new targetm.sched hooks.
2127         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
2128         targetm.sched hook to install multipass scheduling hooks on demand.
2130         * doc/tm.texi.in: Document new targetm.sched hooks.
2131         * doc/tm.texi: Regenerate.
2133         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
2134         (first_cycle_multipass_data_t): New typedef.
2135         (struct choice_entry: target_data): New field.
2136         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
2137         to allow target model restrictions not represented in DFA.
2138         (choose_ready, schedule_block): Update.
2139         (sched_extend_ready_list, sched_finish_ready_list): Call new target
2140         hooks to initialize target-specific data for multipass scheduling.
2141         * sched-int.h (max_issue): Update declaration.
2142         * sel-sched.c (choose_best_insn): Update.
2143         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
2144         (first_cycle_multipass_{init, fini}): Define and document new
2145         targetm.sched hooks.
2147 2010-11-02  Richard Guenther  <rguenther@suse.de>
2149         PR tree-optimization/46184
2150         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
2151         input vector type from the reduction operand as well.
2153 2010-11-02  Richard Guenther  <rguenther@suse.de>
2155         PR tree-optimization/46177
2156         * tree-loop-distribution.c (prop_phis): Use
2157         mark_virtual_phi_result_for_renaming.
2159 2010-11-02  Martin Jambor  <mjambor@suse.cz>
2161         PR middle-end/46120
2162         * tree.c (get_binfo_at_offset): Bail out on artificial
2163         fields.  Identify primary bases according to their offsets.
2165 2010-11-02  Martin Jambor  <mjambor@suse.cz>
2167         PR tree-optimization/45875
2168         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
2169         (gimple_get_relevant_ref_binfo): Detect primary bases according to
2170         their field offset.
2172 2010-11-02  Ian Lance Taylor  <iant@google.com>
2174         * doc/install.texi (Configuration): Note in two places that Java
2175         is not enabled by default.
2177 2010-11-02  Ian Lance Taylor  <iant@google.com>
2179         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
2180         (Configuration): Mention --disable-lto.  Remove --with-libelf
2181         paragraph.
2183 2010-11-02  Ian Lance Taylor  <iant@google.com>
2185         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
2186         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
2187         LIBELFINC.  Remove HAVE_libelf.
2188         * config.gcc: Don't set lto_binary_reader.
2189         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
2190         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
2191         (LIBS): Remove $(LIBELFLIBS).
2192         (INCLUDES): Remove $(LIBELFINC).
2193         * configure: Rebuild.
2194         * config.in: Rebuild.
2196 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
2198         * config/microblaze/microblaze-protos.h (function_arg): Delete.
2199         (function_arg_advance): Delete.
2200         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
2201         (FUNCTION_ARG): Delete.
2202         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
2203         (microblaze_function_arg_advance): ...this.  Make static.  Take a
2204         const_tree and a bool.
2205         (function-arg): Rename to...
2206         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
2207         and a bool.
2208         (microblaze_expand_prologue): Call targetm.calls.function_arg and
2209         targetm.calls.function_arg_advance.
2210         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2212 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
2214         Merge from FSF "apple/trunk" branch.
2216         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
2217         * config/darwin.opt: .. to here.
2218         (matt-stubs): New option.
2219         * config/i386/darwin.opt: Delete.
2220         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
2221         (MACHO_DYNAMIC_NO_PIC_P): New.
2222         (MACHOPIC_INDIRECT): New.
2223         (MACHOPIC_PURE): New.
2224         * config/i386/darwin.h (DARWIN_X86) Define to 1.
2225         (MACHOPIC_ATT_STUB): New.
2226         (CC1_SPEC): Do not remove mdynamic-no-pic.
2227         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
2228         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
2229         (FUNCTION_PROFILER): Correct over-length line.
2230         (SUBTARGET_OVERRIDE_OPTIONS): New.
2231         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
2232         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
2233         (legitimate_constant_p): Handle mdynamic-no-pic.
2234         (ix86_legitimate_address_p): Likewise.
2235         (ix86_legitimize_address): Likewise.
2236         (ix86_expand_move): Likewise.
2237         (machopic_output_stub): Update for ATT-style stubs and
2238         mdynamic-no-pic.
2239         * config/darwin-protos.h (machopic_symbol_defined_p): New.
2240         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
2241         TARGET_DYNAMIC_NO_PIC: Remove.
2242         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
2243         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
2244         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
2245         Remove handling of mdynamic-no-pic.
2246         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
2247         Define if required.
2248         (machopic_symbol_defined_p): Do not try to use current_function_decl
2249         when generating _get_pc thunks within stubs.
2250         (machopic_indirect_data_reference): Rework for direct conditionals
2251         rather than #ifdefs, add x86 mdynamic-no-pic
2252         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
2253         defined value.
2254         (darwin_override_options): Handle mdynamic-no-pic here.
2255         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
2256         (machopic_lazy_symbol_ptr3_section): New.
2257         (machopic_picsymbol_stub2_section): New.
2258         (machopic_picsymbol_stub3_section): New.
2259         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
2260         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
2261         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2262         Moved common definition from x86 and rs6000.
2263         (MACHO_DYNAMIC_NO_PIC_P): Override value.
2264         (MACHOPIC_INDIRECT): Likewise.
2265         (MACHOPIC_PURE): Likewise.
2266         * config.gcc (x86-darwin-*): Remove darwin.opt.
2268 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
2270         PR debug/46255
2271         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
2272         instead of gsi_last_bb.
2274 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
2275             Maxim Kuvyrkov  <maxim@codesourcery.com>
2277         * config/i386/i386.c (cpu_names): Add "corei7".
2278         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
2280 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
2281             Maxim Kuvyrkov  <maxim@codesourcery.com>
2283         Tune alignment for Intel Core i7
2285         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
2286         (enum processor_type): Update comment.  Add entries for Core i7.
2287         * config/i386-c.c (ix86_target_macros_internal): Update.
2288         * config/i386.c (m_COREI7{_32,_64}): New macros.
2289         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
2290         (processor_target_table): Tune alignment for Core i7.
2291         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
2293         * doc/invoke.texi: Document "corei7" option value.
2295 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
2296             Maxim Kuvyrkov  <maxim@codesourcery.com>
2297             H.J. Lu  <hjl.tools@gmail.com>
2299         Basic support for Intel Core i7
2301         * i386.c (ix86_option_override_internal): Add entry for corei7, use
2302         generic tuning.  Use generic32 when compiling for 32-bit ABI.
2304 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
2306         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
2307         sections and call darwin_asm_dwarf_section() to handle them.
2308         (darwin_asm_dwarf_section): New.
2309         (darwin_file_start): Remove code emitting dwarf section symbols.
2311 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
2313         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
2314         explicitly disable stack protection when building libgcc.
2315         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
2317 2010-11-01  Jason Merrill  <jason@redhat.com>
2319         * fold-const.c (fold_indirect_ref_1): Handle folding
2320         POINTER_PLUS_EXPR to ARRAY_REF.
2322 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
2324         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
2325         (sh_delegitimize_address): New function.
2327 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
2329         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
2330         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
2331         (CC1_SPEC): Don't handle -target.
2332         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
2333         options.
2334         * config/darwin.opt (Zallowable_client, Zbundle_loader,
2335         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
2336         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
2337         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
2338         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
2339         Zweak_reference_mismatches, client_name, compatibility_version,
2340         current_version, dylinker_install_name, pagezero_size,
2341         read_only_relocs, seg1addr, segs_read_only_addr,
2342         segs_read_write_addr, sub_library, sub_umbrella): New.
2343         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
2344         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
2345         * config/freebsd.opt: New.
2346         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
2347         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
2348         * config/rpath.opt: New.
2349         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
2350         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
2351         Use rpath.opt.
2353 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
2355         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
2356         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
2357         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
2358         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
2359         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
2360         Document that options in .opt files do not need to be included.
2361         * doc/tm.texi: Regenerate.
2362         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
2363         * opts-common.c: Update comment on tm.h include.
2364         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
2365         * system.h (SWITCH_TAKES_ARG): Poison.
2366         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
2367         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
2368         in darwin.opt.
2369         (LINK_COMMAND_SPEC_A): Don't include %{x}.
2370         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2371         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
2372         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
2373         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2374         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
2375         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
2376         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
2377         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
2378         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2379         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
2380         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
2381         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
2382         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
2383         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
2384         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
2385         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
2386         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
2387         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
2388         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
2389         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
2390         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
2391         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
2392         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2394 2010-11-01  Paul Koning  <ni1d@arrl.net>
2396         * config/pdp11/pdp11.md: Use iterators.
2397         (addqi3, subqi3, iorsi3, xorsi3): Delete.
2399 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
2401         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
2402         GCC_INSN_FLAGS_H.
2403         * libgcov.c (__gcov_indirect_call_profiler): Set
2404         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
2405         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
2407 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
2409         PR tree-optimization/46259
2411         Revert:
2412         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2413         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
2414         build_vector_from_val.
2416 2010-11-01  DJ Delorie  <dj@redhat.com>
2418         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
2419         as well as an assertion.
2421 2010-11-01  Paul Koning  <ni1d@arrl.net>
2423         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
2424         complex modes in memory.
2426 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
2428         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
2430 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
2432         PR target/45250
2433         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
2434         (cfa_base_offset): New variable.
2435         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
2436         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
2437         is NULL.
2438         (vt_init_cfa_base): Initialize cfa_base_offset.
2440 2010-11-01  Alan Modra  <amodra@gmail.com>
2442         PR target/46030
2443         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
2444         and savres_strategy.
2445         (stack_info): New file scope var.
2446         (rs6000_init_machine_status): Init stack_info.
2447         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
2448         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
2449         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
2450         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
2451         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
2452         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
2453         (rs6000_savres_strategy): Rewrite.
2454         (rs6000_stack_info): Use "stack_info" in place of local "info".
2455         Return cached stack info when reload_completed unless ENABLE_CHECKING
2456         in which case confirm newly calculated stack info matches old info.
2457         Delay calculation of lr_save_p, set it for out of line gp save/restore
2458         as well as fp.  Call rs6000_savres_strategy from here..
2459         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
2460         (rs6000_output_function_prologue): Use info->savres_strategy to
2461         determine whether fp save/restore externs need to be emitted.
2463 2010-10-31  Jason Merrill  <jason@redhat.com>
2465         * tree.h (EXPR_LOC_OR_HERE): New macro.
2466         * builtins.c (c_strlen): Use it.
2467         * c-decl.c (build_enumerator): Likewise.
2468         * gimplify.c (internal_get_tmp_var): Likewise.
2469         (shortcut_cond_expr): Likewise.
2470         (gimplify_one_sizepos): Likewise.
2472 2010-10-31  Richard Henderson  <rth@redhat.com>
2474         * config/i386/cygming.h (TARGET_SEH): New.
2475         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
2476         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
2477         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
2478         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
2479         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
2480         (ASM_DECLARE_FUNCTION_SIZE): New.
2481         * config/i386/i386-protos.h: Update.
2482         * config/i386/i386.c (ix86_option_override_internal): Enable
2483         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
2484         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
2485         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
2486         (ix86_compute_frame_layout): For SEH, disable
2487         use_fast_prologue_epilogue, move frame pointer to the end of
2488         the frame.  Initialize hfp_save_offset.
2489         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
2490         at end of prologue for SEH.
2491         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
2492         emit blockage at beginning of epilogue.
2493         (ix86_expand_binary_operator): After reload, emit LEA if needed.
2494         (ix86_output_call_insn): New.
2495         * config/i386/i386.h (TARGET_SEH): New.
2496         (struct machine_function): Add member seh.
2497         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
2498         * config/i386/winnt.c (struct seh_frame_state): New.
2499         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
2500         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
2501         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
2502         i386_pe_start_function, i386_pe_end_function): New.
2504         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
2505         as CFA_STORE in rules 12 and 13.
2507 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
2509         PR tree-optimization/46142
2510         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
2511         accommodate third function argument.
2513 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2515         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
2517 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2519         * fold-const.c (build_zero_vector): Use build_vector_from_val.
2520         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
2521         (get_initial_def_for_reduction): Likewise.
2522         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2523         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2524         * tree.c (build_one_cst): Likewise.
2525         (build_vector_from_val): Use types_compatible_p for assert.
2527 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2529         * emit-rtl.c (mark_used_flags): New function.
2530         (set_used_flags, reset_used_flags): Call it.
2532 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
2534         PR middle-end/44569
2535         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
2536         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
2538 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2540         PR target/46195
2541         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
2542         (ix86_compat_aligned_value_p): This.
2543         (ix86_old_function_arg_boundary): Renamed to ...
2544         (ix86_compat_function_arg_boundary): This.  Updated.
2545         (ix86_contains_aligned_value_p): New.
2546         (ix86_function_arg_boundary): Align long double parameters on
2547         stack to 4byte in 32bit.
2549 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2551         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2552         * c-parser.c (c_parser_objc_at_property_declaration): Removed
2553         parsing of RID_COPIES and RID_IVAR.  Updated call to
2554         objc_add_property_declaration.
2555         * c-typecheck.c (build_component_ref): Call
2556         objc_maybe_build_component_ref instead of objc_build_setter_call.
2557         Use objc_is_property_ref to improve Objective-C checks.
2558         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
2559         of objc_build_getter_call.
2561 2010-10-29  Paul Koning  <ni1d@arrl.net>
2563         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
2564         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
2565         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
2566         (REG_OK_STRICT): Move description.
2568 2010-10-29  Paul Koning  <ni1d@arrl.net>
2570         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
2572 2010-10-29  Paul Koning  <ni1d@arrl.net>
2574         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
2576 2010-10-29  Paul Koning  <ni1d@arrl.net>
2578         PR/41822
2579         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
2581 2010-10-29  Richard Henderson  <rth@redhat.com>
2583         PR rtl-opt/46226
2584         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
2585         for asm goto.
2587 2010-10-29  Paul Koning  <ni1d@arrl.net>
2589         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
2590         register to register move.
2592 2010-10-29  Paul Koning  <ni1d@arrl.net>
2594         * config/pdp11/pdp11.c (print_operand_address): Correct handling
2595         of integer constant addresses, delete vax-only logic.
2597 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
2599         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
2600         a conditional expression.
2602 2010-10-29  Paul Koning  <ni1d@arrl.net>
2604         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
2605         instruction encoding.
2607 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
2608             Andrew Pinski  <pinskia@gmail.com>
2610         * tree.h (build_vector_from_val): Declare.
2611         * tree.c (build_vector_from_val): New function.
2612         * c-typeck.c (build_binary_op): Handle vector shifting.
2613         * doc/extend.texi: Description of the vector shifting operation.
2615 2010-10-29  Paul Koning  <pkoning@equallogic.com>
2617         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
2618         pdp11_secondary_memory_needed): Declare.
2619         * config/pdp11/predicates.md (float_operand): New predicate.
2620         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
2621         (cbranchdf4, movdf): Change predicate.
2622         (movsf): Handle FPU register case.
2623         (truncdfsf2, extendsfdf2): Add FPU register case.
2624         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
2625         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
2626         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2627         (pdp11_register_move_cost): Update cost matrix.
2628         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
2629         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
2630         pdp11_secondary_memory_needed): New function.
2631         (pdp11_return_in_memory): Add other float types.
2632         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
2633         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
2634         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
2635         REGISTER_MOVE_COST): Delete.
2636         (BASE_RETURN_VALUE_REG): Add other float types.
2638 2010-10-29  Nick Clifton  <nickc@redhat.com>
2640         * doc/invoke.texi: Document -mam34 and -mtune options.
2641         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
2642         (mn10300_tune_cpu): New variable.
2643         (mn10300_handle_option): Handle -mam34 and -mtune options.
2644         (mn10300_option_override): Convert tune string into tune cpu variable.
2645         (mn10300_legitimate_constant_p): Delete unused local variable.
2646         (is_load_insn): New function.
2647         (is_store_insn): New function.
2648         (mn10300_adjust_schedule_cost): New function.
2649         (TARGET_SCHED_ADJUST_COST): Define.
2650         * config/mn10300/mn10300.opt (mam34): New option.
2651         (mtune): New option.
2652         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
2653         (enum processor_type): Add AM34.
2654         (TARGET_AM34): Define.
2655         * config/mn10300/mn10300.md (attr cpu): Add am34.
2656         Add pipeline description.
2657         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
2658         Remove unneeded alternatives.  Add timing attribute.
2659         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
2660         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
2661         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
2662         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
2663         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
2664         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
2665         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
2666         float_conditional_branch, jump, indirect_jump, tablejump,
2667         call_internal, call_value_internal, zero_extendqisi2_am33,
2668         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
2669         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
2670         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
2671         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
2672         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
2673         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
2674         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
2675         return_internal_regs, store_movm, return, call_next_insn):
2676         Add timing attribute.
2677         (am33_subsi3): Add missing clobber of CC_REG.
2678         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
2679         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
2680         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
2681         extendqisi2): Fix predicates.
2682         (call_internal, call_internal_value): Separate alternatives.
2683         * config/mn10300/t-mn10300: Add AM34 multilib.
2685 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
2687         * config/sh/sh.c (sh_promote_function_mode): Use
2688         default_promote_function_mode if !sh_promote_prototypes.
2690 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
2692         * recog.c (split_all_insns): Remove dead code.
2694 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2696         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2698 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2700         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
2701         (FUNCTION_ARG_ADVANCE): Delete.
2702         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
2703         functions.
2704         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
2705         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2706         (TARGET_FUNCTION_ARG_ADVANCE): Define.
2708 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2710         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
2711         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2712         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
2713         Take a const_tree and a bool.
2714         (mcore_function_arg_advance): New function.
2715         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2717 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2719         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
2720         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2721         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
2722         Take a const_tree and a bool.
2723         (mcore_function_arg_advance): New function.
2724         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2726 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2728         * config/h8300/h8300-protos.h (function_arg): Delete.
2729         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2730         * config/h8300/h8300.c (function_arg): Rename to...
2731         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
2732         a bool.
2733         (h8300_function_arg_advance): New function.
2734         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2736 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2738         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
2739         to...
2740         * config/arc/arc.c (arc_function_arg): ...here and...
2741         (arc_function_arg_advance): ...here.  New functions.
2742         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2744 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2746         * config/crx/crx-protos.h (crx_function_arg): Delete.
2747         (crx_function_arg_advance): Delete.
2748         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2749         * config/crx/crx.c (crx_function_arg): Make static.  Take a
2750         const_tree and a bool.
2751         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
2752         (enough_regs_for_param): Take a const_tree.
2753         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2755 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2757         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
2758         (m68hc11_function_arg_advance): Delete.
2759         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
2760         (FUNCTION_ARG_ADVANCE): Delete.
2761         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
2762         Take a const_tree and a bool.
2763         (m68hc11_function_arg_advance): Likewise.
2764         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2766 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2768         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
2769         (xstormy16_function_arg_advance): Delete.
2770         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
2771         (FUNCTION_ARG_ADVANCE): Delete.
2772         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
2773         Take a const_tree and a bool.
2774         (xstormy16_function_arg_advance): Likewise.  Return void, updating
2775         the CUM parameter instead.
2776         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2778 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2780         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
2781         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2782         (MOXIE_FUNCTION_ARG_SIZE): Move to...
2783         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
2784         (moxie_function_arg): Make static.  Take a const_tree and a bool.
2785         (moxie_function_arg_advance): New function.
2786         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2788 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2790         * config/mn10300/mn10300-protos.h (function_arg): Delete.
2791         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
2792         (FUNCTION_ARG_ADVANCE): Delete.
2793         * config/mn10300/mn10300.c (function_arg): Rename to...
2794         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
2795         and a bool.
2796         (mn10300_function_arg_advance): New function.
2797         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2799 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2801         * config/iq2000/iq2000-protos.h (function_arg): Delete.
2802         (function_arg_advance): Delete.
2803         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2804         * config/iq2000/iq2000.c (function_arg): Rename to...
2805         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
2806         a bool.
2807         (function_arg_advance): Rename to...
2808         (iq2000_function_arg_advance): ...this.  Make static.  Take a
2809         const_tree and a bool.
2810         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
2811         iq2000_function_arg.
2812         (iq2000_pass_by_reference): Call iq2000_function_arg).
2813         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2815 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2817         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
2818         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2819         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
2820         const_tree.
2821         (fr30_function_arg): New function.
2822         (fr30_function_arg_advance): New function.
2823         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2825 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2827         * config/frv/frv-protos.h (frv_function_arg): Delete.
2828         (frv_function_arg_advance): Delete.
2829         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2830         * config/frv/frv.c (frv_function_arg): Rename to...
2831         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
2832         (frv_function_arg, frv_function_incoming_arg): New functions.
2833         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
2834         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2835         (TARGET_FUNCTION_ARG_ADVANCE): Define.
2837 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
2839         PR target/46153
2840         * config/i386/sse.md (sse_movhlps_exp): Use destination
2841         returned from ix86_fixup_binary_operands to expand insn.
2842         (sse_movlhps_exp): Ditto.
2843         (sse_loadhps_exp): Ditto.
2844         (sse_loadlps_exp): Ditto.
2845         (sse2_loadhpd_exp): Ditto.
2846         (sse2_loadlpd_exp): Ditto.
2848 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
2850         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
2851         constants in thumb2.
2853 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
2855         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
2856         arithmetics in masking operations.
2857         (contains_muldiv): Likewise.
2858         (try_combine): Likewise.
2859         (find_split_point): Likewise.
2860         (combine_simplify_rtx): Likewise.
2861         (simplify_if_then_else): Likewise.
2862         (simplify_set): Likewise.
2863         (expand_compound_operation): Likewise.
2864         (expand_field_assignment): Likewise.
2865         (make_extraction): Likewise.
2866         (extract_left_shift): Likewise.
2867         (make_compound_operation): Likewise.
2868         (force_to_mode): Likewise.
2869         (make_field_assignment): Likewise.
2870         (reg_nonzero_bits_for_combine): Likewise.
2871         (simplify_shift_const_1): Likewise.
2872         (simplify_comparison): Likewise.
2874 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
2876         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
2877         (ia64_function_arg_advance): Delete.
2878         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
2879         (FUNCTION_ARG_ADVANCE): Delete.
2880         * config/ia64/ia64.c (ia64_function_arg): Rename to...
2881         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
2882         bool arguments.
2883         (ia64_function_arg, ia64_function_incoming_arg): New functions.
2884         (ia64_function_arg_advance): Make static.  Take a const_tree and
2885         a bool.
2886         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2887         (TARGET_FUNCTION_ARG_ADVANCE): Define.
2889 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
2891         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
2892         (TARGET_GET_RAW_ARG_MODE): New.
2893         * doc/tm.texi: Regenerate.
2894         * target.def (get_raw_result_mode): New.
2895         (get_raw_arg_mode): New.
2896         * targhooks.c (default_get_reg_raw_mode): New.
2897         * targhooks.h (default_get_reg_raw_mode): New.
2898         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
2899         (apply_result_size): Ditto.
2900         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
2901         (TARGET_GET_RAW_RESULT_MODE): Define.
2902         (TARGET_GET_RAW_ARG_MODE): Ditto.
2904 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
2906         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
2907         for newer Solaris 10 release.
2908         (sparc_fallback_frame_state): Likewise.
2910 2010-10-27  Jason Merrill  <jason@redhat.com>
2912         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
2913         variables sooner.
2915 2010-10-27  Jie Zhang  <jie@codesourcery.com>
2916             Maxim Kuvyrkov  <maxim@codesourcery.com>
2918         * haifa-sched.c (ISSUE_POINTS): Remove.
2919         (max_issue): Don't issue more than issue_rate instructions.
2921 2010-10-27  Ian Lance Taylor  <iant@google.com>
2923         PR target/46197
2924         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
2925         (split_stack_return): Replace UNSPEC_STACK_CHECK with
2926         UNSPECV_SPLIT_STACK_RETURN.
2928 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
2930         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
2932         * config/i386/i386.c (block_info): New.
2933         (BLOCK_INFO): Likewise.
2934         (call_avx256_state): Likewise.
2935         (check_avx256_stores): Likewise.
2936         (move_or_delete_vzeroupper_2): Likewise.
2937         (move_or_delete_vzeroupper_1): Likewise.
2938         (move_or_delete_vzeroupper): Likewise.
2939         (use_avx256_p): Likewise.
2940         (function_pass_avx256_p): Likewise.
2941         (flag_opts): Add -mvzeroupper.
2942         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
2943         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
2944         is disabled.
2945         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
2946         generate vzeroupper.
2947         (init_cumulative_args): Add an int to indicate caller.  Set
2948         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
2949         based on return type.
2950         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
2951         caller_pass_avx256_p based on argument type.
2952         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
2953         is used, but not returned by caller.
2954         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
2955         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
2956         is used.
2957         (ix86_minimum_alignment): Likewise.
2958         (ix86_expand_special_args_builtin): Set target to
2959         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
2960         (ix86_reorg): Run the vzeroupper optimization if needed.
2962         * config/i386/i386.h (ix86_args): Add caller.
2963         (INIT_CUMULATIVE_ARGS): Updated.
2964         (machine_function): Add use_vzeroupper_p, use_avx256_p,
2965         caller_pass_avx256_p, caller_return_avx256_p,
2966         callee_pass_avx256_p and callee_return_avx256_p.
2968         * config/i386/i386.opt (-mvzeroupper): New.
2970         * config/i386/predicates.md (vzeroupper_operation): Removed.
2972         * config/i386/sse.md (avx_vzeroupper): Removed.
2973         (*avx_vzeroupper): Removed.
2974         (avx_vzeroupper): New.
2976         * doc/invoke.texi: Document -mvzeroupper.
2978 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
2980         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
2981         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
2982         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
2984 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
2985             Olivier Hainque  <hainque@adacore.com>
2987         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
2988         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
2989         fs->signal_frame instead.
2991 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2993         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
2994         parsing of RID_COPIES and RID_IVAR.
2996 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2998         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
2999         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
3000         Do not use objc_set_property_attr, but use local variables
3001         instead.  Detect repeated usage of setter, getter and ivar
3002         attributes.  Improved error processing when a setter name does not
3003         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
3004         that the token is a keyword.  Updated call to
3005         objc_add_property_declaration.
3007 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3009         * c-parser.c (c_parser_objc_at_property): Renamed to
3010         c_parser_objc_at_property_declaration.  Updated calls to
3011         objc_add_property_variable, now objc_add_property_declaration.
3012         Code rewritten to be much more robust in recovering from syntax
3013         errors.  Added comments.
3014         (c_parser_objc_property_attrlist): Removed.
3015         (c_parser_external_declaration): Updated calls to
3016         c_parser_objc_at_property, now
3017         c_parser_objc_at_property_declaration.
3018         (c_parser_objc_methodprotolist): Same change.
3020 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3022         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
3024 2010-10-26  Jan Hubicka  <jh@suse.cz>
3026         * ipa.c (process_references): Enqueue all referenced nodes;
3027         mark as reachable only non-external nodes.
3028         (cgraph_remove_unreachable_nodes): All referenced nodes should
3029         be enqueued; remove bogues node->needed check.
3031 2010-10-26  Jan Hubicka  <jh@suse.cz>
3033         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
3034         to represent OMP.
3036 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3038         * config/i386/i386.md (split_stack_return): Replace
3039         unspec_volatile with unspec.
3041 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
3043         * doc/install.texi: Fix typo in --with-sysroot description.
3045 2010-10-26  Jan Hubicka  <jh@suse.cz>
3047         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3048         Use info provided by linker plugin.
3050 2010-10-26  Jason Merrill  <jason@redhat.com>
3052         * varasm.c (constructor_static_from_elts_p): Don't require a
3053         CONSTRUCTOR to have elements to be suitable for static
3054         initialization.  Allow ARRAY_TYPE as well.
3056 2010-10-26  Jan Hubicka  <jh@suse.cz>
3058         PR middle-end/45736
3059         * cgraph.c (cgraph_set_readonly_flag): Rename to...
3060         (cgraph_set_const_flags) ... this one; get also looping argument;
3061         clear constructor/destructor flags.
3062         (cgraph_set_pure_flag): Likewise.
3063         (cgraph_set_looping_const_or_pure_flag): Remove.
3064         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
3065         to optimize away static ctors/dtors; it does not work on inline clones;
3066         external functions can always be rmeoved.
3067         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
3068         inline clones; in LTO external functions always can go.
3069         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
3070         (cgraph_mark_address_taken_node): Assert that we are not taking
3071         address of inline clone.
3072         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
3073         external functions.
3074         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
3075         address taken.
3076         (ipcp_initialize_node_lattices): Only local functions can be
3077         handled without cloning.
3078         * cgraph.h (cgraph_set_readonly_flag,
3079         cgraph_set_looping_const_or_pure_flag): Remove.
3080         (cgraph_set_const_flag): Declare.
3081         (cgraph_set_pure_flag): Update.
3082         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
3083         flags setting code.
3084         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
3085         look at inline clones; fix handling of external definitions.
3086         (cgraph_postorder): Do not look at inline clones in the first pass.
3087         (function_and_variable_visibility): Drop constructors/destructor
3088         flags at pure and const functions.
3089         * tree-profile.c (tree_profiling): Update.
3090         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
3091         address taken; external functions do not account to whole program size.
3092         (cgraph_decide_inlining): Likewise; do not try to inline
3093         functions already inlined.
3095 2010-10-26  Jie Zhang  <jie@codesourcery.com>
3097         * doc/invoke.texi: Improve documentation of
3098         -fstrict-volatile-bitfields.
3100 2010-10-26  Ira Rosen  <irar@il.ibm.com>
3102         PR tree-optimization/46167
3103         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
3104         is basic block for the statement.
3106 2010-10-26  Paul Koning  <ni1d@arrl.net>
3108         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
3109         current definition of struct_real_format.
3111 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3113         PR target/44948
3114         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
3115         (ix86_function_arg_boundary): Always align parameters on stack
3116         in 64bit and align parameters with alignment >= 16byte on stack
3117         in 32bit.  Warn alignment change.
3119 2010-10-26  Ian Lance Taylor  <iant@google.com>
3121         PR middle-end/45687
3122         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
3123         offset.
3125 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
3127         Implement opaque-enum-specifiesr for C++0x
3128         * tree.h (ENUM_IS_OPAQUE): New.
3129         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
3131 2010-10-26  Jie Zhang  <jie@codesourcery.com>
3133         * stor-layout.c (layout_decl): Use the field's type to
3134         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
3135         * config/arm/arm.c (arm_override_options): Default to
3136         -fstrict-volatile-bitfields.
3138 2010-10-25  Paul Koning  <ni1d@arrl.net>
3140         * config/pdp11/pdp11.md: Add define_constants for register
3141         numbers, branch offset limits.
3142         * config/pdp11/pdp11.c: Use named constants instead of numbers.
3143         * config/pdp11.pdp11.h: Ditto.
3145 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3147         * configure.ac: Use $cpu_type instead of $target to define the nop.
3148         * configure: Regenerate.
3150 2010-10-25  Jie Zhang  <jie@codesourcery.com>
3152         * combine.c (try_combine): If insns need to be kept around, check that
3153         they can be copied in the merged instruction.
3155 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3157         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
3158         has been modified.
3159         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
3160         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
3161         it has been modified.
3163 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3165         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
3167 2010-10-24  Paul Koning  <ni1d@arrl.net>
3169         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
3170         * config/pdp11/pdp11.c (output_jump): Ditto.
3172 2010-10-24  Ian Lance Taylor  <iant@google.com>
3174         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
3176 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3178         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
3179         least one insn with a locus corresponding to an edge's goto_locus,
3180         disregard non-fallthru edges to the exit block and merge the blocks
3181         created for the same goto_locus.
3183 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
3185         * gcc.c (n_switches_alloc_debug_check): New.
3186         (set_option_handlers): New.
3187         (process_command): Use set_option_handlers.
3188         (do_self_spec): Pass spec-generated options through option handlers.
3189         (main): Also save and restore n_switches_alloc when swapping
3190         switch arrays.
3192 2010-10-23  Richard Henderson  <rth@redhat.com>
3194         PR target/46144
3195         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
3196         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
3197         Honor matching operands when splitting to XOR.
3199 2010-10-23  Ian Lance Taylor  <iant@google.com>
3201         * tree-vrp.c (extract_range_from_binary_expr): If
3202         flag_non_call_exceptions don't eliminate division by zero.
3203         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3205 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
3207         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
3208         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
3209         __ORDER_PDP_ENDIAN__.
3210         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3211         (struct DWstruct): Define based on __BYTE_ORDER__.
3212         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3213         (struct INTstruct): Define based on __BYTE_ORDER__.
3214         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3215         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
3216         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
3217         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3218         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3219         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3220         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3221         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3222         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3223         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3224         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3225         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3226         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3227         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3228         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3229         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3230         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3231         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3232         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3233         * doc/tm.texi: Regenerate.
3234         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
3235         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
3237 2010-10-23  Jie Zhang  <jie@codesourcery.com>
3239         PR rtl-optimization/37360
3240         * config/mips/mips.c (cached_can_issue_more): New local variable.
3241         (mips_sched_reorder_1): New.
3242         (mips_sched_reorder): Use mips_sched_reorder_1.
3243         (mips_sched_reorder2): New.
3244         (mips_variable_issue): Set cached_can_issue_more.
3245         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
3246         instead of mips_sched_reorder.
3248         Revert:
3249         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
3250         PR rtl-optimization/37360
3251         * haifa-sched.c (max_issue): Do not assert that we never issue more
3252         insns than issue_rate.  Add comment.
3254 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
3256         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
3257         location info of the expression.
3259 2010-10-22  DJ Delorie  <dj@redhat.com>
3261         * doc/extend.texi (Named Address Spaces): Document the M32C named
3262         address space.
3264         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
3265         __far address space.
3266         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
3267         "__far" address space for R8C and M16C processor variants.
3268         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
3269         (far_addr_space_p): New.
3270         (encode_pattern_1): Add sign and zero extend support.
3271         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
3272         (m32c_extra_constraint_p2): Add SF constraint.
3273         (m32c_legitimate_address_p): Support __far addresses.
3274         (m32c_addr_space_pointer_mode): New.
3275         (m32c_addr_space_address_mode): New.
3276         (m32c_addr_space_legitimate_address_p): New.
3277         (m32c_addr_space_legitimize_address): New.
3278         (m32c_addr_space_subset_p): New.
3279         (m32c_addr_space_convert): New.
3280         (conversions): Add __far operand patterns.
3281         (m32c_prepare_move): Force constants into registers for __far moves.
3282         (m32c_split_move): __far moves are always split.
3283         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
3284         * config/m32c/mov.md (mov<mode>_far_op1): New.
3285         (mov<mode>_far_op2): New.
3286         (movqi_op): Add __far (SF) support.
3287         (movhi_op): Likewise.
3288         (movsi_splittable): Split A1A0 also.
3290 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
3291             Andrew Pinski  <pinskia@gmail.com>
3293         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
3294         * doc/extend.texi: New paragraph
3296 2010-10-22  Paul Koning  <ni1d@arrl.net>
3298         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
3300 2010-10-22  DJ Delorie  <dj@redhat.com>
3302         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
3304 2010-10-22  Paul Koning  <ni1d@arrl.net>
3306         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
3308 2010-10-22  Richard Henderson  <rth@redhat.com>
3310         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
3311         cases for __builtin_fma and __builtin_fmaf.
3313 2010-10-22  Richard Henderson  <rth@redhat.com>
3315         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
3316         NEG+USE for vectors as well.
3317         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
3318         and splitter.
3320 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
3322         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
3323         SWITCH_CURTAILS_COMPILATION): Remove.
3324         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
3325         * doc/tm.texi: Regenerate.
3326         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
3328 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
3330         * config/i386/bdver1.md: New file.
3331         * config/i386/i386.md (include "bdver1.md"): Invoke the
3332         pipeline description for bdver1.
3333         (x86_sahf_1): Add "bdver1_decode" attribute.
3334         (*cmpfp_i_mixed): Likewise.
3335         (*cmpfp_i_sse): Likewise.
3336         (*cmpfp_i_i387): Likewise.
3337         (*cmpfp_iu_mixed): Likewise.
3338         (*cmpfp_iu_sse): Likewise.
3339         (*cmpfp_iu_387): Likewise.
3340         (*swap<mode>,*swap<mode>_1): Likewise.
3341         (fixuns_trunc<mode>hi2): Likewise.
3342         (fix_trunc<mode>si_sse): Likewise.
3343         (x86_fnstcw_1): Likewise.
3344         (x86_fldcw_1): Likewise.
3345         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
3346         (*floatsi<mode>2_vector_mixed): Likewise.
3347         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
3348         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
3349         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
3350         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
3351         (*floatsi<mode>2_vector_sse): Likewise.
3352         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
3353         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
3354         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
3355         (*mul<mode>3_1): Likewise.
3356         (*mulsi3_1_zext): Likewise.
3357         (*mulhi3_1): Likewise.
3358         (*mulqi3_1): Likewise.
3359         (*<u>mul<mode><dwi>3_1): Likewise.
3360         (*<u>mulqihi3_1): Likewise.
3361         (*<s>muldi3_highpart_1): Likewise.
3362         (*<s>mulsi3_highpart_1): Likewise.
3363         (*<s>mulsi3_highpart_zext): Likewise.
3364         (x86_64_shld): Likewise.
3365         (x86_shld): Likewise.
3366         (x86_64_shrd): Likewise.
3367         (x86_shrd): Likewise.
3368         (sqrtxf2): Likewise.
3369         (sqrt_extend<mode>xf2_i387): Likewise.
3370         (*sqrt<mode>2_sse): Likewise.
3371         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
3372         (sse_cvtsi2ssq): Likewise.
3373         (sse_cvtss2si): Likewise.
3374         (sse_cvtss2si_2): Likewise.
3375         (sse_cvtss2siq): Likewise.
3376         (sse_cvtss2siq_2): Likewise.
3377         (sse_cvttss2si): Likewise.
3378         (sse_cvttss2siq): Likewise.
3379         (sse2_cvtpi2pd): Likewise.
3380         (sse2_cvttpd2pi): Likewise.
3381         (sse2_cvtsi2sd): Likewise.
3382         (sse2_cvtsi2sdq): Likewise.
3383         (sse2_cvtsd2si): Likewise.
3384         (sse2_cvtsd2si_2): Likewise.
3385         (sse2_cvtsd2siq): Likewise.
3386         (sse2_cvtsd2siq_2): Likewise.
3387         (sse2_cvttsd2si): Likewise.
3388         (sse2_cvttsd2siq): Likewise.
3389         (*sse2_cvtpd2dq): Likewise.
3390         (*sse2_cvttpd2dq): Likewise.
3391         (sse2_cvtsd2ss): Likewise.
3392         (sse2_cvtss2sd): Likewise.
3393         (*sse2_cvtpd2ps): Likewise.
3394         (sse2_cvtps2pd): Likewise.
3396 2010-10-22  Richard Guenther  <rguenther@suse.de>
3398         PR middle-end/46137
3399         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
3400         remove the virtual operands if they are not needed.
3402 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
3404         * config/i386/i386.c (processor_costs bdver1_cost): Update
3405         insn costs and architectural parameters for bdver1.
3407 2010-10-22  Richard Guenther  <rguenther@suse.de>
3409         * gimple.h (gimple_register_canonical_type): Declare.
3410         * gimple.c (gimple_canonical_types): New global hashtable.
3411         (struct gimple_type_leader_entry_s): New type.
3412         (gimple_type_leader): New global cache.
3413         (gimple_lookup_type_leader): New function.
3414         (gtc_visit): Query the proper cache.
3415         (gimple_types_compatible_p): Likewise.
3416         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
3417         (gimple_canonical_type_eq): New function.
3418         (gimple_register_canonical_type): Likewise.
3419         (print_gimple_types_stats): Adjust for gimple_canonical_types.
3420         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
3421         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
3422         gimple_types_compatible_p for LTO.
3424 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
3426         PR target/46098
3427         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3428         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3429         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3430         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3431         (<sse>_movu<ssemodesuffix>): New expander.
3432         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3433         (avx_movdqu<avxmodesuffix>): New expander.
3434         (*sse2_movdqu): Rename from sse2_movdqu.
3435         (sse2_movdqu): New expander.
3437 2010-10-22  Richard Guenther  <rguenther@suse.de>
3439         PR tree-optimization/45720
3440         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
3441         Handle negative step.
3442         (vect_enhance_data_refs_alignment): Likewise.
3443         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
3444         (vect_create_cond_for_align_checks): Likewise.
3445         (vect_create_cond_for_alias_checks): Likewise.
3447 2010-10-22  Ira Rosen  <irar@il.ibm.com>
3449         PR tree-optimization/46126
3450         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
3451         vectorizable_shift in case of basic block vectorization.
3453 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
3455         * target.h (enum opt_levels, struct default_options): New.
3456         * target.def (handle_ofast): Remove hook.
3457         (target_option.optimization): Change to
3458         target_option.optimization_table.
3459         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
3460         TARGET_OPTION_OPTIMIZATION_TABLE.
3461         (CAN_DEBUG_WITHOUT_FP): Remove.
3462         * doc/tm.texi: Regenerate.
3463         * opts.c (maybe_default_option, maybe_default_options,
3464         default_options_table): New.
3465         (default_options_optimization): Take extra parameters.  Don't
3466         assert that global_options and global_options_set are in use.  Use
3467         maybe_default_options.
3468         (decode_options): Pass extra parameters to
3469         default_options_optimization.
3470         * common.opt (falign-loops): Use value 0 with Var.
3471         (frerun-cse-after-loop, ftree-ter): Remove Init.
3472         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
3473         TARGET_OPTION_OPTIMIZATION): Remove.
3474         * targhooks.c (empty_optimization_table): New.
3475         * targhooks.h (empty_optimization_table): Declare.
3476         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
3477         * config/alpha/alpha.c (alpha_option_optimization_table,
3478         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3479         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
3480         * config/arm/arm.c (arm_option_optimization: Change to
3481         arm_option_optimization_table.
3482         (TARGET_OPTION_OPTIMIZATION): Change to
3483         TARGET_OPTION_OPTIMIZATION_TABLE.
3484         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
3485         * config/avr/avr.c (avr_option_optimization_table,
3486         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3487         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
3488         * config/cris/cris.c (cris_option_optimization): Change to
3489         cris_option_optimization_table.
3490         (TARGET_OPTION_OPTIMIZATION): Change to
3491         TARGET_OPTION_OPTIMIZATION_TABLE.
3492         * config/crx/crx.c (crx_option_optimization): Change to
3493         crx_option_optimization_table.
3494         (TARGET_OPTION_OPTIMIZATION): Change to
3495         TARGET_OPTION_OPTIMIZATION_TABLE.
3496         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
3497         * config/fr30/fr30.c (fr30_option_optimization_table,
3498         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3499         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
3500         * config/frv/frv.c (frv_option_optimization_table,
3501         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3502         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
3503         * config/h8300/h8300.c (h8300_option_optimization): Change to
3504         h8300_option_optimization_table.
3505         (TARGET_OPTION_OPTIMIZATION): Change to
3506         TARGET_OPTION_OPTIMIZATION_TABLE.
3507         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
3508         * config/i386/i386.c (ix86_option_optimization): Change to
3509         ix86_option_optimization_table.
3510         (TARGET_OPTION_OPTIMIZATION): Change to
3511         TARGET_OPTION_OPTIMIZATION_TABLE.
3512         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
3513         as initializer.
3514         * config/ia64/ia64.c (ia64_option_optimization): Change to
3515         ia64_option_optimization_table.
3516         (TARGET_OPTION_OPTIMIZATION): Change to
3517         TARGET_OPTION_OPTIMIZATION_TABLE.
3518         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
3519         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
3520         initializer.
3521         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
3522         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3523         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
3524         * config/lm32/lm32.c (lm32_option_optimization_table,
3525         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3526         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
3527         * config/m32r/m32r.c (m32r_option_optimization): Change to
3528         m32r_option_optimization_table.
3529         (TARGET_OPTION_OPTIMIZATION): Change to
3530         TARGET_OPTION_OPTIMIZATION_TABLE.
3531         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
3532         CAN_DEBUG_WITHOUT_FP): Remove.
3533         * config/mcore/mcore.c (mcore_option_optimization): Change to
3534         mcore_option_optimization_table.
3535         (TARGET_OPTION_OPTIMIZATION): Change to
3536         TARGET_OPTION_OPTIMIZATION_TABLE.
3537         * config/mep/mep.c (mep_option_optimization): Change to
3538         mep_option_optimization_table.
3539         (TARGET_OPTION_OPTIMIZATION): Change to
3540         TARGET_OPTION_OPTIMIZATION_TABLE.
3541         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
3542         * config/microblaze/microblaze.c
3543         (microblaze_option_optimization_table,
3544         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3545         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
3546         * config/mips/mips.c (mips_option_optimization_table,
3547         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3548         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
3549         * config/mmix/mmix.c (mmix_option_optimization): Change to
3550         mmix_option_optimization_table.
3551         (TARGET_OPTION_OPTIMIZATION): Change to
3552         TARGET_OPTION_OPTIMIZATION_TABLE.
3553         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
3554         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
3555         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3556         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
3557         * config/pa/pa.c (pa_option_optimization_table,
3558         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3559         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
3560         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
3561         pdp11_option_optimization_table.
3562         (TARGET_OPTION_OPTIMIZATION): Change to
3563         TARGET_OPTION_OPTIMIZATION_TABLE.
3564         * config/picochip/picochip.c (picochip_option_optimization_table,
3565         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3566         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
3567         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
3568         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3569         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
3570         * config/rx/rx.c (rx_option_optimization_table,
3571         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3572         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
3573         * config/s390/s390.c (s390_option_optimization): Change to
3574         s390_option_optimization_table.
3575         (s390_option_override): Update comment.
3576         (TARGET_OPTION_OPTIMIZATION): Change to
3577         TARGET_OPTION_OPTIMIZATION_TABLE.
3578         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
3579         * config/score/score.c (score_option_optimization_table,
3580         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3581         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
3582         * config/sh/sh.c (sh_option_optimization): Change to
3583         sh_option_optimization_table.
3584         (TARGET_OPTION_OPTIMIZATION): Change to
3585         TARGET_OPTION_OPTIMIZATION_TABLE.
3586         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
3587         (sh_option_override, expand_block_move, multcosts, find_barrier,
3588         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
3589         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
3590         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
3591         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
3592         instead of TARGET_SMALLCODE.
3593         * config/sh/sh.opt (mspace): Make into an alias for -Os.
3594         * config/sparc/sparc.c (sparc_option_optimization_table,
3595         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3596         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
3597         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
3598         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3599         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
3600         * config/v850/v850.c (v850_option_optimization): Change to
3601         v850_option_optimization_table.
3602         (TARGET_OPTION_OPTIMIZATION): Change to
3603         TARGET_OPTION_OPTIMIZATION_TABLE.
3604         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
3605         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
3606         xtensa_option_optimization_table.
3607         (TARGET_OPTION_OPTIMIZATION): Change to
3608         TARGET_OPTION_OPTIMIZATION_TABLE.
3609         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
3611 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
3613         Based on the CFString implementation in FSF apple/trunk branch.
3615         * target.def (objc_construct_string): New Hook.
3616         * doc/tm.texi (objc_construct_string): Document.
3617         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
3618         * config/t-darwin: Amend build rules for darwin.o.
3619         * config/darwin.opt: Add cfstrings flags.
3620         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
3621         (darwin_objc_construct_string): New.
3622         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
3623         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
3624         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
3625         (darwin_fold_builtin): Likewise.
3626         (darwin_build_constant_cfstring): Likewise.
3627         (darwin_objc_construct_string): Likewise.
3628         (darwin_cfstring_p): Likewise.
3629         (darwin_enter_string_into_cfstring_table): Likewise.
3630         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
3631         * config/darwin.c (darwin_running_cxx): New var.
3632         (machopic_select_section): Return cfstring_constant_object_section.
3633         (darwin_override_options): Set darwin_running_cxx.
3634         (add_builtin_field_decl): New.
3635         (darwin_init_cfstring_builtins): New.
3636         (darwin_build_constant_cfstring): New.
3637         (darwin_fold_builtin): New.
3638         (cfstring_hash): New.
3639         (cfstring_eq): New.
3640         (darwin_enter_string_into_cfstring_table): New.
3641         * config/darwin-sections.def (cfstring_constant_object_section): New.
3642         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
3643         (TARGET_OBJC_CONSTRUCT_STRING): Define.
3645 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3647         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
3648         TYPE_STUB_DECL instead of TREE_CHAIN.
3649         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
3650         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
3651         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
3652         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
3653         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
3654         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
3655         Likewise.
3656         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
3658 2010-10-22  Jie Zhang  <jie@codesourcery.com>
3660         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
3661         (copy_blkmode_from_reg): Likewise.
3662         (read_complex_part): Likewise.
3663         (expand_expr_real_1): Calculate packedp and pass it to
3664         extract_bit_field.
3665         * expr.h (extract_bit_field): Update declaration.
3666         * calls.c (store_unaligned_arguments_into_pseudos): Update call
3667         to extract_bit_field.
3668         * expmed.c (extract_fixed_bit_field): Update calls to
3669         extract_fixed_bit_field.
3670         (store_split_bit_field): Likewise.
3671         (extract_bit_field_1): Add new argument packedp.
3672         (extract_bit_field): Add new argument packedp.
3673         (extract_fixed_bit_field): Add new argument packedp and let
3674         packed attribute override volatile.
3675         * stmt.c (expand_return): Update call to extract_bit_field.
3677 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3679         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
3681 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3683         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
3684         of gcc_checking_assert.
3685         * sel-sched.c (code_motion_process_successors): Likewise.
3687 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
3689         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
3690         when stopping because of a different locus on edge or insn.
3691         (try_optimize_cfg): Add comment.
3692         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
3693         block is a forwarder block, propagate locus on the edge.
3694         (cfg_layout_merge_blocks): Likewise.
3696 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
3698         PR target/45946
3699         * config/i386/i386.md (*pushti2): New insn pattern.
3700         (pushti2 splitter): New insn splitter.
3701         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
3702         DWI mode iterator.
3704 2010-10-21  Paul Koning  <ni1d@arrl.net>
3706         * config/pdp11/pdp11-protos.md (arith_operand,
3707         const_immediate_operand, expand_shift_operand,
3708         immediate15_operand): Delete
3709         * config/pdp11/pdp11.c: Ditto.
3710         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
3711         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
3712         EXTRA_CONSTRAINT): Delete.
3713         * config/pdp11/pdp11.md (various): Use standard constraints
3714         instead of removed ones.
3715         * config/pdp11/constraints.md: New file.
3716         * config/pdp11/predicates.md: New file.
3718 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
3720         PR c/45834
3721         * alias.c (true_dependence_1): Remove obsolete check for QImode.
3722         (may_alias_p): Ditto.
3724 2010-10-21  Martin Jambor  <mjambor@suse.cz>
3726         PR tree-optimization/45875
3727         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
3729 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3731         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
3732         variables.
3733         (create_new_def_for): Likewise.
3735 2010-10-21  Nick Clifton  <nickc@redhat.com>
3737         * config/mn10300/mn10300.c: Fold code to 80-character width.
3738         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
3739         MEM, CONST_INT and CONST_DOUBLE.
3740         (targetm): Move initialization to end of file.
3741         (print_operand): Rename to mn10300_print_operand.
3742         (print_operand_address): Rename to mn10300_print_operand_address.
3743         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
3744         (expand_prologue): Rename to mn10300_expand_prologue.
3745         (expand_epilogue): Rename to mn10300_expand_epilogue.
3746         (initial_offset): Rename to mn10300_initial_offset.
3747         (function_arg): Rename to mn10300_function_arg.
3748         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
3749         (symbolic_operand): Rename to mn10300_symbolic_operand.
3750         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
3751         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
3752         * config/mn10300/mn10300-protos.h: Update prototypes.
3753         * config/mn10300/mn10300.h: Fold code to 80-character width.
3754         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
3755         MEM, CONST_INT and CONST_DOUBLE.
3756         (CPP_SPEC): Move to...
3757         (TARGET_CPU_CPP_BUILTINS): ... here.
3758         * config/mn10300/mn10300.md: Fold code to 80-character width.
3759         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
3760         MEM, CONST_INT and CONST_DOUBLE.
3762 2010-10-21  Ira Rosen  <irar@il.ibm.com>
3764         PR tree-optimization/46049
3765         PR tree-optimization/46052
3766         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
3767         (vect_get_slp_defs): Add arguments.
3768         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
3769         operands to vect_get_slp_defs.
3770         (vectorizable_reduction): Fix comment, pass scalar operands to
3771         vect_get_slp_defs.
3772         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
3773         type to determine number of units in the created vector.
3774         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
3775         (vectorizable_conversion): Fix comment.
3776         (vectorizable_shift): New function.
3777         (vectorizable_operation): Move code that handles shifts to
3778         vectorizable_shift.
3779         (vectorizable_type_demotion): Fix comment, pass scalar operands to
3780         vect_get_slp_defs.
3781         (vectorizable_type_promotion, vectorizable_store): Likewise.
3782         (vectorizable_condition): Fix comment.
3783         (vect_analyze_stmt): Call vectorizable_shift.
3784         (vect_transform_stmt): Likewise.
3785         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
3786         Use it as the operand to create vectors for, except reduction
3787         initial definition and store.  Use operands type.
3788         (vect_get_slp_defs): Add new arguments.  Pass them to
3789          vect_get_constant_vectors.
3791 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3793         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
3794         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
3795         * cfghooks.c (fixup_reorder_chain): Likewise.
3796         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
3797         * cgraph.c (cgraph_add_thunk): Likewise.
3798         (cgraph_create_edge_1): Likewise.
3799         (cgraph_create_virtual_clone): Likewise.
3800         * ddg.c (add_cross_iteration_register_deps): Likewise.
3801         * dwarf2out.c (modified_type_die): Likewise.
3802         * emit-rtl.c (set_mem_alias_set): Likewise.
3803         * ggc-zone.c (zone_allocate_marks): Likewise.
3804         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
3805         * gimple.c (iterative_hash_gimple_type): Likewise.
3806         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
3807         (create_single_exit_edge): Likewise.
3808         * haifa-sched.c (choose_ready): Likewise.
3809         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3810         * passes.c (execute_todo): Likewise.
3811         * sched-ebb.c (begin_schedule_ready): Likewise.
3812         * sel-sched.c (code_motion_process_successors): Likewise.
3813         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
3814         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
3815         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
3816         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
3817         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
3818         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
3819         (ssa_conflicts_add): Likewise.
3820         * tree-ssa-copy.c (replace_exp): Likewise.
3821         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
3822         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
3823         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3824         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
3825         (compute_antic): Likewise.
3826         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
3827         (add_dependence): Likewise.
3828         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
3829         * tree-vrp.c (supports_overflow_infinity): Likewise.
3830         (make_overflow_infinity, negative_overflow_infinity): Likewise.
3831         (avoid_overflow_infinity, register_new_assert_for): Likewise.
3832         (process_assert_insertions_for): Likewise.
3833         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
3834         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
3835         (intersect_loc_chains, variable_merge_over_cur): Likewise.
3837 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3839         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
3840         * reload1.c (has_nonexceptional_receiver): Likewise.
3841         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
3842         (create_new_def_for): Likewise.
3843         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
3844         (merge_phi_nodes): Likewise.
3845         (has_abnormal_incoming_edge_p): Delete.
3847 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
3849         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
3851 2010-10-21  Richard Guenther  <rguenther@suse.de>
3852             Michael Matz  <matz@suse.de>
3854         PR tree-optimization/45764
3855         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3856         Adjust initial misalignment for negative DR_STEP.
3857         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
3858         do not have the same alignment over the whole iteration domain.
3860 2010-10-21  Richard Guenther  <rguenther@suse.de>
3862         PR tree-optimization/46111
3863         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
3865 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3867         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
3869 2010-10-21  Tristan Gingold  <gingold@adacore.com>
3871         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
3872         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
3874 2010-10-21  Tristan Gingold  <gingold@adacore.com>
3876         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
3877         signal_frame.
3878         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
3880 2010-10-21  Tristan Gingold  <gingold@adacore.com>
3882         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
3883         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
3885 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
3887         * basic-block.h (find_fallthru_edge): Define.
3888         * cfgcleanup.c (merge_blocks_move): Use it.
3889         (try_crossjump_bb): Likewise.
3890         * cfglayout.c (fixup_reorder_chains): Likewise.
3891         (fixup_fallthru_exit_predecessor): Likewise.
3892         * cfgrtl.c (rtl_split_edge): Likewise.
3893         (rtl_verify_flow_info): Likewise.
3894         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3895         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
3896         * ifcvt.c (block_fallthru): Likewise.
3897         * reload1.c (fixup_abnormal_edges): Likewise.
3898         * sched-ebb.c (being_schedule_ready): Likewise.
3899         (schedule_ebb): Likwise.
3900         * sched-rgn.c (find_single_block_region): Likewise.
3901         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
3902         * tree-complex.c (expand_complex_move): Likewise.
3903         * sched-int.h (find_fallthru_edge): Rename to...
3904         (find_fallthru_edge_from): ...this.
3905         * haifa-sched.c (find_fallthru_edge): Rename to...
3906         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
3907         (init_before_recovery): Call find_fallthru_edge_from.
3908         * sel-sched-ir.c (merge_fences): Likewise.
3909         * sel-sched.c (in_fallthru_bb_p): Likewise.
3910         (move_cond_jump): Likewise.
3912 2010-10-20  Paul Koning  <ni1d@arrl.net>
3914         * config/pdp11/pdp11.md (various): Fix conditions on a number of
3915         insn to check for target 11/40 or higher.
3917 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3919         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
3920         bool instead of a tree.
3921         (c_parser_objc_method_decl): Added bool argument.  Updated call to
3922         objc_build_method_signature.
3923         (c_parser_objc_method_definition): Do not call
3924         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
3925         c_parser_objc_method_decl and objc_start_method_definition.
3926         (c_parser_objc_methodproto): Do not call objc_set_method_type.
3927         Updated calls to c_parser_objc_method_type,
3928         c_parser_objc_method_decl and objc_add_method_declaration.
3930 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
3932         PR tree-optimization/45919
3933         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
3934         array members.
3936         PR tree-optimization/46066
3937         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
3938         instead of gsi_last_bb.
3940 2010-10-20  DJ Delorie  <dj@redhat.com>
3942         * config/m32c/m32c.c (m32c_option_override): Always disable
3943         function-cse in 16-bit mode.  Indirect calls are always worse than
3944         direct calls as there is no 16-bit indirect call opcode.
3945         (m32c_override_options_after_change): New, likewise.
3947 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
3949         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
3950         emitting the conditional move in the inner mode of the SUBREG.
3952 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
3954         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
3955         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
3956         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3957         (ia64_preferred_reload_class): Make static.  Change rclass argument
3958         and result types from enum reg_class to reg_class_t.
3960 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
3962         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
3963         call for single operand expression.
3965 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
3967         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
3968         if there is a call statement to pure or const function in the block.
3970 2010-10-20  Paul Koning  <pkoning@equallogic.com>
3972         Fix several build errors for pdp11 target.
3973         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
3974         (cbranchdf4): Conditional on TARGET_FPU.
3975         (movdf): Ditto; correct alternatives check.
3976         (movmemhi): Fix predicate and constraint.
3977         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
3979 2010-10-20  Richard Guenther  <rguenther@suse.de>
3981         PR lto/45667
3982         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
3983         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
3984         (verify_gimple_assign_single): Disable ADDR_EXPR type check
3985         when in LTO.
3987 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
3989         PR fortran/42169
3990         * ira-emit.c (store_can_be_removed_p): Return false instead of
3991         gcc_unreachable.
3993 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
3995         * fold-const.c (fold_binary_loc): New transformation.
3997 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3999         PR target/46085
4000         * config/i386/sse.md (reduc_splus_v8sf): Updated.
4001         (reduc_splus_v4df): Likewise.
4003 2010-10-20  Richard Guenther  <rguenther@suse.de>
4005         PR tree-optimization/45860
4006         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
4007         conditional store replacement for non-register type stores.
4009 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4011         * stor-layout.c (skip_simple_constant_arithmetic): New function.
4012         (self_referential_size): Use it instead of skip_simple_arithmetic.
4014 2010-10-20  Olivier Hainque  <hainque@adacore.com>
4016         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
4017         If the current function calls eh_return, claim live all registers
4018         that we need to check for liveness otherwise.
4020 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4022         * c-decl.c (c_write_global_declarations): Call
4023         objc_write_global_declarations when compiling Objective-C.
4024         * c-lang.c (finish_file): Removed.
4026 2010-10-19  DJ Delorie  <dj@redhat.com>
4028         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
4029         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
4030         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4031         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4032         * doc/tm.texi: Regenerate.
4033         * targhooks.h (default_label_align_after_barrier_max_skip,
4034         default_loop_align_max_skip, default_label_align_max_skip,
4035         default_jump_align_max_skip): Declare.
4036         * target.def (label_align_after_barrier_max_skip): New.
4037         (loop_align_max_skip): New.
4038         (label_align_max_skip): New.
4039         (jump_align_max_skip): New.
4040         * system.h (poison): Add those macros to the list.
4041         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
4042         (LOOP_ALIGN_MAX_SKIP): Remove.
4043         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
4044         (JUMP_ALIGN_MAX_SKIP): Remove.
4045         (default_label_align_after_barrier_max_skip): New.
4046         (default_loop_align_max_skip): New.
4047         (default_label_align_max_skip): New.
4048         (default_jump_align_max_skip): New.
4049         (compute_alignments): Use the new hooks.
4050         (shorten_branches): Likewise.
4052 2010-10-19  Richard Henderson  <rth@redhat.com>
4054         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
4055         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
4056         (fma4i_fmadd_<mode>): New.
4057         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
4058         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
4059         standard fma patterns.
4060         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
4061         enable for FMA.
4062         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
4063         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
4064         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
4066 2010-10-19  Paul Koning  <pkoning@equallogic.com>
4068         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
4069         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
4071 2010-10-19  Richard Henderson  <rth@redhat.com>
4073         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
4074         (fmadf4, *fmsdf4, *nfmadf4): New.
4075         (fmaxf4, *fmsxf4, *nfmaxf4): New.
4077 2010-10-19  Michael Eager  <eager@eagercon.com>
4079         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
4080         Use sjlj unwind info for exceptions.
4082 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
4084         PR fortran/43414
4085         * dwarf2out.c (add_calling_convention_attribute): Flag main
4086         Fortran subroutine with DW_AT_main_subprogram.
4088 2010-10-19  Nick Clifton  <nickc@redhat.com>
4090         * config/rx/rx.c (rx_function_value): Small integer types are
4091         promoted to SImode.
4092         (rx_promote_function_mode): New function.
4093         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4095 2010-10-19  Nick Clifton  <nickc@redhat.com>
4097         * config/mep/mep.c (mep_print_operand): Use
4098         targetm.strip_name_encoding.
4099         (mep_output_aligned_common): Likewise.
4101 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
4103         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
4105 2010-10-18  Richard Henderson  <rth@redhat.com>
4107         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
4108         (fma (neg a) (neg b) c) and (fma a (neg b) c).
4110 2010-10-18  Richard Henderson  <rth@redhat.com>
4112         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
4113         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
4114         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
4115         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
4116         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
4117         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
4118         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
4119         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
4120         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
4121         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
4122         (bdesc_multi_arg): Remove the corresponding builtins.
4123         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
4124         (UNSPEC_FMA4_FMSUBADD): Remove.
4125         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
4126         * config/i386/sse.md (FMA4MODEF4): Remove.
4127         (FMAMODE): Add.
4128         (fma<mode>4): New expander.
4129         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
4130         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
4131         (*fma4i_fmsub_<mode>): Similarly.
4132         (*fma4i_fnmadd_<mode>): Similarly.
4133         (*fma4i_fnmsub_<mode>): Similarly.
4134         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
4135         with the first operand.
4136         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
4137         of explicit arithmetic.  Macroize with AVXMODEF2P.
4138         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
4139         (xop_frcz<mode>2): Macroize with FMAMODE.
4140         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
4141         the first operand.
4142         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
4143         extra negations.
4144         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
4145         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
4146         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
4147         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
4148         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
4149         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
4150         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
4151         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
4153 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
4155         PR rtl-optimization/45966
4156         * combine.c (try_combine): If added_sets_2, deal with the case
4157         where i0 feeds i1 and i1 feeds i2.
4159 2010-10-18  Jan Hubicka  <jh@suse.cz>
4161         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
4162         preserve flags before trying to guess on visibility.
4163         (varpool_externally_visible_p): New function.
4164         (function_and_variable_visibility): Use it.
4166 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4168         Implemented parsing @synthesize and @dynamic for Objective-C.
4169         * c-parser.c (c_parser_external_declaration): Recognize
4170         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4171         (c_parser_objc_at_synthesize_declaration): New.
4172         (c_parser_objc_at_dynamic_declaration): New.
4174 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4176         * c-parser.c (c_parser_objc_class_declaration): After finding an
4177         error, parse the whole declaration then reset parser->error.
4179 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4181         PR target/46041
4182         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
4183         * builtins.c (mode_has_fma): Ditto.
4185 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
4187         PR target/36898
4188         PR middle-end/43760
4189         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
4191 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
4193         * config/i386/i386.c (ix86_option_override_internal): Define and
4194         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
4195         default.
4196         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4197         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
4199 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4201         Merge from 'apple/trunk' branch on FSF servers.
4202         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
4203         following Objective-C change:
4205         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
4207         Radar 4301047
4208         * c-parse.in (objc_quals): Build objc qualifier list same way
4209         as gcc-3.3
4211 2010-10-18  Jan Hubicka  <jh@suse.cz>
4213         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
4214         function_and_variable_visibility): Revert accidental commit.
4216 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4218         Merge from 'apple/trunk' branch on FSF servers.
4219         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
4220         the following Objective-C change:
4222         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
4224         Radar 4204796
4225         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
4226         'volatilized' type used in a typeof operator.
4228 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
4230         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
4231         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
4232         rewrite modelled on gimple_purge_dead_eh_edges.
4233         (gimple_purge_all_dead_abnormal_call_edges): New function.
4234         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
4235         directly instead of through gimple_purge_dead_abnormal_call_edges.
4236         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
4237         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
4238         removed AB side-effects from one of its statements.
4239         (init_pre): Initialize need_ab_cleanup.
4240         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
4241         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
4243 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
4245         PR c/46015
4246         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
4247         on computed goto argument.
4249 2010-10-18  Richard Guenther  <rguenther@suse.de>
4251         PR tree-optimization/45967
4252         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
4253         (could_have_pointers): Likewise.
4254         (handle_rhs_call, handle_const_call, handle_pure_call,
4255         find_func_aliases, intra_create_variable_infos): Remove calls to them.
4256         (struct fieldoff): Add must_have_pointers field.
4257         (type_must_have_pointers): New function.
4258         (field_must_have_pointers): Likewise.
4259         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
4260         Adjust field merging.
4261         (create_function_info_for): May-have-pointers of varinfo is
4262         almost always true.
4263         (create_variable_info_for_1): Likewise.
4265 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
4267         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
4268         of operands to vec_concat.
4270 2010-10-18  Richard Guenther  <rguenther@suse.de>
4272         PR lto/44950
4273         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
4274         also clear references to entries of it.
4276 2010-10-18  Andi Kleen  <ak@linux.intel.com>
4278         PR other/43448
4279         * gccbug.in: Remove.
4280         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
4281         (doc, distclean, install-common): Remove reference to gccbug.
4282         * configure: Regenerate.
4283         * configure.ac (all_outputs): Remove gccbug.
4284         * doc/configfiles.texi: Remove references to gccbug.
4285         * doc/sourcebuild.texi: Dito.
4287 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
4289         PR middle-end/46019
4290         * fold-const.c (fold_binary_loc): If integer_pow2p has
4291         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
4293 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
4294             Jeremie Salvucci  <jeremie.salvucci@free.fr>
4296         * gengtype.c (verbosity_level): Add variable.
4297         (set_gc_used): Count variables for verbosity.
4298         (close_output_files): Backing up files, counting written ones
4299         verbosily.
4300         (write_types): Count emitted functions for verbosity. Added
4301         debug messages.
4302         (write_enum_defn): Count structures for verbosity. Added debug
4303         messages.
4304         (gengtype_long_options): Add "verbose" & "backupdir".
4305         (print_usage): Ditto.
4306         (main): Verbose display of parsed files.
4308         * gengtype.h (verbosity_level): Add declaration.
4310 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
4312         * gengtype.c (parse_program_options): Add allocation of
4313         plugin_files, and correct test on nb_plugin_files.
4315 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4317         Merge from 'apple/trunk' branch on FSF servers.
4319         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
4321         Radar 4133425
4322         * c-decl.c (undeclared_variable): Issue diagnostic on
4323         private 'ivar' access.
4325 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
4327         PR target/46051
4328         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
4329         generated sequence to match *avx_vperm2f128<mode>_nozero.
4330         (vec_interleave_lowv4df): Ditto.
4331         (vec_interleave_highv8sf): Ditto.
4332         (vec_interleave_lowv8sf): Ditto.
4334 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
4336         * libgcov.c (create_file_directory): Enable it for win32 case.
4337         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
4338         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
4339         (GCOV_PREFIX_SKIP): Likewise.
4341 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4343         * doc/objc.texi (GNU Objective-C runtime API): New section.
4344         (Modern GNU Objective-C runtime API): New section.
4345         (Traditional GNU Objective-C runtime API): New section.
4346         (Executing code before main): Mention that this section is
4347         specific to the GNU Objective-C runtime.
4348         (Garbage Collection): Same.
4350 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
4352         * c-parser.c (c_parser_for_statement): Move initialization of
4353         cond and incr before if.
4355 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
4357         * target.def (preferred_output_reload_class): New hook.
4358         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
4359         * doc/tm.texi: Regenerate.
4360         * targhooks.c (default_preferred_output_reload_class): New function.
4361         * targhooks.h (default_preferred_output_reload_class): Declare.
4362         * reload.c (find_dummy_reload): Change rclass argument type from
4363         enum reg_class to reg_class_t. Change this_alternative array type
4364         from enum reg_class to reg_class_t.
4365         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
4366         (push_reload): Change preferred_class variable type to reg_class_t.
4367         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
4368         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
4369         argument type from enum reg_class to reg_class_t. Use
4370         HARD_REGISTER_NUM_P predicate.
4371         * recog.h (reg_fits_class_p): Update prototype.
4373         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4374         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
4375         Remove.
4376         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
4377         static. Change regclass argument and result types from enum reg_class
4378         to reg_class_t.
4379         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4381 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4383         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
4384         visibility enum, and handle @package.
4386 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4388         * doc/objc.texi (What you can and what you cannot do in +load):
4389         Document that sending messages to constant string objects in +load
4390         is not guaranteed to work.
4392 2010-10-16  Jan Hubicka  <jh@suse.cz>
4394         PR middle-end/44206
4395         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
4396         existence of refrences before removing the function.
4398 2010-10-16  Jan Hubicka  <jh@suse.cz>
4400         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
4401         only_called_at_startup and only_called_at_exit.
4402         (cgraph_propagate_frequency): Compute only_called_at_startup and
4403         only_called_at_exit.
4404         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
4405         only_called_at_exit.
4406         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
4407         flags.
4408         * predict.c (compute_function_frequency): Initialize the new flags.
4410 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
4412         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
4413         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
4414         on the bounds of its domain.
4415         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
4417 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
4419         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
4420         * config/avr/avr-protos.h (preferred_reload_class): Remove.
4421         * config/avr/avr.c (preferred_reload_class): Remove.
4422         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
4423         * config/pa/pa.c (emit_move_sequence): Update comment
4424         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
4425         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
4426         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
4427         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
4428         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
4429         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
4430         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
4431         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
4432         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
4433         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
4434         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
4435         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
4436         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
4438 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
4440         * opts.c (set_fast_math_flags,
4441         set_unsafe_math_optimizations_flags): Make static.
4442         * toplev.h (set_fast_math_flags,
4443         set_unsafe_math_optimizations_flags): Remove prototypes.
4445 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
4447         * config/arm/arm.c (arm_option_optimization): Set
4448         flag_section_anchors to 1 not 2.
4449         * config/i386/i386.c (ix86_option_override_internal): Check
4450         global_options_set.x_flag_zee and
4451         global_options_set.x_flag_omit_frame_pointer.
4452         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
4453         flag_zee to 2.
4454         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4455         global_options_set.x_flag_omit_frame_pointer.
4456         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
4457         opts->x_flag_section_anchors to 1 not 2.
4458         * config/sh/sh.c (sh_option_optimization): Don't set
4459         flag_schedule_insns to 2.
4460         (sh_option_override): Check
4461         global_options_set.x_flag_schedule_insns.
4462         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
4464 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
4466         * configure.ac: Make sure inhibit_libc remains false for mingw targets
4467         as cross.
4468         * configure: Regenerated.
4470 2010-10-15  Xinliang David Li  <davidxl@google.com>
4472         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
4473         function.
4474         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
4475         into a recursive function.
4477 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
4479         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
4480         (*movdfcc_1): ditto.
4482 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4484         * target.def (target_option.init_struct): New hook.
4485         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
4486         * doc/tm.texi: Regenerate.
4487         * hooks.c (hook_void_gcc_optionsp): New.
4488         * hooks.h (hook_void_gcc_optionsp): Declare.
4489         * langhooks-def.h (lhd_init_options_struct): Remove.
4490         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
4491         * langhooks.c (lhd_init_options_struct): Remove.
4492         * opts.c (init_options_struct): Also call
4493         targetm.target_option.init_struct.
4494         * config/i386/i386.c (ix86_option_init_struct,
4495         TARGET_OPTION_INIT_STRUCT): New.
4496         (ix86_option_optimization): Move some settings to
4497         ix86_option_init_struct.
4498         * config/pdp11/pdp11.c (pdp11_option_init_struct,
4499         TARGET_OPTION_INIT_STRUCT): New.
4500         (pdp11_option_optimization): Move some settings to
4501         pdp11_option_init_struct.
4502         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
4503         rs6000_option_init_struct.  Use options structure pointer.
4504         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
4505         * config/s390/s390.c (s390_option_init_struct,
4506         TARGET_OPTION_INIT_STRUCT): New.
4507         (s390_option_optimization): Don't set
4508         flag_asynchronous_unwind_tables here.
4509         * config/sh/sh.c (sh_option_init_struct,
4510         TARGET_OPTION_INIT_STRUCT): New.
4511         (sh_option_optimization): Don't set flag_finite_math_only here.
4512         * config/spu/spu.c (spu_option_optimization): Replace by
4513         spu_option_optimization.  Use options structure pointer.
4514         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
4516 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4518         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
4520         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
4521         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
4522         (Standard names): Document fma.
4524         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
4525         __FP_FAST_FMAF, __FP_FAST_FMAL.
4527         * builitns.c (expand_builtin_mathfn_ternary): New function for
4528         expanding ternary math functions, like fma.
4529         (expand_builtin): Call it for the fma builtins.
4531         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
4532         ops at present.
4534         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
4535         vectorizable functions to support vectorizing fma.
4537         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
4538         Handle fma builtins.
4540         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
4541         (UNSPEC_VSX_MSUB): Ditto.
4542         (UNSPEC_VSX_NMADD): Ditto.
4543         (UNSPEC_VSX_NMSUB): Ditto.
4544         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
4545         of UNSPEC. Renumber combiner patterns.
4546         (vsx_fmsub<mode>4*): Ditto.
4547         (vsx_fnmadd<mode>4*): Ditto.
4548         (vsx_fnmsub<mode>4*): Ditto.
4550         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
4551         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
4552         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
4553         (altivec_vmaddfp_1): Ditto.
4554         (altivec_vmaddfp_2): Ditto.
4555         (atlivec_mulv4sf3): Ditto.
4556         (altivec_vnmsubfp): Ditto.
4557         (altivec_vnmsubfp_1): Ditto.
4558         (altivec_vnmsubfp_2): Ditto.
4559         (altivec_vnmsubfp_3): Delete.
4561         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
4562         (fmasf4_fpr): Ditto.
4563         (fmssf4_fpr): Ditto.
4564         (fnmasf4_fpr): Ditto.
4565         (fnmssf4_fpr): Ditto.
4566         (fmadf4): Ditto.
4567         (fmadf4_fpr): Ditto.
4568         (fmsdf4_fpr): Ditto.
4569         (fnmadf4_fpr): Ditto.
4570         (fnmsdf4_fpr): Ditto.
4572         * optabs.h (OTI_fma): Add fma optab.
4573         (fma_optab): Ditto.
4575         * genopinit.c (optabs): Set fma optab.
4577         * rtl.def (FMA): Add FMA rtl.
4579         * tree.h (mode_has_fma): New function to return if MODE supports a
4580         fast multiply and add instruction.
4581         * builtins.c (mode_has_fma): Ditto.
4583 2010-10-15  Jan Hubicka  <jh@suse.cz>
4585         * lto-streamer-out.c (write_symbol): Use pointer set of seen
4586         objects instead of bitmap.
4587         (produce_symtab): Likewise; output defined symbols first.
4589 2010-10-15  Jie Zhang  <jie@codesourcery.com>
4591         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
4592         Option Summary and Index.
4594 2010-10-15  Richard Guenther  <rguenther@suse.de>
4596         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
4597         for automatic variables again.
4599 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4601         * doc/extend.texi (Variable Length): Don't refer to VLAs not
4602         conforming to C99.
4604 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4606         * config/rx/rx.c (rx_option_optimization): Change to
4607         rx_override_options_after_change.  Don't change
4608         flag_lto_compression_level.  Don't check for changes to whether
4609         FPU instructions can be used.  Check and set only
4610         flag_finite_math_only, not other fast-math flags.
4611         (rx_option_override): Call rx_override_options_after_change.
4612         (TARGET_OPTION_OPTIMIZATION): Remove.
4613         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4615 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4617         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
4618         disable section anchors for lang_hooks.name[4] != 'O'.
4620 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4622         * config/frv/frv.c (frv_option_optimization,
4623         TARGET_OPTION_OPTIMIZATION): Remove.
4624         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
4626 2010-10-15  Michael Matz  <matz@suse.de>
4628         * cgraphunit.c (clone_of_p): Define unconditionally.
4630 2010-10-15  Richard Guenther  <rguenther@suse.de>
4632         PR lto/45957
4633         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
4635 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
4637         * ifcvt.c (find_active_insn_before): New function.
4638         (find_active_insn_after): New function.
4639         (cond_exec_process_if_block): Use new functions to replace
4640         prev_active_insn() and next_active_insn().
4642 2010-10-14  Yao Qi  <yao@codesourcery.com>
4644         PR target/45447
4645         * config/arm/arm.c (arm_build_builtin_va_list): Assign
4646         va_list_name to TYPE_STUB_DECL (va_list_type).
4648 2010-10-14  Jan Hubicka  <jh@suse.cz>
4650         PR middle-end/45621
4651         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
4652         redirected to clone, be happy.
4653         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
4654         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
4655         former_clone_of unconditionally.
4657 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4659         Merge from FSF apple 'trunk' branch.
4660         2006 Fariborz Jahanian  <fjahanian@apple.com>
4662         Radars 4436866, 4505126, 4506903, 4517826
4663         * c-parser.c (c_parser, objc_property_attr_context) New flag.
4664         (c_lex_one_token): Handle property attributes.
4665         (c_parser_external_declaration): Handle @property.
4666         (c_parser_declaration_or_fndef): Warn on invalid attributes before
4667         @alias, @class, @end and @property objc keywords.
4668         (c_parser_objc_methodprotolist): Handle @property.
4669         (c_parser_objc_property_attrlist): New.
4670         (c_parser_objc_at_property): New.
4671         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
4672         (build_modify_expr): Likewise.
4674 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
4676         PR tree-optimization/46008
4677         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
4679 2010-10-14  Richard Guenther  <rguenther@suse.de>
4681         PR tree-optimization/44913
4682         * tree-data-ref.c (disjoint_objects_p): Remove.
4683         (dr_may_alias_p): Simplify.  Only hand the base object to
4684         the alias-oracle.
4685         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4686         some more trees, bail out instead of asserting.
4687         (ptr_derefs_may_alias_p): Likewise.  Export.
4688         (refs_may_alias_p_1): Handle STRING_CSTs.
4689         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
4691 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
4693         PR c/45969
4694         * c-typeck.c (build_binary_op): Don't try to compute a semantic
4695         type with excess precision for boolean operations.
4697 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
4698             Basile Starynkevitch  <basile@starynkevitch.net>
4700         * gengtype.c:  Include getopt.h and version.h.
4702         (lang_bitmap, struct outf, outf_p)
4703         (get_output_file_with_visibility, oprintf): Definitions moved to
4704         gengtype.h
4705         (output_files, header_file, srcdir, srcdir_len, this_file)
4706         (do_dump): No more static variables.
4707         (do_debug): New.
4708         (dbgprint_count_type_at): Added new function.
4709         (gengtype_long_options): New.
4710         (print_usage, print_version, parse_program_options): New.
4711         (main): Call parse_program_options, and removed old option
4712         handling code.  Added some debug output.
4714         * gengtype.h:  Updated copyright year.
4715         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
4716         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
4717         Moved from gengtype.c to here.
4718         (do_debug, read_state_filename, write_state_filename): New variables.
4719         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
4721         * Makefile.in:
4722         (REVISION): Always defined.
4723         (version.o): Removed ifdef REVISION_c.
4724         (s-gtype): Pass arguments to build/gengtype program.
4725         (build/version.o): Added building rule.
4726         (build/gengtype$(build_exeext)): Added build/version.o.
4728 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4730         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
4731         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
4732         __strong macros.
4734 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
4736         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
4737         may_trap_or_fault_p instead of may_trap_p predicate.
4738         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
4739         (substitute_placeholder_in_expr): Likewise.
4740         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
4741         flag on MEM_REF nodes.
4742         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
4743         flags on INDIRECT_REF nodes.
4745 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
4747         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
4748         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
4749         (arm*-*-eabi*) <tm_file>: Likewise.
4750         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
4751         (frv-*-*linux*) <tm_file>: Likewise.
4752         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
4753         and associated helper macros.
4754         * config/frv/frv-abi.h: Delete.
4756 2010-10-14  Richard Guenther  <rguenther@suse.de>
4758         PR lto/44561
4759         * tree.def (NULLPTR_TYPE): New tree code.
4760         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
4761         * dwarf2out.c (is_base_type): Likewise.
4762         (gen_type_die_with_usage): Likewise.
4763         * sdbout.c (plain_type_1): Likewise.
4764         * tree.c (build_int_cst_wide): Likewise.
4765         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
4767 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
4769         * params.c (params_finished): New.
4770         (add_params): Assert !params_finished.
4771         (finish_params): New.
4772         (set_param_value_internal): Take params and params_set
4773         parameters.  Assert params_finished.
4774         (set_param_value, maybe_set_param_value): Take params and
4775         params_set parameters.  Update calls to set_param_value_internal.
4776         (set_default_param_value): Assert !params_finished.  Don't use
4777         set_param_value_internal.
4778         (default_param_value, init_param_values): New.
4779         * params.h (struct param_info): Change value to default_value.
4780         Remove set.
4781         (set_param_value, maybe_set_param_value): Add params and
4782         params_set parameters.
4783         (PARAM_VALUE): Get parameters from global_options.
4784         (PARAM_SET_P): Remove.
4785         (finish_params, default_param_value, init_param_values): New.
4786         * common.opt (param_values): New Variable.
4787         * config/arm/arm.c (arm_option_override): Pass extra arguments to
4788         maybe_set_param_value.
4789         * config/i386/i386.c (ix86_option_override_internal): Pass extra
4790         arguments to maybe_set_param_value.
4791         * config/picochip/picochip.c (picochip_option_override): Pass
4792         extra arguments to maybe_set_param_value.
4793         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
4794         extra arguments to maybe_set_param_value.
4795         * config/s390/s390.c (s390_option_override): Use
4796         maybe_set_param_value instead of set_param_value.  Pass extra
4797         arguments to maybe_set_param_value.
4798         * config/sparc/sparc.c (sparc_option_override): Pass extra
4799         arguments to maybe_set_param_value.
4800         * config/spu/spu.c (spu_option_override): Pass extra arguments to
4801         maybe_set_param_value.
4802         * opts.c (handle_param): Take opts and opts_set parameters.
4803         Update call to set_param_value.
4804         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
4805         initial_loop_invariant_max_bbs_in_loop): Remove.
4806         (init_options_once): Don't set them.
4807         (init_options_struct): Initialize parameters structures.
4808         (default_options_optimization): Use default_param_value when
4809         restoring defaults.  Update calls to maybe_set_param_value.
4810         (finish_options): Update calls to maybe_set_param_value.
4811         (common_handle_option): Update calls to handle_param and
4812         set_param_value.
4813         * toplev.c (DEFPARAM): Update definition for changes to param_info.
4814         (general_init): Call finish_params.
4816 2010-10-14  Nick Clifton  <nickc@redhat.com>
4818         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
4819         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
4820         (FIRST_PSEUDO_REGISTER): Increase by one.
4821         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
4822         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
4823         (MODES_TIEABLE): Call mn10300_modes_tieable.
4824         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
4825         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
4826         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
4827         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
4828         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
4829         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
4830         (mn10300_cc_status_mdep): Delete.
4831         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
4832         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
4833         the combine-stack-adjust pass.
4834         (print_operand): Use the mode of the comparison operation to
4835         select the comparison suffix.
4836         (notice_update_cc): Delete.
4837         (mn10300_secondary_reload_class): Remove test for stack pointer
4838         based arithmetic.
4839         (output_tst): Rename to mn10300_output_cmp.
4840         (impossible_plus_operand): Move into predicates.md.
4841         (mn10300_legitimize_address): Make static.
4842         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
4843         constant pic operands.
4844         (mn10300_legitimate_constant_p): New function.
4845         (mn10300_case_values_threshold): Make static.
4846         (mn10300_hard_regno_mode_ok): New function.
4847         (mn10300_modes_tieable): New function.
4848         (mn10300_select_cc_mode): New function.
4849         * config/mn10300/predicates.md (impossible_plus_operand): Define.
4850         * config/mn10300/mn10300-protos.h: Tidy.
4851         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
4852         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
4853         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
4854         with clobbers or sets of CC_REG.
4855         (CC_REG): Define.
4856         (mov*): Remove use of CLR instruction.
4857         (cbranch_si4_<code>): New pattern/split.
4858         (integer_conditional_branch): New pattern.
4859         (cbranch_sf4_<code>): New pattern/split.
4860         (float_conditional_branch): New pattern.
4861         (casesi): Use addsi3 pattern instead of movsi pattern to add and
4862         move a value at the same time.
4863         (cc0 peepholes): Remove.
4865 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
4867         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
4868         on RTX_FRAME_RELATED_P insns and the insn to which
4869         NOTE_INSN_EPILOGUE_BEG is attached.
4870         * sched-vis.c (print_value): Allow NULL value.
4872 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
4874         PR rtl-optimization/45570
4875         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
4876         assert that we are pipelining outer loops.  Allow returning
4877         zero predecessors.
4879 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
4881         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
4882         (tidy_control_flow): Tidy vertical space.
4883         (sel_remove_bb): New variable idx.  Use it to remember the basic
4884         block index before deleting the block.
4885         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
4886         (sel_merge_blocks): ... here.
4887         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
4889 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
4891         * cse.c (is_dead_reg): Change into inline function that is not
4892         called through for_each_rtx.
4893         (set_live_p): Adjust caller.
4894         (insn_live_p): Don't reset DEBUG_INSNs here.
4895         (struct dead_debug_insn_data): New data.
4896         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
4897         (delete_trivially_dead_insns): If there is just one setter for the
4898         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
4899         and add DEBUG_INSN for it right before the removed setter and
4900         use the DEBUG_EXPR instead of the dead pseudo.
4902 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
4904         * et-forest.c (et_nca): Return NULL immediately when
4905         the dominance forest has disjoint components.
4907 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
4909         * ira.c (setup_class_hard_regs): Fix typo in indexing
4910         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
4912 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
4914         * graph.c (inbb): New variable.
4915         (start_bb): Set inbb to 1 if output is inside of a building block.
4916         (end_bb): Check if output is inside of a building block.
4918 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
4920         PR rtl-optimization/45912
4921         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
4922         regno of registers instead of their index to compute the alignment.
4924 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
4926         * config/i386/i386.c (ix86_build_const_vector): Check vector
4927         mode instead of scalar mode.
4928         (ix86_build_signbit_mask): Likewise.
4929         (ix86_expand_fp_absneg_operator): Updated.
4930         (ix86_expand_copysign): Likewise.
4931         (ix86_expand_int_vcond): Likewise.
4932         (ix86_emit_swdivsf): Likewise.
4933         (ix86_sse_copysign_to_positive): Likewise.
4934         (ix86_expand_sse_fabs): Likewise.
4935         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
4936         * config/i386/sse.md (copysign<mode>3): Likewise.
4937         (sse2_cvtudq2ps): Likewise.
4938         (vec_unpacku_float_hi_v4si): Likewise.
4939         (vec_unpacku_float_lo_v4si): Likewise.
4941         * config/i386/i386.c (ix86_builtins): Add
4942         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
4943         (bdesc_args): Likewise.
4944         (ix86_builtin_vectorized_function): Support
4945         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
4946         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
4947         and IX86_BUILTIN_CVTPS2DQ256.
4948         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
4950         * config/i386/sse.md (STORENT_MODE): New.
4951         (VEC_FLOAT_MODE): Likewise.
4952         (VEC_EXTRACT_MODE): Likewise.
4953         (*avx_cvtdq2pd256_2): Likewise.
4954         (vec_pack_trunc_v4df): Likewise.
4955         (vec_interleave_highv8sf): Likewise.
4956         (vec_interleave_lowv8sf): Likewise.
4957         (storent<mode>): Macroized.
4958         (<code><mode>2: absneg): Likewise.
4959         (copysign<mode>3): Likewise.
4960         (vec_extract<mode>): Likewise.
4962         PR target/44180
4963         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
4964         for V8SFmode.
4966 2010-10-13  Richard Guenther  <rguenther@suse.de>
4967             H.J. Lu  <hongjiu.lu@intel.com>
4969         * config/i386/sse.md (reduc_splus_v8sf): Add.
4970         (reduc_splus_v4df): Likewise.
4971         (vec_unpacks_hi_v8sf): Likewise.
4972         (vec_unpacks_lo_v8sf): Likewise.
4973         (*avx_cvtps2pd256_2): Likewise.
4974         (vec_unpacks_float_hi_v8si): Likewise.
4975         (vec_unpacks_float_lo_v8si): Likewise.
4976         (vec_interleave_highv4df): Likewise.
4977         (vec_interleave_lowv4df): Likewise.
4979 2010-10-13  Richard Guenther  <rguenther@suse.de>
4981         PR objc/45878
4982         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
4983         alone if there are no virtual methods.
4985 2010-10-13  Richard Henderson  <rth@redhat.com>
4987         * expr.c (build_personality_function): Take parameter LANG instead
4988         of parameter NAME.  Build the name based on the lang prefix and the
4989         unwind method in use.
4990         * tree.c (lhd_gcc_personality): Update call to
4991         build_personality_function.
4993 2010-10-13  Richard Guenther  <rguenther@suse.de>
4995         PR objc/45878
4996         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
4998 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5000         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
5001         Canonicalize input operands of ASM_OPERANDS insns.
5003 2010-10-13  Richard Guenther  <rguenther@suse.de>
5005         PR tree-optimization/45788
5006         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
5007         EH update until fixup-cfg.
5009 2010-10-13  Julian Brown  <julian@codesourcery.com>
5011         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
5012         from CORE_REGS and GENERAL_REGS classes.
5013         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
5014         final constraint for register preferencing.
5016 2010-10-13  Richard Guenther  <rguenther@suse.de>
5018         PR tree-optimization/45970
5019         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
5020         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
5021         (stmt_kills_ref_p): Likewise.
5022         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
5024 2010-10-13  Richard Guenther  <rguenther@suse.de>
5026         PR tree-optimization/45982
5027         * tree-ssa-structalias.c (make_constraints_to): New function.
5028         (make_constraint_to): Implement in terms of make_constraints_to.
5029         (find_func_aliases): Properly make return values of pure/const
5030         functions escape if they assign to sth that is not a pointer.
5032 2010-10-13  Richard Guenther  <rguenther@suse.de>
5034         PR middle-end/45874
5035         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
5036         Fixup the CFG when EH was fixed up.
5038 2010-10-13  Ira Rosen  <irar@il.ibm.com>
5040         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
5041         Use operand's type for POINTER_PLUS_EXPR.
5043 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
5045         * c-parser.c (c_parser_for_statement): Initialize incr.
5047 2010-10-12  Xinliang David Li  <davidxl@google.com>
5049         PR tree-optimization/45972
5050         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
5051         with too many arguments.
5053 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
5055         PR fortran/45636
5056         * tree-ssa-forwprop.c: Include expr.h.
5057         (constant_pointer_difference, simplify_builtin_call): New functions.
5058         (tree_ssa_forward_propagate_single_use_vars): Call
5059         simplify_builtin_call on builtin calls.
5061 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
5063         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
5064         (*adddi3_extend_sp32): Likewise.
5065         (*subdi3_insn_sp32): Likewise.
5066         (*subdi3_extend_sp32): Likewise.
5067         (*negdi2_sp32): Use negative test for consistency.
5069 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
5071         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
5072         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5073         * config/fixed-bit.h: Likewise.
5074         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5075         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5076         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
5077         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
5078         (DF_SIZE): Likewise.
5079         * doc/tm.texi: Regenerate.
5081 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
5083         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
5084         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
5085         (*isel_reversed_unsigned_<mode>): New.
5086         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
5087         as valid comparisons and adjust operands and output appropriately.
5088         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
5090 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
5092         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
5093         DATA_ALIGNMENT and add COND parameter. Update comments above.
5094         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
5095         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
5097 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
5099         PR bootstrap/45958
5100         * exec-tool.in: Support '-plugin' as the second option to the linker.
5102 2010-10-12  Richard Henderson  <rth@redhat.com>
5104         PR middle-end/45962
5105         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
5106         (expand_stack_vars): Assert large base allocated when used.
5108 2010-10-12  Richard Guenther  <rguenther@suse.de>
5110         * tree-ssa-structalias.c (get_constraint_for_1): Constants
5111         only point to nonlocal, not anything.
5113 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
5115         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
5116         unwind info for exceptions.
5118 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5120         PR testsuite/45851
5121         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
5122         Document optional target selector.
5124 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
5126         * flag-types.h: New.
5127         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
5128         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
5129         options.h.
5130         (OPTIONS_H): Define.
5131         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
5132         of options.h.
5133         * configure.ac (tm_include_list): Include options.h not flags.h.
5134         * configure: Regenerate.
5135         * flags.h: Include flag-types.h.  Include options.h at top of file
5136         again.
5137         (enum debug_info_type, enum debug_info_level, enum
5138         debug_info_usage, enum symbol_visibility, struct visibility_flags,
5139         enum ira_algorithm, enum ira_region, enum excess_precision, enum
5140         graph_dump_types, enum stack_check_type,
5141         enum warn_strict_overflow_code): Move to flag-types.h
5142         * opth-gen.awk: Include flag-types.h in options.h.
5144 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
5146         * expr.c (store_expr): Share code for STRING_CST and
5147         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
5148         check if target is a MEM.
5150         * rtl.h: Include hashtab.h.
5151         (iterative_hash_rtx): New prototype.
5152         * rtl.c (iterative_hash_rtx): New function.
5153         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
5154         (output_loc_list): Return immediately if emitted is set, set it.
5155         (hash_loc_operands, hash_locs, hash_loc_list,
5156         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
5157         optimize_location_lists_1, optimize_location_lists): New function.
5158         (dwarf2out_finish): Call optimize_location_lists.
5159         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
5161 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5163         PR testsuite/45974
5164         Revert:
5165         * Makefile.in ($(lang_checks_parallel))
5166         ($(lang_checks_parallelized)): Use single quotes for
5167         $(RUNTESTFLAGS), to allow passing quoted content.
5169 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5171         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
5172         actual_oldval.  Use __builtin_expect.
5173         (SUBWORD_VAL_CAS): Likewise.
5175 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
5177         * recog.c (nonmemory_operand): Call immediate_operand for
5178         CONSTANT_P operands.
5180 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
5182         * config/i386/i386.md (movmem<mode>): Macroize expander from
5183         movmem{si,di} using SWI48 mode iterator.
5184         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
5185         *strmovsi_rex_1 using P mode iterator.
5186         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
5187         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
5188         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
5189         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
5190         (setmem<mode>): Macroize expander from setmem{si,di} using
5191         SWI48 mode iterator.
5192         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
5193         *strsetsi_rex_1 using P mode iterator.
5194         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
5195         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
5196         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
5197         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
5198         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
5199         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
5200         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
5201         mode iterator.
5202         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
5203         *strlenqi_rex_1 using P mode iterator.
5205 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
5207         PR bootstrap/45445
5208         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
5209         static functions.
5210         (mark_ref_live, mark_ref_dead): Use them.
5211         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
5212         Save the original reg, and use the new functions.
5213         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
5214         changed.
5215         (check_and_make_def_conflict): Save the original reg.
5217 2010-10-11  Martin Jambor  <mjambor@suse.cz>
5219         PR middle-end/45699
5220         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
5221         thunks.
5223 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5225         * Makefile.in ($(lang_checks_parallel))
5226         ($(lang_checks_parallelized)): Use single quotes for
5227         $(RUNTESTFLAGS), to allow passing quoted content.
5229         PR bootstrap/35855
5230         * opt-functions.awk (BEGIN): New section.
5231         (lower, upper, digit, alnum): New variables.
5232         (static_var, opt_sanitized_name): Use alnum instead of character
5233         classes, for non-C locale.
5234         * optc-gen.awk: Likewise.
5235         * opth-gen.awk: Likewise.
5237 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
5239         * target.def (preferred_reload_class): New hook.
5240         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
5241         * doc/tm.texi: Regenerate.
5242         * targhooks.c (default_preferred_reload_class): New function.
5243         * targhooks.h (default_preferred_reload_class): Declare.
5244         * reload.c (find_dummy_reload): Change preferred_class variable type
5245         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
5246         target hook.
5247         (find_reloads): Change goal_alternative array type from int to
5248         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
5249         (push_reload, find_reloads_address_part): Use
5250         TARGET_PREFERRED_RELOAD_CLASS target hook.
5251         * reload1.c (emit_input_reload_insns): Ditto.
5252         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
5253         hook. Change rclass argument and secondary_class variable types from
5254         'enum reg_class' to reg_class_t.
5256         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
5257         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
5258         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
5259         Change regclass argument and result types from enum reg_class to
5260         reg_class_t.
5261         (TARGET_PREFERRED_RELOAD_CLASS): Define.
5263 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
5265         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
5266         in masking operations.
5267         (simplify_const_unary_operation): Likewise.
5268         (simplify_binary_operation_1): Likewise.
5269         (simplify_const_binary_operation): Likewise.
5270         (simplify_const_relational_operation): Likewise.
5271         (simplify_ternary_operation): Likewise.
5272         (simplify_immed_subreg): Likewise.
5274 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5276         PR middle-end/45862
5277         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
5278         (TARGET_SUPPORTS_WEAK): New.
5279         * doc/tm.texi: Regenerate.
5280         * defaults.h (SUPPORTS_WEAK): Update comment.
5281         (TARGET_SUPPORTS_WEAK): New.
5282         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
5283         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
5284         SUPPORTS_WEAK.
5285         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
5286         make_decl_one_only): Likewise.
5287         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
5288         TARGET_SUPPORTS_WEAK.
5289         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
5290         instead of SUPPORTS_WEAK.
5292 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5294         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
5296 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
5298         * vec.h (VEC_qsort): Define.
5299         * dbxout.c (output_used_types): Use it.
5300         * df-scan.c (df_sort_and_compress_refs): Likewise.
5301         (df_sort_and_compress_mws): Likewise.
5302         * genautomata.c (uniq_sort_alt_states): Likewise.
5303         (evaluate_equiv_classes): Likewise.
5304         (output_trans_table): Likewise.
5305         (output_state): Likewise.
5306         * gimplify.c (compare_case_labels): Likewise.
5307         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
5308         * ipa.c (build_cdtor_fns): Likewise.
5309         * lto.c (lto_wpa_write_files): Likewise.
5310         * sel-sched.c (fill_vec_av_set): Likewise.
5311         * tree-predcom.c (determine_roots_comp): Likewise.
5312         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
5313         (splice_param_accesses): Likewise.
5314         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
5315         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
5316         (reassociate_bb): Likewise.
5317         * tree-ssa-sccvn.c (sort_scc): Likewise.
5318         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
5320 2010-10-11  Ian Lance Taylor  <iant@google.com>
5322         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
5323         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
5324         TREE_THIS_NOTRAP when appropriate.
5325         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
5326         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
5327         newly created MEM_REF.
5329 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
5331         Nathan Froyds patch to hooks FUNCTION_ARG etc.
5332         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
5333         (picochip_incoming_function_arg): Delete.
5334         (picochip_arg_advance): Delete.
5335         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
5336         (FUNCTION_INCOMING_ARG): Delete.
5337         (FUNCTION_ARG_ADVANCE): Delete.
5338         * config/picochip/picochip.c (picochip_function_arg): Take a
5339         const_tree and a bool.
5340         (picochip_incoming_function_arg): Likewise.
5341         (picochip_arg_advance): Likewise.
5342         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5343         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5345 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5347         PR middle-end/45955
5348         * ipa.c (build_cdtor): Delete endless loop.
5350 2010-10-07  Andi Kleen  <ak@linux.intel.com>
5352         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
5353         checksum-options.
5354         (checksum-options): Add.
5355         (cc1-dummy): Remove.
5356         (cc1-checksum): Change to run checksum over object files
5357         and options only.
5358         * dummy-checksum.c: Remove.
5359         * genchecksum.c: Update copyright.
5360         (usage): Allow multiple arguments.
5361         (BLOCKSIZE): Add.
5362         (dosum): Change for incremental checksum. Remove C output.
5363         (main): Iterate over all argument files. Add C output.
5365 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
5367         * params.c (set_param_value_internal): New.
5368         (set_param_value): Use set_param_value_internal.
5369         (maybe_set_param_value, set_default_param_value): New.
5370         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
5371         (maybe_set_param_value, set_default_param_value): Declare.
5372         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
5373         * config/i386/i386.c (ix86_option_override_internal): Use
5374         maybe_set_param_value.
5375         * config/ia64/ia64.c (ia64_option_default_params,
5376         TARGET_OPTION_DEFAULT_PARAMS): New.
5377         (ia64_option_optimization): Move some code to
5378         ia64_option_default_params.
5379         * config/picochip/picochip.c (picochip_option_override): Use
5380         maybe_set_param_value.
5381         * config/rs6000/rs6000.c (rs6000_option_default_params,
5382         TARGET_OPTION_DEFAULT_PARAMS): New.
5383         (rs6000_option_override_internal): Use maybe_set_param_value.
5384         (rs6000_option_optimization): Move some code to
5385         rs6000_option_default_params.
5386         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
5387         * config/sh/sh.c (sh_option_default_params,
5388         TARGET_OPTION_DEFAULT_PARAMS): New.
5389         (sh_option_optimization): Move some code to sh_option_default_params.
5390         * config/sparc/sparc.c (sparc_option_override): Use
5391         maybe_set_param_value.
5392         * config/spu/spu.c (spu_option_default_params,
5393         TARGET_OPTION_DEFAULT_PARAMS): New.
5394         (spu_option_optimization): Move some code to spu_option_default_params.
5395         (spu_option_override): Use maybe_set_param_value.
5396         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
5397         * doc/tm.texi: Regenerate.
5398         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
5399         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
5400         compiler_params.
5401         (default_options_optimization): Use maybe_set_param_value.
5402         (finish_options): Use maybe_set_param_value.
5403         * target.def (target_option.default_params): New hook.
5404         * toplev.c (general_init): Call targetm.target_option.default_params.
5406 2010-10-11  Ira Rosen  <irar@il.ibm.com>
5408         PR tree-optimization/45902
5409         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
5410         vector type for constants, unless it's a pointer.
5412 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5414         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
5416 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
5418         PR target/45870
5419         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
5420         (ix86_delegitimize_address): Use it.
5422 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
5424         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
5426 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
5428         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
5429         to cum struct in the call to function_arg_advance.
5430         (alpha_function_arg_advance): Mark named as unused.
5432 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
5434         * config/mips/mips.c (mips_handle_option): Make "value" with
5435         ATTRIBUTE_UNUSED.
5437 2010-10-09  Richard Henderson  <rth@redhat.com>
5439         PR rtl-opt/33721
5440         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
5441         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
5442         required_align, tidy the code a bit.  Emit split_stack code in the
5443         right place.  Mark the return value with the alignment properly.
5444         * expr.h (allocate_dynamic_stack_space): Update decl.
5445         * builtins.c (expand_builtin_apply): Update call to
5446         allocate_dynamic_stack_space.
5447         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
5448         * calls.c (initialize_argument_information): Update call to
5449         allocate_dynamic_stack_space.
5450         (expand_call): Likewise.
5452         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
5453         Don't update_stack_alignment here.
5454         (alloc_stack_frame_space): Make ALIGN unsigned.
5455         (stack_var_cmp): Sort by alignment too.
5456         (partition_stack_vars): Don't merge large and small alignment vars.
5457         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
5458         Take care when BASE is not virtual_stack_vars_rtx.
5459         (expand_stack_vars): Allocate dynamic stack space for large
5460         alignment variables.
5461         (expand_one_stack_var): Update all to expand_one_stack_var_at.
5462         (defer_stack_allocation): True for large alignment vars.
5463         (update_stack_alignment): Merge into ...
5464         (expand_one_var): ... here.
5465         (gimple_expand_cfg): Place code from expand_stack_vars.
5467 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5469         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5470         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
5471         (pdp11_function_arg_advance): New function.
5472         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5474 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5476         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
5477         * libgcc2.c: Likewise.
5479 2010-10-09  Richard Guenther  <rguenther@suse.de>
5481         PR lto/45956
5482         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
5483         Properly check if a decl is an automatic var.
5485 2010-10-09  Richard Guenther  <rguenther@suse.de>
5487         PR lto/45947
5488         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
5490 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5492         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
5493         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5494         * config/mmix/mmix.c (mmix_function_arg): Rename to...
5495         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
5496         bool arguments.
5497         (mmix_function_arg): New function.
5498         (mmix_function_incoming_arg): New function.
5499         (mmix_function_arg_advance): New function.
5500         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5501         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5503 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5505         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5506         * config/vax/vax.c (vax_function_arg): New function.
5507         (vax_function_arg_advance): New function.
5508         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5510 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5512         * config/pa/pa-protos.h (function_arg): Delete.
5513         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5514         * config/pa/pa.c (function_arg): Rename to...
5515         (pa_function_arg): ...this.  Make static.  Take a const_tree and
5516         a bool.
5517         (pa_function_arg_advance): New function.
5518         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5520 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5522         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5523         * config/m68k/m68k.c (m68k_function_arg): New function.
5524         (m68k_function_arg_advance): New function.
5525         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5527 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5529         * config/avr/avr-protos.h (function_arg): Delete.
5530         (function_arg_advance): Delete.
5531         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5532         * config/avr/avr.c (function_arg): Rename to...
5533         (avr_function_arg): ...this.  Make static.  Take a const_tree and
5534         a bool.
5535         (function_arg_advance): Rename to...
5536         (avr_function_arg_advance): ...this.  Make static.  Take a
5537         const_tree and a bool.
5538         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5540 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5542         * config/alpha/alpha-protos.h (function_arg): Delete.
5543         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5544         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
5545         * config/alpha/alpha.c (function_arg): Rename to...
5546         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
5547         a bool.  Delete TARGET_ABI_UNICOSMK code.
5548         (alpha_function_arg_advance): New function.
5549         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5551 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5553         * config/mep/mep-protos.h (mep_function_arg): Delete.
5554         (mep_function_arg_advance): Delete.
5555         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5556         * config/mep/mep.c (mep_function_arg): Make static.  Take a
5557         const_tree and a bool.
5558         (mep_function_arg_advance): Likewise.
5559         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5561 2010-10-09  Richard Guenther  <rguenther@suse.de>
5563         PR tree-optimization/45945
5564         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
5566 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
5568         PR tree-optimization/45612
5569         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
5570         Test LABEL_DECLs as well.  Fix formatting issues.
5571         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
5572         whose label is present in NON_SSA_VARS.
5573         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
5574         as well.  Fix formatting issues.
5575         (visit_bb): Fix typos and formatting issue.
5577 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5579         PR tree-optimization/45950
5580         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
5581         before initializing vno->op.
5583 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
5585         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
5586         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
5588 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
5590         PR target/45913
5591         * config/i386/i386.c (ix86_binary_operator_ok): Support
5592         "andhi/andsi/anddi" as a zero-extending move.
5594 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5596         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
5597         into a temporary array.
5599 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
5601         PR tree-optimization/45903
5602         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
5603         of {A,L}SHIFTRT of MEM.
5605 2010-10-08  Richard Guenther  <rguenther@suse.de>
5607         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
5608         Re-construct BLOCK_VARS.
5609         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
5610         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
5611         * tree.c (free_lang_data_in_block): Remove.
5612         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
5613         Do not touch the BLOCK tree.
5614         * expr.c (expand_expr_real_1): Allow externals.
5616 2010-10-08  Richard Guenther  <rguenther@suse.de>
5618         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
5619         Do not output BLOCK_SUBBLOCKS.
5620         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
5621         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
5622         Re-construct BLOCK_SUBBLOCKS of parent block.
5623         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
5624         for BINFO_BASE_ACCESSES.
5626 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
5628         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
5629         (TREE_H): Include $(FLAGS_H) instead of options.h.
5630         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
5631         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
5632         * common.opt (flag_complex_method, flag_evaluation_order,
5633         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
5634         Variable declarations.
5635         * configure.ac (tm_include_list): Include flags.h instead of options.h.
5636         * configure: Regenerate.
5637         * flags.h: Condition out contents for target libraries.  Include
5638         options.h at end of file.
5639         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
5640         flag_evaluation_order, flag_warn_unused_result): Remove.
5641         * gcc.c (main): Intialize global_options with global_options_init.
5642         * langhooks-def.h (lhd_init_options_struct): Declare.
5643         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
5644         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
5645         * langhooks.c (lhd_init_options_struct): New.
5646         * langhooks.h (struct lang_hooks): Add init_options_struct.
5647         Update comment on init_options.
5648         * optc-gen.awk: Generate initializer for global_options_init, not
5649         global_options.
5650         * opth-gen.awk: Condition out structure declarations for target
5651         libraries.  Declare global_options_init.
5652         * opts-common.c: Include flags.h instead of options.h.
5653         * opts.c (flag_warn_unused_result): Remove.
5654         (read_cmdline_options): Take gcc_options parameters.  Pass them to
5655         read_cmdline_option.
5656         (initial_lang_mask, initial_min_crossjump_insns,
5657         initial_max_fields_for_field_sensitive,
5658         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
5659         (init_options_once): New.  Split out of decode_options.
5660         (init_options_struct): New.  Split out of decode_options.
5661         (decode_cmdline_options_to_array_default_mask): New.
5662         (default_options_optimization): New.  Split out of decode_options.
5663         (decode_options): Move most code to other functions.  Update call
5664         to read_cmdline_options.
5665         (finish_options): New.  Split out of decode_options.
5666         * opts.h (decode_options): Add gcc_options parameters.
5667         (init_options_once, init_options_struct,
5668         decode_cmdline_options_to_array_default_mask): New.
5669         * toplev.c (flag_complex_method, flag_ira_algorithm,
5670         flag_ira_region, flag_evaluation_order): Remove.
5671         (general_init): Use global_options_init for initial flag values
5672         for global_dc.
5673         (toplev_main): Call init_options_once, init_options_struct,
5674         lang_hooks.init_options_struct,
5675         decode_cmdline_options_to_array_default_mask and
5676         lang_hooks.init_option before decode_options.  Update arguments to
5677         decode_options.
5678         * tree.h: Include flags.h instead of options.h.
5680 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5682         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5684 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5686         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
5687         Delete.
5688         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
5689         (FUNCTION_INCOMING_ARG): Delete.
5690         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
5691         (function_arg_slotno): Likewise.  Take bool arguments.
5692         (sparc_arg_partial_bytes): Update call to it.
5693         (function_arg): Rename to...
5694         (sparc_function_arg_1): ...this.  Take bool arguments.
5695         (sparc_function_arg, sparc_function_incoming_arg): New functions.
5696         (function_arg_advance): Rename to...
5697         (sparc_function_arg_advance): ...this.  Take bool argument.
5698         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
5699         (TARGET_FUNCTION_INCOMING_ARG): Define.
5701 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5703         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
5704         Delete.
5705         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5706         * config/bfin/bfin.c (function_arg_advance): Rename to...
5707         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
5708         and bool arguments.
5709         (function_arg): Rename to...
5710         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
5711         arguments.
5712         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5714 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5716         * config/score/score-protos.h (score_function_arg): Delete.
5717         (score_function_arg_advance): Delete.
5718         * config/score/score3.h (score3_function_arg_advance): Take a
5719         const_tree and a bool.
5720         (score3_function_arg): Likewise.
5721         * config/score/score7.h (score7_function_arg_advance): Likewise.
5722         (score7_function_arg): Likewise.
5723         * config/score/score3.c (score3_classify_arg): Likewise.
5724         (score3_function_arg_advance, score3_function_arg): Likewise.
5725         * config/score/score7.c (score7_classify_arg): Likewise.
5726         (score7_function_arg_advance, score7_function_arg): Likewise.
5727         * config/score/score.c (score_function_arg_advance): Likewise.
5728         (score_function_arg): Likewise.  De-const-ify `cum' argument.
5729         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5731 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5733         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
5734         (s390_function_arg): Delete.
5735         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5736         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
5737         (s390_function_arg_integer): Likewise.
5738         (s390_function_arg_advance): Make static.  Take a const_tree and
5739         a bool.
5740         (s390_function_arg): Likewise.
5741         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5743 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5745         * config/spu/spu-protos.h (spu_function_arg): Delete.
5746         * config/spu/spu.h (FUNCTION_ARG): Delete.
5747         (FUNCTION_ARG_ADVANCE): Move code to ...
5748         * config/spu/spu.c (spu_function_arg_advance): New function.
5749         (spu_function_arg): Make static.  Take a const_tree and a bool.
5750         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
5751         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5753 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5755         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5757 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5759         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
5760         (init_vn_nary_op_from_op): New function.
5761         (init_vn_nary_op_from_stmt): New function.
5762         (vn_nary_op_lookup_1): New function.
5763         (sizeof_vn_nary_op): New function.
5764         (alloc_vn_nary_op_noinit): New function.
5765         (alloc_vn_nary_op): New function.
5766         (vn_nary_op_insert_into): New function.
5767         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
5768         (vn_nary_op_lookup): Likewise.
5769         (vn_nary_op_lookup_stmt): Likewise.
5770         (vn_nary_op_insert_pieces): Likewise.
5771         (vn_nary_op_insert): Likewise.
5772         (vn_nary_op_insert_stmt): Likewise.
5773         (copy_nary): Likewise.
5774         (set_value_id_for_result): New function.
5775         (set_hashtable_value_ids): Call it.
5777 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5779         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5780         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
5782 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5784         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
5785         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5787 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
5789         PR debug/45656
5790         * cse.c (cse_extended_basic_block): Preserve cc0 info across
5791         debug isnsn.  Skip them when searching for cc0 setter.
5792         (set_live_p): Skip debug insns when searching for cc0 user.
5794 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
5796         PR debug/45673
5797         PR debug/45604
5798         PR debug/45419
5799         PR debug/45408
5800         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
5801         type of MEM_REFs to INTEGER_CSTs.
5803 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
5805         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
5806         m68hc11_print_operand_address.
5808 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
5810         * builtins.c (rewrite_call_expr): Move code to...
5811         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
5812         (rewrite_call_expr_array): New function.
5813         (fold_builtin_sprintf_chk_1): New function.
5814         (fold_builtin_sprintf_chk): Call it.
5815         (gimple_fold_builtin_sprintf_chk): Likewise.
5816         (fold_builtin_snprintf_chk_1): New function.
5817         (fold_builtin_snprintf_chk): Call it.
5818         (gimple_fold_builtin_snprintf_chk): Likewise.
5819         (gimple_rewrite_call_expr): Delete.
5821 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
5823         * config.host: Update copyright year.
5825 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
5827         * config.host (host_lto_plugin_soname): New shell variable.
5828         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
5829         * config.in: Regenerate.
5830         * configure: Regenerate.
5831         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
5832         LTO plugin shared library.
5834 2010-10-07  Richard Henderson  <rth@redhat.com>
5836         * target.h (enum unwind_info_type): Move ...
5837         * coretypes.h: ... here.
5839 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
5841         * doc/objc.texi (Fast enumeration protocol): Mention that
5842         'unsigned int' can also be used instead of 'unsigned long' in
5843         countByEnumeratingWithState:objects:count:.
5845 2010-10-07  Martin Jambor  <mjambor@suse.cz>
5847         * tree-sra.c (struct access): New field grp_assignment_write.
5848         (dump_access): Dump grp_assignment_write.
5849         (build_accesses_from_assign): Set grp_assignment_write.
5850         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
5851         (mark_read_status): Renamed to mark_rw_status, individual values
5852         renamed too.
5853         (analyze_access_subtree): Changed type of mark_write to
5854         mark_read_status.  Fixed propagating of mark_read and
5855         mark_write.  Changed benefit estimate.  Updated comment.
5857 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
5859         PR Tree-Vect/45847
5860         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
5861         check for vectype_out returned by get_vectype_for_scalar_type().
5863 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
5865         PR target/45805
5866         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
5867         constraint, add register specifier in instruction template.
5868         (neon_vec_pack_trunc_<mode>): Likewise.
5869         (neon_vec_<US>mult_<mode>): Add register specifier to
5870         instruction template.
5872 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
5874         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
5875         cygwin2.o.
5876         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
5877         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
5878         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
5879         (cygwin2.o): Likewise.
5880         * config/i386/cygwin1.c: Delete file.
5881         * config/i386/cygwin2.c: Likewise.
5882         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
5883         make all {%!mno-cygwin} ones unconditional.
5884         (STARTFILE_SPEC): Likewise.
5885         (REAL_LIBGCC_SPEC): Likewise.
5886         (LIB_SPEC): Likewise.
5887         (CXX_WRAP_SPEC): Likewise.
5888         (LINK_SPEC): Likewise.
5889         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
5890         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
5891         (cygwin_gplusplus_include_dir): Delete now-unused array.
5892         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
5893         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
5894         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
5895         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
5896         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
5897         (cygwin_local_include_dir): Delete now-unused array.
5898         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
5899         (cygwin_cross_include_dir): Delete now-unused array.
5900         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
5901         (cygwin_tool_include_dir): Delete now-unused array.
5902         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
5903         (cygwin_standard_include_dir): Delete now-unused array.
5904         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
5905         (GEN_CVT_ARRAY): Delete now-unused macro definition.
5906         (cvt_to_mingw): Delete now-unused array.
5907         (mingw_scan): Remove prototype of deleted function.
5908         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
5909         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
5910         * doc/invoke.texi (-mcygwin): Don't document removed option.
5911         (-mno-cygwin): Likewise.
5913 2010-10-07  Richard Guenther  <rguenther@suse.de>
5915         * machmode.h (mode_for_vector): Declare.
5916         * stor-layout.c (mode_for_vector): New function, split out from ...
5917         (layout_type): ... here.
5918         * tree-vectorizer.h (current_vector_size): Declare.
5919         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
5920         mask vector type is available.
5921         (get_vectype_for_scalar_type): Rename to ...
5922         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
5923         size argument.
5924         (get_vectype_for_scalar_type): New wrapper around
5925         get_vectype_for_scalar_type_and_size using current_vector_size.
5926         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
5927         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
5928         of vect_analyze_loop here.
5929         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
5930         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
5931         to autodetect.
5932         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
5933         V8SF to V8SI conversion builtin.
5935 2010-10-07  Richard Guenther  <rguenther@suse.de>
5937         * target.def (autovectorize_vector_sizes): New target hook.
5938         * targhooks.c (default_autovectorize_vector_sizes): New function.
5939         * targhooks.h (default_autovectorize_vector_sizes): Declare.
5940         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
5941         Document.
5942         * doc/tm.texi: Update.
5943         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
5944         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5946 2010-10-07  Richard Guenther  <rguenther@suse.de>
5948         * target.def (units_per_simd_word): Rename to ...
5949         (preferred_simd_mode): ... this.  Return mode instead of size.
5950         * targhooks.c (default_units_per_simd_word): Rename to ...
5951         (default_preferred_simd_mode): ... this.  Return word_mode.
5952         * targhooks.h (default_preferred_simd_mode): Declare.
5953         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
5954         (arm_preferred_simd_mode): ... this.  Re-implement.
5955         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
5956         (ix86_preferred_simd_mode): ... this.  Re-implement.
5957         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
5958         (sparc_preferred_simd_mode): ... this.  Re-implement.
5959         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
5960         (mips_preferred_simd_mode): ... this.  Re-implement.
5961         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
5962         (rs6000_preferred_simd_mode): ... this.  Re-implement.
5963         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
5964         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
5965         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
5966         * doc/tm.texi: Update.
5968 2010-10-07  Richard Guenther  <rguenther@suse.de>
5970         PR middle-end/45869
5971         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
5972         of pointers.
5974 2010-10-07  Alan Modra  <amodra@gmail.com>
5976         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
5977         rather than sign extension by hand.
5979 2010-10-07  Jan Hubicka  <jh@suse.cz>
5981         PR middle-end/45926
5982         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
5984 2010-10-07  Richard Guenther  <rguenther@suse.de>
5986         PR bootstrap/45914
5987         * configure.ac: Fix typo.
5988         * configure: Regenerated.
5990 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5992         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
5993         define_builtin_std where it's unnecessary.
5994         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
5996 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
5998         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
5999         * doc/tm.texi.in: Regenerate.
6000         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
6001         * targhooks.c (default_class_likely_spilled_p): Don't use the
6002         CLASS_LIKELY_SPILLED_P macro.
6004         * config/arm/arm.md: Update comment.
6006 2010-10-06  Jan Hubicka  <jh@suse.cz>
6008         * ipa.c (cgraph_remove_unreachable_nodes): External references can
6009         always be removed.
6010         (cgraph_externally_visible_p): We can not bring local comdats that
6011         are known to linker; fix handling of internal visibility.
6012         (function_and_variable_visibility): Likewise.
6014 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
6016         PR rtl-optimization/45394
6017         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
6018         (struct rtx_subst_pair): Remove AFTER field.
6019         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
6020         (propagate_for_debug): Remove MOVE parameter and adjust.
6021         (try_combine): In the special case where I2 is a PARALLEL, combine only
6022         destinations of SETs and set I2SRC to the I2 source.
6023         Adjust calls to propagate_for_debug throughout.
6024         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
6025         insns.
6027 2010-10-06  Olivier Hainque  <hainque@adacore.com>
6029         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
6030         switch on insn codes as sequence of ifs.
6032 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
6034         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
6035         be UI_NONE for picochip.
6036         (picochip_option_override): Do not disable exception flags.
6037         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
6038         Declare.
6040 2010-10-06  Richard Guenther  <rguenther@suse.de>
6042         * Makefile.in (regmove.o): Depend on $(TARGET_H).
6044 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
6046         Implemented fast enumeration for Objective-C.
6047         * c-parser.c (objc_could_be_foreach_context): New.
6048         (c_lex_one_token): Recognize RID_IN keyword in a potential
6049         Objective-C foreach context.
6050         (c_parser_declaration_or_fndef): Added parameter.  Accept
6051         Objective-C RID_IN keyword as terminating a declaration; in that
6052         case, return the declaration in the new parameter.
6053         (c_parser_extenral_declaration): Updated calls to
6054         c_parser_declaration_or_fndef.
6055         (c_parser_declaration_or_fndef): Same change.
6056         (c_parser_compound_statement_nostart): Same change.
6057         (c_parser_label): Same change.
6058         (c_parser_objc_methodprotolist): Same change.
6059         (c_parser_omp_for_loop): Same change.
6060         (c_parser_for_statement): Detect and parse Objective-C foreach
6061         statements.
6062         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
6063         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
6064         fast enumeration parsing code to turn off the c99 error but still
6065         perform checks on the loop declarations.
6066         * c-tree.h (check_for_loop_decls): Updated declaration.
6067         * doc/objc.texi: Document fast enumeration.
6069 2010-10-06  Nick Clifton  <nickc@redhat.com>
6071         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
6072         (MDR_REGNUM): Define.
6073         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
6074         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
6075         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
6076         (REGISTER_NAMES): Add MDR.
6077         (DWARF2_DEBUGGING_INFO): Define to 1.
6078         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6079         (F): New function.  Sets RTX_FRAME_RELATED_P.
6080         (mn10300_gen_multiple_store): Use F.
6081         (expand_prologue): Use F.  Use gen_movsf() to push floating
6082         point registers.
6083         (expand_epilogue): Use gen_movsf() to pop floating point registers.
6084         (mn10300_option_override): Disable combine stack adjust pass.
6086 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
6088         PR target/45901
6089         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
6090         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
6092 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
6094         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
6095         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
6096         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
6097         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
6098         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
6099         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
6100         BUILT_IN_TOUPPER): Mark as leaf.
6102         PR middle-end/45838
6103         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
6104         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
6105         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
6106         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
6107         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
6108         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
6109         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
6111 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
6113         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
6114         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6115         (m68hc11_class_likely_spilled_p): New function.
6117 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
6119         * c-parser.c (c_parser_objc_method_definition): Updated comment.
6121 2010-10-05  Jan Hubicka  <jh@suse.cz>
6123         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
6124         Document.
6125         * opts.c (decode_options): Handle lto partitions.
6126         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
6127         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
6129 2010-10-05  Jan Hubicka  <jh@suse.cz>
6131         * cgraphunit.c (assemble_function): Output thunks and aliases before
6132         the function itself.
6134 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
6136         * config/picochip/picochip.c (picochip_option_override): Disable
6137         exception flags for picochip.
6139 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
6141         * opts-common.c (handle_option, handle_generated_option,
6142         read_cmdline_option, set_option): Add diagnostic_context
6143         parameter.  Update calls among these functions.
6144         (set_option): Don't use global_dc.
6145         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
6146         (decode_options): Pass global_dc to enable_warning_as_error.
6147         (common_handle_option): Pass global_dc to enable_warning_as_error.
6148         (enable_warning_as_error): Add diagnostic_context parameter.
6149         Document parameters.  Don't use global_dc.  Pass
6150         diagnostic_context parameter to handle_generated_option.
6151         * opts.h (set_option, handle_option, handle_generated_option,
6152         read_cmdline_option, enable_warning_as_error): Add
6153         diagnostic_context parameter.
6154         * Makefile.in (lto-opts.o): Update dependencies.
6155         * coretypes.h (struct diagnostic_context, diagnostic_context):
6156         Declare here.
6157         * diagnostic.h (diagnostic_context): Don't declare typedef here.
6158         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
6159         * langhooks-def.h (struct diagnostic_context): Don't declare here.
6160         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
6161         using diagnostic_context typedef.
6162         * langhooks.c (lhd_initialize_diagnostics): Declare using
6163         diagnostic_context typedef.
6164         * langhooks.h (struct diagnostic_context): Don't declare here.
6165         (initialize_diagnostics, print_error_function): Declare using
6166         diagnostic_context typedef.
6167         * lto-opts.c: Include diagnostic.h.
6168         (lto_reissue_options): Pass global_dc to set_option.  Pass
6169         DK_UNSPECIFIED not 0.
6170         * plugin.c (plugins_internal_error_function): Declare using
6171         diagnostic_context typedef.
6172         * plugin.h (struct diagnostic_context): Don't declare here.
6173         (plugins_internal_error_function): Declare using
6174         diagnostic_context typedef.
6176 2010-10-05  Olivier Hainque  <hainque@adacore.com>
6177             Nicolas Roche  <roche@adacore.com>
6179         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
6180         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
6182 2010-10-05  Ira Rosen  <irar@il.ibm.com>
6184         PR tree-optimization/45752
6185         * tree-vect-slp.c (vect_get_mask_element): Remove static
6186         variables, make them function arguments.
6187         (vect_transform_slp_perm_load): Pass new arguments to
6188         vect_get_mask_element.
6190 2010-10-05  Richard Guenther  <rguenther@suse.de>
6192         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
6193         (gimple_mod_pow2): Likewise.
6194         (gimple_mod_subtract): Likewise.
6195         (gimple_ic): Likewise.
6196         (gimple_stringop_fixed_value): Likewise.
6197         * tree-profile.c (tree_init_edge_profiler): Mark profile
6198         functions nothrow and leaf.
6199         (add_abnormal_goto_call_edges): Remove.
6200         (tree_gen_edge_profiler): Work on SSA form.
6201         (tree_gen_ic_profiler): Likewise.  Simplify.
6202         (do_tree_profiling): Update SSA form.
6203         (pass_tree_profile): Remove.
6204         (do_tree_profiling): Likewise.
6205         (gate_tree_profile_ipa): New function.
6206         (pass_ipa_tree_profile): New.
6207         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
6208         state of instrumented functions.
6209         * passes.c (init_optimization_passes): Remove early non-SSA
6210         inlining.  Move profiling after early optimizations.
6211         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
6212         (pass_ipa_early_inline): Likewise.
6213         * tree-pass.h (pass_ipa_early_inline): Remove.
6214         (pass_tree_profile): Likewise.
6215         (pass_ipa_tree_profile): Declare.
6217 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6218             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
6220         * config/s390/s390.c (z196_cost): New.
6221         (s390_handle_arch_option): Add -march=z196.
6222         (s390_option_override): Use the new cost function and use the z10
6223         defaults also for z196.
6224         (legitimate_reload_constant_p): Adjust comment.
6225         (legitimate_reload_fp_constant_p): New function.
6226         (s390_preferred_reload_class): Distingiush between FP and Int constants.
6227         (preferred_la_operand_p): Avoid la with index on z196.
6228         (s390_adjust_priority): Trigger also for z196.
6229         (s390_issue_rate): Issue rate for z196 is 3.
6230         (s390_z10_fix_long_loop_prediction): Rename to ...
6231         (s390_fix_long_loop_prediction): ... this.
6232         (s390_reorg): Apply the z10 adjustments also for z196.
6233         (s390_loop_unroll_adjust): Do this also for z196.
6234         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
6235         (enum processor_flags): Add PF_Z196.
6236         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
6237         (TARGET_CPU_Z196, TARGET_Z196): New macros.
6238         * config.gcc: Enable z196 for --with-arch.
6239         * config/s390/2817.md: New file.
6240         * config/s390/2084.md: New type for multiply and add.
6241         * config/s390/2097.md: Likewise.
6242         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
6243         (UNSPECV_ATOMIC_OP): New constants.
6244         (fmadddf, fmaddsf): New values for type attribute.
6245         (z196prop): New insn attribute.
6246         (cpu, cpu_facility): Add z196.
6247         (ATOMIC_Z196): New code iterator.
6248         (noxa): New code attribute.
6249         (gk): New mode attribute.
6250         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
6251         Support load zero for fp constants.
6252         (fixuns_truncdddi2, fixuns_trunctddi2)
6253         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
6254         for z196.
6255         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
6256         (popcounthi2, popcountqi2): New expander.
6257         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
6258         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
6259         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
6260         insn definition.
6261         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
6262         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
6263         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
6264         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
6265         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
6266         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
6267         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
6268         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
6269         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
6270         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
6271         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
6272         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
6273         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
6274         Support new z196 instructions.
6276 2010-10-05  Richard Guenther  <rguenther@suse.de>
6278         PR middle-end/45877
6279         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
6280         case where gimplification optimizes away the stmt.
6282 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
6284         PR debug/45849
6285         * var-tracking.c (strip_pointer_flags): New function.
6286         (emit_note_insn_var_location): If rtx_equal_p check failed,
6287         retry on locations simplified with simplify_replace_fn_rtx
6288         and strip_pointer_flags as its callback.
6290 2010-10-04  Jan Hubicka  <jh@suse.cz>
6292         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
6293         (can_refer_decl_in_current_unit_p): ... this one; reverse return
6294         value; handle comdats too.
6295         (canonicalize_constructor_val): Use it; handle function_decls
6296         correctly.
6297         (gimple_fold_obj_type_ref_known_binfo): Likewise.
6298         * gimple.c (get_base_address): Accept all kinds of decls.
6300 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
6302         * flags.h (g_switch_value, g_switch_set): Remove.
6303         * opts.c (g_switch_value, g_switch_set): Remove.
6304         * config/g.opt (G): Add Var(g_switch_value).
6305         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
6306         (alpha_option_override): Check global_options_set.x_g_switch_value
6307         instead of g_switch_set.
6308         (alpha_in_small_data_p): Remove cast in comparison with
6309         g_switch_value.
6310         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
6311         g_switch_value to unsigned HOST_WIDE_INT.
6312         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
6313         with g_switch_value.
6314         (frv_handle_option): Don't handle -G here.
6315         (frv_option_override): Check global_options_set.x_g_switch_value
6316         instead of g_switch_set.  Don't modify g_switch_set.
6317         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
6318         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
6319         g_switch_value to unsigned HOST_WIDE_INT.
6320         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
6321         (ia64_option_override): Check global_options_set.x_g_switch_value
6322         instead of g_switch_set.
6323         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
6324         Remove.
6325         (lm32_in_small_data_p): Remove cast in comparison with
6326         g_switch_value.
6327         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
6328         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
6329         HOST_WIDE_INT.
6330         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
6331         (m32r_init): Check global_options_set.x_g_switch_value instead of
6332         g_switch_set.
6333         (m32r_in_small_data_p): Remove cast in comparison with
6334         g_switch_value.
6335         (m32r_file_start): Format g_switch_value with %d.
6336         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
6337         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
6338         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
6339         handle -G here.
6340         (microblaze_option_override): Check
6341         global_options_set.x_g_switch_value instead of g_switch_set.
6342         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
6343         (mips_option_override): Check global_options_set.x_g_switch_value
6344         instead of g_switch_set.
6345         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
6346         (rs6000_file_start): Format g_switch_value with %d.
6347         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
6348         comparisons with g_switch_value.
6349         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
6350         global_options_set.x_g_switch_value instead of g_switch_set.
6351         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6352         global_options_set.x_g_switch_value instead of g_switch_set.
6353         * config/score/score.c (score_handle_option): Don't handle -G here.
6354         * config/score/score3.c (score3_option_override): Check
6355         global_options_set.x_g_switch_value instead of g_switch_set.
6356         * config/score/score7.c (score7_option_override): Check
6357         global_options_set.x_g_switch_value instead of g_switch_set.
6359 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6361         * common.opt (fira-coalesce): Remove.
6363         * doc/invoke.texi (flag_ira_coalesce): Remove.
6365         * ira-color.c (allocno_coalesced_p): Move before
6366         copy_freq_compare_func.
6367         processed_coalesced_allocno_bitmap): Ditto.
6368         (update_conflict_hard_regno_costs): Don't use
6369         ALLOCNO_FIRST_COALESCED_ALLOCNO.
6370         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
6371         (assign_hard_reg): Assume no coalesced allocnos.
6372         (get_coalesced_allocnos_attributes): Remove.
6373         (bucket_allocno_compare_func): Assume no coalesced allocnos.
6374         (push_allocno_to_stack): Ditto.
6375         (remove_allocno_from_bucket_and_push): Use
6376         ira_print_expanded_allocno instead of print_coalesced_allocno.
6377         (push_allocnos_to_stack): Assume uncoalesced allocnos.
6378         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
6379         all_conflicting_hard_regs.
6380         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
6381         (setup_allocno_left_conflicts_size): Ditto.
6382         (put_allocno_into_bucket): Ditto.
6383         (copy_freq_compare_func): Remove.
6384         (copy_freq_compare_func, merge_allocnos): Move before
6385         coalesced_pseudo_reg_freq_compare.
6386         coalesced_allocno_conflict_p): Ditto.
6387         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
6388         parameter.  Assume it true.
6389         (color_allocnos): Assume uncoalesced allocnos.  Use
6390         ira_print_expanded_allocno instead of print_coalesced_allocno.
6391         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
6392         parameter.
6394         * ira.c: Remove comment about coalescing.
6396 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
6398         * config/mips/mips.h (target_flags_explicit): Declare for
6399         GENERATOR_FILE.
6401 2010-10-04  Andi Kleen  <ak@linux.intel.com>
6403         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
6404         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
6406 2010-10-04  Matthias Klose  <doko@ubuntu.com>
6408         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
6409         multilib osdirname if it exists.
6410         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
6412 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
6414         PR middle-end/45876
6415         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
6416         arg0's type or its unsigned counterpart as utype.  Convert
6417         arg1 to utype unconditionally.
6419 2010-10-04  Julian Brown  <julian@codesourcery.com>
6421         * expr.c (expand_assignment): Add assertion to prevent emitting
6422         null rtx for movmisalign pattern.
6423         (expand_expr_real_1): Likewise.
6424         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
6425         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
6426         (arm_vector_alignment_reachable): New.
6427         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
6428         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
6429         (arm_print_operand): Include alignment qualifier in %A.
6430         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
6431         (movmisalign<mode>): New expander.
6432         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
6433         insn patterns.
6435 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
6437         * optc-gen.awk: Define global_options_set.  Don't define
6438         target_flags_explicit.
6439         * opth-gen.awk: Declare global_options_set.  Define
6440         target_flags_explicit as macro.
6441         * opts-common.c (handle_option): Take opts_set and generated_p
6442         parameters.
6443         (handle_generated_option, read_cmdline_option, set_option): Take
6444         opts_set parameter.
6445         (set_option): Use opts_set instead of hardcoding target_flags and
6446         target_flags_explicit.
6447         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
6448         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
6449         flag_value_profile_transformations_set, flag_peel_loops_set,
6450         flag_branch_probabilities_set, flag_inline_functions_set,
6451         flag_ipa_cp_set, flag_ipa_cp_clone_set,
6452         flag_predictive_commoning_set, flag_unswitch_loops_set,
6453         flag_gcse_after_reload_set): Remove.
6454         (common_handle_option, lang_handle_option, target_handle_option):
6455         Take opts_set parameter.  Assert that it is &global_options_set.
6456         (common_handle_option): Don't set _set variables.  Check opts_set
6457         instead of such variables.
6458         (enable_warning_as_error): Pass &global_options_set to
6459         handle_generated_option.
6460         * opts.h (cl_option_handler_func.handler, set_option,
6461         handle_option, handle_generated_option, read_cmdline_option): Add
6462         opts_set parameters.
6463         (handle_option): Add generated_p parameter.
6464         * config/i386/i386.c (ix86_function_specific_save,
6465         ix86_function_specific_restore): Updat for renaming of
6466         target_flags_explicit field.
6467         * config/i386/i386.opt (target_flags_explicit): Rename to
6468         ix86_target_flags_explicit.
6469         * config/ia64/ia64.c (ia64_override_options_after_change): Check
6470         global_options_set.x_flag_selective_scheduling and
6471         global_options_set.x_flag_selective_scheduling2, not
6472         sel_sched_switch_set.
6473         * flags.h (sel_sched_switch_set,
6474         flag_speculative_prefetching_set): Remove.
6475         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
6476         that it is &global_options_set.
6477         (process_command): Pass &global_options_set to read_cmdline_option.
6478         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
6479         set_option.
6480         * toplev.c (target_flags_explicit): Remove.
6482 2010-10-04  Jan Hubicka  <jh@suse.cz>
6484         PR middle-end/45871
6485         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
6486         use get_ref_base_and_offset to handle references.
6487         (fold_const_aggregate_ref): Update.
6489 2010-10-04  Martin Jambor  <mjambor@suse.cz>
6491         PR tree-optimization/45572
6492         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
6493         ipa_check_create_node_params.
6494         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
6496 2010-10-04  Yao Qi  <yao@codesourcery.com>
6498         * doc/passes.texi: Clean up.
6500 2010-10-03  Ian Lance Taylor  <iant@google.com>
6502         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
6503         referring to a field using a typedef name.
6504         (find_anonymous_field_with_type): New static function.
6505         (convert_to_anonymous_field): New static function.
6506         (convert_for_assignment): If -fplan9-extensions, permit converting
6507         pointer to struct to pointer to anonymous field.
6508         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
6509         (is_duplicate_field): New static function.
6510         (detect_field_duplicates_hash): If -fplan9-extensions, check for
6511         typedef names duplicating field names.
6512         (detect_field_duplicates): Likewise.
6513         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
6514         (C Dialect Options): Document -fplan9-extensions.
6515         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
6517 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6519         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
6520         revision 164914.
6521         (vect_create_data_ref_ptr): Likewise.
6522         * tree-vect-stmts.c (vectorizable_store): Likewise.
6523         (perm_mask_for_reverse): Likewise.
6524         (reverse_vec_elements): Likewise.
6525         (vectorizable_load): Likewise.
6527 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6529         * cppbuiltin.c: New file.
6530         * cppbuiltin.h: New file.
6531         * Makefile.in: Take into account cppbuiltin.{h,c}.
6533 2010-10-03  Andi Kleen  <ak@linux.intel.com>
6535         * lto-cgraph.c (input_cgraph): Check for missing sections.
6537 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
6539         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
6540         to nonimmediate_operand.  Force operand 2 to register when allowed.
6541         (*<shiftrt_insn><mode>3_mask): Ditto.
6542         (*<rotate_insn><mode>3_mask): Ditto.
6544 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
6546         PR tree-optimization/45720
6547         PR tree-optimization/45764
6548         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6549         Don't accept backwards consecutive accesses.
6550         (vect_create_data_ref_ptr): Disallow negative steps.
6552         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
6553         (perm_mask_for_reverse): Removed.
6554         (reverse_vec_elements): Likewise.
6555         (vectorizable_load): Don't handle negative steps.
6557 2010-10-02  Jan Hubicka  <jh@suse.cz>
6559         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
6560         call destination is known.
6562 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6564         PR target/45820
6565         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
6566         earlier.
6568 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6570         * doc/install.texi (Configuration): Document build_configargs,
6571         host_configargs, target_configargs.
6573 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
6575         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
6576         (*<shiftrt_insn><mode>3_mask): Ditto.
6577         (*<rotate_insn><mode>3_mask): Ditto.
6579 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
6581         PR tree-optimization/44716
6582         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6583         (HOT_TEXT_SECTION_NAME): Define.
6585 2010-10-01  Nick Clifton  <nickc@redhat.com>
6587         * common.opt: Add -fcombine-stack-adjustments.
6588         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
6589         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
6590         flag_combine_stack_adjustments.
6591         * doc/invoke.texi: Document the new option.
6593 2010-10-01  Richard Guenther  <rguenther@suse.de>
6595         PR tree-optimization/45854
6596         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
6598 2010-10-01  Anthony Green  <green@moxielogic.com>
6600         * config.gcc: Fix moxie-*-rtems* configuration.
6602 2010-10-01  Richard Guenther  <rguenther@suse.de>
6604         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
6605         (gen_decl_die): Likewise.
6607 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6609         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
6610         to the function code for SPU MD builtins.
6611         (spu_expand_builtin): Update.
6612         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
6614 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6616         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
6617         sjlj_except_unwind_info.
6619 2010-10-01  Tristan Gingold  <gingold@adacore.com>
6621         * configure.ac: Define the nop insn for avr*-*-*
6622         * configure: Regenerate.
6624 2010-10-01  Alan Modra  <amodra@gmail.com>
6626         PR target/45807
6627         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
6628         extend toc_restore_insn.
6630 2010-09-30  Richard Guenther  <rguenther@suse.de>
6632         PR tree-optimization/43959
6633         * function.c (gimplify_parameters): Use create_tmp_reg instead of
6634         create_tmp_var.
6636 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
6638         * config/sh/sh.c (sh_expand_prologue): Set
6639         current_function_static_stack_size.
6641 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6643         * configure.ac: Check for Solaris 8 ld with .hidden support.
6644         * configure: Regenerate.
6646 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6648         PR middle-end/45758
6649         * graphite.c (graphite_initialize): Call scev_reset.
6651 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6653         * sese.h (scev_analyzable_p): Return false for real or floating
6654         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
6656 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6658         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
6659         and ps.
6660         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
6661         domain.
6662         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
6663         Do not allocate ub_expr, it is passed in initialized.
6665 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6667         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
6668         (build_cloog_prog): Dump CLooG input file when
6669         flag_graphite_dump_cloog is set.  This is disabled on trunk.
6670         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
6672 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6674         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
6675         verify_dominators for CDI_POST_DOMINATORS.
6676         * sese.h: Remove comment about CDI_POST_DOMINATORS.
6677         (recompute_all_dominators): Remove call to free_dominance_info
6678         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
6679         for CDI_POST_DOMINATORS.
6681 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6683         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
6684         over pbb_dim_iter_domain.
6686 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6688         * graphite-flattening.c: Fix comments.
6690 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6692         * Makefile.in (OBJS-common): Add graphite-flattening.o.
6693         (graphite-flattening.o): New rule.
6694         * common.opt (floop-flatten): New flag.
6695         * doc/invoke.texi (-floop-flatten): Documented.
6696         * graphite-flattening.c: New.
6697         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
6698         * graphite-poly.h (flatten_all_loops): Declared.
6699         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
6700         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
6701         is set, also set flag_graphite.
6703 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6705         * graphite-poly.c (cloog_checksum): New.
6706         * graphite-poly.h (cloog_checksum): Declared.
6708 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6710         * graphite-poly.c (pbb_number_of_iterations): Removed.
6711         (pbb_number_of_iterations_at_time): Correctly compute the number
6712         of iterations in the transformed loop.
6713         * graphite-poly.h (pbb_number_of_iterations): Removed.
6715 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6717         * graphite-poly.h (lst_update_scattering_seq): Removed.
6718         (lst_update_scattering): Correctly handle outermost loop dewey
6719         renumbering.
6721 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6723         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
6724         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
6725         * graphite-poly.h (lst_niter_for_loop): New.
6727 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6729         * graphite-poly.c (apply_poly_transforms): Do not abort when the
6730         transform read from disk is not legal.  Call fatal_error instead.
6732 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6734         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
6735         (print_scop_header): Removed.  Inlined in the only call place...
6736         (print_scop): ... here.
6738 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6740         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
6742 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6744         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
6746 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6748         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
6749         (dot_deps_stmt): Same.
6750         * graphite-poly.c (dot_lst): Same.
6752 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6754         * graphite-blocking.c (scop_do_strip_mine): Do not call
6755         graphite_legal_transform.
6756         (scop_do_block): Same.
6758 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
6760         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
6761         description.
6763 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6765         * tree-scalar-evolution.c (instantiate_array_ref): New.
6766         (instantiate_scev_r): Also handle ARRAY_REFs.
6768 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6770         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6771         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
6772         RESULT_DECL, and FIELD_DECL.  Return false for an
6773         SSA_NAME_IS_DEFAULT_DEF.
6774         (compute_scalar_evolution_in_loop): Do not further analyze the
6775         scalar evolution when no_evolution_in_loop_p returns true.
6777 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6779         * tree-chrec.h (evolution_function_is_affine_p): Do not check
6780         whether CHREC_LEFT is invariant.  A function is affine when
6781         CHREC_RIGHT is invariant.
6783 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6785         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
6786         is_gimple_reg.
6787         (rewrite_degenerate_phi): Same.
6788         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
6790 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
6792         * graphite-scop-detection.c (graphite_can_represent_scev,
6793         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
6794         graphite_can_represent_loop): Remove outermost_loop.
6796 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6798         PR middle-end/45229
6799         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
6800         handle GIMPLE_CALLs with no LHS.
6802 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
6804         * graphite-poly.c (init_graphite_out_file): New.
6805         (init_graphite_in_file): New.
6806         (apply_poly_transforms): Updated to enable reading and writing of
6807         multiple scop files.
6809 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
6811         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
6812         redundant checks.
6814 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6816         * graphite-clast-to-gimple.c (precision_for_value): Adjust
6817         computation of precision by 1.
6819 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
6821         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
6822         (openscop_read_polyhedron_matrix): New.
6823         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
6824         (openscop_read_N_int): Same.
6825         * graphite-poly.c (openscop_read_N_int): New.
6826         (openscop_read_one_int): New.
6827         (openscop_read_N_string): New.
6828         (openscop_read_one_string): New.
6829         (openscop_read_powerset_matrix): New.
6830         (graphite_read_transforms): Remove.
6831         (graphite_read_scatt): New.
6832         (graphite_read_scop_file): New.
6833         (apply_poly_transforms): Updated to call graphite_read_scop_file.
6835 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6837         * graphite-poly.c: Change include order.
6839 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6841         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
6842         (cloog_matrix_nrows): New.
6844 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
6846         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
6847         from matrix lines.
6848         * graphite-poly.c (openscop_print_scattering_function_1): Same.
6849         (print_scattering_function_1): Same.
6850         (openscop_print_pbb_domain): Same.
6851         (openscop_print_scop_context): Same.
6852         (print_scop_context): Same.
6854 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
6856         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
6857         (openscop_print_pdr_polyhedron): Print pph.
6859 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6861         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
6862         priority signed types.
6864 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6866         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
6867         the call to lang_hooks.types.type_for_size.  Call
6868         build_nonstandard_integer_type.
6870 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
6872         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
6873         (openscop_print_polyhedron_matrix): New.
6874         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
6875         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
6876         (openscop_print_pdr_powerset): New.
6877         (openscop_print_powerset_matrix): New.
6878         (openscop_print_scattering_function_1): New.
6879         (print_scattering_function): Add support for scattering names and
6880         OpenScop format.
6881         (graphite_write_transforms): Remove.
6882         (print_pdr_access_layout): Updated to support OpenScop format.
6883         (print_pdr): Same.
6884         (openscop_print_pbb_domain): New.
6885         (print_pbb_body): Added a parameter to allow indicating that pbb_body
6886         is not provided.
6887         (print_pbb): Updated to call the new print_pbb_body.
6888         (openscop_print_scop_context): New.
6889         (print_scop_header): New.
6890         (print_scop): Updated to call print_scop_header.
6891         * graphite-poly.h: Document OpenScop format.
6893 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
6895         * config/cris/m32c.c (cris_memory_move_cost): New.
6896         (cris_register_move_cost): Make static. Change arguments type from
6897         enum reg_class to reg_class_t.
6898         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6899         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6900         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
6902 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
6904         PR target/45843
6905         * config/i386/i386.c (ix86_gimplify_va_arg): Use
6906         INTVAL (XEXP (slot, 1)) as prev_size.
6908 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
6910         PR target/45837
6911         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
6912         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
6913         defined.
6914         * config/rs6000/option-defaults.h (toplevel): Change #if
6915         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
6916         global option changes.
6918 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
6920         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
6922         PR tree-optimization/31261
6923         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
6924         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
6926 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6928         PR bootstrap/45796
6929         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
6930         special-casing for generators and turn into ...
6931         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
6932         rule, for better error messages in case of toplevel dependency errors.
6933         (genprog): Add hooks, rename to ...
6934         (genprogerr): ... this, and let genprog also contain check,
6935         checksum, condmd.
6936         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
6937         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
6938         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
6940 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
6941             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6943         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
6944         for GMP, MPFR and MPC.
6946 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6948         * config/sparc/sparc.opt (mimpure-text): Move ...
6949         * config/sol2.opt: ... here.  Correct description.
6950         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
6951         * doc/invoke.texi (Option Summary, SPARC Options): Move
6952         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
6953         (Option Summary, Solaris 2 Options): ... here.
6954         (Submodel Options, Solaris 2 Options): New menu entry.
6955         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
6956         (Solaris 2 Options): ... here.
6958 2010-09-30  Michael Eager  <eager@eagercon.com>
6960         * extend.texi (interrupt_handler): Add MicroBlaze to list.
6961         (save_volatiles): Describe option for MicroBlaze.
6962         * invoke.texi: Add MicroBlaze Options.
6963         * contrib.texi: Add acknowledgment.
6964         * md.texi: Add MicroBlaze d and z constraints.
6965         * install.texi: Add microblaze-*-elf.
6966         * configure.ac: Add microblaze-*-* to target list.
6967         * configure: Regenerate.
6968         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
6969         * config/microblaze/microblaze-protos.h: New.
6970         * config/microblaze/crti.s: New.
6971         * config/microblaze/predicates.md: New.
6972         * config/microblaze/linux.h: New.
6973         * config/microblaze/microblaze.md: New.
6974         * config/microblaze/constraints.md: New.
6975         * config/microblaze/crtn.s: New.
6976         * config/microblaze/microblaze.opt: New.
6977         * config/microblaze/microblaze-c.c: New.
6978         * config/microblaze/t-microblaze: New.
6979         * config/microblaze/microblaze.c: New.
6980         * config/microblaze/microblaze.h: New.
6982 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
6984         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
6985         parse @optional/@required and set the flags as appropriate.
6987 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
6989         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
6991 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
6993         * opt-functions.awk (static_var): Update comment.
6994         (var_ref): Return offsetof expression or -1, not variable address.
6995         * optc-gen.awk: Generate structure field initializers instead of
6996         static variables.  Expect -1 for missing variables instead of null
6997         pointer.  Add gcc_options parameters to generated functions.
6998         * opth-gen.awk: Generate structure fields for static variables.
6999         Add gcc_options parameters to generated functions.
7000         * common.opt (optimize, optimize_size): Add variables.
7001         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
7002         &global_options to cl_target_option_restore.
7003         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
7004         &global_options to cl_optimization_restore, cl_target_option_save
7005         and cl_target_option_restore.
7006         (ix86_set_current_function): Pass &global_options to
7007         cl_target_option_restore.
7008         * config/pdp11/pdp11.h (optimize): Remove.
7009         * config/rs6000/rs6000.h (optimize): Remove.
7010         * config/sh/sh.h (optimize): Remove.
7011         * config/xtensa/xtensa.h (optimize): Remove.
7012         * coretypes.h (struct gcc_options): Declare.
7013         * diagnostic.c (diagnostic_initialize): Initialize
7014         context->option_state.
7015         (diagnostic_report_diagnostic): Pass option_state to
7016         option_enabled hook.
7017         * diagnostic.h (diagnostic_context.option_enabled): Add void *
7018         parameter.
7019         (diagnostic_context.option_state): New field.
7020         * final.c (final_start_function, final, final_scan_insn): Rename
7021         optimize parameter to optimize_p.
7022         * flags.h (optimize, optimize_size): Remove.
7023         * function.c (invoke_set_current_function_hook): Pass
7024         &global_options to cl_optimization_restore.
7025         * gcc.c (driver_handle_option): Take gcc_options parameter.
7026         Assert that it is &global_options.
7027         (process_command): Pass &global_options to read_cmdline_option.
7028         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
7029         option_enabled.
7030         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
7031         &global_options to set_option.
7032         * opts-common.c (handle_option, handle_generated_option,
7033         read_cmdline_option, set_option): Take explicit gcc_options
7034         parameters.  Use option_flag_var.
7035         (option_flag_var): New.
7036         * opts.c (common_handle_option, lang_handle_option,
7037         target_handle_option): Take gcc_options parameter.  Assert that it
7038         is &global_options.
7039         (read_cmdline_options): Pass &global_options to read_cmdline_option.
7040         (print_filtered_help): Use option_flag_var.  Pass &global_options
7041         to option_enabled.
7042         (common_handle_option): Use option_flag_var.
7043         (option_enabled): Take opts parameter.  Use option_flag_var.
7044         (get_option_state): Take gcc_options parameter.  Use
7045         option_flag_var.  Pass gcc_options parameter to option_enabled.
7046         (enable_warning_as_error): Pass &global_options to
7047         handle_generated_option.
7048         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
7049         (cl_option_handler_func.handler): Take gcc_options parameter.
7050         (option_enabled, get_option_state, set_option, handle_option,
7051         handle_generated_option, read_cmdline_option): Take gcc_options
7052         parameters.
7053         * toplev.c (optimize, optimize_size): Remove.
7054         (print_switch_values): Pass &global_options to option_enabled.
7055         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
7056         to get_option_state.
7057         (general_init): Initialize global_dc->option_state.
7058         * tree.c (build_optimization_node): Pass &global_options to
7059         cl_optimization_save.
7060         (build_target_option_node): Pass &global_options to
7061         cl_target_option_save.
7063 2010-09-30  Martin Jambor  <mjambor@suse.cz>
7065         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
7066         zero sized bit-fields.
7068 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7070         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
7071         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
7072         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
7073         (c_parser_objc_class_declaration): Same change.
7074         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
7075         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
7076         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
7077         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
7078         and RID_AT_PUBLIC instead of RID_PUBLIC.
7079         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
7080         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
7082 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
7084         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
7085         Add links to current providers of packages for Solaris and IRIX.
7087 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7089         Merge from 'apple/trunk' branch on FSF servers.
7090         * c-parser.c: Applied change originally in c-parse.in.
7092         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
7094         Radar 4281748
7095         * c-decl.c (start_decl): Check for redeclaration of class name.
7096         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
7098 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
7100         * config/ia64/ia64.c (ia64_builtin_decl): New.
7101         (TARGET_BUILTIN_DECL): Define.
7102         (ia64_builtins): New.
7103         (ia64_init_builtins): Save decls in ia64_builtins.
7105 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
7107         PR target/40457
7108         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
7109         (move2add_use_add3_insn): Likewise.
7110         (reload_cse_move2add): Likewise.
7111         * rtlanal.c (get_full_rtx_cost): New function.
7112         * rtl.h (struct full_rtx_costs): New.
7113         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
7114         costs_add_n_insns): New inline functions.
7115         (get_full_rtx_cost): Declare.
7117         PR c/45054
7118         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
7119         invariants.  Check for reg_equiv_invariant.
7120         (reload): Assert that spilled_pseudos is empty when returning.
7122 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
7124         * config/i386/mingw32.h (TARGET_64BIT): replaced by
7125         TARGET_64BIT_DEFAULT in #if check.
7127 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
7129         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
7131 2010-09-29  Mike Stump  <mikestump@comcast.net>
7133         * config/darwin.h (flag_mkernel): Remove.
7134         (flag_apple_kext): Likewise.
7136 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7137             Jack Howarth  <howarth@bromo.med.uc.edu>
7139         * config/darwin.opt (undefined): Add.
7141 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7143         PR testsuite/45664
7144         * configure.ac: Add --enable-indirect-function option.
7145         * config.gcc: Add default_gnu_indirect_function.
7146         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
7147         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
7148         * varasm.c (do_assemble_alias): Adjust for macro name change.
7149         * configure: Rebuilt.
7150         * doc/install.texi: Document --enable-indirect-function.
7152 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7154         * doc/options.texi (Variable, Var, Init): Update documentation
7155         without reference to VarExists.
7156         (VarExists): Remove.
7157         * common.opt, config/i386/i386.opt, config/linux.opt,
7158         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
7159         Don't use VarExists.
7161 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7163         * optc-gen.awk: Generate global_options initializer instead of
7164         individual variables.  Add x_ prefix to names of structure members.
7165         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
7166         names of structure members.
7167         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7168         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
7169         * doc/tm.texi: Regenerate.
7170         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7171         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
7172         * c-parser.c (disable_extension_diagnostics,
7173         restore_extension_diagnostics): Update names of cpp_options members.
7174         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7175         * common.opt (fcompare-debug-second): Don't use Var.
7176         * config/alpha/alpha.h (target_flags): Remove.
7177         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7178         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
7179         * config/bfin/bfin.h (target_flags): Remove.
7180         * config/cris/cris.h (target_flags): Remove.
7181         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
7182         cl_target_option members.
7183         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
7184         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
7185         ix86_can_inline_p): Update names of cl_target_option members.
7186         * config/i386/i386.h (ix86_isa_flags): Remove.
7187         * config/lm32/lm32.h (target_flags): Remove.
7188         * config/mcore/mcore.h (mcore_stack_increment): Remove.
7189         * config/mcore/mcore.md (addsi3): Remove extern declaration of
7190         flag_omit_frame_pointer.
7191         * config/mep/mep.h (target_flags): Remove.
7192         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7193         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
7194         * config/mmix/mmix.h (target_flags): Remove.
7195         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
7196         flag_expensive_optimizations): Remove.
7197         * config/s390/s390.h (flag_pic): Remove.
7198         * config/score/score-conv.h (target_flags): Remove.
7199         * config/sh/sh.h (sh_fixed_range_str): Remove.
7200         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
7201         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
7202         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7203         * diagnostic.c (diagnostic_initialize): Update names of
7204         diagnostic_context members.
7205         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
7206         warn_system_headers.
7207         (diagnostic_report_warnings_p): Update for new names.
7208         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
7209         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
7210         HARD_FRAME_POINTER_IS_ARG_POINTER.
7211         * flags.h (flag_compare_debug): Declare.
7212         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7213         * opts.c (flag_compare_debug): Define.
7214         (common_handle_option): Update names of diagnostic_context
7215         members.  Handle -fcompare-debug-second.
7216         (fast_math_flags_struct_set_p): Update names of cl_optimization
7217         members.
7218         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7219         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7220         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7221         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7222         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7223         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7224         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
7225         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7226         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
7228 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
7230         * config/picochip/picochip.c (picochip_output_internal_label):
7231         This function can now be called for debug CFI labels, which can come
7232         in the middle of a vliw instruction.  Postpone until end of vliw.
7234 2010-09-29  Richard Guenther  <rguenther@suse.de>
7236         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
7237         (DECL_FILE_SCOPE_P): Use it.
7238         (TYPE_FILE_SCOPE_P): New macro.
7240 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7242         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
7243         a CPP_NAME which is a reserved word, clearly separate cases for
7244         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
7246 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7248         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
7249         token->value with the canonical spelling.  Do exactly like C and
7250         C++ and leave it as it is.
7252 2010-09-28  Richard Henderson  <rth@redhat.com>
7254         * config/alpha/alpha.c (alpha_builtins): New.
7255         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
7256         (alpha_builtin_function): New.
7257         (alpha_add_builtins, alpha_init_builtins): Use it.
7259 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
7261         * doc/standards.texi (Standards): Expanded the section on
7262         Objective-C and Objective-C++.
7264 2010-09-28  DJ Delorie  <dj@redhat.com>
7266         PR target/45800
7267         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
7268         volatile MEMs.
7270 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
7272         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
7273         attributes on methods.
7274          (c_parser_objc_method_definition): Handle attributes.
7275         (c_parser_objc_methodproto): Likewise.
7276         (c_parser_objc_maybe_method_attributes): New.
7277         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
7278         missing definition, similar to that in ObjC++.
7280 2010-09-28  Richard Henderson  <rth@redhat.com>
7282         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
7283         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
7284         (CONFIG_SJLJ_EXCEPTIONS): Remove.
7285         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
7286         (STACK_CHECK_PROTECT): Likewise.
7287         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
7288         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
7289         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
7290         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
7291         (dwarf2out_assembly_start): Likewise.
7292         * except.c (init_eh): Use targetm.except_unwind_info.
7293         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
7294         (output_one_function_exception_table): Likewise.
7295         * final.c: Unconditionally include dwarf2out.h.
7296         (final_start_function): Unconditionally call dwarf2out routines.
7297         (final_end_function, final_scan_insn): Likewise.
7298         * function.c (expand_function_end): Use targetm.except_unwind_info.
7299         * opts.c (decode_options): Use targetm.except_unwind_info.
7300         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
7301         * target.def (debug_unwind_info, except_unwind_info): New.
7302         * target.h (enum unwind_info_type): New.
7303         * targhooks.c (default_debug_unwind_info): New.
7304         (default_except_unwind_info): New.
7305         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
7306         * targhooks.h: Declare them.
7307         * tree-tailcall.c: Include "target.h"
7308         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
7309         * Makefile.in (tree-tailcall.o): Update.
7310         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
7311         (lhd_gcc_personality): Likewise.
7313         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
7314         (TARGET_EXCEPT_UNWIND_INFO): New.
7315         (DWARF2_UNWIND_INFO): Update.
7316         (TARGET_DEBUG_UNWIND_INFO): New.
7317         * doc/tm.texi: Rebuild.
7319         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
7320         targetm.except_unwind_info.
7322         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
7323         (arm_except_unwind_info): New.
7324         (arm_compute_func_type): Use it.
7325         (arm_expand_prologue, thumb_pushpop): Likewise.
7326         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
7327         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
7328         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
7329         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
7330         (DWARF2_UNWIND_INFO): Remove.
7331         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
7332         (ARM_EABI_UNWIND_TABLES): Remove.
7334         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
7335         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
7336         (ia64_except_unwind_info): New.
7337         (ia64_output_function_prologue): Use it.
7338         (ia64_add_bundle_selector_before): Likewise.
7339         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
7340         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
7341         (TARGET_UNWIND_INFO): Remove.
7343         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
7345 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
7347         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
7348         (c_parser_objc_protocol_definition): Likewise.
7349         (c_parser_external_declaration): Provide dummy attribute arguments.
7350         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
7351         (c_parser_objc_class_definition): Handle attributes.
7352         (c_parser_objc_protocol_definition): Likewise.
7354 2010-09-28  Tobias Burnus  <burnus@net-b.de>
7356         PR fortran/40569
7357         PR fortran/40568
7358         * toplev.h (save_decoded_options, save_decoded_options_count):
7359         New global variables.
7360         * toplev.c (save_decoded_options, save_decoded_options_count):
7361         Export variables.
7363 2010-09-28  Ian Lance Taylor  <iant@google.com>
7365         * config/i386/i386.c (ix86_supports_split_stack): Test
7366         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
7368 2010-09-28  Ian Lance Taylor  <iant@google.com>
7370         PR target/45815
7371         * opts.c (decode_options): Don't test whether the target supports
7372         split stack if flag_split_stack == 0.
7374 2010-09-28  Jan Hubicka  <jh@suse.cz>
7376         * builtin-attrs.def (ATTR_LEAF): New attribute.
7377         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
7378         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
7379         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
7380         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
7381         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
7382         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
7383         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
7384         * sync-builtins.def: Annotate all builtins by leaf.
7385         * omp-builtins.def: Annotate all builtins by leaf.
7386         * builtins.def: Annotate relevant builtins with leaf attribute.
7387         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
7388         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
7389         leaf.
7391 2010-09-28  Jan Hubicka  <jh@suse.cz>
7393         * tree-ssa-ccp.c (fold_ctor_reference): New function.
7394         (fold_const_aggregate_ref): Use it.
7395         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
7396         into external static.
7398 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7400         PR target/44452
7401         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
7402         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
7403         (ix86_solaris_return_in_memory): Remove.
7404         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
7405         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
7406         (TARGET_SUBTARGET_DEFAULT): Redefine.
7407         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
7408         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
7409         (TARGET_SUBTARGET_DEFAULT): Redefine.
7410         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
7411         -mvect8-ret-in-mem.
7412         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
7414 2010-09-29  Alan Modra  <amodra@gmail.com>
7416         PR target/45807
7417         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
7418         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
7419         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
7420         Delete.
7421         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
7422         (rs6000_emit_prologue): Don't just create frame save info for r2,
7423         actually save r2.
7425 2010-09-28  Richard Henderson  <rth@redhat.com>
7427         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
7428         when 8 bytes are requested.
7430 2010-09-28  Tristan Gingold  <gingold@adacore.com>
7432         * config/avr/avr.c (expand_prologue): Set
7433         current_function_static_stack_size.
7435 2010-09-28  Tristan Gingold  <gingold@adacore.com>
7437         * config/alpha/alpha.md: Change the initial condition of the
7438         probing loop.
7440 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
7442         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
7443         Split from *avx_<maxmin:code><mode>3.
7444         (*avx_<smaxmin:code><mode>3): Ditto.
7445         * config/i386/i386.md (maxmin): Remove code iterator.
7447 2010-09-27  Ian Lance Taylor  <iant@google.com>
7449         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
7450         requires assembler support for CFI directives.
7452 2010-09-27  Richard Henderson  <rth@redhat.com>
7454         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
7456 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
7458         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
7459         that AFTER is not in the range FROM..TO, inclusive.
7461 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
7462             Bernd Schmidt  <bernds@codesourcery.com>
7464         PR rtl-optimization/45792
7465         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
7466         If not all insns are to be merged, for each edge, stash the
7467         next candidate after the to-be-merged insns before doing the
7468         merge, and use them for the retry at the new insertion point.
7469         Handle CC0 targets when retrying.
7471 2010-09-27  Ian Lance Taylor  <iant@google.com>
7473         * common.opt (fsplit-stack): New option.
7474         * opts.c (decode_options): Set flag_split_stack to final value.
7475         * target.def (supports_split_stack): New hook.
7476         * gcc.c (STACK_SPLIT_SPEC): Define.
7477         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
7478         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
7479         (Code Gen Options): Document -fsplit-stack.
7480         * doc/extend.texi (Function Attributes): Mention no_split_stack.
7481         (Function Attributes): Document no_split_stack.
7482         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
7483         TARGET_SUPPORTS_SPLIT_STACK.
7484         * doc/tm.texi: Rebuild.
7485         * function.c (thread_prologue_and_epilogue_insns): If
7486         flag_split_stack, add split stack prologue.
7487         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
7488         * varasm.c (saw_no_split_stack): New static variable.
7489         (assemble_start_function): Set saw_no_split_stack if the function
7490         has the no_split_stack attribute.
7491         (file_end_indicate_split_stack): New function.
7492         * output.h (file_end_indicate_split_stack): Declare.
7493         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
7494         and function.
7495         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
7496         routines.
7497         * config/i386/i386.c (ix86_option_override_internal): Don't set
7498         expand_builtin_va_start to NULL if -fsplit-stack.
7499         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
7500         -fsplit-stack.
7501         (ix86_va_start): If -fsplit-stack, get overflow pointer from
7502         scratch register set by prologue.
7503         (ix86_code_end): If -fsplit-stack, call
7504         file_end_indicate_split_stack.
7505         (ix86_supports_split_stack): New static function.
7506         (SPLIT_STACK_AVAILABLE): Define.
7507         (split_stack_prologue_scratch_regno): New static function.
7508         (split_stack_fn): New static variable.
7509         (ix86_expand_split_stack_prologue): New function.
7510         (ix86_live_on_entry): New static function.
7511         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
7512         (output_pic_addr_const): Likewise.
7513         (i386_asm_output_addr_const_extra): Likewise.
7514         (ix86_expand_call): Change return type to rtx.  Return the new
7515         call instruction.
7516         (TARGET_SUPPORTS_SPLIT_STACK): Define.
7517         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7518         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
7519         (split_stack_prologue, split_stack_return): New insns.
7520         (split_stack_space_check): New insn.
7521         * config/i386/i386.h (struct machine_function): Add
7522         split_stack_varargs_pointer field.
7523         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
7524         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7525         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7526         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7527         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
7528         Declare.
7529         (ix86_expand_call): Update declaration.
7531 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
7533         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
7534         code.  Added byref, which was missing in the list of codes.
7535         Explain that enumeration values are encoded as the integer type
7536         that the compiler uses to store them.  Explain and make examples
7537         of how 'const' interacts with pointers, and the complication of
7538         the encoding of 'const char *'.
7539         (Legacy type encoding): New subsection, explaining that GCC emits
7540         incorrect type encodings for the NeXT runtime for compatibility
7541         reasons.
7542         (@@encode): New subsection, explaining @encode and particularly
7543         that protocol qualifiers are not recognized inside an @encode()
7544         expression.
7545         (Method signatures): New subsection, explaining how method
7546         signatures are encoded.
7548 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
7550         Merge from 'apple/trunk' branch on FSF servers.  Removed small
7551         change in build_conditional_expr that had been added when fixing
7552         PR objc/27377 and which did the same check in a less complete way.
7554         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
7556         Radar 4229905
7557         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
7558         looking for objective-c common pointer types.
7560         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
7562         Radar 4154928
7563         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
7564         use their ObjC common type.
7566 2010-09-27  Richard Guenther  <rguenther@suse.de>
7568         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
7570 2010-09-27  Jie Zhang  <jie@codesourcery.com>
7572         * print-tree.c (print_node): Print in-constant-pool.
7574 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
7576         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
7577         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
7578         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
7579         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
7581 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
7583         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
7584         from pro_epilogue_adjust_stack_<mode>_{1,2}.
7585         (pro_epilogue_adjust_stack_<mode>_add): Rename from
7586         pro_epilogue_adjust_stack_<mode>_3.
7587         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
7588         renamed pro_epilogue_adjust_stack_{si,di}_add.
7589         (ix86_expand_prologue): Use indirect functions.  Update for renamed
7590         pro_epilogue_adjust_stack_{si,di}_sub.
7592 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
7594         * config/i386/i386.md (movmsk_df): New insn.
7595         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
7596         sequence for TARGET_SSE_MATH.
7598 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
7600         * config/mips/mips.c (mips_builtin_decls): Declare.
7601         (mips_init_builtins): Store function declarations in
7602         mips_builtin_decls.
7603         (mips_builtin_decl): New function.
7604         (TARGET_BUILTIN_DECL): Define.
7606 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
7607             Richard Henderson  <rth@redhat.com>
7609         * config/i386/cygwin.asm: Include auto-host.h.
7610         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
7611         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
7612         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
7613         alignment code from the 64-bit path.  Use gas local labels.
7614         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
7615         from _di_2.  Remove the useless constant integer argument.
7616         (pro_epilogue_adjust_stack_<mode>_3): New.
7617         (allocate_stack_worker_probe_<mode>): Macroize from
7618         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
7619         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
7620         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
7621         (__chkstk_ms): New function.
7622         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
7623         * config/i386/t-interix: Likewise.
7624         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
7625         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
7626         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
7627         * configure, config.in: Rebuild.
7629 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
7631         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
7632         statements because of the return slot optimization.
7634 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
7636         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
7637         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
7638         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7639         (class_likely_spilled_p): Rename to...
7640         (avr_class_likely_spilled_p): ...this. Make static. Change argument
7641         type to reg_class_t.
7643 2010-09-24  Jan Hubicka  <jh@suse.cz>
7645         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
7646         (lto_symtab_resolve_symbols): Set it.
7647         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
7648         store resolution field in cgraph/varpool.
7649         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
7650         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
7651         (cgraph_dump_node): Drop used_from_object_file.
7652         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
7653         (cgraph_function_body_availability): Use decl_replaceable_p.
7654         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
7655         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
7656         cgraph_used_from_object_file_p.
7657         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
7658         cgraph_used_from_object_file_p.
7659         (resolution_used_from_other_file_p): New functoin.
7660         (cgraph_used_from_object_file_p): New predicate.
7661         * cgraph.h: Include plugin-api.h
7662         (struct cgraph_local_info): Remove used_from_object_file.
7663         (struct cgraph_node): Add resolution field.
7664         (struct varpool_node): Likewise; remove used_from_object_file;
7665         reove const_value_known.
7666         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
7667         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
7668         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
7669         varpool_used_from_object_file_p): Declare.
7670         (varpool_get_node, varpool_extra_name_alias): Update prototype.
7671         * tree.h (DECL_REPLACEABLE_P): Remove.
7672         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
7673         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
7674         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7675         input_overwrite_node, input_node, input_varpool_node): Stream
7676         resolution.
7677         * expr.c (expand_expr_real_1): Use const_value_known_p
7678         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
7679         const_value_known.
7680         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
7681         (function_and_variable_visibility): Set resolution for local vars
7682         and functions; use varpool_used_from_object_file_p.
7683         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
7684         static functions.
7685         (default_binds_local_p_1): Use resolutoin info.
7686         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
7687         * varpool.c (varpool_get_node): Constify.
7688         (const_value_known_p): Do not use vnode->const_value_known;
7689         use decl_replaceable_p.
7690         (varpool_finalize_decl): Do not set const_value_known.
7691         (cgraph_variable_initializer_availability): Use decl_replaceable_p
7692         (varpool_extra_name_alias): Return new node.
7693         (varpool_used_from_object_file_p): New function.
7695 2010-09-24  Richard Henderson  <rth@redhat.com>
7697         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
7698         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
7699         (do_spill): Use REG_CFA_OFFSET.
7700         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
7701         as appropriate.
7702         (ia64_expand_epilogue): Likewise.
7703         (process_set): Split into ...
7704         (process_cfa_adjust_cfa): this,
7705         (process_cfa_register): this,
7706         (process_cfa_offset): and this new function.
7707         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
7708         instead of REG_FRAME_RELATED_EXPR.
7710 2010-09-24  Olivier Hainque  <hainque@adacore.com>
7712         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
7714 2010-09-24  Jan Hubicka  <jh@suse.cz>
7716         * doc/extend.texi: (attribute leaf): Document.
7717         * tree.c (local_define_builtin): Handle ECF_LEAF.
7718         (build_common_builtin_nodes): Set ECF_LEAF where needed.
7719         * tree.h (ECF_LEAF): New.
7720         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
7721         overwrittable and unavailable functions.
7722         (ipa_init): Put all_module_statics into optimization_summary_obstack.
7723         (copy_global_bitmap): Do not copy all_module_statics.
7724         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
7725         (propagate): Handle overwritable and unavailable leaf functions;
7726         initialize global info for overwritable and unavailable leaf functions;
7727         do not free all module statics.
7728         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
7729         local statics.
7730         * calls.c (flags_from_decl_or_type): Handle leaf.
7731         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
7732         abnormal gotos.
7734 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
7736         * gengtype.c: Reindented.
7737         * gengtype.h: Reindented.
7738         * gengtype-parse.c: Reindented.
7740 2010-09-24  Jan Hubicka  <jh@suse.cz>
7742         PR tree-optimization/45738
7743         PR tree-optimization/45741
7744         * expr.c (string_constant): Allow CONST_DECL too;
7745         check that DECL_INITIAL is set.
7746         * varpool.c (const_value_known_p): Only look into VAR_DECL
7747         and CONST_DECL.
7749 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
7751         * common.opt (undef): New.
7753 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
7755         PR middle-end/45234
7756         * rtl.h (enum global_rtl_index): Add
7757         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
7758         (LAST_VIRTUAL_POINTER_REGISTER): Define.
7759         (virtual_preferred_stack_boundary_rtx,
7760         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
7761         (LAST_VIRTUAL_REGISTER): Increase by one.
7762         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
7763         instead of LAST_VIRTUAL_REGISTER.
7764         * function.c (instantiate_new_reg): Handle
7765         virtual_preferred_stack_boundary_rtx.
7766         * emit-rtl.c (init_virtual_regs): Handle
7767         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
7768         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
7769         * explow.c (round_push): If crtl->preferred_stack_boundary
7770         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
7771         virtual_preferred_stack_boundary_rtx alignment instead of
7772         crtl->preferred_stack_boundary alignment.
7773         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
7774         macros.  Never decrease crtl->preferred_stack_boundary,
7775         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
7776         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
7777         stack_pointer_delta in dynamic allocation, even when size
7778         is constant.
7779         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
7780         macro.
7781         * print-rtl.c (print_rtx): Handle
7782         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
7783         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
7784         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
7785         * config/frv/frv.c (frv_emit_movsi): Likewise.
7786         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
7787         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
7788         Likewise.
7790         Revert:
7791         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7793         PR middle-end/45234
7794         * calls.c (expand_call): Make sure that all variable sized
7795         adjustments are multiple of preferred stack boundary after
7796         stack alignment.
7798 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
7799             Dominique Dhumieres  <dominiq@lps.ens.fr>
7801         PR bootstrap/45751
7802         * config/darwin-driver.c (darwin_default_min_version):
7803         Adjust size passed to memcpy in two places.
7805 2010-09-24  Richard Guenther  <rguenther@suse.de>
7807         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
7808         Make sure to not call set_type_context with error_mark_node.
7809         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
7811 2010-09-24  Richard Guenther  <rguenther@suse.de>
7813         * Makefile.in (OBJS-onestep): Remove.
7814         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
7815         (libbackend.a): Remove onestep support.
7816         (libbackend.o): Remove.
7817         * configure.ac (--enable-intermodule): Remove.
7818         * configure: Regenerate.
7820 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
7822         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
7823         reaching the end of a block if it occurs at a DEBUG_INSN.
7825 2010-09-09  Tristan Gingold  <gingold@adacore.com>
7827         PR target/44242
7828         * config/vms/vms-crt0-64.c: Removed.
7829         * config/vms/vms-crt0.c: Removed.
7830         * config/vms/vms-psxcrt0-64.c: Removed.
7831         * config/vms/vms-psxcrt0.c: Removed.
7832         * config/vms/vms-ucrt0.c: New file.
7833         * config/vms/t-vms64: Removed.
7834         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
7835         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
7836         * config.gcc (alpha-dec-vms): Use t-vms.
7838 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
7840         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
7841         underfull hbox in DVI output.
7842         (-fobjc-class-cxx-cdtors): Same change.
7843         (-fobjc-exceptions): Tidied up documentation.  Explain what the
7844         option does, but moved the (lenghty) description of the exception
7845         syntax into objc.texi.
7846         (-fobjc-gc): Explain that the option is not useful with the GNU
7847         runtime.
7848         (-fzero-link): Explain that the GNU runtime always works in
7849         "zero-link" mode.
7850         * doc/objc.texi: All sections: simplified @node declarations
7851         removing specification of next, previous, up node.
7852         (Objective-C): Updated introduction.
7853         (Garbage Collection): Updated.  The bohem-gc library is now
7854         included in gcc itself.  Mention that this section only applies to
7855         the GNU Objective-C runtime.
7856         (compatibility_alias): Small tidy up.
7857         (Exceptions): New section mostly containing text previously in the
7858         description of the -fobjc-exception command-line option.
7859         (Synchronization): Same.
7861 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
7863         * config/i386/i386.md (ix86_code_end): Move the initialization of
7864         xops array near the consumer.  Use AX_REG and SP_REG instead of
7865         numerical constants.
7867 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
7869         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
7870         method [methodname]' for an Objective-C method instead of the less
7871         satisfactory 'too many arguments to function' (with no method name).
7873 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
7875         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
7876         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
7877         (execute_update_addresses_taken): Remove parameter.  Execute the
7878         optimization unconditionally.
7879         * passes.c (execute_function_todo): Call execute_update_addresses_taken
7880         unconditionally if TODO_rebuild_alias is set, else only when optimizing
7881         if TODO_update_address_taken is set.
7883 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
7885         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7886         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
7887         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7888         (arm_output_addr_const_extra): Make static.
7890 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
7892         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
7893         define as unspec_volatile.
7894         ("nops"): Define as unspec_volatile. Use fputs to write to
7895         asm_out_file directly.  Output NOPs on separate lines using while loop.
7896         * config/i386/i386.c (ix86_code_end): Use fputs to write to
7897         asm_out_file directly.  Output NOPs on separate lines using while loop.
7899 2010-09-23  Richard Guenther  <rguenther@suse.de>
7901         PR tree-optimization/45565
7902         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
7903         Make sure to adjust the fndecl before replacing the stmt.
7905 2010-09-23  Richard Guenther  <rguenther@suse.de>
7907         PR middle-end/45750
7908         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
7909         gimplifying MEM_REF.
7911 2010-09-23  Alan Modra  <amodra@gmail.com>
7913         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
7914         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
7916 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
7918         PR rtl-optimization/44374
7919         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
7920         * df-core.c (df_set_bb_dirty): Set it.
7921         * ifcvt.c (find_memory): Remove function.
7922         (dead_or_predicable): Use can_move_insns_across.
7923         * df.h (can_move_insns_across): Declare function.
7924         * cfgcleanup.c (block_was_dirty): New static variable.
7925         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
7926         than df_get_bb_dirty.
7927         (try_head_merge_bb): New static function.
7928         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
7929         is set.
7930         * df-problems.c: Include "target.h"
7931         (df_simulate_find_uses): New static function.
7932         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
7933         (find_memory, find_memory_store): New static functions.
7934         (can_move_insns_across): New function.
7935         * Makefile.in (df-problems.o): Update dependencies.
7937 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
7939         PR java/44095
7940         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
7941         is specified and the suffix of the file isn't ".c".
7942         * config/sparc/linux64.h (ASM_SPEC): Likewise.
7944 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7946         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
7947         * doc/cppopts.texi: Fix markup of index entry.
7948         * doc/extend.texi (Constructing Calls): Fix markup of
7949         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
7950         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
7951         (Vague Linkage, C++ Attributes): Fix markup of index entries and
7952         keywords.
7953         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
7954         avoid long lines.
7955         (C Dialect Options, C++ Dialect Options, Warning Options)
7956         (Debugging Options, Spec Files, Darwin Options)
7957         (i386 and x86-64 Options, MIPS Options)
7958         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
7959         index entries, avoid abbreviations, allow URLs to wrap, avoid
7960         long lines, avoid overlong pages from long @itemx lists.
7961         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
7962         * doc/standards.texi (Standards): Likewise.
7963         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
7965 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
7967         * opts-common.c (prune_options): Make static.  Work with decoded
7968         options.
7969         (decode_cmdline_options_to_array): Call prune_options.  Don't
7970         resize option array here.
7971         * opts.h (prune_options): Remove prototype.
7972         * gcc.c (process_command): Take decoded options; don't call
7973         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
7974         (main): Call decode_cmdline_options_to_array here instead of
7975         prune_options.  Update call to process_command.
7976         * config/darwin-driver.c: Include opts.h.
7977         (darwin_default_min_version): Work with decoded options.  Don't
7978         handle -b or -V here.
7979         * config/darwin.h (darwin_default_min_version): Update prototype.
7980         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
7981         darwin_default_min_version.
7982         * config/i386/cygwin.h (mingw_scan): Update prototype.
7983         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
7984         * config/i386/cygwin1.c: Include opts.h.
7985         (mingw_scan): Work with decoded options.
7986         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
7987         * config/t-darwin (darwin-driver.o): Update dependencies.
7989 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
7991         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
7992         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
7993         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
7994         -force-link, -force-link=, -language, -language=,
7995         -library-directory, -library-directory=, -no-canonical-prefixes,
7996         -no-standard-libraries, -no-warnings, -optimize, -output,
7997         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
7998         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
7999         -print-file-name=, -print-libgcc-file-name,
8000         -print-multi-directory, -print-multi-lib,
8001         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
8002         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
8003         -profile, -save-temps, -shared, -specs, -specs=, -static,
8004         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
8005         symbolic): New.
8006         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
8007         * gcc.c (A Short Introduction to Adding a Command-Line Option):
8008         Remove comment.
8009         (cc1_options): Correct specs for passing down --help,
8010         --target-help and --help=*.  Add spec for passing down --version.
8011         (struct option_map, option_map, target_option_translations,
8012         translate_options): Remove.
8013         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
8014         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
8015         OPT_fhelp_ and OPT_ftarget_help.
8016         (process_command): Don't call translate_options.  Call
8017         decode_cmdline_options_to_array before checking for
8018         -no-canonical-prefixes using decoded options.
8019         * opts-common.c (tm.h): Update comment on #include.
8020         (find_opt): Allow abbreviations of long options.
8021         (struct option_map, option_map): New.
8022         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
8023         and -mno handling.
8024         (target_option_translations): New.
8025         (decode_cmdline_options_to_array): Handle
8026         TARGET_OPTION_TRANSLATE_TABLE in driver.
8027         * opts.c (common_handle_option): Don't handle OPT_fhelp,
8028         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
8030 2010-09-22  Richard Guenther  <rguenther@suse.de>
8032         * tree-inline.c (optimize_inline_calls): Schedule cleanups
8033         only if we inlined something.  Block compaction and conditional
8034         folding are done by cfg cleanup.  Schedule update-address-taken.
8035         (tree_function_versioning): Remove redundant call to number_blocks.
8036         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
8037         folding is done by cfg cleanup.
8038         * passes.c (init_optimization_passes): Remove update-address-taken
8039         pass after IPA inlining.
8041 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
8043         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
8044         to update conditions. Fix reg_mode[] check.
8046 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
8048         * config/picochip/picochip.md (movhicc): Use expand to check whether
8049         movhicc is available and split it after reload.
8051 2010-09-22  Richard Guenther  <rguenther@suse.de>
8053         * tree-ssanames.c (release_dead_ssa_names): Do not remove
8054         callee edges here.
8055         * passes.c (init_optimization_passes): Remove early CFG cleanup.
8056         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
8057         (pass_cleanup_cfg): Likewise.
8058         (execute_fixup_cfg): Cleanup.
8059         * tree-pass.h (pass_cleanup_cfg): Remove.
8061 2010-09-22  Martin Jambor  <mjambor@suse.cz>
8063         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
8064         builtins if it is true.
8065         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
8066         parameter.
8068 2010-09-22  Martin Jambor  <mjambor@suse.cz>
8070         * tree-sra.c (struct access): New field grp_no_warning.
8071         (create_access_replacement): Set TREE_NO_WARNING according to
8072          grp_no_warning.
8073         (create_artificial_child_access): Use build_ref_for_model and set
8074         grp_no_warning if build_user_friendly_ref_for_offset fails.
8075         (propagate_subaccesses_across_link): Likewise.
8077 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
8079         PR target/35664
8080         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
8081         ('f'): Likewise.
8083 2010-09-22  Tristan Gingold  <gingold@adacore.com>
8085         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
8087 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
8089         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
8090         * config/i386/i386.c (decide_alg): Update for rename.
8092 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
8094         PR rtl-optimization/45739
8095         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
8096         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
8098 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
8100         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
8101         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
8102         Remove.
8103         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
8104         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8106 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8108         PR objc/23710
8109         * c-parser.c (c_parser_objc_method_definition): Check the return
8110         value of objc_start_method_definition and if false is returned,
8111         parse the method definition but emit no code.
8113 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8115         PR objc/25965
8116         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
8117         call objc_get_interface_ivars ().
8119 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
8121         PR target/45694
8122         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
8123         static chain-register is used for 64-bit.
8125 2010-09-21  Richard Guenther  <rguenther@suse.de>
8127         * dwarf2out.c (is_cu_die): New function.
8128         (add_pubtype): Use it.
8129         (gen_subprogram_die): Likewise.
8130         (gen_struct_or_union_type_die): Likewise.
8131         (dwarf2out_finish): Likewise.
8132         (comp_unit_die): Rename to ...
8133         (single_comp_unit_die): ... this.
8134         (comp_unit_die): New function lazily constructing and
8135         returning single_comp_unit_die.
8136         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
8137         base_type_die, subrange_type_die, modified_type_die,
8138         lower_bound_default, add_bound_info, add_prototyped_attribute,
8139         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
8140         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
8141         force_decl_die, gen_namespace_die, dwarf2out_decl,
8142         dwarf2out_start_source_file, dwarf2out_end_source_file,
8143         prune_unused_types, dwarf2out_finish): Use it.
8144         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
8145         the global list of translation-unit decls.
8146         (dwarf2out_init): Do not create single_comp_unit_die here.
8147         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
8149 2010-09-21  Richard Guenther  <rguenther@suse.de>
8151         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
8152         for bool for C++.
8154 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
8156         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
8157         (qhs_extenddi_cstr): Likewise.
8158         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
8159         them for the source operand.
8161 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
8163         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
8164         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
8165         (ix86_split_ashr): Ditto.
8166         (ix86_split_lshr): Ditto.
8168 2010-09-21  Richard Guenther  <rguenther@suse.de>
8170         PR tree-optimization/45580
8171         * tree-ssa-propagate.c (substitute_and_fold): Always replace
8172         regular uses.
8173         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
8174         virtuals fold the call into a regular indirect one.
8176 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
8178         PR rtl-optimization/42775
8179         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
8180         scheduling is enabled.
8182 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
8184         PR rtl-optimization/45728
8185         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
8186         gen_lowpart_common first and if that fails, force_reg first
8187         before calling gen_lowpart.
8189         PR middle-end/45678
8190         * cfgexpand.c (expand_one_stack_var_at): Use
8191         crtl->max_used_stack_slot_alignment as max_align, instead
8192         of maximum of that and PREFERRED_STACK_BOUNDARY.
8193         Don't call update_stack_alignment.
8195 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
8197         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
8198         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
8199         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
8200         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
8201         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
8202         (build_nonstandard_integer_type): Likewise.
8203         (build_range_type_1): New function, built from...
8204         (build_range_type): ...this.  Call build_range_type_1.
8205         (build_nonshared_range_type): New function.
8206         (build_array_type_1): New function, built from...
8207         (build_array_type: ...this.  Call build_array_type_1.
8208         (build_nonshared_array_type): New function.
8209         * tree.h (build_nonshared_range_type): Declare.
8210         (build_nonshared_array_type): Likewise.
8212 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
8214         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
8215         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8216         (arm_class_likely_spilled_p): New function.
8218 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
8220         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
8221         indirect functions.
8222         (ix86_split_ashl): Ditto.
8223         (ix86_split_ashr): Ditto.
8224         (ix86_split_lshr): Ditto.
8225         (ix86_adjust_counter): Ditto.
8227 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
8229         * c-family/c-common.h (constant_string_class): Documented with
8230         comment identical to the one already in c-common.c.
8232 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
8234         * dwarf2out.c (any_cfis_emitted): New static variable.
8235         (add_fde_cfi): Set it.
8236         (dwarf2out_frame_debug): Clear it before processing,
8237         if it is set afterwards, flush any queued reg saves.
8239         PR debug/45124
8240         * dwarf2out.c (add_accessibility_attribute): Assume
8241         DW_ACCESS_private as the default for dwarf_version > 2
8242         and DW_TAG_class_type parent.
8243         (gen_inheritance_die): Assume DW_ACCESS_public as the default
8244         for dwarf_version > 2 and parent other than DW_TAG_class_type.
8246 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
8248         PR target/45726
8249         * arm.md (arm_movt): Only enable on machines with MOVT.
8251 2010-09-20  Jie Zhang  <jie@codesourcery.com>
8253         * config/arm/arm.c (arm_address_offset_is_imm): New.
8254         (arm_early_store_addr_dep): New.
8255         (arm_early_load_addr_dep): New.
8256         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
8257         (arm_early_load_addr_dep): Declare.
8258         (arm_address_offset_is_imm): Declare.
8259         * config/arm/cortex-m4.md: New file.
8260         * config/arm/cortex-m4-fpu.md: New file.
8261         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
8262         (attr generic_sched): Exclude cortexm4.
8263         (attr generic_vfp): Exclude cortexm4.
8265 2010-09-20  Richard Guenther  <rguenther@suse.de>
8267         PR middle-end/45704
8268         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
8270 2010-09-20  Jan Hubicka  <jh@suse.cz>
8272         PR tree-optimize/45605
8273         * cgraph.h (const_value_known_p): Declare.
8274         (varpool_decide_const_value_known): Remove.
8275         * tree-ssa-ccp.c (get_base_constructor): Use it.
8276         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
8277         * expr.c (string_constant): Likewise.
8278         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
8279         * ipa.c (ipa_discover_readonly_nonaddressable_var,
8280         function_and_variable_visibility): Likewise.
8281         * gimplify.c (gimplify_call_expr): Likewise.
8282         * gimple-fold.c (get_symbol_constant_value): Likewise.
8283         * varpool.c (varpool_decide_const_value_known): Replace by...
8284         (const_value_known_p): ... this one; handle other kinds of DECLs
8285         too and work for automatic vars.
8286         (varpool_finalize_decl): Use const_value_known_p.
8288 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
8290         PR target/45726
8291         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
8293 2010-09-20  Richard Guenther  <rguenther@suse.de>
8295         PR tree-optimization/45705
8296         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
8298 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
8300         PR rtl-optimization/45695
8301         * combine.c (try_combine): When splitting a two set pattern,
8302         make sure the pattern which will be put into i2 doesn't use REGs
8303         or MEMs set by insns in between i2 and i3.
8305 2010-09-19  Jan Hubicka  <jh@suse.cz>
8307         PR lto/44246
8308         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
8309         processing same node twice.
8311 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
8313         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
8314         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8315         (bfin_class_likely_spilled_p): New function
8317 2010-09-19  Ira Rosen  <irar@il.ibm.com>
8319         PR tree-optimization/45714
8320         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
8321         created in vectorizable_call instead of the original statement in
8322         def stmt updates.
8324 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
8326         * config/i386/i386-protos.h (split_double_mode): New prototype.
8327         (split_di, split_ti): Remove prototypes.
8328         * config/i386/i386.c (split_double_mode): New function.
8329         (split_di, split_ti): Remove.
8330         (ix86_expand_branch): Use split_double_mode.
8331         (ix86_split_to_parts): Ditto.
8332         (ix86_split_ashl): Ditto.
8333         (ix86_split_ashr): Ditto.
8334         (ix86_split_lshr): Ditto.
8335         (ix86_force_to_memory): Ditto.
8336         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
8338 2010-09-18  Jan Hubicka  <jh@suse.cz>
8340         PR tree-optimization/45453
8341         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
8342         virtual functions are reachable.
8343         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
8344         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
8345         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
8346         when modifying function.
8348 2010-09-18  Jan Hubicka  <jh@suse.cz>
8350         PR tree-optimization/45605
8351         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
8352         * gimple-fold.c (static_object_in_other_unit_p): New function.
8353         (canonicalize_constructor_val): Use it.
8354         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
8355         returning NULL.
8356         (gimple_fold_obj_type_ref_known_binfo): Use
8357         static_object_in_other_unit_p.
8359 2010-09-18  Richard Guenther  <rguenther@suse.de>
8361         PR tree-optimization/45709
8362         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
8363         insertions until after all PHI nodes of the block are processed.
8365 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
8367         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
8369 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
8371         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
8373 2010-09-18  Richard Guenther  <rguenther@suse.de>
8375         PR tree-optimization/45709
8376         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
8378 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
8380         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
8381         (dot_deps_stmt): Same.
8382         * graphite-poly.c (dot_lst): Same.
8383         * graphite-scop-detection.c (dot_all_scops): Same.
8384         (dot_scop): Same.
8386 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
8388         Revert:
8389         2009-12-16  Ben Elliston  <bje@au.ibm.com>
8391         * tree-data-ref.c (dot_rdg_1): Added back.
8392         (dot_rdg): Same.  Added "#if 0" around system call.
8394 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8395             Richard Henderson  <rth@redhat.com>
8397         * config/i386/i386.c (initial_ix86_tune_features): Add
8398         X86_TUNE_PAD_SHORT_FUNCTION.
8399         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
8400         (ix86_count_insn): New.
8401         (ix86_pad_short_function): Likewise.
8402         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
8404         * config/i386/i386.h (ix86_tune_indices): Add
8405         X86_TUNE_PAD_SHORT_FUNCTION.
8406         (TARGET_PAD_SHORT_FUNCTION): New.
8408         * config/i386/i386.md (UNSPEC_NOPS): New.
8409         (nops): Likewise.
8411 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8413         PR middle-end/45234
8414         * calls.c (expand_call): Make sure that all variable sized
8415         adjustments are multiple of preferred stack boundary after
8416         stack alignment.
8418 2010-09-17  DJ Delorie  <dj@redhat.com>
8420         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
8421         passed an invalid value, print an error instead of ICEing.
8422         (valid_psw_flag): New.
8423         (rx_expand_builtin): Call it for setpsw/clrpsw.
8424         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
8426         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
8427         (bitclr_in_memory): Likewise.
8428         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
8430 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8432         PR middle-end/45678
8433         * cfgexpand.c (update_stack_alignment): New.
8434         (get_decl_align_unit): Use it.
8435         (expand_one_stack_var_at): Call update_stack_alignment.
8437 2010-09-17  Richard Guenther  <rguenther@suse.de>
8439         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
8440         Properly copy the read string.
8442 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
8444         * doc/options.texi (Variable): Document.
8445         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
8446         generate target_flags declarations explicitly.  Don't define
8447         VarExists variables for the driver.
8448         * common.opt (target_flags): New Variable record.
8449         (flag_dump_unnumbered, flag_dump_unnumbered_links,
8450         flag_var_tracking, flag_var_tracking_assignments,
8451         flag_var_tracking_assignments_toggle): Don't mark variables with
8452         VarExists.
8453         * config/i386/i386.c (ix86_isa_flags): Don't define here.
8454         * config/i386/i386.opt (ix86_isa_flags): Define here.
8455         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
8456         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
8457         VarExists.
8458         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
8459         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
8460         Only define for generator programs.
8461         * rtlanal.c (target_flags): Remove.
8462         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
8463         flag_var_tracking_assignments_toggle): Remove.
8465 2010-09-17  Michael Matz  <matz@suse.de>
8467         PR tree-optimization/43432
8468         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
8469         Accept backwards consecutive accesses.
8470         (vect_create_data_ref_ptr): If step is negative generate
8471         decreasing IVs.
8472         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
8473         (perm_mask_for_reverse, reverse_vec_elements): New functions.
8474         (vectorizable_load): Handle loads with negative steps when easily
8475         possible.
8477 2010-09-03  Jan Hubicka  <jh@suse.cz>
8479         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
8481 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
8483         * config/v850/v850.c (v850_function_value_regno_p): Make static.
8484         Adjust comments. Declare.
8485         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8486         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
8488 2010-09-17  Richard Guenther  <rguenther@suse.de>
8490         * common.opt (combine): Remove.
8491         * gcc.c (default_compilers): Remove specs testing combine.
8492         The C compilers no longer can combine.
8493         (option_map): Remove -combine.
8494         (display_help): Remove -combine.
8495         (driver_handle_option): Remove OPT_combine handling.
8496         (compile_input_file_p): Remove.
8497         (do_spec): Remove code concerning combine.
8498         (main): Likewise.
8499         * doc/invoke.texi: Remove traces of -combine.
8500         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
8502 2010-09-17  Richard Guenther  <rguenther@suse.de>
8504         PR middle-end/45678
8505         * builtins.c (fold_builtin_memory_op): Always properly adjust
8506         alignment of memory accesses.
8508 2010-09-16  Jan Hubicka  <jh@suse.cz>
8510         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
8511         processing clone.
8513 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
8515         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
8517         * config/i386/i386.c (predict_jump): Add prototype.
8518         (flag_opts): Add -m8bit-idiv.
8519         (ix86_split_idivmod): New.
8521         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
8522         Add 2 splitters for SI/DI mode divide.
8523         (divmod<mode>4_1): New pattern.
8524         (udivmod<mode>4_1): Likewise.
8525         (testdi_ccno_1): Likewise.
8527         * config/i386/i386.opt (m8bit-idiv): New.
8529         * doc/invoke.texi: Document -m8bit-idiv.
8531 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
8533         PR bootstrap/45680
8534         * config/i386/i386.c (min_insn_size): Moved out of the
8535         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
8537 2010-09-16  Jan Hubicka  <jh@suse.cz>
8539         * lto-cgraph.c (lto_output_node): Fix handling of clones.
8540         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
8541         unreachable clones with reachable clones.
8542         * tree-inline.c (copy_bb): Fix sanity checking when producing
8543         unreachable clone.
8545 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
8547         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
8548         (TARGET_MEMORY_MOVE_COST): Define.
8549         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
8551 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
8553         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
8554         maybe_tidy_empty_bb.
8556         Revert:
8557         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
8558         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
8560 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
8562         * target.def (target_option.optimization): New hook.
8563         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
8564         TARGET_OPTION_OPTIMIZATION hook.
8565         * doc/tm.texi: Regenerate.
8566         * hooks.c (hook_void_int_int): New.
8567         * hooks.h (hook_void_int_int): Declare.
8568         * opts.c: Don't include tm_p.h.
8569         (decode_options): Use targetm.target_option.optimization instead
8570         of OPTIMIZATION_OPTIONS.
8571         * system.h (OPTIMIZATION_OPTIONS): Poison.
8572         * config/arm/arm-protos.h (arm_optimization_options): Remove.
8573         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
8574         (arm_optimization_options): Rename to arm_option_optimization.
8575         Make static.
8576         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
8577         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
8578         (cris_option_optimization): New.
8579         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
8580         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
8581         (crx_option_optimization): New.
8582         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
8583         * config/frv/frv-protos.h (frv_optimization_options): Remove.
8584         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
8585         (frv_optimization_options): Rename to frv_option_optimization.
8586         Make static.
8587         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
8588         * config/h8300/h8300.c (h8300_option_optimization): New.
8589         (TARGET_OPTION_OPTIMIZATION): Define.
8590         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
8591         * config/i386/i386-protos.h (optimization_options): Remove.
8592         * config/i386/i386.c (optimization_options): Rename to
8593         ix86_option_optimization.  Make static.
8594         (TARGET_OPTION_OPTIMIZATION): Define.
8595         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
8596         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
8597         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
8598         (ia64_optimization_options): Rename to ia64_option_optimization.
8599         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
8600         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
8601         commented-out definition.
8602         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
8603         instead of OPTIMIZATION_OPTIONS.
8604         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
8605         (m32r_option_optimization): New.
8606         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
8607         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
8608         Remove.
8609         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
8610         (mcore_option_optimization): New.
8611         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
8612         * config/mep/mep-protos.h (mep_optimization_options): Remove.
8613         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
8614         (mep_optimization_options): Rename to mep_option_optimization.
8615         Make static.  Take unused level and size parameters.
8616         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
8617         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
8618         (mmix_option_optimization): New.
8619         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
8620         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
8621         (pdp11_option_optimization): New.
8622         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
8623         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
8624         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
8625         (optimization_options): Rename to rs6000_option_optimization.
8626         Make static.
8627         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
8628         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
8629         * config/rx/rx.c (rx_set_optimization_options): Rename to
8630         rx_option_optimization.  Make static.  Take unused level and size
8631         parameters.
8632         (TARGET_OPTION_OPTIMIZATION): Define.
8633         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
8634         * config/s390/s390-protos.h (optimization_options): Remove.
8635         * config/s390/s390.c (optimization_options): Rename to
8636         s390_option_optimization.  Make static.  Don't mark size parameter
8637         unused.
8638         (TARGET_OPTION_OPTIMIZATION): Define.
8639         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
8640         * config/sh/sh-protos.h (sh_optimization_options): Remove.
8641         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
8642         (sh_optimization_options): Rename to sh_option_optimization.  Make
8643         static.  Don't mark parameters unused.
8644         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
8645         * config/spu/spu-protos.h (spu_optimization_options): Remove.
8646         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
8647         (spu_optimization_options): Rename to spu_option_optimization.
8648         Make static.
8649         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
8650         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
8651         (v850_option_optimization): New.
8652         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
8653         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
8654         (xtensa_option_optimization): New.
8655         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
8657 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
8659         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
8660         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
8661         * doc/tm.texi: Regenerate.
8662         * system.h (OVERRIDE_OPTIONS): Poison.
8663         * target.def (override): Default to hook_void_void.
8664         * targhooks.c (default_target_option_override): Remove.
8665         * genmodes.c, machmode.def: Update comments mentioning
8666         OVERRIDE_OPTIONS.
8667         * config/alpha/alpha-modes.def: Update comment mentioning
8668         alpha_override_options.
8669         * config/alpha/alpha-protos.h (override_options): Remove.
8670         * config/alpha/alpha.c (override_options): Rename to
8671         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
8672         (TARGET_OPTION_OVERRIDE): Define.
8673         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
8674         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
8675         of OVERRIDE_OPTIONS.
8676         * config/arc/arc-protos.h (arc_init): Remove.
8677         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
8678         (arc_init): Rename to arc_option_override.  Make static.
8679         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
8680         (OVERRIDE_OPTIONS): Remove.
8681         * config/arm/arm-protos.h (arm_override_options): Remove.
8682         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
8683         (arm_override_options): Rename to arm_option_override.  Make
8684         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
8685         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
8686         * config/arm/arm.md: Update comment referring to arm_override_options.
8687         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
8688         instead of OVERRIDE_OPTIONS.
8689         * config/avr/avr-protos.h (avr_override_options): Remove.
8690         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
8691         (avr_override_options): Rename to avr_option_override.  Make static.
8692         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
8693         * config/bfin/bfin-protos.h (override_options): Remove (twice).
8694         * config/bfin/bfin.c (override_options): Rename to
8695         bfin_option_override.  Make static.
8696         (TARGET_OPTION_OVERRIDE): Define.
8697         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
8698         * config/cris/cris-protos.h (cris_override_options): Remove.
8699         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
8700         (cris_override_options): Rename to cris_option_override.  Make static.
8701         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
8702         * config/frv/frv-protos.h (frv_override_options): Remove.
8703         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
8704         (frv_override_options): Rename to frv_option_override.  Make static.
8705         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
8706         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
8707         * config/h8300/h8300.c (h8300_init_once): Rename to
8708         h8300_option_override.  Make static.
8709         (TARGET_OPTION_OVERRIDE): Define.
8710         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
8711         * config/i386/i386-protos.h (override_options): Remove.
8712         * config/i386/i386.c (override_options): Rename to
8713         ix86_option_override_internal.  Make static.  Comments referring
8714         to this function and callers changed.
8715         (ix86_option_override): New.
8716         (TARGET_OPTION_OVERRIDE): Define.
8717         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
8718         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
8719         * config/ia64/ia64.c (ia64_file_start): Update comment referring
8720         to ia64_override_options.
8721         * config/iq2000/iq2000-protos.h (override_options): Remove.
8722         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
8723         (override_options): Rename to iq2000_option_override.  Make static.
8724         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
8725         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
8726         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
8727         (lm32_override_options): Rename to lm32_option_override.  Make static.
8728         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
8729         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
8730         (m32r_option_override): New.
8731         (m32r_init): Update comment.
8732         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
8733         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
8734         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
8735         (m68hc11_override_options): Rename to m68hc11_option_override.
8736         Make static.  Return void.
8737         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
8738         * config/m68k/m68k-protos.h (override_options): Remove.
8739         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
8740         (override_options): Rename to m68k_option_override.  Make static.
8741         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
8742         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
8743         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
8744         (mcore_override_options): Rename to mcore_option_override.  Make
8745         static.
8746         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
8747         * config/mep/mep-protos.h (mep_override_options): Remove.
8748         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
8749         (mep_override_options): Rename to mep_option_override.  Make static.
8750         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
8751         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
8752         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
8753         (mmix_override_options): Rename to mmix_option_override.  Make static.
8754         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
8755         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
8756         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
8757         (mn10300_override_options): Rename to mn10300_option_override.
8758         Make static.
8759         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
8760         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
8761         * config/moxie/moxie.c (moxie_override_options): Rename to
8762         moxie_option_override.  Make static.
8763         (TARGET_OPTION_OVERRIDE): Define.
8764         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
8765         * config/picochip/picochip-protos.h (picochip_override_options):
8766         Remove.  Update comment referring to picochip_override_options.
8767         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
8768         (picochip_override_options): Rename to picochip_option_override.
8769         Make static.  Update comment and definition of
8770         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
8771         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
8772         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8773         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8774         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8775         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8776         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8777         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
8778         instead of OVERRIDE_OPTIONS.
8779         * config/rs6000/rs6000-modes.def: Update comment referring to
8780         rs6000_override_options.
8781         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
8782         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
8783         (rs6000_override_options): Rename to
8784         rs6000_option_override_internal.  Make static.  Commented
8785         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
8786         (rs6000_option_override): New.
8787         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
8788         instead of OVERRIDE_OPTIONS.
8789         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8790         * config/s390/s390-protos.h (override_options): Remove.
8791         * config/s390/s390.c (override_options): Rename to
8792         s390_option_override.  Make static.
8793         (TARGET_OPTION_OVERRIDE): Define.
8794         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
8795         * config/score/score-protos.h (score_override_options): Remove.
8796         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
8797         (score_override_options): Rename to score_option_override.  Make
8798         static.
8799         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
8800         Update comment referring to override_options.
8801         * config/score/score3.c (score3_override_options): Rename to
8802         score3_option_override.
8803         * config/score/score3.h (score3_override_options): Rename to
8804         score3_option_override.
8805         * config/score/score7.c (score7_override_options): Rename to
8806         score7_option_override.
8807         * config/score/score7.h (score7_override_options): Rename to
8808         score7_option_override.
8809         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
8810         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
8811         (sparc_override_options): Rename to sparc_option_override.  Make
8812         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
8813         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
8814         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
8815         instead of OVERRIDE_OPTIONS.
8816         * config/spu/spu-protos.h (spu_override_options): Remove.
8817         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
8818         (spu_override_options): Rename to spu_option_override.  Make
8819         static.
8820         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
8821         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
8822         OVERRIDE_OPTIONS.
8823         * config/vax/vax-protos.h (override_options): Remove.
8824         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
8825         (override_options): Rename to vax_option_override.  Make static.
8826         Call SUBTARGET_OVERRIDE_OPTIONS.
8827         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
8828         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
8829         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
8830         * config/xtensa/xtensa-protos.h (override_options): Remove.
8831         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
8832         (override_options): Rename to xtensa_option_override.  Make static.
8833         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
8835 2010-09-16  Richard Guenther  <rguenther@suse.de>
8837         PR tree-optimization/45623
8838         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
8839         (get_constraint_for_component_ref): If computing a constraint
8840         for the rhs handle type punning through unions.
8841         (get_constraint_for_address_of): Adjust.
8842         (get_constraint_for_1): Likewise.
8843         (get_constraint_for): Likewise.
8844         (get_constraint_for_rhs): New function.
8845         (do_structure_copy): Adjust.
8846         (make_constraint_to): Likewise.
8847         (handle_const_call): Likewise.
8848         (find_func_aliases): Likewise.
8849         (process_ipa_clobber): Likewise.
8850         (create_variable_info_for): Likewise.
8852 2010-09-16  Ira Rosen  <irar@il.ibm.com>
8854         * tree-vectorizer.c: Fix documentation.
8855         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
8856         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
8857         is_pattern_stmt_p, is_loop_header_bb_p,
8858         stmt_vinfo_set_inside_of_loop_cost,
8859         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
8860         known_alignment_for_access_p): Likewise.
8861         * tree-vect-loop.c: Fix documentation.
8862         (vect_get_cost): Start function name from new line.
8863         * tree-vect-data-refs.c: Fix documentation.
8864         * tree-vect_stmts.c: Likewise.
8865         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
8866         (vectorizable_store): Free vec_oprnds if allocated.
8867         (vectorizable_condition): Initialize several variables to avoid
8868         warnings.
8869         * tree-vect-slp.c: Fix documentation.
8871 2010-09-16  Richard Guenther  <rguenther@suse.de>
8873         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
8874         is TS_TRANSLATION_UNIT_DECL.
8875         (initialize_tree_contains_struct): Adjust.
8876         (all_translation_units): New global vector.
8877         (build_translation_unit_decl): New function.
8878         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
8879         (struct tree_translation_unit_decl): New.
8880         (all_translation_units): Declare.
8881         (union tree_node): Add translation_unit_decl member.
8882         (build_translation_unit_decl): Declare.
8883         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
8884         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
8885         New function.
8886         (pack_value_fields): Call it.
8887         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
8888         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
8889         (lto_output_tree_pointers): Call it.
8890         * lto-streamer-in.c (lto_input_tree_ref): Handle references
8891         to TRANSLATION_UNIT_DECL.
8892         (unpack_ts_translation_unit_decl_value_fields): New function.
8893         (unpack_value_fields): Call it.
8894         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
8895         (lto_input_tree_pointers): Call it.
8896         * lto-streamer.c (check_handled_ts_structures): Adjust.
8897         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
8898         * c-decl.c (all_translation_units): Remove.
8899         (pop_scope): Use build_translation_unit_decl.
8900         (collect_all_refs): Adjust.
8901         (for_each_global_decl): Likewise.
8902         (c_write_global_declarations): Likewise.
8904 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
8906         PR bootstrap/45686
8907         * fold-const.c (fold_checksum_tree): Change slot from const void **
8908         to void **, use CONST_CAST_TREE to store into *slot.
8910 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
8912         * config/i386/i386.md: Remove unneeded empty conditions and
8913         preparation statements from expanders.
8914         * config/i386/mmx.md: Ditto.
8915         * config/i386/sse.md: Ditto.
8917 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
8919         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
8921 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
8923         PR rtl-optimization/45593
8924         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
8925         insns that were in delay slots as stand-alone insns.
8927 2010-09-15  Ian Lance Taylor  <iant@google.com>
8929         * incpath.c (remove_duplicates): If name is not a directory, issue
8930         a warning rather than an error.
8932 2010-09-15  Martin Jambor  <mjambor@suse.cz>
8934         PR middle-end/45644
8935         * tree-sra.c (create_access): Check for bit-fields directly.
8937 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
8939         PR tree-optimization/45633
8940         * tree-cfg.c (verify_gimple_assign_binary): Allow
8941         MINUS_EXPR with lhs and rhs1 pointer vector and
8942         rhs2 sizetype vector.
8943         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
8944         or vector pointer use TER to optimize pointer subtraction.
8946 2010-09-15  Jie Zhang  <jie@codesourcery.com>
8948         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
8949         fcmpd to fcmps.
8951 2010-09-15  Ian Lance Taylor  <iant@google.com>
8953         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
8955 2010-09-15  Ian Lance Taylor  <iant@google.com>
8957         * function.c (get_arg_pointer_save_area): Set
8958         arg_pointer_save_area_init to true.
8960 2010-09-15  Martin Jambor  <mjambor@suse.cz>
8962         * tree-sra.c (generate_subtree_copies): Updated comment.
8963         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
8964         obtained from the statement iterator instead.
8965         (load_assign_lhs_subreplacements): Removed parameters lhs and
8966         right_offset, which is obtained from top_racc instead.  Parameter lacc
8967         is now expected to be the root of the processed tree rather than root's
8968         first child.  Updated all callers.
8970 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
8972         * config/pdp11/pdp11.c (register_move_cost): Rename to
8973         pdp11_register_move_cost.
8974         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
8975         pdp11_register_move_cost.
8976         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
8977         pdp11_register_move_cost instead of register_move_cost.
8979 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
8981         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
8982         pattern for vmovn. Expansion in case of non
8983         -mvectorize-with-neon-quad.
8984         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
8985         non- -mvectorize-with-neon-quad case.
8986         (move_lo_quad_<mode>): New expansion to vmov into low part.
8987         (move_hi_quad_<mode>): New expansion to vmov into high part.
8988         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
8989         (move_lo_quad_v4sf): Likewise.
8990         (move_lo_quad_v8hi): Likewise.
8991         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
8992         low part.
8993         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
8994         high part.
8995         * config/arm/iterators.md (ANY128): New mode iterator.
8996         (V_narrow_pack): New mode attribute.
8997         (V_HALF): Add attribute.
8998         (V_DOUBLE): Add attribute.
8999         (V_mode_nunits): Add attribute.
9001 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
9003         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
9004         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
9006 2010-09-15  Olivier Hainque  <hainque@adacore.com>
9007             Jose Ruiz  <ruiz@adacore.com>
9009         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
9010         * config/alpha/osf5-unwind.h: New file.
9012 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9014         PR bootstrap/45672
9015         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
9016         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
9017         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
9019 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9021         * c-lang.h (struct lang_type): Add variable_size GTY option.
9023 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9025         PR bootstrap/45672
9026         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
9028 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9030         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
9031         result isn't used in memory address.
9033 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9035         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
9036         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
9037         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
9038         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
9039         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
9040         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
9042         * target.def: Add units_per_simd_word to vectorize.
9044         * targhooks.c (default_units_per_simd_word): New.
9045         * targhooks.h (default_units_per_simd_word): Likewise.
9046         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
9047         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9048         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
9049         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9050         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
9051         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9052         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
9053         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9055         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
9056         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
9058         * tree-vect-stmts.c: Don't include "tm_p.h".
9059         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
9060         with targetm.vectorize.units_per_simd_word.
9062         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
9064         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
9066         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
9067         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
9069         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
9070         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
9072         * doc/tm.texi: Regenerated.
9074 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9076         * tree-vect-stmts.c: Include "tm_p.h".
9078         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
9079         out of RTX_CODE.
9081 2010-09-14  Martin Jambor  <mjambor@suse.cz>
9083         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
9084         location of generated statement.  Changed all callers.
9085         (build_ref_for_model): New parameter loc which used to set location of
9086         all generated expressions.  Changed all callers.
9087         (generate_subtree_copies): Likewise.
9088         (init_subtree_with_zero): Likewise.
9089         (sra_modify_expr): Set locations of all generated statements and
9090         expressions to the location the original statement.
9091         (handle_unscalarized_data_in_subtree): Likewise.
9092         (load_assign_lhs_subreplacements): Likewise.
9093         (sra_modify_constructor_assign): Likewise.
9094         (sra_modify_assign): Likewise.
9096 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
9098         PR target/45277
9099         PR target/45363
9100         PR target/45407
9101         * doc/install.texi (sparc*-*-*): New section.
9102         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
9104 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
9106         PR middle-end/45567
9107         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
9108         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
9109         (expand_builtin): Adjust caller.
9110         (expand_builtin_unop): Only use subtarget if it has the right mode.
9112 2010-09-14  Tristan Gingold  <gingold@adacore.com>
9114         * configure.ac (plugins): Fix typos.
9115         * configure: Regenerate.
9117 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
9119         PR debug/45660
9120         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
9121         gen_type_die for function/method return type.
9123 2010-09-14  Ira Rosen  <irar@il.ibm.com>
9125         PR tree-optimization/45470
9126         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9127         can throw an exception.
9128         * tree-vect-stmts.c (vectorizable_call): Likewise.
9130 2010-09-14  DJ Delorie  <dj@redhat.com>
9132         PR target/44749
9133         * config/mep/mep-protos.h (mep_save_register_info,
9134         mep_reinit_regs, mep_init_regs): Declare.
9136         * config/mep/mep.c: Move all target definitions to the end of the
9137         file to avoid the need for duplicate declarations.
9138         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
9139         (mep_reorg_erepeat): Remove unused variables.
9140         (mep_expand_builtin): Likewise.
9142         * config/mep/mep-pragma.c: Don't include rtl.h.
9143         (INVALID_REGNUM): New.
9144         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
9145         functions.
9146         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
9147         Avoid enum/integer math.
9149 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
9151         PR target/44749
9152         * config/mep/t-mep (GTM_H): Add insn-constants.h.
9153         * config/mep/mep.c (mep_conditional_register_usage): Take no
9154         parameters.
9155         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
9156         prototype.
9157         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
9158         call to mep_conditional_register_usage.
9160 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
9162         PR debug/43937
9163         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
9164         the DECL as well.
9166 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
9168         PR rtl-optimization/45617
9169         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
9170         even if low N bits of X aren't known to be zero.
9172 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9174         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
9176         * config/i386/i386.c (initial_ix86_tune_features): Add
9177         X86_TUNE_VECTORIZE_DOUBLE.
9178         (ix86_units_per_simd_word): New.
9180         * config/i386/i386.h (ix86_tune_indices): Add
9181         X86_TUNE_VECTORIZE_DOUBLE.
9182         (TARGET_VECTORIZE_DOUBLE): New.
9183         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
9185 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
9187         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
9188         (new_temp_expr_table): Allocate call_cnt vector.
9189         (free_temp_expr_table): Free it.
9190         (process_replaceable): Add call_cnt parm and set in vector.
9191         (find_replaceable_in_bb): Skip replacement if def/use span a call.
9192         (debug_ter): Dump call_cnt value, remove stderr uses.
9194 2010-09-13  Jan Hubicka  <jh@suse.cz>
9196         * tree.c (build_zero_cst): New.
9197         * tree.h (build_zero_cst): Declare.
9198         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
9199         (get_base_constructor): Break out from ...
9200         (fold_const_aggregate_ref): Here; handle empty constructors.
9202 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9204         * config/arm/arm.md: (define_attr "conds"): Update comment.
9205         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
9206         conds attribute to clob.
9207         (arm_sync_compare_and_swapsi): Likewise.
9208         (arm_sync_compare_and_swap<mode>): Likewise.
9209         (arm_sync_lock_test_and_setsi): Likewise.
9210         (arm_sync_lock_test_and_set<mode>): Likewise.
9211         (arm_sync_new_<sync_optab>si): Likewise.
9212         (arm_sync_new_nandsi): Likewise.
9213         (arm_sync_new_<sync_optab><mode>): Likewise.
9214         (arm_sync_new_nand<mode>): Likewise.
9215         (arm_sync_old_<sync_optab>si): Likewise.
9216         (arm_sync_old_nandsi): Likewise.
9217         (arm_sync_old_<sync_optab><mode>): Likewise.
9218         (arm_sync_old_nand<mode>): Likewise.
9220 2010-09-13  Olivier Hainque  <hainque@adacore.com>
9222         * fwprop.c (forward_propagate_and_simplify): Only attach a
9223         REG_EQUAL note to an insn if the destination is a register.
9224         * gcse.c (try_replace_reg): Likewise.
9226 2010-09-13  Richard Guenther  <rguenther@suse.de>
9228         PR tree-optimization/45611
9229         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
9230         (copy_ref_info): Likewise.
9232 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
9234         PR debug/45604
9235         PR debug/45419
9236         PR debug/45408
9237         * tree-pretty-print.c (dump_generic_node): Disregard top-level
9238         types of MEM_REF pointer types to the same type.
9240 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
9242         PR rtl-optimization/41087
9243         * ifcvt.c (noce_get_condition): Don't allow conditions with
9244         side-effects.
9246 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
9248         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9249         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
9250         * config/frv/frv.c (frv_register_move_cost): Make static. Change
9251         arguments type to reg_class_t. Add mode argument.
9252         (frv_memory_move_cost): New.
9253         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
9255 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
9257         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
9258         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
9260 2010-09-10  Jan Hubicka  <jh@suse.cz>
9262         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
9264 2010-09-10  Richard Guenther  <rguenther@suse.de>
9266         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
9267         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
9268         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
9269         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
9270         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
9272 2010-09-10  Richard Guenther  <rguenther@suse.de>
9274         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
9275         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
9276         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
9277         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
9279 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9281         PR middle-end/45634
9282         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
9283         of string folding is of integral type.
9285 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
9287         * doc/invoke.texi (-x): Fix typo.
9289 2010-09-10  Richard Guenther  <rguenther@suse.de>
9291         PR debug/44115
9292         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
9293         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9294         Output DECL_DEBUG_EXPR.
9295         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9296         Input DECL_DEBUG_EXPR.
9298 2010-09-10  Richard Guenther  <rguenther@suse.de>
9300         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
9301         (build_index_type): Implement in terms of build_range_type.
9302         (build_range_type): Do not allow NULL_TREE type, improve
9303         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
9304         if we didn't hash.
9305         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
9306         create a distinct copy of the type.
9308 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
9310         * configure: Regenerated.
9311         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
9313 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9315         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
9316         * config/arm/cortex-a9-neon.md: New and partially generated.
9317         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
9319 2010-09-10  Richard Guenther  <rguenther@suse.de>
9321         * tree.h (build_index_2_type): Remove.
9322         * tree.c (build_index_2_type): Remove.
9324 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
9326         PR bootstrap/45630
9327         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
9328         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
9329         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
9331 2010-09-10  Martin Jambor  <mjambor@suse.cz>
9333         PR tree-optimization/44972
9334         * tree-sra.c: Include toplev.h.
9335         (build_ref_for_offset): Entirely reimplemented.
9336         (build_ref_for_model): New function.
9337         (build_user_friendly_ref_for_offset): New function.
9338         (analyze_access_subtree): Removed build_ref_for_offset check.
9339         (propagate_subaccesses_across_link): Likewise.
9340         (create_artificial_child_access): Use
9341         build_user_friendly_ref_for_offset.
9342         (propagate_subaccesses_across_link): Likewise.
9343         (ref_expr_for_all_replacements_p): Removed.
9344         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
9345         (sra_modify_expr): Use build_ref_for_model.
9346         (load_assign_lhs_subreplacements): Likewise.
9347         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
9348         checks for return values of build_ref_for_offset.
9349         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
9350         build_ref_for_offset.
9351         * ipa-prop.h: Include gimple.h
9352         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
9353         (ipa_analyze_indirect_call_uses): Update comment.
9354         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
9355         (IPA_PROP_H): Likewise.
9357 2010-09-10  Martin Jambor  <mjambor@suse.cz>
9359         PR tree-optimization/44972
9360         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
9361         calling build_ref_for_offset.
9363 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9365         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
9366         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
9367         * config/arm/arm-tune.md: Regenerate.
9368         * doc/invoke.texi (ARM Options): Document it.
9370 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
9372         * config/i386/i386.c: Include sched-int.h.
9373         (TARGET_SCHED_DISPATCH): Defined.
9374         (TARGET_SCHED_DISPATCH_DO): Defined.
9375         (DISPATCH_WINDOW_SIZE): Defined.
9376         (MAX_DISPATCH_WINDOWS): Defined.
9377         (MAX_INSN): Defined.
9378         (MAX_IMM): Defined.
9379         (MAX_IMM_SIZE): Defined.
9380         (MAX_IMM_32): Defined.
9381         (MAX_IMM_64): Defined.
9382         (MAX_LOAD): Defined.
9383         (MAX_STORE): Defined.
9384         (BIG): Defined.
9385         (dispatch_group): New.
9386         (num_allowable_groups): New.
9387         (group_name): New.
9388         (sched_insn_info_s): New.
9389         (dispatch_windows_s): New.
9390         (imm_info_s): New.
9391         (dispatch_window_list): New.
9392         (dispatch_window_list1): New.
9393         (get_mem_group): New.
9394         (is_cmp): New.
9395         (dispatch_violation): New.
9396         (is_branch): New.
9397         (is_prefetch): New.
9398         (init_window): New.
9399         (allocate_window): New.
9400         (init_dispatch_sched): New.
9401         (is_end_basic_block): New.
9402         (process_end_window): New.
9403         (allocate_next_window): New.
9404         (find_constant_1): New.
9405         (find_constant): New.
9406         (get_num_immediates): New.
9407         (has_immediate): New.
9408         (get_insn_path): New.
9409         (get_insn_group): New.
9410         (count_num_restricted): New.
9411         (fits_dispatch_window): New.
9412         (add_insn_window): New.
9413         (add_to_dispatch_window): New.
9414         (debug_dispatch_window_file): New.
9415         (debug_dispatch_window): New.
9416         (debug_insn_dispatch_info_file): New.
9417         (debug_ready_dispatch): New.
9418         (do_dispatch): New.
9419         (has_dispatch): New.
9420         * config/i386/i386.h (debug_ready_dispatch): Declared.
9421         (debug_dispatch_window): Declared.
9422         * config/i386/i386.opt (mdispatch-scheduler): New flag.
9423         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
9424         (TARGET_SCHED_DISPATCH_DO): New.
9425         * doc/tm.texi: Regererated.
9426         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
9427         ready_remove_first_dispatch
9428         (schedule_block): Call targetm.sched.dispatch and
9429         targetm.sched.dispatch_do.
9430         (sched_init): Call targetm.sched.dispatch and
9431         targetm.sched.dispatch_do.
9432         (ready_remove_first_dispatch): New.
9433         (number_in_ready): New.
9434         (get_ready_element): New.
9435         * hooks.c (hook_bool_rtx_int_false): New.
9436         (hook_void_rtx_int): New.
9437         * hooks.h (hook_bool_rtx_int_false): Declared.
9438         (hook_void_rtx_int): Declared.
9439         * sched-int.h (IS_DISPATCH_ON): Defined.
9440         (IS_CMP): Defined.
9441         (DISPATCH_VIOLATION): Defined.
9442         (FITS_DISPATCH_WINDOW): Defined.
9443         (DISPATCH_INIT): Defined.
9444         (ADD_TO_DISPATCH_WINDOW): Defined.
9445         (get_ready_element): Declared.
9446         (number_in_ready): Declared.
9447         * target.def (dispatch): Defined.
9448         (dispatch_do): Defined.
9450 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
9452         PR middle-end/45312
9453         * reload1.c (merge_assigned_reloads): Remove.
9454         (reload_as_needed): Don't call it.
9456 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
9458         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
9459         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9460         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9462 2010-09-09  Matthias Klose  <doko@ubuntu.com>
9464         PR bootstrap/43847
9465         * configure.ac (--enable-plugin): Enhance for cross builds.
9466         * configure: Regenerate.
9468 2010-09-09  Jan Hubicka  <jh@suse.cz>
9470         PR tree-optimization/45598
9471         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
9472         string folding is of integral type.
9474 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
9476         * configure.ac (gnu_indirect_function): New test.
9477         * configure: Rebuilt.
9478         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
9479         * defaults.h (IFUNC_ASM_TYPE): Provide default.
9481         * doc/extend.texi (Function Attributes): Document ifunc.
9482         * varasm.c (do_assemble_alias): Deal with ifuncs too.
9484 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
9486         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
9487         epilogue instruction move.
9489 2010-09-09  Jan Hubicka  <jh@suse.cz>
9491         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
9492         command line to allow more partitions than input files.
9494 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
9496         PR middle-end/44554
9497         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
9499 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
9501         PR middle-end/40386
9502         * ira.c (pseudo_for_reload_consideration_p): Don't use
9503         flag_ira_share_spill_slots.
9505 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9507         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
9508         point zero operands that fit into a single GPR.
9509         (s390_preferred_reload_class): Ensure we only return general-purpose
9510         register classes.
9511         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
9512         floating-point zero operands into GPRs.
9513         ("*mov<mode>_64"): Likewise.
9514         ("mov<mode>"): Likewise using lhi.
9516 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9518         * config/s390/s390.c (s390_symref_operand_p): Return false for
9519         literal pool references.
9520         (s390_check_qrst_address): Update caller.
9522 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
9524         * config/i386/predicates.md (ext_register_operand): Check that
9525         SUBREG_REG is really a register before looking for REGNO.
9526         (reg_not_xmm0_operand): Handle SUBREGs correctly.
9527         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
9529 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
9531         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
9532         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
9533         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
9534         * print-rtl.c (print_rtx): Likewise.
9535         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9536         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
9537         for ADDR_EXPR with non-addressable object.
9538         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
9539         (struct dw_val_struct): Add v.val_decl_ref.
9540         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
9541         Handle DW_OP_GNU_implicit_pointer.
9542         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
9543         (get_ref_die_offset_label): New function.
9544         (implicit_ptr_descriptor): New function.
9545         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
9546         (loc_descriptor): Likewise.
9547         (gen_variable_die): Put even definitions into decl_die_table.
9548         (resolve_addr_in_expr): Resolve still unresolved
9549         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
9550         return false.
9551         (dwarf2out_finish): Call output_location_lists after outputting
9552         .debug_info and .debug_abbrev instead of before.
9554 2010-09-09  Roland McGrath  <roland@redhat.com>
9556         * dwarf2out.c (DWARF_REF_SIZE): Define.
9557         (size_of_loc_descr): Use it for DW_OP_call_ref.
9559 2010-09-09  Alan Modra  <amodra@gmail.com>
9561         * doc/invoke.text: Reinstate mcmodel=medium.
9562         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
9563         CMODEL_MEDIUM as default.
9564         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
9565         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
9566         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
9567         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
9569 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9571         PR target/45250
9572         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
9573         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
9574         (builtin_longjmp): Likewise.
9575         (allocate_stack): Use hard_frame_pointer_rtx instead of
9576         frame_pointer_rtx.
9577         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
9578         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
9579         (pa_can_eliminate): Likewise.
9580         (TARGET_INTERNAL_ARG_POINTER): Define.
9581         (TARGET_CAN_ELIMINATE): Define.
9582         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
9583         pointer.
9584         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
9585         (pa_internal_arg_pointer, pa_can_eliminate,
9586         pa_initial_elimination_offset): New.
9587         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
9588         (HARD_FRAME_POINTER_REGNUM): Set to register three.
9589         (INITIAL_FRAME_POINTER_OFFSET): Delete.
9590         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
9591         Define.
9592         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
9593         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
9594         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
9595         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
9596         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
9597         new soft frame pointer.
9598         * config/pa/pa64-regs.h: Likewise.
9600 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
9602         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
9603         numerical constant.
9604         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
9606 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
9608         PR debug/45531
9609         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
9611 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
9613         PR debug/45419
9614         PR debug/45408
9615         * tree-pretty-print.c (dump_generic_node): Disregard top-level
9616         qualifiers in otherwise equal MEM_REF pointer types.
9617         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
9618         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
9620 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9622         PR target/44392
9623         * config/arm/arm.md (bswapsi2): Handle condition correctly
9624         for armv6 and optimize_size.
9626 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9628         PR other/18555
9629         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
9631 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
9633         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
9634         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
9635         ix86_expand_strlen, legitimate_pic_address_disp_p,
9636         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
9637         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
9638         ix86_check_movabs, ix86_secondary_memory_needed): Change function
9639         prototype to bool.
9640         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
9641         return_in_memory_ms_64, ix86_check_movabs,
9642         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
9643         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
9644         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
9645         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
9646         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
9647         ix86_secondary_memory_needed): Change to bool.  Return
9648         "true" and "false" values.
9649         * config/i386/i386.md: Return "true" and "false" values.
9651 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9653         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9654         run_expensive_tests.
9656 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9658         * toplev.c (output_stack_usage): Use lbasename instead of basename.
9660 2010-09-08  Martin Jambor  <mjambor@suse.cz>
9662         PR other/45443
9663         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
9664         at -O3.
9666 2010-09-08  Richard Guenther  <rguenther@suse.de>
9668         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
9669         (visit): Adjust.
9670         (iterative_hash_gimple_type): Likewise.
9671         (gimple_type_hash): Likewise.
9672         (gimple_register_type): Likewise.
9673         (print_gimple_types_stats): Likewise.
9674         (free_gimple_type_tables): Likewise.
9676 2010-09-08  Michael Matz  <matz@suse.de>
9678         PR tree-optimization/43430
9679         * tree-vect-stmts.c (vectorizable_condition): Support multiple
9680         copies for conditional statements if it's not part of a reduction.
9682 2010-09-08  Michael Matz  <matz@suse.de>
9684         PR tree-optimization/33244
9685         * tree-ssa-sink.c (statement_sink_location): Don't sink into
9686         empty loop latches.
9688 2010-09-08  Richard Guenther  <rguenther@suse.de>
9690         PR tree-optimization/45578
9691         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
9692         Be more careful when transfering alignment information to
9693         the new induction variable.
9694         (copy_ref_info): Likewise.
9696 2010-09-08  Richard Guenther  <rguenther@suse.de>
9698         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
9699         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
9701 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
9703         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
9704         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
9706 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
9708         PR doc/45587
9709         * doc/md.texi: Fixed modes on several standard pattern names.
9711 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
9713         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
9714         (ashl<mode>3): ...this.
9715         (loongson_psra<V_suffix>): Rename to...
9716         (ashr<mode>3): ...this.
9717         (loongson_psrl<V_suffix>): Rename to...
9718         (lshr<mode>3): ...this.
9719         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
9720         (CODE_FOR_loongson_psllw): Define.
9721         (CODE_FOR_loongson_psrlh): Define.
9722         (CODE_FOR_loongson_psrlw): Define.
9723         (CODE_FOR_loongson_psrah): Define.
9724         (CODE_FOR_loongson_psraw): Define.
9726 2010-09-07  Richard Henderson  <rth@redhat.com>
9728         * tree-vect-data-refs.c: Include tm_p.h.
9729         * Makefile.in (tree-vect-data-refs.o): Update deps.
9730         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
9731         Move delarations outside #ifdef RTX_CODE.
9733 2010-09-07  Richard Henderson  <rth@redhat.com>
9735         * final.c (rest_of_handle_final): Unconditionally do
9736         output_function_exception_table before assemble_end_function.
9738 2010-09-07  Jan Hubicka  <jh@suse.cz>
9740         * tree-inline.c (tree_inlinable_function_p): Do not test
9741         DECL_REPLACEABLE_P.
9742         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
9743         update_callee_keys, cgraph_decide_inlining): Test function availability.
9744         * cif-code.def (OVERWRITABLE): New code.
9746 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
9747             Jack Howarth  <howarth@bromo.med.uc.edu>
9749         PR target/36502
9750         PR target/42313
9751         PR target/44651
9752         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
9753         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
9754         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
9755         MAX macro.
9757 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9759         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
9760         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
9762 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9764         * config.gcc: Don't append t-android for Android targets.
9766         * config/t-android: Removed.
9768 2010-09-07  Richard Henderson  <rth@redhat.com>
9770         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
9771         * doc/tm.texi.in: Add doc marker.
9772         * doc/tm.texi: Rebuild.
9773         * except.c (switch_to_exception_section): Always build.
9774         (output_one_function_exception_table): Move section switch,
9775         personality output, and label output ...
9776         (output_function_exception_table): ... here.  Use the new
9777         personality hook.
9779         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
9780         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
9781         TARGET_ASM_INIT_SECTIONS): New.
9782         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
9783         make static.
9784         (TARGET_ASM_UNWIND_EMIT): Update to match.
9785         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
9787         * config/arm/arm.c (arm_asm_emit_except_personality): New.
9788         (arm_asm_init_sections): New.
9789         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
9791 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9793         * config/arm/arm.md: Remove unused variable.
9795 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
9797         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9798         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
9799         (m32r_memory_move_cost): New function.
9801 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9803         * config.gcc: Append t-android for Android targets.
9805         * config/t-android: New.
9807 2010-09-07  Richard Henderson  <rth@redhat.com>
9809         * target.def (unwind_emit_before_insn): New hook.
9810         * doc/tm.texi.in: Add @hook marker for it.
9811         * doc/tm.texi: Rebuild.
9812         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
9814 2010-09-07  Martin Jambor  <mjambor@suse.cz>
9816         PR fortran/43665
9817         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
9818         are any type attributes.
9820 2010-09-07  Jan Hubicka  <jh@suse.cz>
9822         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
9823         array_ref_low_bound in string access folding.
9825 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
9827         PR target/45206
9828         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
9829         eh_return fixup sequence.
9831 2010-09-07  Jan Hubicka  <jh@suse.cz>
9833         * gimple-fold.c (maybe_fold_reference): Verify that operand is
9834         gimple_min_invariant.
9836 2010-09-07  Richard Guenther  <rguenther@suse.de>
9838         PR middle-end/45569
9839         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
9840         nor CONSTRUCTOR can trap.
9841         * tree-complex.c (update_complex_assignment): Update EH info.
9843 2010-09-07  Richard Guenther  <rguenther@suse.de>
9845         PR middle-end/45569
9846         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
9847         * passes.c (execute_function_todo): Do not verify anything if
9848         we saw errors.
9850 2010-09-07  Richard Guenther  <rguenther@suse.de>
9852         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
9854 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
9856         PR target/43137
9857         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
9858         New define_mode_attrs.
9859         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
9860         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
9861         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
9862         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
9863         Remove pool_range attribute.
9864         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
9865         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
9866         pool_range and neg_pool_range attributes.
9867         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
9868         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
9869         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
9871 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9873         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
9874         check glibc.
9876 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
9878         PR target/22152
9879         * config/i386/mmx.md (*mov<mode>_internal_rex64,
9880         *mov<mode>_internal_avx, *mov<mode>_internal,
9881         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
9882         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
9884 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
9886         * c-typeck.c (do_warn_double_promotion): Remove.
9887         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
9888         Objective-C++ too.
9890 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
9892         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
9893         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
9894         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
9895         argument type to reg_class_t. Change result type to bool.
9896         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9898 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
9900         PR libobjc/19850
9901         * gthr-posix.h (__gthread_objc_thread_detach): Use
9902         _objc_thread_attribs when detaching a thread.
9903         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
9905 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9907         PR target/45524
9908         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
9909         * configure: Regenerated.
9911 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9913         * combine.c (try_combine): Set subst_low_luid to i0.
9915 2010-09-06  Richard Guenther  <rguenther@suse.de>
9917         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
9918         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
9919         (build_aligned_type): Declare.
9920         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
9921         (check_aligned_type): New function.
9922         (build_aligned_type): Likewise.
9923         * expr.c (expand_assignment): Handle misaligned stores via
9924         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
9925         (expand_expr_real_1): Likewise.
9926         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
9927         * tree-vect-stmts.c (vectorizable_store): Do not build
9928         MISALIGNED_INDIRECT_REF but initialize alignment information.
9929         (vectorizable_load): Likewise.
9930         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
9931         handling.
9932         * cfgexpand.c (expand_debug_expr): Likewise.
9933         * dwarf2out.c (loc_list_from_tree): Likewise.
9934         * fold-const.c (maybe_lvalue_p): Likewise.
9935         (operand_equal_p): Likewise.
9936         (build_fold_addr_expr_with_type_loc): Likewise.
9937         * gimplify.c (gimplify_addr_expr): Likewise.
9938         (gimplify_expr): Likewise.
9939         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
9940         (verify_gimple_assign_single): Likewise.
9941         * tree-dump.c (dequeue_and_dump): Likewise.
9942         (tree_could_trap_p): Likewise.
9943         * tree-predcom.c (ref_at_iteration): Likewise.
9944         * tree-pretty-print.c (dump_generic_node): Likewise.
9945         (op_code_prio): Likewise.
9946         (op_symbol_code): Likewise.
9947         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
9948         * tree-ssa-loop-im.c (for_each_index): Likewise.
9949         (gen_lsm_tmp_name): Likewise.
9950         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
9951         (find_interesting_uses_address): Likewise.
9952         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
9953         * tree-ssa-operands.c (get_expr_operands): Likewise.
9954         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9955         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9956         (ao_ref_init_from_vn_reference): Likewise.
9957         * tree.c (staticp): Likewise.
9958         (build1_stat): Likewise.
9959         (reference_alias_ptr_type): Likewise.
9960         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
9961         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
9962         MISALIGNED_INDIRECT_REF handling.
9964 2010-09-06  Richard Guenther  <rguenther@suse.de>
9966         PR tree-optimization/45534
9967         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
9968         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
9969         on the target.
9970         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
9971         valid on the target.
9973 2010-09-06  Andreas Schwab  <schwab@redhat.com>
9975         * configure.ac: Quote argument of AC_MSG_WARN.
9976         * configure: Regenerate.
9978 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
9980         * sel-sched.c (move_cond_jump): Correct arguments to
9981         maybe_tidy_empty_bb.
9982         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
9984 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
9986         PR rtl-optimization/44919
9987         * sel-sched.c (move_cond_jump): Remove assert, check that
9988         the several blocks case can only happen with mutually exclusive
9989         insns instead.  Rewrite the movement code to support moving through
9990         several basic blocks.
9992 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
9994         * config/i386/i386.md (iptrsize): New mode attribute.
9995         (tp_seg): Ditto.
9996         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
9997         mode iterator.
9998         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
9999         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
10000         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
10001         (stack_tls_protect_set_<mode>): Ditto from
10002         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
10003         of thread base pointer load.
10004         (stack_tls_protect_test_<mode>): Ditto from
10005         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
10006         of thread base pointer load.
10007         (stack_protect_set): Rewrite using indirect functions.
10008         (stack_protect_test): Ditto.
10009         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
10010         (ix86_print_operand): Handle '@'.
10012 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
10014         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
10015         MINUS_EXPR.
10017 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
10019         * doc/invoke.texi: Document -Wdouble-promotion.
10020         * c-typeck.c (convert_arguments): Check for implicit conversions
10021         from float to double.
10022         (do_warn_double_promotion): New function.
10023         (build_conditional_expr): Use it.
10024         (build_binary_op): Likewise.
10026 2010-09-05  Richard Guenther  <rguenther@suse.de>
10028         PR tree-optimization/45535
10029         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
10030         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
10031         dereferencing it.
10032         (indirect_refs_may_alias_p): Likewise.
10034 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
10036         * config/sh/sh.c (sh_option_override): Make static.
10037         Adjust comments.  Declare.
10038         (sh_function_value_regno_p): Likewise.
10039         (sh_register_move_cost): Modify the arguments, make static.
10040         Adjust comments.  Declare.
10041         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
10042         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10043         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
10044         REGISTER_MOVE_COST): Delete.
10045         * config/sh/sh-protos.h (sh_override_options): Delete.
10046         (sh_register_move_cost): Delete.
10047         (sh_function_value_regno_p): Delete.
10049 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
10051         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
10052         m32r_function_value_regno_p): New functions.
10053         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10054         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
10055         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
10056         FUNCTION_VALUE_REGNO_P): Remove.
10058 2010-09-04  Jan Hubicka  <jh@suse.cz>
10060         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
10061         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
10062         fold_read_from_constant_string.
10064         * gimple.h (canonicalize_constructor_val): Declare.
10065         * gimple-fold.c (canonicalize_constructor_val): New function.
10066         (get_symbol_constant_value):Use it.
10067         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
10069 2010-09-04  Jan Hubicka  <jh@suse.cz>
10071         * tree-switch-conversion.c (build_one_array): Set constructor to be
10072         static.
10073         * varpool.c (varpool_finalize_decl): Compute const_value_known.
10075 2010-09-04  Richard Guenther  <rguenther@suse.de>
10077         PR bootstrap/45519
10078         * tree-flow.h (force_gimple_operand_1): Declare.
10079         (force_gimple_operand_gsi_1): Likewise.
10080         * gimplify.c (force_gimple_operand_1): New worker taking a
10081         gimple predicate for ...
10082         (force_gimple_operand): ... which now wraps it.
10083         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
10084         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
10085         last change.
10086         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
10087         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
10088         (create_mem_ref): Likewise.
10090 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
10092         * config/i386/predicates.md (sse_reg_operand): New predicate.
10093         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
10094         predicate for operand 1.
10095         (XFmode push splitter): Use fp_register_operand predicate
10096         for operand 1.
10097         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
10098         (SF-DF float_extend push splitter): Add reload_completed insn
10099         predicate.
10100         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
10101         MODEF mode macro.  Add reload_completed insn predicate.
10103 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
10105         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
10106         (struct df_extract_ref): Remove.
10107         (union df_ref_d): Remove extract_ref member.
10108         (df_ref_create): Remove last three arguments.
10109         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
10110         * df-scan.c (df_ref_record): Remove last three arguments, do not
10111         pass them to df_ref_create_structure.
10112         (df_uses_record): Remove first and last three arguments.  Replace
10113         first argument with DF_REF_REGULAR, adjust calls to remove the
10114         width, offset and mode.  Always call recursively on the second
10115         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
10116         (df_ref_create_structure): Remove first argument.
10117         (struct df_scan_problem_data): Remove ref_extract_pool.
10118         (df_scan_free_internal): Do not free it.
10119         (df_scan_alloc): Do not allocate it.
10120         (df_ref_create): Remove last three arguments, do not pass them to
10121         df_ref_create_structure.
10122         (df_free_ref): Remove DF_REF_EXTRACT case.
10123         (df_notes_rescan): Adjust call to df_uses_record.
10124         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
10125         Remove DF_REF_EXTRACT case.
10126         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
10127         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
10128         and SUBREG definitions.
10129         (df_get_conditional_uses): Remove references to width/offset/mode,
10130         adjust call to df_ref_create_structure.
10131         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10132         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
10133         calls to df_uses_record and df_ref_record.
10134         * fwprop.c (update_df): Remove references to width/offset/mode,
10135         adjust call to df_ref_create.
10137 2010-09-03  Jan Hubicka  <jh@suse.cz>
10139         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
10140         (build_cdtor_fns): Update use of build_cdtor.
10142 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
10144         * doc/options.texi (SeparateAlias): Document.
10145         * opt-functions.awk (switch_flags): Handle SeparateAlias.
10146         * opth-gen.awk: Generate enumeration names for options marked
10147         SeparateAlias, but not for those marked Ignore.
10148         * opts-common.c (generate_canonical_option): Don't output separate
10149         argument for options marked CL_SEPARATE_ALIAS.
10150         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
10151         * opts.h (CL_SEPARATE_ALIAS): New.
10152         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10153         CL_COMMON): Adjust definitions.
10154         * config/i386/darwin.opt, config/mips/sde.opt: New.
10155         * common.opt (fdump-final-insns): New.
10156         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10157         i386/darwin.opt.
10158         (mips*-sde-elf*): Add mips/sde.opt.
10159         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
10160         -mno-data-in-code and -mcode-xonly here.
10161         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
10162         * gcc.c (option_map): Add "j" to --dump entry.
10163         (translate_options): Don't translate -d to -foutput-class-dir= here.
10165 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
10167         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
10168         DR_IS_WRITE.
10169         (compute_all_dependences): Same.
10170         (create_rdg_edge_for_ddr): Same.
10171         * tree-data-ref.h (DR_IS_WRITE): New.
10172         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
10173         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
10174         (write_memrefs_written_at_least_once): Same.
10175         * tree-predcom.c (suitable_component_p): Same.
10176         (determine_roots_comp): Same.
10177         (execute_load_motion): Same.
10178         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
10179         (vect_enhance_data_refs_alignment): Same.
10180         (vect_analyze_group_access): Same.
10182 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
10184         PR testsuite/42843
10185         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
10186         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
10188 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
10190         * dwarf2out.c (file scope): Remove #if0'd code.
10191         (gen_subprogram_die): Same.
10193 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
10195         PR middle-end/45484
10196         * dwarf2out.c (flush_queued_reg_saves): Rename to...
10197         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
10198         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
10199         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
10200         * config/i386/i386.c (output_set_got): Call it.
10202 2010-09-03  Michael Matz  <matz@suse.de>
10204         PR middle-end/45415
10205         * tree-sra.c (sra_modify_assign): If we modify the statement,
10206         say so.
10208         * tree-ssa.c (verify_ssa): Check number of operands and links
10209         per statement to agree.
10211 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
10212             Iain Sandoe  <iains@gcc.gnu.org>
10214         PR target/45476
10215         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
10216         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
10217         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
10219 2010-09-03  Richard Guenther  <rguenther@suse.de>
10221         * lto-streamer-out.c (output_function): Output function
10222         start and end loci.
10223         * lto-streamer-in.c (input_function): Input function start
10224         and end loci.
10226 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10228         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
10229         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
10230         * configure: Regenerate.
10231         * aclocal.m4: Regenerate.
10233 2010-09-03  Jan Hubicka  <jh@suse.cz>
10235         PR lto/44812
10236         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
10237         on functions/variables in other partition.
10239 2010-09-03  Jan Hubicka  <jh@suse.cz>
10241         * cgraph.h (struct varpool_node): Add const_value_known.
10242         (varpool_decide_const_value_known): Declare.
10243         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
10244         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
10245         (input_varpool_node): Restore const_value_known.
10246         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
10247         initializer folding.
10248         * ipa.c (ipa_discover_readonly_nonaddressable_var,
10249         function_and_variable_visibility): Compute const_value_known.
10250         * gimple-fold.c (get_symbol_constant_value): Use varpool for
10251         initializer folding.
10252         * varpool.c (varpool_decide_const_value_known): New function.
10254 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
10256         * config/i386/i386.md: Remove empty preparation statements
10257         from splitters.
10259 2010-09-03  Jan Hubicka  <jh@suse.cz>
10261         * passes.c (rest_of_decl_compilation): Do not add local vars into
10262         varpool.
10263         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
10264         static or extern vars are in varpool.
10265         (varpool_finalize_decl): Sanity check that only static vars are
10266         finalized.
10268 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
10270         PR debug/45500
10271         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
10272         not just generic vectors with BLKmode.
10274 2010-09-03  Richard Guenther  <rguenther@suse.de>
10276         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
10277         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
10278         * tree.h (TMR_SYMBOL): Remove.
10279         (TMR_BASE, TMR_OFFSET): Adjust.
10280         (TMR_INDEX2): New.
10281         * alias.c (ao_ref_from_mem): Use TMR_BASE.
10282         * builtins.c (get_object_alignment): Merge TMR_BASE and
10283         TMR_SYMBOL handling.
10284         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
10285         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
10286         handling.  Also allow TARGET_MEM_REF as base address.
10287         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
10288         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
10289         base.  Gimplify TMR_INDEX2.
10290         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
10291         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10292         (get_addr_base_and_unit_offset): Likewise.
10293         * tree-eh.c (tree_could_trap_p): Likewise.
10294         * tree-pretty-print.c (dump_generic_node): Likewise.
10295         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
10296         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
10297         base to index2.
10298         (get_address_description): Reconstruct addres description
10299         from merged TMR_BASE and TMR_INDEX2.
10300         (maybe_fold_tmr): Fold propagated addresses.
10301         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
10302         MEM_REF and TARGET_MEM_REF paths.
10303         (indirect_refs_may_alias_p): Likewise.
10304         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
10305         instead of TMR_SYMBOL.
10306         * tree-ssa-operands.c (get_tmr_operands): Simplify.
10307         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
10308         according to changes ...
10309         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
10310         Split TARGET_MEM_REF into two fields plus the base.
10311         * tree.c (mem_ref_offset): Simplify.
10312         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
10313         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10314         Strip NOPs when folding MEM_REF addresses.
10315         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
10316         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
10317         (fold_gimple_assign): ... not here.
10319 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
10321         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
10322         * config/mips/mips.c (mips_shift_truncation_mask): New function.
10323         (TARGET_SHIFT_TRUNCATION_MASK): Define.
10325 2010-09-02  Richard Henderson  <rth@redhat.com>
10327         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
10328         instead of readelf in the test.
10329         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
10330         in the .debug_frame section for coff targets.
10331         * configure: Rebuild.
10333 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
10335         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
10336         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
10337         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10338         (m32c_class_likely_spilled_p): Make static. Change argument type to
10339         reg_class_t. Change result type to bool.
10341 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10343         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
10344         to convert (double)(long) into a single FRIZ instruction or not
10345         when -ffast-math is used.
10347         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
10348         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
10349         or FRIZ instruction if -ffast-math.
10350         * config/rs6000/rs6000.md (friz): Ditto.
10352         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
10354 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
10356         * opth-gen.awk (quote, comma): Remove unused variables.
10358 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
10360         * arm.c (arm_override_options): Correct fall-back code to use
10361         SUBTARGET_CPU_DEFAULT.
10363 2010-09-02  Julian Brown  <julian@codesourcery.com>
10365         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
10366         unspecs.
10367         (vcond<mode>, vcondu<mode>): New expanders.
10368         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
10369         comparisons with zero.
10370         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
10371         * config/arm/constraints.md (Dz): New constraint.
10373 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
10375         * target.def (class_likely_spilled_p): New hook.
10376         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
10377         * doc/tm.texi: Regenerate.
10378         * targhooks.c (default_class_likely_spilled_p): New function.
10379         * targhooks.h (default_class_likely_spilled_p): Declare.
10380         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
10381         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
10382         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
10383         Use fixed_reg_set instead of fixed_regs.
10384         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
10385         * calls.c (avoid_likely_spilled_reg): Ditto.
10386         * ira-conflicts.c (ira_build_conflicts): Ditto.
10387         * ira.c (update_equiv_regs): Ditto.
10388         * mode-switching.c (create_pre_exit): Ditto.
10389         * regmove.c (find_matches): Ditto.
10390         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
10391         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
10392         (small_register_class_p): New inline function.
10393         (push_secondary_reload, find_reusable_reload, find_reloads): Use
10394         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
10396         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
10397         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
10398         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10400 2010-09-02  Richard Guenther  <rguenther@suse.de>
10402         PR tree-optimization/44937
10403         PR tree-optimization/45412
10404         * ipa-split.c (split_function): Properly remove PHI nodes.
10406 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
10408         * opts.h (struct cl_option): Add warn_message field.
10409         (struct cl_decoded_option): Add warn_message field.
10410         * doc/options.texi (Ignore, Warn): Document.
10411         * opt-functions.awk (needs_state_p): Don't consider aliases or
10412         ignored options to need state saved.
10413         * optc-gen.awk: Handle Warn and Ignore.
10414         * opth-gen.awk: Output OPT_SPECIAL_ignore.
10415         * opts-common.c (decode_cmdline_option): Set warn_message field.
10416         Handle ignored options.
10417         (decode_cmdline_options_to_array, generate_option,
10418         generate_option_input_file): Set warn_message field.
10419         (read_cmdline_option): Generate warnings from warn_message field.
10420         Handle ignored options.
10421         * common.opt (Wunreachable-code, fargument-alias,
10422         fargument-noalias, fargument-noalias-global,
10423         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
10424         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
10425         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
10426         ftree-salias): Mark Ignore.
10427         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
10428         -mintel-syntax and -mno-intel-syntax here.
10429         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
10430         using Warn.
10431         * opts.c (common_handle_option): Don't handle options marked as
10432         ignored.
10433         (enable_warning_as_error): Handle ignored options.
10435 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
10437         PR driver/44076
10438         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
10439         alias_target fields.
10440         * opt-functions.awk (opt_sanitized_name): Don't handle
10441         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
10442         * optc-gen.awk: Generate alias fields.
10443         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
10444         Don't generate such constants for aliases.
10445         * opts-common.c (generate_canonical_option): New.
10446         (decode_cmdline_option): Handle aliases.  Use
10447         generate_canonical_option for known options instead of copying the
10448         input option text.
10449         * doc/options.texi (Alias): Document.
10450         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
10451         fstack-check, specs): Mark as aliases.
10452         * gcc.c (driver_handle_option): Canonicalize -L options to joined
10453         arguments.
10454         (driver_handle_option): Don't handle OPT_specs.
10455         * opts.c (common_handle_option): Don't handle options marked as
10456         aliases.
10457         (enable_warning_as_error): Handle aliases.
10458         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
10459         OPT_Wlarger_than_eq.
10460         * tree-optimize.c (tree_rest_of_compilation): Use
10461         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
10463 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
10465         * config/i386/i386.md (nonmemory_operand): New mode attribute.
10466         (push memory peephole2): Macroize peepholes using SWI mode iterator.
10467         (move immediate to memory peephole2): Macroize peepholes using
10468         SWI124 mode iterator.
10469         (non-pairable NOT peephole2): Macroize peepholes using SWI124
10470         mode iterator.
10471         (simple lea add peephole2): Macroize peepholes using SWI48
10472         mode iterator.
10473         (simple lea mult peephole2): Ditto.
10474         (imul by 3,5,9 to lea peephole2): Ditto.
10475         (mov $-1, reg peephole2): Macroize peepholes using SWI248
10476         mode iterator.
10477         (imul $32bit_imm,mem,reg peephole2): Ditto.
10478         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
10480 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
10482         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
10484 2010-09-02  Olivier Hainque  <hainque@adacore.com>
10486         PR middle-end/44763
10487         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
10488         (allocno_priority_compare_func): Use it instead of a straight
10489         difference computation over priorities.
10491 2010-09-02  Andi Kleen  <ak@linux.intel.com>
10493         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
10495 2010-09-02  Ira Rosen  <irar@il.ibm.com>
10497         * tree-vectorizer.h (get_later_stmt): New function.
10498         (vect_analyze_data_ref_dependences): Add argument.
10499         * tree-vect-loop.c (vect_analyze_loop): Update call to
10500         vect_analyze_data_ref_dependences.
10501         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
10502         New function.
10503         (vect_analyze_data_ref_dependence): Add argument for basic block
10504         dependencies. Check dependencies in basic block vectorization.
10505         (vect_analyze_data_ref_dependences): Add argument and update call to
10506         vect_analyze_data_ref_dependences.
10507         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
10508         (vect_bb_vectorizable_with_dependencies): New.
10509         (vect_slp_analyze_bb): Check dependencies in basic block.
10510         (vect_schedule_slp_instance): Insert stores before the last store in
10511         SLP instance.
10513 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
10515         PR target/45476
10516         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
10517         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
10519 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
10521         PR middle-end/45458
10522         * bb-reorder.c (add_labels_and_missing_jumps): Treat
10523         bbs ending with throwing insns like blocks ending with a call.
10524         (fix_up_fall_thru_edges): Likewise.
10526 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
10528         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
10529         (m32c_function_arg_advance): Delete.
10530         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10531         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
10532         comments.  Take a const_tree and a bool.  Declare.
10533         (m32c_function_arg_advance): Likewise.
10534         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10536 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
10538         PR target/45476
10539         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
10540         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
10541         * config/i386/mingw32.h: ... here.
10543 2010-09-01  Andi Kleen  <ak@linux.intel.com>
10545         PR lto/45475
10546         * lto-streamer-in.c (lto_input_ts_target_option): Add.
10547         (lto_input_tree_pointers): Call lto_input_ts_target_option.
10548         * lto-streamer-out (lto_output_ts_target_option): Add.
10549         (lto_output_tree_pointers): Call lto_output_ts_target_option.
10551 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
10553         PR/target 45452
10554         * config/i386/cygwin.h: Change order of specified import libraries.
10555         * config/i386/mingw32.h: Likewise.
10556         * config/i386/t-cygwin: Likewise.
10557         * config/i386/t-mingw32: Likewise.
10558         * config/i386/t-mingw-w32: Likewise.
10559         * config/i386/t-mingw-w64: Likewise.
10561 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10563         * config/arm/neon-schedgen.ml (core): New type.
10564         (allCores): List of supported cores.
10565         (availability_table): Add supported cores.
10566         (collate_bypasses): Accept core as a parameter.
10567         (worst_case_latencies_and_bypasses): Accept core as a parameter.
10568         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
10569         and coreStr to get tune attribute and prefix for functional units.
10570         (emit_bypasses): Accept core name and use it.
10571         (calculate_per_core_availability_table): New.
10572         (filter_core): New.
10573         (calculate_core_availability_table): New.
10574         (main): Use calculate_core_availablity_table.
10575         * config/arm/cortex-a8-neon.md: Update copyright year.
10576         Regenerated from ml file and merged in.
10577         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
10578         cortex_a8_neon_mrc.
10580 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
10582         * Makefile.in (tree-switch-conversion.o): Update dependencies.
10584 2010-09-01  Richard Guenther  <rguenther@suse.de>
10586         * alias.c (ao_ref_from_mem): Adjust.
10587         * builtins.c (get_object_alignment): Likewise.
10588         * cfgexpand.c (expand_debug_expr): Likewise.
10589         * gimple.c (get_base_address): Likewise.
10590         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10591         (get_addr_base_and_unit_offset): Likewise.  Fix for
10592         both TMR_SYMBOL and TMR_BASE being set.
10593         * tree-eh.c (tree_could_trap_p): Likewise.
10594         * gimplify.c (gimplify_expr): Do not attempt to gimplify
10595         TMR_SYMBOL.  Always gimplify TMR_BASE.
10596         * tree-cfg.c (verify_types_in_gimple_reference): Verify
10597         TMR_BASE if there is a TMR_SYMBOL.
10598         * tree-pretty-print.c (dump_generic_node): Adjust.
10599         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
10600         (tree_mem_ref_addr): Likewise.
10601         (create_mem_ref_raw): Likewise.
10602         (move_fixed_address_to_symbol): Likewise.
10603         (create_mem_ref): Likewise.
10604         (dump_mem_address): Likewise.
10605         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
10606         Fix for both TMR_SYMBOL and TMR_BASE being set.
10607         (indirect_refs_may_alias_p): Likewise.
10608         * tree-ssa-operands.c (get_tmr_operands): Adjust.
10609         * tree.def (TARGET_MEM_REF): Adjust documentation.
10611 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
10613         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
10614         Rename from X86_TUNE_ADD_ESP_4.
10615         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
10616         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
10617         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
10618         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
10619         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
10620         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
10621         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
10622         * config/i386/i386.c (initial_ix86_tune_features)
10623         <X86_TUNE_SINGLE_POP>: Invert members.
10624         <X86_TUNE_DOUBLE_POP>: Ditto.
10625         <X86_TUNE_SINGLE_PUSH>: Ditto.
10626         <X86_TUNE_DOUBLE_PUSH>: Ditto.
10627         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
10628         No longer exported.
10629         (push peephole2 patterns): Macroize peepholes using P mode iterator.
10630         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
10631         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
10632         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
10634 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
10636         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
10637         a volatile LHS if the constructor has only one element.
10639 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
10641         PR bootstrap/45321
10642         * tree.c (stdarg_p): Make fntype parameter const.
10643         * tree.h (stdarg_p): Likewise.
10644         (function_args_iterator): Remove unused fntype field.
10645         (function_args_iter_init): Do not initialize fntype
10646         field.  Make fntype parameter const.
10648 2010-09-01  Richard Guenther  <rguenther@suse.de>
10650         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
10651         estimate.
10652         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
10653         (execute_vrp): Compute number of iteration estimates.
10654         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
10655         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
10656         * tree-data-ref.c (estimated_loop_iterations): Adjust.
10657         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
10658         Infer loop bounds from undefined behavior based on a new parameter.
10659         (estimate_numbers_of_iterations): Likewise.
10660         (scev_probably_wraps_p): Adjust.
10661         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
10663 2010-09-01  Nick Clifton  <nickc@redhat.com>
10665         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
10666         where appropriate.
10667         (xstormy16_legitimate_address_p): Use true and false instead of 1
10668         and 0.
10669         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
10670         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
10671         magic constant 2.
10672         (xstormy16_expand_call): Fix comment at start of function.
10674 2010-09-01  Nick Clifton  <nickc@redhat.com>
10676         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
10677         when pushing accumulator register.
10678         (rx_get_stack_layout): Always save call clobbered registers inside
10679         interrupt handlers.
10680         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
10682 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
10684         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
10685         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
10687         * libgcc-std.ver (GCC_4.6.0): Define version.
10689 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
10691         * tree-nested.c (convert_all_function_calls): Iterate until after the
10692         sum of static chains in the nest doesn't change.
10694 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
10696         * config/m32c/m32c.c (classes_intersect): Remove.
10697         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
10698         reg_classes_intersect_p instead of classes_intersect.
10699         (class_can_hold_mode): Change arguments type from enum reg_class to
10700         reg_class_t.  Use reg_class_contents instead of class_contents.
10701         (m32c_register_move_cost): Make static. Change arguments type from
10702         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
10703         classes_intersect. Use reg_class_contents instead of class_contents.
10704         (m32c_memory_move_cost): Make static. Change arguments type from
10705         enum reg_class to reg_class_t.
10706         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10707         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10708         * config/m32c/m32c-protos.h (m32c_register_move_cost,
10709         m32c_memory_move_cost): Remove.
10711 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10713         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
10714         (arm_function_arg): Delete.
10715         (arm_needs_doubleword_align): Take a const_tree.
10716         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10717         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
10718         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
10719         (arm_function_arg): Make static.  Take a const_tree and a bool.
10720         (arm_function_arg_advance): Likewise.
10721         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10723 2010-08-31  Andi Kleen  <ak@linux.intel.com>
10725         * common.opt (fwhopr=): Update for -fwhopr=jobserver
10726         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
10727         * lto-wrapper.c (run_gcc): Add jobserver mode.
10728         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
10729         argument.
10731 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
10733         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
10734         (popsi1): Ditto.
10735         (*popdi1_epilogue): Ditto.
10736         (*popsi1_epilogue): Ditto.
10737         (popsi, popdi peephole2 patterns): Update peepholes for changed
10738         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
10740         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
10741         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
10743         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
10744         (override_options): Do not initialize removed ix86_gen_pop1.
10745         (gen_pop): New static function.
10746         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
10747         (release_scratch_register_on_entry): Ditto.
10748         (ix86_restore_reg_using_pop): Ditto.
10749         (ix86_expand_epilogue): Ditto.
10751 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
10753         PR middle-end/45461
10754         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
10756 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10758         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
10759         semicolons.
10761 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10763         * doc/extend.texi: Fix documentation of the return value of
10764         __builtin_choose_expr.
10766 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10768         * config/v850/v850-protos.h (function_arg): Delete.
10769         * config/v850/v850.h (FUNCTION_ARG): Delete.
10770         (FUNCTION_ARG_ADVANCE): Move code to...
10771         * config/v850/v850.c (v850_function_arg_advance): ...here.
10772         (v850_function_arg): Make static.  Take a const_tree and a bool.
10773         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10775 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10777         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
10778         these...
10779         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
10780         ...and these...
10781         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
10782         ..to here..
10783         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
10784         ...and here.
10785         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10787 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10789         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
10790         Delete.
10791         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10792         * config/rx/rx.c (rx_function_arg_size): Make static.
10793         (rx_function_arg): Likewise.
10794         (rx_function_arg_advance): New function.
10795         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10797 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
10799         * config/arm/arm.c (arm_override_options): Remove superfluous test.
10800         Fix indentation.
10802 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
10804         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
10805         (dwarf2out_decl) <CONST_DECL>: Likewise.
10807 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
10809         Stack usage support
10810         * common.opt (-fstack-usage): New option.
10811         * doc/invoke.texi (Debugging options): Document it.
10812         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
10813         allocate_dynamic_stack_space.
10814         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
10815         and propagate it to allocate_dynamic_stack_space.
10816         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
10817         * calls.c (initialize_argument_information): Pass TRUE as 4th
10818         argument to allocate_dynamic_stack_space.
10819         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
10820         to 1 when pushing a variable-sized argument onto the stack.  Pass
10821         TRUE as 4th argument to allocate_dynamic_stack_space.
10822         Update current_function_pushed_stack_size.
10823         (emit_library_call_value_1): Likewise.
10824         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
10825         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
10826         attempt to find an upper bound.  Remove redundant code for the
10827         SETJMP_VIA_SAVE_AREA case.
10828         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
10829         * function.h (struct stack_usage): New structure.
10830         (current_function_static_stack_size): New macro.
10831         (current_function_dynamic_stack_size): Likewise.
10832         (current_function_pushed_stack_size): Likewise.
10833         (current_function_dynamic_alloc_count): Likewise.
10834         (current_function_has_unbounded_dynamic_stack_size): Likewise.
10835         (current_function_allocates_dynamic_stack_space): Likewise.
10836         (struct function): Add new field 'su'.
10837         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
10838         add the value of the dynamic offset to the dynamic stack usage.
10839         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
10840         for variable-sized objects.
10841         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
10842         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
10843         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
10844         BUILT_IN_ALLOCA for variable-sized objects.
10845         * output.h (output_stack_usage): Declare.
10846         * toplev.c (stack_usage_file): New file pointer.
10847         (output_stack_usage): New function.
10848         (open_auxiliary_file): Likewise.
10849         (lang_dependent_init): Open file if flag_stack_usage is set.
10850         (finalize): Close file if stack_usage_file is not null.
10851         * tree.h (ALLOCA_FOR_VAR_P): New macro.
10852         * config/alpha/alpha.c (compute_frame_size): New function.
10853         (alpha_expand_prologue): Use it.
10854         (alpha_start_function): Likewise.
10855         (alpha_expand_epilogue): Likewise.  Set stack usage info.
10856         * config/i386/i386.c (ix86_expand_prologue): Likewise.
10857         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10858         * config/mips/mips.c (mips_expand_prologue): Likewise.
10859         * config/pa/pa.c (hppa_expand_prologue): Likewise.
10860         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10861         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
10863 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
10865         PR tree-optimization/45427
10866         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
10867         Handle the case that the exit is never taken correctly.
10868         (number_of_iterations_ne): Pass exit_must_be_taken to
10869         number_of_iterations_ne_max.
10871 2010-08-30  Catherine Moore  <clm@codesourcery.com>
10873         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
10874         Infer -mdspr2 for the the 74K.
10876 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
10878         PR debug/45419
10879         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
10881         PR middle-end/45423
10882         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
10883         and TRUTH_{AND,OR,XOR}_EXPR.
10884         * c-parser.c (c_parser_omp_atomic): Handle boolean
10885         {PRE,POST}_{INC,DEC}REMENT.
10887 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
10889         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
10890         (function_arg): Delete.
10891         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10892         (FUNCTION_INCOMING_ARG): Delete.
10893         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
10894         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
10895         and a bool.
10896         (function_arg): Rename to...
10897         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
10898         a bool.
10899         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
10900         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10901         (TARGET_FUNCTION_INCOMING_ARG): Define.
10903 2010-08-30  Richard Guenther  <rguenther@suse.de>
10905         PR tree-optimization/21602
10906         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
10907         using points-to information.
10909 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
10911         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
10913 2010-08-30  Richard Guenther  <rguenther@suse.de>
10915         PR tree-optimization/45449
10916         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
10917         variables.
10919 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
10921         * opts.h (CL_ERR_NEGATIVE): Define.
10922         * opts.c (unknown_option_callback): Don't postpone warnings for
10923         options marked with CL_ERR_NEGATIVE.
10924         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
10925         for negative versions of CL_REJECT_NEGATIVE options.
10927 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
10929         * config/i386/i386.md (zero_extendsidi2_1): Rename from
10930         zero_extendsidi2_32.
10931         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
10932         using SWI12 mode iterator.
10933         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
10934         to define_insn_and_split pattern.
10935         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
10936         using SWI24 mode iterator.
10937         (*zero_extendqi<mode>2_and): Macroize insn from
10938         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
10939         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
10940         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
10941         SWI24 mode iterator.
10942         (*zero_extendqi<mode>2_movzbl): Ditto from
10943         *zero_extendqi{hi,si}2_movzbl.
10944         (extendsidi2_1): Rename from extendsidi2_32.
10945         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
10946         SWI12 mode iterator.
10948 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
10950         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
10951         general purpose registers.
10952         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
10953         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
10954         with general purpose registers and memory operands.  Add associated
10955         CCImode post-reload splitter.
10956         * config/ia64/div.md: Change BImode to CCImode throughout.
10958 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
10960         * config/ia64/ia64.md (cstorebi4): Fix thinko.
10962 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
10964         * config/picochip/picochip.c (reorder_var_tracking_notes): This
10965         function was dropping debug insns which caused PR45299.
10967 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
10969         * config/i386/sse.md (extsuffix): New code attribute.
10970         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
10971         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
10972         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
10973         and sse4_1_zero_extendv4qiv4si2.
10974         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
10975         and sse4_1_zero_extendv2qiv2di2.
10976         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
10977         and sse4_1_zero_extendv4hiv4si2.
10978         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
10979         and sse4_1_zero_extendv2hiv2di2.
10980         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
10981         and sse4_1_zero_extendv2siv2di2
10983         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
10984         using any_extend code iterator.
10985         (*avx_<s>mulv8hi3_highpart): Macroize insn from
10986         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
10987         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
10989         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
10990         gen_sse4_1_sign_extend* functions.
10991         (struct builtin_description bdesc_args): Ditto.
10993 2010-08-27  Xinliang David Li  <davidxl@google.com>
10995         PR/45422
10996         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
10997         (iv_ca_set_no_cp): Update used inv expr count.
10998         (iv_ca_set_cp): Ditto.
10999         (iv_ca_new): Initialize new member.
11000         (iv_ca_free): Free memory.
11002 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
11004         * config/sh/sh-protos.h (sh_function_arg): Delete.
11005         (sh_function_arg_advance): Delete.
11006         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11007         (PASS_IN_REG_P): Eliminate cast.
11008         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
11009         const_tree and a bool.
11010         (sh_function_arg): Likewise.
11011         (sh_output_mi_thunk): Call sh_function_arg_advance) and
11012         sh_function_arg.
11013         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11015 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
11016             Kaz Kojima  <kkojima@gcc.gnu.org>
11018         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
11019         when possible.
11020         (sh_expand_epilogue): Likewise.
11021         * config/sh/sh.md (movml_push_banked): New insn.
11022         (movml_pop_banked): Likewise.
11024 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
11026         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
11027         gen_regexp_oneof, gen_regexp_sequence): Use the string found
11028         in vector element 0 rather than the original string when there's
11029         only one element.
11030         (gen_regexp): Remove extra semicolon.
11032         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
11033         thumb2_movsf_vfp): Set attribute "insn".
11034         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
11035         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
11036         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
11037         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
11038         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
11039         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
11040         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
11041         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
11042         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
11043         if_not_arith, if_arith_not, cond_move_not): Likewise.
11045 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11047         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
11048         New declaration.
11049         (rs6000_allocate_stack_temp): Ditto.
11050         (rs6000_expand_convert_si_to_sfdf): Ditto.
11052         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
11053         line.  Update the options set if power6 or power7 server/embedded
11054         type options are used.  If we give a warning for no vsx under
11055         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
11056         (rs6000_allocate_stack_temp): New function to allocate a stack
11057         tempoary and adjust the address so it meets either REG+OFFSET or
11058         REG+REG addressing requirements.
11059         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
11060         that they can be used with the LFIWAX/LFIWZX instrucitons.
11061         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
11062         converting signed/unsigned SImode to either SFmode/DFmode.
11064         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
11065         whether certain instructions can be generated.
11066         (TARGET_FCTIDZ): Ditto.
11067         (TARGET_STFIWX): Ditto.
11068         (TARGET_LFIWAX): Ditto.
11069         (TARGET_LFIWZX): Ditto.
11070         (TARGET_FCFIDS): Ditto.
11071         (TARGET_FCFIDU): Ditto.
11072         (TARGET_FCFIDUS): Ditto.
11073         (TARGET_FCTIDUZ): Ditto.
11074         (TARGET_FCTIWUZ): Ditto.
11076         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
11077         (UNSPEC_FCTID): Ditto.
11078         (UNSPEC_LFIWAX): Ditto.
11079         (UNSPEC_LFIWZX): Ditto.
11080         (UNSPEC_FCTIWUZ): Ditto.
11081         (rreg): Use correct constraints.
11082         (SI_CONVERT_FP): New mode attribute for floating point conversion
11083         tests.
11084         (E500_CONVERT): Ditto.
11085         (lfiwax): New insns for converting from integer to floating point
11086         utilizing newer instructions.  Attempt to optimize conversions
11087         that come from memory so that we don't load the value into a GPR,
11088         spill it to the stack and reload it into a FPR.
11089         (floatsi<mode>2_lfiwax): Ditto.
11090         (floatsi<mode>2_lfiwax_mem): Ditto.
11091         (floatsi<mode>2_lfiwax_mem2): Ditto.
11092         (lfiwzx): Ditto.
11093         (floatunssi<mode>2_lfiwzx): Ditto.
11094         (floatunssi<mode>2_lfiwzx_mem): Ditto.
11095         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
11096         (floatdidf2_mem): Ditto.
11097         (floatunsdidf2_fcfidu): Ditto.
11098         (floatunsdidf2_mem): Ditto.
11099         (floatunsdisf2): Ditto.
11100         (floatunsdisf2_fcfidus): Ditto.
11101         (floatunsdisf2_mem): Ditto.
11102         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
11103         Use FCFID on 32-bit hosts that support it.
11104         (floatsidf2_internal): Ditto.
11105         (floatunssisf2): Ditto.
11106         (floatunssidf2): Ditto.
11107         (floatunssidf2_internal): Ditto.
11108         (floatsisf2): Ditto.
11109         (floatdidf2): Ditto.
11110         (floatdidf2_fpr): Ditto.
11111         (floatunsdidf2): Ditto.
11112         (floatdisf2): Ditto.
11113         (floatdisf2_fcfids): Ditto.
11114         (floatdisf2_internal1): Ditto.
11115         (fixuns_truncsfsi2): Delete, merge into common pattern for both
11116         SF/DF.  Add power7 support.
11117         (fix_truncsfsi2): Ditto.
11118         (fixuns_truncdfsi2): Ditto.
11119         (fixuns_truncdfdi2): Ditto.
11120         (fix_truncdfsi2): Ditto.
11121         (fix_truncdfsi2_internal): Ditto.
11122         (fix_truncdfsi2_internal_gfxopt): Ditto.
11123         (fix_truncdfsi2_mfpgpr): Ditto.
11124         (fctiwz): Ditto.
11125         (btruncdf2): Ditto.
11126         (btruncdf2_fpr): Ditto.
11127         (btructsf2): Ditto.
11128         (ceildf2): Ditto.
11129         (ceildf2_fpr): Ditto.
11130         (ceilsf2): Ditto.
11131         (floordf2): Ditto.
11132         (floordf2_fpr): Ditto.
11133         (floorsf2): Ditto.
11134         (rounddf2): Ditto.
11135         (rounddf2_fpr): Ditto.
11136         (roundsf2): Ditto.
11137         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
11138         (fix_trunc<mode>di2): Ditto.
11139         (fixuns_trunc<mode>si2): Ditto.
11140         (fixuns_trunc<mode>di2): Ditto.
11141         (fctiwz_<mode>): Ditto.
11142         (btrunc<mode>2): Ditto.
11143         (btrunc<mode>2_fpr): Ditto.
11144         (ceil<mode>2): Ditto.
11145         (ceil<mode>2_fpr): Ditto.
11146         (floor<mode>2): Ditto.
11147         (float<mode>2_fpr): Ditto.
11148         (round<mode>2): Ditto.
11149         (round<mode>2_fpr): Ditto.
11150         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
11151         (fixuns_trunc<mode>si2_stfiwx): Ditto.
11152         (fix_truncdfsi2_internal): Ditto.
11153         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
11154         converted value on stack, loaded into GPR, and then stored into
11155         the final destination.
11156         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
11157         FCTIDZ.
11158         (lrint<mode>di2): New insn, provide the lrint builtin functions.
11159         (ftruncdf2): Delete, unused.
11160         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
11162         * config/rs6000/vsx.md (toplevel): Update copyright year.
11163         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
11164         (VSr3): Ditto.
11166 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
11167             Jeremie Salvucci  <jeremie.salvucci@free.fr>
11169         * gengtype.c (output_type_enum): Test the right union member.
11171 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
11173         PR target/41484
11174         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
11175         operands for operand 1.
11176         (sse4_1_extendv4qiv4si2): Ditto.
11177         (sse4_1_extendv2qiv2di2): Ditto.
11178         (sse4_1_extendv4hiv4si2): Ditto.
11179         (sse4_1_extendv2hiv2di2): Ditto.
11180         (sse4_1_extendv2siv2di2): Ditto.
11181         (sse4_1_zero_extendv8qiv8hi2): Ditto.
11182         (sse4_1_zero_extendv4qiv4si2): Ditto.
11183         (sse4_1_zero_extendv2qiv2di2): Ditto.
11184         (sse4_1_zero_extendv4hiv4si2): Ditto.
11185         (sse4_1_zero_extendv2hiv2di2): Ditto.
11186         (sse4_1_zero_extendv2siv2di2): Ditto.
11187         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
11188         (*sse4_1_extendv4qiv4si2): Ditto.
11189         (*sse4_1_extendv2qiv2di2): Ditto.
11190         (*sse4_1_extendv4hiv4si2): Ditto.
11191         (*sse4_1_extendv2hiv2di2): Ditto.
11192         (*sse4_1_extendv2siv2di2): Ditto.
11193         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
11194         (*sse4_1_zero_extendv4qiv4si2): Ditto.
11195         (*sse4_1_zero_extendv2qiv2di2): Ditto.
11196         (*sse4_1_zero_extendv4hiv4si2): Ditto.
11197         (*sse4_1_zero_extendv2hiv2di2): Ditto.
11198         (*sse4_1_zero_extendv2siv2di2): Ditto.
11200 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
11202         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
11203         (mips_function_arg): Delete.
11204         (mips_function_arg_boundary): Take a const_tree.
11205         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
11206         (mips_arg_info): Likewise.
11207         (mips_setup_incoming_varargs): Call mips_function_arg_advance
11208         instead of FUNCTION_ARG_ADVANCE.
11209         (mips_function_arg_advance): Adjust prototype.  Make static.
11210         (mips_function_arg): Likewise.
11211         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11212         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
11214 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
11216         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11217         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
11218         (function_arg): Delete.
11219         (function_arg_boundary): Take a const_tree.
11220         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
11221         (rs6000_spe_function_arg): Likewise.
11222         (rs6000_parm_start): Likewise.
11223         (rs6000_arg_size): Likewise.
11224         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
11225         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
11226         (rs6000_mixed_function_arg): Likewise.
11227         (function_arg): Rename to...
11228         (rs6000_function_arg): ...this.
11229         (function_arg_advance): Rename to...
11230         (rs6000_function_arg_advance_1): ...this
11231         (rs6000_function_arg_advance): New function.  Call it.
11232         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
11233         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
11234         (rs6000_function_value): Likewise.
11235         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11237 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11239         * config/arm/arm.md (enabled): Test the value of arch_enabled
11240         rather than just using it.
11242 2010-08-27  Olivier Hainque  <hainque@adacore.com>
11243             Eric Botcazou  <ebotcazou@adacore.com>
11245         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
11246         cover all the possible offsets from this base.
11247         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
11249 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
11251         PR tree-optimization/44485
11252         * calls.c (flags_from_decl_or_type): For const or pure
11253         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
11254         together with ECF_CONST resp. ECF_PURE.
11255         * builtins.c (expand_builtin): Use flags_from_decl_or_type
11256         instead of querying flags directly.
11257         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
11258         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
11260 2010-08-26  Richard Guenther  <rguenther@suse.de>
11262         PR tree-optimization/45255
11263         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
11264         and externals are also invariant.
11266 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
11268         PR rtl-optimization/44858
11269         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
11270         newi2pat, make sure they don't affect newpat.
11272         PR rtl-optimization/45400
11273         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
11274         SUBREG_REG if both modes are of MODE_INT class.
11276 2010-08-25  Julian Brown  <julian@codesourcery.com>
11278         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
11279         * config/arm/arm.md (generic_sched): No for Cortex-A5.
11280         (generic_vfp): Likewise.
11281         (cortex-a5.md): Include.
11282         * config/arm/cortex-a5.md: New.
11284 2010-08-25  Richard Guenther  <rguenther@suse.de>
11286         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
11287         * gimple.c (gimple_get_alias_set): Remove special handling
11288         for pointers.
11290 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
11292         PR middle-end/45355
11293         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
11294         dead_or_set_p when computing i0_feeds_i2_n.
11296         * combine.c (find_split_point): Undo canonicalization of multiply-add
11297         to (minus x (mult)) when it seems likely that this will increase the
11298         chances of a split.
11300 2010-08-25  Richard Guenther  <rguenther@suse.de>
11302         PR lto/44562
11303         * lto-streamer.c (lto_record_common_node): Do not mess with
11304         TYPE_CANONICAL when not in lto.
11305         * gimple.c (gimple_register_type): Likewise.
11307 2010-08-25  Richard Guenther  <rguenther@suse.de>
11309         PR tree-optimization/45316
11310         * tree-ssa-pre.c (eliminate): Properly clean EH info.
11312 2010-08-25  Richard Guenther  <rguenther@suse.de>
11314         PR tree-optimization/45393
11315         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
11316         and clean EH info.  Avoid SSA update.
11317         (execute_cse_sincos): Cleanup the CFG if it has changed.
11319 2010-08-25  Richard Guenther  <rguenther@suse.de>
11321         PR middle-end/45379
11322         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
11323         TARGET_MEM_REF in alignment computation.
11325 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
11327         PR tree-optimization/45059
11328         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
11329         type conversions from newop{1,2}.  Assert t is a comparison and
11330         newop{1,2} after the stripping are gimple vals.
11332 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
11334         * config/arm/iterators.md (VU, SE, V_widen_l): New.
11335         (V_unpack, US): New.
11336         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
11337         (vec_unpack<US>_lo_<mode>): Likewise.
11338         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
11339         (neon_vec_unpack<US>_lo_<mode>): Likewise.
11340         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
11341         (vec_widen_<US>mult_hi_<mode>): Likewise.
11342         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
11343         (neon_vec_<US>mult_hi_<mode>"): Likewise.
11344         (neon_unpack<US>_<mode>): Widening move intermediate step for
11345         vectorizing without -mvectorize-with-neon-quad.
11346         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
11347         for vectorizing without -mvectorize-with-neon-quad.
11348         * config/arm/predicates.md (vect_par_constant_high): Check for
11349         high-half lanes of a vector.
11350         (vect_par_constant_low): Check for low-half lanes of a vector.
11352 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
11354         * tree-if-conv.c (struct ifc_dr): New.
11355         (IFC_DR): New.
11356         (DR_WRITTEN_AT_LEAST_ONCE): New.
11357         (DR_RW_UNCONDITIONALLY): New.
11358         (memref_read_or_written_unconditionally): Use the cached values
11359         when possible.
11360         (write_memref_written_at_least_once): Same.
11361         (if_convertible_loop_p): Initialize and free DR->aux fields.
11363 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
11365         * gimple.c (gimple_could_trap_p_1): Not static anymore.
11366         Pass an extra bool parameter include_mem.
11367         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
11368         (gimple_assign_rhs_could_trap_p): Same.
11369         * gimple.h (gimple_could_trap_p_1): Declared.
11370         * tree-data-ref.h (same_data_refs_base_objects): New.
11371         (same_data_refs): New.
11372         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
11373         (write_memrefs_written_at_least_once): New.
11374         (ifcvt_memrefs_wont_trap): New.
11375         (operations_could_trap): New.
11376         (ifcvt_could_trap_p): New.
11377         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
11378         Gets a vector of data refs.
11379         (if_convertible_stmt_p): Same.
11380         (if_convertible_loop_p_1): New.
11381         (if_convertible_loop_p): Call if_convertible_loop_p_1.
11383 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
11385         * common.opt (ftree-loop-if-convert-stores): New flag.
11386         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
11387         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
11388         the created statement before GSI.
11389         (if_convertible_phi_p): Allow virtual phi nodes when
11390         flag_loop_if_convert_stores is set.
11391         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
11392         Do not handle types that do not match is_gimple_reg_type.
11393         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
11394         when flag_loop_if_convert_stores is set, as LHS can contain
11395         memory refs.
11396         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
11397         to if_convertible_gimple_assign_stmt_p.
11398         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
11399         (replace_phi_with_cond_gimple_assign_stmt): Renamed
11400         predicate_scalar_phi.  Do not handle virtual phi nodes.
11401         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
11402         Call predicate_scalar_phi.
11403         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
11404         just after the labels for flag_loop_if_convert_stores, otherwise
11405         insert the predicate in the end of the BB.
11406         (predicate_mem_writes): New.
11407         (combine_blocks): Call predicate_all_scalar_phis.  When
11408         flag_loop_if_convert_stores is set, call predicate_mem_writes.
11409         (tree_if_conversion): Call mark_sym_for_renaming when
11410         flag_loop_if_convert_stores is set.
11411         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
11412         flag_loop_if_convert_stores is set.
11414 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
11416         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
11417         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
11418         (pa_function_value): Make static.
11419         (override_options): Rename to...
11420         (pa_option_override): ...this. Make static.
11421         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
11422         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
11423         TARGET_OPTION_OVERRIDE): Define.
11424         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
11425         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
11426         Remove.
11427         * config/pa/pa-protos.h (override_options): Remove.
11429 2010-08-24  Richard Guenther  <rguenther@suse.de>
11431         PR middle-end/45379
11432         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
11433         if addr->index is NULL or zero.
11434         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
11435         TARGET_MEM_REF more properly.
11436         (indirect_ref_may_alias_decl_p): Likewise.
11437         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
11438         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
11440 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
11442         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
11443         (m32c_override_options): Rename to...
11444         (m32c_option_override): ...this. Make static.
11445         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
11446         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
11447         Remove.
11448         * config/m32c/m32c-protos.h (m32c_override_options,
11449         m32c_function_value_regno_p): Remove.
11451 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
11453         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
11454         Fix a typo in a previous commit.
11456 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
11458         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
11459         Pre-initialize innerloop_iters to one.
11461 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
11463         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
11464         existing static function global.
11466         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
11467         is changed to global.
11469         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
11470         may_be_nonaddressable_p on base, and don't collect this reference
11471         if the address of the base could not be taken.
11473 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11475         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
11476         enable the compiler to autovectorize mathmetical functions for
11477         power7 using the Mathematical Acceleration Subsystem library.
11479         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
11480         handle which vector math library we have.
11481         (rs6000_override_options): Add -mveclibabi=mass support.
11482         (rs6000_builtin_vectorized_libmass): New function to handle auto
11483         vectorizing math functions that are in the MASS library.
11484         (rs6000_builtin_vectorized_function): Call it.
11486         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11487         -mveclibabi=mass.
11489 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11491         PR boehm-gc/34544
11492         * gthr-posix.h (__gthread_active_init): Delete.
11493         (__gthread_active_p): Do activity check here.
11494         Don't include errno.h on hppa-hpux.  Update comment.
11495         * gthr-posix95.h (__gthread_active_init): Delete.
11496         (__gthread_active_p): Do activity check here.
11497         Don't include errno.h on hppa-hpux.  Update comment.
11498         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
11499         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
11500         add -lpthread when -mt or -pthread is specified.
11501         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
11502         (LINK_GCC_C_SEQUENCE_SPEC): Define.
11503         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
11504         (stublib.c, pthread_default_stacksize_np-stub.o,
11505         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
11506         $(T)libgcc_stub.a): Add methods.
11507         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
11508         (stublib.c, pthread_default_stacksize_np-stub.o,
11509         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
11510         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11511         pthread_mutex_unlock): New stubs.
11513 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
11515         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
11516         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
11517         options.
11518         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
11519         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
11520         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
11521         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
11522         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
11523         "-l".
11524         * cppspec.c: Include opts.h.
11525         (lang_specific_driver): Use cl_decoded_option structures.
11526         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
11527         * doc/tm.texi: Regenerate.
11528         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
11529         (driver_handle_option): Allow driver options needing no special
11530         processing.
11531         (process_command): Decode options before call to
11532         lang_specific_driver.  Pass decoded options to
11533         lang_specific_driver.
11534         * gcc.h (lang_specific_driver): Update prototype.
11535         * gccspec.c: Include opts.h.
11536         (lang_specific_driver): Use cl_decoded_option structures.
11537         * opts-common.c (option_ok_for_language, generate_option,
11538         generate_option_input_file): New.
11539         (decode_cmdline_option): Use option_ok_for_language.
11540         (decode_cmdline_options_to_array): Use generate_option_input_file.
11541         (handle_generated_option): Use generate_option.
11542         * opts.h (generate_option, generate_option_input_file): Declare.
11544 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
11546         * config/mips/mips.c (mips_override_options): Rename to...
11547         (mips_option_override): ...this. Make static.
11548         (TARGET_OPTION_OVERRIDE): Define.
11549         (mips_in_small_data_p): Update comment.
11550         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
11551         (FIXED_REGISTERS): Update comment.
11552         * config/mips/mips-protos.h (mips_override_options): Remove.
11554 2010-08-21  Olivier Hainque  <hainque@adacore.com>
11556         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
11558 2010-08-21  Olivier Hainque  <hainque@adacore.com>
11560         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
11561         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
11563 2010-08-20  Jan Hubicka  <jh@suse.cz>
11565         * tree-pass.h (pass_ipa_cdtor_merge): New function.
11566         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
11567         heap allocated.
11568         (record_cdtor_fn): Move to ipa.c; do not test for
11569         have_ctors_dtors.
11570         (build_cdtor): Move to ipa.c; add code avoiding construction
11571         when target have ctors/dtors and there is only one ctor/dtor at given
11572         priority.
11573         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
11574         sort; reverse order of constructors.
11575         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
11576         (cgraph_finalize_function): Do not call record_cdtor_fn.
11577         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
11578         (cgraph_build_static_cdtor): Move to ipa.c.
11579         * ipa.c: Include target.h and tree-iterator.h.
11580         (cgraph_build_static_cdtor, static_ctors, static_dtors,
11581         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
11582         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
11583         pass_ipa_cdtor_merge): New.
11584         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
11585         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
11586         bounds access.
11588 2010-08-20  Jan Hubicka  <jh@suse.cz>
11590         PR c++/45307
11591         PR c++/17736
11592         * cgraph.h (cgraph_only_called_directly_p,
11593         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
11594         static cdtors.
11595         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
11596         are not needed.
11597         (cgraph_finalize_function): Static cdtors are reachable.
11598         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
11600 2010-08-20  Jan Hubicka  <jh@suse.cz>
11602         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
11603         flag_wpa.
11604         * lto-streamer-out.c (lto_output): Likewise.
11605         * passes.c (ipa_write_optimization_summaries): Initialize statement
11606         uids.
11608 2010-08-20  Olivier Hainque  <hainque@adacore.com>
11610         * tree.h (alias_diag_flags): New enum.
11611         (alias_pair): Add an 'emitted_diags' field.
11612         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
11613         (assemble_alias): Initialize emitted_diags of new pairs.
11615 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
11617         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11618         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11619         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11620         (STACK_CHECK_PROTECT): Define.
11621         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
11622         (output_probe_stack_range): Likewise.
11623         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
11624         builtin stack checking is enabled.
11625         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
11626         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11627         (probe_stack_range): New insn.
11629 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11631         PR target/45336
11632         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
11633         short first.
11635         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
11636         char first.
11638 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11640         PR target/45336
11641         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
11642         to cover zero extension into 64-bit register.
11643         (*sse2_pextrw): Likewise.
11644         (*sse4_1_pextrd_zext): New insn.
11646 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
11648         revert r163410, partially revert r163267.
11649         * config/rs6000/darwin.h (LIB_SPEC): Remove.
11650         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
11651         Darwin versions.
11653 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11655         PR middle-end/44974
11656         * builtins.c (expand_builtin): Don't optimize away
11657         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
11659 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
11661         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
11662         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
11663         alternative 1 of operand 2.
11665 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11666             Paolo Bonzini  <bonzini@gnu.org>
11668         * simplify-rtx.c (simplify_unary_operation_1): Optimize
11669         (sign_extend (zero_extend (...)) and
11670         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
11672 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11674         PR rtl-optimization/45353
11675         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
11676         after bb_note is a BARRIER.
11678 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
11680         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
11681         linking libgcc.a.
11683 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11684             Michael Matz  <matz@suse.de>
11686         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
11688 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
11690         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
11691         (ggc_mark_roots): ...here.
11693 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
11695         * vec.h (FOR_EACH_VEC_ELT): Define.
11696         * c-decl.c: Use it.
11697         * cfgloop.c: Likewise.
11698         * cfgloopmanip.c: Likewise.
11699         * cgraph.c: Likewise.
11700         * cgraphunit.c: Likewise.
11701         * combine.c: Likewise.
11702         * config/bfin/bfin.c: Likewise.
11703         * config/mips/mips.c: Likewise.
11704         * config/rs6000/rs6000.c: Likewise.
11705         * dbxout.c: Likewise.
11706         * df-scan.c: Likewise.
11707         * dominance.c: Likewise.
11708         * dse.c: Likewise.
11709         * dwarf2out.c: Likewise.
11710         * except.c: Likewise.
11711         * expr.c: Likewise.
11712         * function.c: Likewise.
11713         * gcse.c: Likewise.
11714         * genattr.c: Likewise.
11715         * ggc-common.c: Likewise.
11716         * gimplify.c: Likewise.
11717         * graphite-blocking.c: Likewise.
11718         * graphite-clast-to-gimple.c: Likewise.
11719         * graphite-dependences.c: Likewise.
11720         * graphite-interchange.c: Likewise.
11721         * graphite-poly.c: Likewise.
11722         * graphite-scop-detection.c: Likewise.
11723         * graphite-sese-to-poly.c: Likewise.
11724         * graphite.c: Likewise.
11725         * haifa-sched.c: Likewise.
11726         * ifcvt.c: Likewise.
11727         * implicit-zee.c: Likewise.
11728         * ipa-prop.c: Likewise.
11729         * ipa-struct-reorg.c: Likewise.
11730         * ipa.c: Likewise.
11731         * ira-build.c: Likewise.
11732         * ira-color.c: Likewise.
11733         * ira-emit.c: Likewise.
11734         * lambda-code.c: Likewise.
11735         * loop-invariant.c: Likewise.
11736         * loop-unroll.c: Likewise.
11737         * lower-subreg.c: Likewise.
11738         * lto-cgraph.c: Likewise.
11739         * lto-opts.c: Likewise.
11740         * lto-streamer-in.c: Likewise.
11741         * lto-streamer-out.c: Likewise.
11742         * lto-streamer.c: Likewise.
11743         * lto-symtab.c: Likewise.
11744         * matrix-reorg.c: Likewise.
11745         * opts.c: Likewise.
11746         * predict.c: Likewise.
11747         * print-tree.c: Likewise.
11748         * sdbout.c: Likewise.
11749         * sel-sched-dump.c: Likewise.
11750         * sel-sched-ir.c: Likewise.
11751         * sel-sched.c: Likewise.
11752         * sese.c: Likewise.
11753         * stor-layout.c: Likewise.
11754         * tree-cfg.c: Likewise.
11755         * tree-cfgcleanup.c: Likewise.
11756         * tree-chrec.c: Likewise.
11757         * tree-data-ref.c: Likewise.
11758         * tree-emutls.c: Likewise.
11759         * tree-inline.c: Likewise.
11760         * tree-into-ssa.c: Likewise.
11761         * tree-loop-distribution.c: Likewise.
11762         * tree-loop-linear.c: Likewise.
11763         * tree-mudflap.c: Likewise.
11764         * tree-outof-ssa.c: Likewise.
11765         * tree-parloops.c: Likewise.
11766         * tree-predcom.c: Likewise.
11767         * tree-pretty-print.c: Likewise.
11768         * tree-scalar-evolution.c: Likewise.
11769         * tree-ssa-live.c: Likewise.
11770         * tree-ssa-loop-im.c: Likewise.
11771         * tree-ssa-loop-ivcanon.c: Likewise.
11772         * tree-ssa-loop-ivopts.c: Likewise.
11773         * tree-ssa-loop-manip.c: Likewise.
11774         * tree-ssa-loop-niter.c: Likewise.
11775         * tree-ssa-loop-prefetch.c: Likewise.
11776         * tree-ssa-phiprop.c: Likewise.
11777         * tree-ssa-pre.c: Likewise.
11778         * tree-ssa-reassoc.c: Likewise.
11779         * tree-ssa-sccvn.c: Likewise.
11780         * tree-ssa-structalias.c: Likewise.
11781         * tree-ssa.c: Likewise.
11782         * tree-vect-data-refs.c: Likewise.
11783         * tree-vect-loop-manip.c: Likewise.
11784         * tree-vect-loop.c: Likewise.
11785         * tree-vect-patterns.c: Likewise.
11786         * tree-vect-slp.c: Likewise.
11787         * tree-vect-stmts.c: Likewise.
11788         * tree-vrp.c: Likewise.
11789         * tree.c: Likewise.
11790         * value-prof.c: Likewise.
11791         * var-tracking.c: Likewise.
11792         * varasm.c: Likewise.
11793         * vmsdbgout.c: Likewise.
11795 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
11796             Richard Guenther  <richard.guenther@gmail.com>
11798         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
11799         copy the src value and return a copy.
11800         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
11801         (C++ Volatiles): Adjust to describe C++ semantics only.
11803 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
11805         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
11806         be zero or nonzero.
11807         * doc/tm.texi: Regenerate.
11808         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
11809         * df-scan.c (df_get_exit_block_use_set), reginfo.c
11810         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
11811         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
11812         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
11813         to 1.
11815 2010-08-20  Olivier Hainque  <hainque@adacore.com>
11817         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
11818         an extra nop past a sibling call at the very end.
11820 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
11822         PR bootstrap/45350
11823         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
11824         a comment.
11826 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
11828         * target.def (function_arg, function_incoming_arg): Remove const
11829         qualifier on CUMULATIVE_ARGS parameter.
11830         * targhooks.h (default_function_arg, default_function_incoming_arg):
11831         Likewise.
11832         * targhooks.c (default_function_arg, default_function_incoming_arg):
11833         Likewise.
11834         * config/i386/i386.c (ix86_function_arg): Likewise.
11836 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
11838         PR target/45336
11839         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
11840         SIGN_EXTENDs or ZERO_EXTENDs.
11842 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
11844         PR target/42172
11845         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
11846         Take its cost into account if nonnull.
11847         (insn_a_feeds_b): New static function.
11848         (combine_instructions): Look for four-insn combinations.
11849         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
11850         them into account when computing all_adjacent and looking for other
11851         uses.
11852         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
11853         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
11854         (try_combine): New arg I0.  Handle four-insn combinations.
11855         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
11856         like ELIM_I1.
11858 2010-08-19  Jason Merrill  <jason@redhat.com>
11860         PR c++/45307
11861         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
11862         if ctor is empty.
11863         (gimplify_modify_expr_rhs): Adjust.
11865 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
11867         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
11868         bitmap_bit_p.
11869         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
11870         * dominance.c (iterate_fix_dominators): Likewise.
11871         * dse.c (set_usage_bits): Likewise.
11872         (set_position_unneeded, record_store): Likewise.
11873         * gimple-fold.c (get_maxval_strlen): Likewise.
11874         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
11875         * ipa-inline.c (update_caller_keys): Likewise.
11876         * ipa-split.c (verify_non_ssa_vars): Likewise.
11877         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
11878         (close_type_exposed_parameter, close_type_full_escape): Likewise.
11879         (close_addressof_down): Likewise.
11880         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
11881         (setup_allocno_left_conflicts_size): Likewise.
11882         (ira_reassign_conflict_allocnos): Likewise.
11883         (ira_reassign_pseudos): Likewise.
11884         * ira-emit.c (change_loop): Likewise.
11885         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
11886         * lto-streamer-out.c (write_symbol): Likewise.
11887         * predict.c (expr_expected_value_1): Likewise.
11888         * regstat.c (regstat_bb_compute_ri): Likewise.
11889         * sel-sched.c (create_block_for_bookkeeping): Likewise.
11890         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
11891         * stmt.c (expand_case): Likewise.
11892         * tree-eh.c (emit_eh_dispatch): Likewise.
11893         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
11894         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
11895         Likewise.
11896         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
11897         (rdg_build_components): Likewise.
11898         * tree-object-size.c (collect_object_sizes_for): Likewise.
11899         * tree-sra.c (convert_callers): Likewise.
11900         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
11901         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
11902         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
11904 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
11906         * config/i386/i386.md (*lea_1): Use P mode iterator.
11907         (lea add splitter): Also handle DImode operands.
11908         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
11909         predicate.  Do not use ix86_lea_for_add_ok.
11910         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
11911         (lea ashift splitter): Also handle DImode operands.
11912         (DImode lea ashift splitter): Remove splitter.
11914 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
11916         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
11917         ix86_binary_operator_ok.
11919 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
11921         PR rtl-optimization/44691
11922         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
11923         is not a register.
11925 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
11927         PR target/45070
11928         * config/arm/arm.c (arm_output_epilogue): Ensure that return
11929          value of size 1-3 is handled correctly.
11931 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
11933         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
11934         type for the conditional has wide enough range.
11936 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
11938         PR target/45327
11939         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
11940         ix86_binary_operator_ok.
11942 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
11944         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
11945         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
11946         code to output insn mnemonic.  Fix comment.
11947         (*addsi_1_zext): Add r-r-0 alternative 1.
11948         <TYPE_LEA>: Split insn to lea.
11949         <default>: Handle alternative 1.
11950         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
11951         multi-level if_then_else RTX to set "type" attribute.
11952         <default>: Handle alternative 2.
11953         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
11954         Use cond RTX instead of multi-level if_then_else RTX to set
11955         "type" attribute.
11956         <default>: Handle alternatives 2 and 4.
11957         (lea splitters): Update calls to ix86_lea_for_add_ok.
11959         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
11960         argument.
11961         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
11963 2010-08-18  Richard Guenther  <rguenther@suse.de>
11965         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
11966         use operand helpers.
11968 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
11970         PR middle-end/45292
11971         * optabs.c (expand_bool_compare_and_swap): Expand pending
11972         pops before trying the optab.
11974 2010-08-18  Yao Qi  <yao@codesourcery.com>
11976         PR target/45094
11977         * config/arm/arm.c (output_move_double): Fix typo generating
11978         instructions ('ldr'->'str').
11980 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11982         PR rtl-optimization/42575
11983         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
11984         live ranges.
11986 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11988         * config/arm/arm-protos.h (arm_expand_sync): New.
11989         (arm_output_memory_barrier, arm_output_sync_insn): New.
11990         (arm_sync_loop_insns): New.
11991         * config/arm/arm.c (FL_ARCH7): New.
11992         (FL_FOR_ARCH7): Include FL_ARCH7.
11993         (arm_arch7): New.
11994         (arm_print_operand): Support %C markup.
11995         (arm_legitimize_sync_memory): New.
11996         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
11997         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
11998         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
11999         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
12000         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
12001         (arm_process_output_sync_insn, arm_output_sync_insn): New.
12002         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
12003         * config/arm/arm.h (struct arm_sync_generator): New.
12004         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
12005         (TARGET_HAVE_MEMORY_BARRIER): New.
12006         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
12007         * config/arm/arm.md: Include sync.md.
12008         (UNSPEC_MEMORY_BARRIER): New.
12009         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
12010         (VUNSPEC_SYNC_OP):New.
12011         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
12012         (sync_result, sync_memory, sync_required_value): New attributes.
12013         (sync_new_value, sync_t1, sync_t2): Likewise.
12014         (sync_release_barrier, sync_op): Likewise.
12015         (length): Add logic to length attribute defintion to call
12016         arm_sync_loop_insns when appropriate.
12017         * config/arm/sync.md: New file.
12019 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
12021         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
12022         ENABLE_TREE_CHECKING.
12023         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
12024         and GCC >= 4.3.
12026 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
12028         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
12029         or optimizing for size, always avoid lea if possible.
12031         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
12033 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
12035         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
12036         Dunmmy function with NULL return unless the target is
12037         OSX >= 10.6 (Darwin10).
12039 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
12041         * gcc.c (spec_function): Add remove-outfile.
12042         (remove_outfile_spec_function): New function.
12043         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
12044         * invoke.texi (replace-outfile): Document.
12046 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
12048         PR target/45296
12049         * reginfo.c (globalize_reg): Reject stack registers.
12051 2010-08-17  Richard Guenther  <rguenther@suse.de>
12053         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
12054         list of conditional equivalences.
12055         (free_all_edge_infos): Adjust.
12056         (record_equivalences_from_incoming_edge): Likewise.
12057         (record_cond): Likewise.
12058         (build_and_record_new_cond): Likewise.
12059         (record_conditions): Likewise.
12060         (dom_opt_leave_block): Likewise.
12062 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
12064         * doc/invoke.texi (ms-extension): Add documentation.
12066 2010-08-17  Richard Guenther  <rguenther@suse.de>
12068         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
12070 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
12072         PR c/40563
12073         * c-decl.c (diagnose_uninitialized_cst_member): New function.
12074         (finish_decl): Use it to issue a -Wc++-compat warning about
12075         uninitialized const field in struct or union.
12077         (finish_struct): Use strip_array_types.
12079 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
12081         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
12082         functions.
12083         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
12084         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
12085         call block_nreverse here.
12086         (blocks_nreverse): Rename decl temporary to block.
12088 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
12090         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
12091         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
12092         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
12093         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
12094         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
12095         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
12096         thumb2_iorsi3): Delete.
12097         (orsi_notsi_si): No longer a named pattern.
12098         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
12099         * config/arm/predicates.md (shift_amount_operand): New.
12100         (mult_operator): New.
12101         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
12102         attr enabled): New.
12103         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
12104         arch matches t2.
12105         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
12106         (not_shiftsi_compare0): Likewise, renamed from
12107         arm_notsi_shiftsi_compare0.
12108         (not_shiftsi_compare0_scratch): Likweise, renamed from
12109         arm_notsi_shiftsi_compare0_scratch.
12110         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
12111         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
12112         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
12113         so that the register alternative is disabled when the shift_operator
12114         is MULT.  Use "M" as the constraint for constants.
12115         (arith_shiftsi splitter): Enable for TARGET_32BIT.
12116         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
12117         constraint for constants.
12118         (arith_shiftsi_compare0_scratch): Likewise.
12119         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
12120         Handle Thumb2 alternative.
12122 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
12124         * doc/options.texi (NoDriverArg): Document.
12125         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
12126         -MDX and -MMDX.
12127         * opt-functions.awk (switch_flags): Handle NoDriverArg.
12128         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
12129         marking for CL_NO_DRIVER_ARG options when in the driver.
12130         * opts.h (CL_NO_DRIVER_ARG): Define.
12131         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
12132         CL_COMMON): Update values.
12134 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
12136         * common.opt: Add driver options.
12137         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
12138         * doc/options.texi (Driver, RejectDriver): Document.
12139         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
12140         print_prog_name, print_multi_directory, print_sysroot,
12141         print_multi_os_directory, print_multi_lib,
12142         print_sysroot_headers_suffix, report_times, combine_flag,
12143         use_pipes, wrapper_string): Remove.
12144         (save_switch, driver_unknown_option_callback,
12145         driver_wrong_lang_callback, driver_post_handling_callback,
12146         driver_handle_option): New.
12147         (spec_lang, last_language_n_infiles): Make file-scope static
12148         instead of local to process_command.
12149         (process_command): Use decode_cmdline_options_to_array and
12150         read_cmdline_option for option processing.  Compute have_c in
12151         prescan of decoded options.
12152         * opt-functions.awk (switch_flags): Handle Driver and
12153         RejectDriver.
12154         (var_type, var_type_struct): Handle Separate options as generating
12155         const char * variables.
12156         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
12157         CL_TARGET to be passed by caller if required.
12158         (decode_cmdline_options_to_array): Update comment.
12159         * opts.c (complain_wrong_lang): Handle options only valid for the
12160         driver.
12161         (decode_options): Update call to decode_cmdline_options_to_array.
12162         (print_filtered_help): Ignore driver-only options.
12163         (print_specific_help): Ignore CL_DRIVER.
12164         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
12165         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
12166         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
12167         Update values.
12169 2010-08-16  Richard Guenther  <rguenther@suse.de>
12171         * tree-cfg.c (verify_types_in_gimple_reference): Verify
12172         TARGET_MEM_REF a bit.
12173         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
12174         (create_mem_ref_raw): Always create TMR_OFFSET, store the
12175         alias pointer type via it.
12176         (copy_mem_ref_info): Adjust.
12177         (maybe_fold_tmr): Likewise.
12178         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
12179         (reference_alias_ptr_type): Likewise.
12180         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
12181         adjust documentation of TMR_OFFSET operand.
12182         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
12183         use the alias pointer type.
12184         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
12185         initialize mem attrs but the TMR itself.
12186         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
12187         similar to MEM_REF.
12188         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
12189         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
12190         (unshare_and_remove_ssa_names): Likewise.
12191         (copy_ref_info): Adjust.
12192         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
12193         TARGET_MEM_REF case.
12194         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
12195         at TMR_ORIGINAL.
12196         * tree.h (TMR_ORIGINAL): Remove.
12197         * gimple.c (get_base_address): For TARGET_MEM_REF with a
12198         symbol return that.
12199         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
12200         with a symbol.
12201         (get_addr_base_and_unit_offset): Likewise.
12202         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
12203         TARGET_MEM_REFs.
12204         (indirect_ref_may_alias_decl_p): Likewise.
12205         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
12207 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
12209         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
12210         with GCC version 4.6, the default setting (when not optimizing
12211         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
12212         been changed to -fomit-frame-pointer.
12214 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
12216         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
12217         Darwin10.  Do not link libgcc.a for Darwin >= 9.
12219 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
12221         * doc/invoke.texi (Warning Options): Fix terminology and markup
12222         in the description of how unknown warning options are handled.
12224 2010-08-15  Ira Rosen  <irar@il.ibm.com>
12226         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
12227         in basic blocks.
12228         (vect_supportable_dr_alignment): Check alignment for basic blocks.
12229         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
12230         data references.
12231         (vect_bb_vectorization_profitable_p): New function.
12232         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
12233         check if it's worthwhile to vectorize the basic block.
12235 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
12237         * reload.h (register_move_cost, memory_move_secondary_cost,
12238         secondary_reload_class): Adjust prototype.
12239         * rtl.h (reg_class_subset_p): Adjust prototype.
12240         * reload.c (secondary_reload_class): Change arguments type from
12241         enum reg_class to reg_class_t. Change result type to reg_class_t.
12242         * reginfo.c (register_move_cost, reg_class_subset_p): Change
12243         arguments type from enum reg_class to reg_class_t.
12244         (memory_move_secondary_cost): Change arguments type from
12245         enum reg_class to reg_class_t. Change type of saved_flags to
12246         reg_class_t.
12248         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12249         Remove macros.
12250         (mips_cost): Remove.
12251         (struct mips_rtx_cost_data): Moved to mips.c.
12252         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
12253         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
12254         (mips_cost): Make static.
12255         (mips_canonicalize_move_class): Change argument type to reg_class_t.
12256         Change result type to reg_class_t.
12257         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
12258         type from enum reg_class to reg_class_t.
12259         (mips_register_move_cost): Make static. Change arguments
12260         type from enum reg_class to reg_class_t.
12261         (mips_memory_move_cost): New function.
12262         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12264 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
12266         PR rtl-optimization/43358
12267         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
12268         of a single hard register, using simplify_subreg_regno to decide
12269         what that register should be.
12271 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
12273         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
12274         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
12275         (loongson_pmull<V_suffix>): Rename to...
12276         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
12278 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
12280         * configure.ac: Enable -fomit-frame-pointer on darwin
12281         which support dwarf2.
12282         * config/i386/i386.c (override_options): Same.
12284 2010-08-13  Jie Zhang  <jie@codesourcery.com>
12286         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
12288 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
12290         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
12291         -MMD.
12293 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
12295         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
12296         up dot_prod pattern searching if a stmt is outside the loop.
12298 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
12299             Uros Bizjak  <ubizjak@gmail.com>
12301         * config.gcc: Handle --enable-frame-pointer.
12303         * configure.ac: Add --enable-frame-pointer.
12304         * configure: Regenerated.
12306         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
12307         (override_options): If not configured with --enable-frame-pointer,
12308         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
12309         optimizing for size), -fasynchronous-unwind-tables and
12310         -maccumulate-outgoing-args by default.
12312 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
12314         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
12316         PR middle-end/45262
12317         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
12318         -a overflows.  Normalize the range.
12320 2010-08-12  Richard Guenther  <rguenther@suse.de>
12322         PR tree-optimization/45232
12323         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
12324         for types with undefined overflow.
12325         (reassociate_bb): Allow re-associating of bit and min/max
12326         operations for types with undefined overflow.
12327         * tree-ssa-forwprop.c (associate_plusminus): New function.
12328         (tree_ssa_forward_propagate_single_use_vars): Call it.
12330 2010-08-12  Richard Guenther  <rguenther@suse.de>
12332         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
12333         * tree-ssa-alias.c (get_ptr_info): Move ...
12334         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
12335         align and misalign fields conservatively.
12336         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
12337         derive alignment information.
12338         (evaluate_stmt): Derive alignment information from memory
12339         allocation functions.
12340         * tree.h (get_pointer_alignment): Make unsigned.
12341         * builtins.c (get_object_alignment): Use alignment information we
12342         have computed for pointers.
12343         (get_pointer_alignment): Likewise.  Make conservative, return
12344         and unsigned value.
12345         (expand_builtin_strlen): Adjust.
12346         (expand_builtin_memcmp): Likewise.
12347         (expand_builtin_strcmp): Likewise.
12348         (expand_builtin_strncmp): Likewise.
12349         (get_builtin_sync_mem): Use at least mode alignment.
12350         (fold_builtin_memset): Adjust.
12351         (fold_builtin_memory_op): Likewise.
12352         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
12353         information also dump pointer alignment knowledge.
12354         (dump_gimple_stmt): Likewise.
12356 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
12358         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
12359         (EMPTY_FIELD_BOUNDARY): Remove.
12360         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
12362 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
12364         PR debug/45259
12365         * caller-save.c (save_call_clobbered_regs): Only swap notes with
12366         DEBUG_INSNs if n_regs_saved.
12368 2010-08-12  Wei Guozhi  <carrot@google.com>
12370         PR target/44999
12371         * config/arm/arm.md (andsi3): Change to zero extension if possible.
12372         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
12374 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
12376         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
12378         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
12380 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12382         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
12383         the case removed in the previous patch, when the only phi argument
12384         is defined in the same loop as the phi node itself.  Handle it
12385         separately from the invariant case by both propagating it outside
12386         the region and replacing the phi node with an assign.
12388 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12390         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
12391         constant phi nodes with one argument are is_gimple_min_invariant
12392         and SSA_NAME_IS_DEFAULT_DEF.
12394 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12396         * graphite-cloog-util.c (oppose_constraint):
12397         Extend loop counter's value range (CLOOG_ORG).
12398         (cloog_matrix_to_ppl_constraint): Same.
12399         (new_Constraint_System_from_Cloog_matrix): Same.
12400         * graphite-cloog-compat.h (matrix_num_type): New.
12402 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12404         * graphite.c (graphite_initialize): Do not initialize
12405         CLooG and initialize the Parma Polyhedra Library
12406         manually when using CLOOG_ORG.
12407         (graphite_finalize): Do not finalize CLooG and finalize
12408         the Parma Polyhedra Library manually when using CLOOG_ORG.
12409         * graphite-cloog-compat.h (cloog_initialize): Hide function
12410         when using CLOOG_ORG.
12411         (cloog_finalize): Same.
12413 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12415         * graphite-clast-to-gimple.c (free_scattering): Change
12416         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
12417         (CLOOG_ORG).
12418         (build_cloog_prog): Same.
12419         * graphite-cloog-compat.h (cloog_domain): Removed.
12420         (cloog_scattering): New.
12421         (cloog_set_domain): Removed.
12422         (cloog_set_scattering): New.
12423         (cloog_next_domain): Removed.
12424         (cloog_next_scattering): New.
12425         (cloog_set_next_domain): Removed.
12426         (cloog_set_next_scattering): New.
12427         (CloogScatteringList): New.
12428         (CloogScattering): New.
12429         (cloog_scattering_free): New.
12430         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
12431         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
12432         New.
12434 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12436         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
12437         CloogState.
12438         (set_cloog_options): Same.
12439         (print_clast_stmt): Same.
12440         (scop_to_clast): Same.
12441         (print_generated_program): Same.
12442         (gloog): Same.
12443         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
12444         (scop_to_clast): Extend with CloogState.
12445         * graphite-cloog-util.c: Include graphite-cloog-compat.h
12446         (new_Cloog_Domain_from_ppl_Polyhedron):
12447         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
12448         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
12449         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12450         * graphite-cloog-util.h (build_cloog_prog): Same.
12451         * graphite-cloog-copat.h (build_cloog_prog): New.
12452         (CloogState): New.
12453         (cloog_state_malloc): New.
12454         (cloog_state_free): New.
12455         (cloog_loop_malloc): New.
12456         (cloog_options_malloc): New.
12457         (cloog_statement_alloc): New.
12458         (cloog_domain_from_cloog_matrix): New.
12459         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
12460         (new_Cloog_Domain_from_ppl_Polyhedron): New.
12462 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12464         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
12465         type of NAME now depends on used CLooG version.
12466         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
12467         (gcc_type_for_clast_expr): Same.
12468         (print_clast_stmt): Replace pprint with clast_pprint.
12469         * graphite-cloog-compat.h: Provide compatibility macros for
12470         CLooG Legacy.
12471         (clast_name_p): New.
12472         (clast_expr_term): New.
12473         (clast_expr_red): New.
12474         (clast_expr_bin): New.
12475         (clast_pprint): New.
12477 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12479         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
12480         compatible to newer CLooG releases (CLOOG_ORG).
12481         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
12482         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
12483         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
12484         (build_cloog_prog) : New.
12485         (cloog_program_extract_scalars): New.
12486         (cloog_program_scatter): New.
12488 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12490         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
12491         conditionally (CLOOG_ORG).
12492         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
12493         (cloog_statement_usr): New.
12494         (cloog_domain): Same.
12495         (cloog_set_domain): Same.
12496         (cloog_next_domain): Same.
12497         (cloog_set_next_domain): Same.
12498         (cloog_program_nb_scattdims): Same.
12499         (cloog_program_set_nb_scattdims): Same.
12500         (cloog_program_names): Same.
12501         (cloog_program_set_names): Same.
12502         (cloog_program_set_context): Same.
12503         (cloog_program_set_loop): Same.
12504         (cloog_program_blocklist): Same.
12505         (cloog_program_set_blocklist): Same.
12506         (cloog_program_scaldims): Same.
12507         (cloog_program_set_scaldims): Same.
12508         (cloog_names_nb_parameters): Same.
12509         (cloog_names_set_nb_parameters): Same.
12510         (cloog_names_parameters): Same.
12511         (cloog_names_set_parameters): Same.
12512         (cloog_names_set_nb_iterators): Same.
12513         (cloog_names_set_iterators): Same.
12514         (cloog_names_set_nb_scattering): Same.
12515         (cloog_names_set_scattering): Same.
12516         (cloog_statement_set_usr): Same.
12517         (cloog_loop_set_next): Same.
12518         (cloog_loop_set_domain): Same.
12519         (cloog_loop_set_block): Same.
12520         (cloog_block_list_next): Same.
12521         (cloog_block_list_set_next):
12522         (cloog_block_list_set_block): Same.
12524 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12526         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
12527         a bool.
12528         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
12529         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
12530         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
12531         when something has been changed.
12532         (rewrite_commutative_reductions_out_of_ssa): Same.
12534 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12536         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
12537         handle the case when def is in the sese region.
12538         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
12539         for invariant expressions.
12540         (rewrite_cross_bb_phi_deps): Removed.
12541         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
12542         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
12543         rewrite_cross_bb_phi_deps.
12545 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12547         * graphite-sese-to-poly.c
12548         (rewrite_commutative_reductions_out_of_ssa_loop): Call
12549         scev_analyzable_p only on is_gimple_reg
12551 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12553         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
12554         (rewrite_close_phi_out_of_ssa): Propagate constant values or
12555         parametric expressions outside the scop region.
12556         (rewrite_cross_bb_scalar_deps): Same.
12557         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
12559 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12561         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
12562         SSA_NAME_DEF_STMT only on SSA_NAMEs.
12564 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12566         * tree-scalar-evolution.c (instantiate_scev_name): Do not
12567         instantiate default definitions.
12569 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
12570             Sebastian Pop  <sebastian.pop@amd.com>
12572         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
12573         (loop_exits_from_bb_p): New.
12574         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
12575         (loop_exits_from_bb_p): Declared.
12576         * graphite-scop-detection.c (scopdet_basic_block_info): Call
12577         loop_exits_to_bb_p.
12579 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12581         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
12582         extra parameter for the region.  Call scev_analyzable_p.
12583         (rewrite_reductions_out_of_ssa): Update call to
12584         rewrite_close_phi_out_of_ssa.
12585         (rewrite_cross_bb_phi_deps): Same.
12586         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
12587         parameter for the region.  Call scev_analyzable_p.
12588         (rewrite_commutative_reductions_out_of_ssa): Update call to
12589         rewrite_commutative_reductions_out_of_ssa_loop.
12591 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12593         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
12595 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12597         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
12598         SSA scalar phi nodes that can be scev_analyzable_p.
12600 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12602         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
12603         handle SSA_NAME_IS_DEFAULT_DEF.
12605 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12607         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
12609 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12611         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
12612         case non close-phi nodes with one argument.
12614 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12616         * sese.h (scev_analyzable_p): Scevs could be expressions without
12617         chrecs and still be scev_analyzable_p.
12619 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12621         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12623 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12625         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
12626         * cfgloop.h (struct loop): Remove single_iv field.
12627         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
12628         (scop_canonicalize_loops): Removed.
12629         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
12630         over all the loop phi nodes in loop->header.
12631         (build_poly_scop): Remove use of scop_canonicalize_loops.
12633 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12635         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
12636         handle GIMPLE_CALL.
12638 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12640         * tree-chrec.c (chrec_apply): Should only apply to the specified
12641         variable.  Also handle multivariate chains of recurrences that
12642         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
12644 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12646         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
12647         (debug_clast_name_indexes_1): Removed.
12648         (debug_clast_name_indexes): Removed.
12649         (pbb_to_depth_to_oldiv): Removed.
12650         (build_iv_mapping): Replace the use of rename_map with iv_map.
12651         (translate_clast_user): Remove uses of rename_map.  Allocate and
12652         free iv_map.
12653         (translate_clast_for_loop): Remove uses of rename_map.
12654         (translate_clast_for): Same.
12655         (translate_clast_guard): Same.
12656         (translate_clast): Same.
12657         (gloog): Same.
12658         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
12659         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
12660         * sese.c (set_rename): Now static.
12661         (rename_variables_in_stmt): Removed.
12662         (rename_uses): New.
12663         (is_parameter): Removed.
12664         (is_iv): Removed.
12665         (expand_scalar_variables_call): Removed.
12666         (expand_scalar_variables_ssa_name): Removed.
12667         (expand_scalar_variables_expr): Removed.
12668         (expand_scalar_variables_stmt): Removed.
12669         (expand_scalar_variables): Removed.
12670         (rename_variables): Removed.
12671         (remove_condition): Removed.
12672         (get_true_edge_from_guard_bb): Removed.
12673         (get_false_edge_from_guard_bb): Removed.
12674         (struct igp): Removed.
12675         (default_before_guard): Removed.
12676         (convert_for_phi_arg): Removed.
12677         (add_guard_exit_phis): Removed.
12678         (insert_guard_phis): Removed.
12679         (graphite_copy_stmts_from_block): Now also uses iv_map and a
12680         region.  Do not copy conditions.  Do not copy induction variables.
12681         Call rename_uses.
12682         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
12683         the translated statement.  Use the iv_map for the induction
12684         variable renaming.
12685         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
12686         (set_rename): Removed declaration.
12687         (scev_analyzable_p): ...here.
12688         * tree-chrec.c (chrec_apply_map): New.
12689         * tree-chrec.h (chrec_apply_map): Declared.
12691 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12693         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
12694         insert_loop_close_phis.
12695         * sese.c (name_defined_in_loop_p): Removed.
12696         (expr_defined_in_loop_p): Removed.
12697         (alive_after_loop): Removed.
12698         (close_phi_not_yet_inserted_p): Removed.
12699         (struct alep): Removed.
12700         (add_loop_exit_phis): Removed.
12701         (insert_loop_close_phis): Removed.
12703 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12705         * graphite-cloog-util.c
12706         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
12707         * graphite-poly.c
12708         (psct_scattering_dim_for_loop_depth): Same.
12710 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12712         * graphite-cloog-util.h: Added cloog.h.
12713         * graphite-blocking.c: Removed cloog.h.
12714         * graphite-dependences.c: Same.
12715         * graphite-interchange.c: Same.
12716         * graphite-poly.c: Same.
12717         * graphite-ppl.c: Same.
12718         * graphite-scop-detection.c: Same.
12719         * graphite-sese-to-poly.c:
12720         Removed cloog.h.
12721         Removed graphite-clast-to-gimple.h.
12722         (check_poly_representation): Removed (unused).
12723         * graphite-sese-to-poly.h
12724         (check_poly_representation): Removed (unused).
12726 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12728         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
12729         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
12730         (graphite-cloog-util.o): New.
12731         (graphite-ppl.o): Added graphite-cloog-util.h.
12732         * graphite-clast-to-gimple.c:
12733         Added graphite-cloog-util.h to include statements.
12734         * graphite-cloog-util.c: New.
12735         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
12736         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12737         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12738         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12739         (insert_constraint_into_matrix): Same.
12740         (ppl_Constrain_System_number_of_constraints): Same.
12741         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
12742         (oppose_constraint): Same.
12743         (cloog_matrix_to_ppl_constraint): Same.
12744         (new_Constraint_System_from_Cloog_Matrix): Same.
12745         * graphite-cloog-util.h: New.
12746         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
12747         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12748         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12749         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12750         (insert_constraint_into_matrix): Same.
12751         * graphite-ppl.c:
12752         Added graphite-cloog-util.h to include statements.
12753         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
12754         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12755         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12756         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12757         (insert_constraint_into_matrix): Same.
12758         (ppl_Constrain_System_number_of_constraints): Same.
12759         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
12760         (oppose_constraint): Same.
12761         (cloog_matrix_to_ppl_constraint): Same.
12762         (new_Constraint_System_from_Cloog_Matrix): Same.
12763         * graphite-ppl.h:
12764         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
12765         graphite-cloog-util.h.
12766         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12767         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12768         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12769         (insert_constraint_into_matrix): Same.
12771 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12773         * graphite-clast-to-gimple.c
12774         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
12775         (precision_for_interval): Same.
12776         (gcc_type_for_interval): Same.
12777         (compute_type_for_level): Same.
12778         * graphite-interchange.c
12779         (lst_interchange_profitable_p): Same.
12780         * graphite-poly.c
12781         (psct_scattering_dim_for_loop_depth): Same.
12782         * graphite-ppl.c
12783         (ppl_max_for_le_pointset): Same.
12784         (ppl_min_for_le_pointset): Same.
12786 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12788         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
12789         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
12791 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12793         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
12794         rewrite_close_phi_out_of_ssa.
12796 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12798         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
12800 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12802         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
12803         rename_map.
12804         * sese.c (debug_rename_map): Same.
12805         (get_rename): Same.
12806         (set_rename): Same.
12807         (rename_variables_in_stmt): Same.
12808         (expand_scalar_variables_call): Same.
12809         (expand_scalar_variables_ssa_name): Same.
12810         (expand_scalar_variables_expr): Same.
12811         (expand_scalar_variables_stmt): Same.
12812         (expand_scalar_variables): Same.
12813         (rename_variables): Same.
12814         (graphite_copy_stmts_from_block): Same.
12815         (copy_bb_and_scalar_dependences): Same.
12817 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12819         * graphite-clast-to-gimple.c (copy_renames): Removed.
12820         (translate_clast_for): Do not call copy_renames.
12821         (translate_clast_guard): Same.
12823 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12825         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
12826         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
12827         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
12828         before rewrite_cross_bb_scalar_deps.
12830 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12832         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
12833         Early return in when flag_associative_math is not set.
12835 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12837         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
12838         of SSA copies on edges except for loop->latch.
12840 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12842         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
12843         Split out of rewrite_reductions_out_of_ssa.
12844         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
12845         Declared.
12846         * graphite.c (graphite_transform_loops): Call it.
12848 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12850         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
12852 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
12854         * dbgcnt.def (graphite_scop): New counter.
12855         * graphite.c: Include dbgcnt.h.
12856         (graphite_transform_loops): Use new counter to limit transformations.
12857         * Makefile.in (graphite.o): Depend on DBGCNT_H.
12859 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12861         * passes.c (init_optimization_passes): Add pass_graphite.
12862         Schedule a pass_copy_prop before pass_graphite_transforms.
12863         * timevar.def (TV_GRAPHITE): Declared.
12864         * tree-pass.h (pass_graphite): Declared.
12865         * tree-ssa-loop.c (pass_graphite): New.
12867 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12869         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
12870         Remove calls to rename_nb_iterations and rename_sese_parameters.
12871         * graphite-clast-to-gimple.h (gloog): Update declaration.
12872         * graphite.c (graphite_transform_loops): Update call to gloog.
12873         * sese.c (rename_variables_in_expr): Removed.
12874         (rename_nb_iterations): Removed.
12875         (rename_sese_parameters): Removed.
12876         * sese.h (rename_nb_iterations): Removed.
12877         (rename_sese_parameters): Removed.
12879 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12881         * graphite-clast-to-gimple.c (gloog): Remove call to
12882         sese_adjust_liveout_phis.
12883         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
12884         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
12885         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
12886         rewrite_phi_out_of_ssa.
12887         * sese.c (get_vdef_before_sese): Removed.
12888         (sese_adjust_vphi): Removed.
12889         (sese_adjust_liveout_phis): Removed.
12890         * sese.h (sese_adjust_liveout_phis): Removed.
12892 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12894         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
12895         argument for the place after which to insert the out of SSA copy.
12896         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
12897         (rewrite_phi_out_of_ssa): Same.
12898         (rewrite_cross_bb_scalar_deps): Same.
12899         (insert_copyout): Removed.
12900         (insert_copyin): Removed.
12901         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
12902         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
12903         insert_copyin.
12905 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12907         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
12908         (rewrite_reductions_out_of_ssa): Same.
12909         (rewrite_commutative_reductions_out_of_ssa): Same.
12910         (build_poly_scop): Do not call these functions.
12911         * graphite-sese-to-poly.h (build_poly_scop): Declared.
12912         (rewrite_reductions_out_of_ssa): Declared.
12913         (rewrite_commutative_reductions_out_of_ssa): Declared.
12914         * graphite.c (graphite_transform_loops): Call on every scop
12915         rewrite_commutative_reductions_out_of_ssa before calling
12916         rewrite_reductions_out_of_ssa and build_scop_bbs.
12918 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12920         * graphite-dependences.c (dot_deps): Make system call to dotty run
12921         in background.
12922         (dot_deps_stmt): Same.
12923         * graphite-poly.c (dot_lst): Same.
12925 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12927         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
12928         phi_arg_in_outermost_loop.
12929         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
12930         (remove_invariant_phi): Same.
12932 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
12934         * target.def (output_addr_const_extra): New hook.
12935         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
12936         * doc/tm.texi: Regenerate.
12937         * targhooks.c (default_asm_output_addr_const_extra): New function.
12938         * targhooks.h (default_asm_output_addr_const_extra): Declare.
12939         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
12940         target hook.
12942         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12943         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
12944         * config/i386/i386.h (output_addr_const_extra): Rename to...
12945         (i386_asm_output_addr_const_extra): ...this. Make static.
12946         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12948 2010-08-11  Richard Henderson  <rth@redhat.com>
12950         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
12952 2010-08-11  Nick Clifton  <nickc@redhat.com>
12954         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
12955         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
12956         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12957         stormy16-lib2-cmpsi.c.
12959         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
12960         -O2.
12962 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
12964         * opts.h (struct cl_option_handler_func): Make handler take
12965         cl_decoded_option structure as parameter, not individual elements.
12966         (struct cl_option_handlers): Make callbacks take cl_decoded_option
12967         structure as parameter, not individual elements.
12968         (handle_option): Take cl_decoded_option structure as parameter,
12969         not individual elements.
12970         (handle_generated_option): Declare.
12971         * opts-common.c (handle_option): Take cl_decoded_option structure
12972         as parameter, not individual elements.  Update calls to callback
12973         and handler functions.
12974         (handle_generated_option): New.
12975         (read_cmdline_option): Update calls to callback functions and
12976         handle_option.
12977         * opts.c (common_handle_option, complain_wrong_lang,
12978         unknown_option_callback, post_handling_callback,
12979         lang_handle_option, target_handle_option): Take cl_decoded_option
12980         structure as parameter, not individual elements.
12981         (lang_handle_option, target_handle_option, common_handle_option):
12982         Assert option has at most one argument.
12983         (enable_warning_as_error): Call handle_generated_option instead of
12984         handle_option.  Do not pass -Werror argument as argument of
12985         generated option.
12987 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12989         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
12990         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
12991         (SUBWORD_BOOL_CAS): Likewise.
12992         (SUBWORD_SYNC_OP): Likewise.
12993         (SUBWORD_TEST_AND_SET): Likewise.
12994         (FETCH_AND_OP_WORD): Parenthesise INF_OP
12995         (SUBWORD_SYNC_OP): Likewise.
12996         (OP_AND_FETCH_WORD): Likewise.
12998 2010-08-10  Xinliang David Li  <davidxl@google.com>
13000         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
13001         compute max/min offset in address.
13003 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
13005         * ira-live.c: Include sbitmap.h.
13006         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
13007         Compress live ranges even more.
13009 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13011         * coverage.c (ctr_labels): Delete.
13013 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
13015         PR bootstrap/45177
13016         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
13017         test here from arm_gen_load_multiple_1.
13018         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
13019         multiple_operation_profitable_p.
13021 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13023         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
13024         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
13026 2010-08-10  Richard Henderson  <rth@redhat.com>
13028         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
13029         after saving registers.  Assert that SSE registers are only saved
13030         with a sufficiently aligned frame.
13031         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
13032         remove stack_realign_fp handling.
13033         (ix86_expand_prologue): Save int registers before stack_realign_fp,
13034         and do not mark the stack alignment as frame related.
13035         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
13037         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
13038         saves when re-aligning the stack.
13040 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13042         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
13043         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
13044         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
13046 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13048         * dwarf2out.c (struct die_struct): Move die_tag to the end.
13050 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
13052         * config/arm/iterators.md: New file.
13053         * config/arm/arm.md: Include iterators.md.
13054         (QHSI): Move to new file.
13055         (LTUGEU, cnb, optab, ior_xor): Likewise.
13056         * config/arm/iwmmxt.md (VMMX): Move to new file.
13057         (VSHFT, MMX_char): Likewise.
13058         * config/arm/neon.md (VD): Move to new file.
13059         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
13060         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
13061         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
13062         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
13063         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
13064         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
13065         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
13066         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
13067         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
13068         (Is_d_reg, V_mode_nunits): Likewise.
13069         * config/arm/vec-common.md (VALL): Move to new file.
13070         (VALLW, VINT, VINTW): Likewise.
13072 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
13074         PR middle-end/45182
13075         * combine.c (make_compound_operation): Don't try to convert
13076         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
13078 2010-08-10  Richard Guenther  <rguenther@suse.de>
13080         * tree.h (get_object_alignment): Adjust prototype.
13081         * builtins.c (get_object_alignment): Return unsigned int,
13082         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
13083         and TARGET_MEM_REF properly.
13084         (get_pointer_alignment): Adjust.
13085         * emit-rtl.c (get_mem_align_offset): Adjust comment.
13086         (set_mem_attributes_minus_bitpos): Adjust.
13087         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
13089 2010-08-10  Richard Guenther  <rguenther@suse.de>
13091         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
13092         (copy_prop_visit_assignment): Simplify.
13093         (copy_prop_visit_stmt): Also visit assignments from
13094         constants.
13095         (copy_prop_visit_phi_node): Use operand_equal_p.
13097 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13099         * ipa-split.c (find_split_points): Free stack.
13101 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13103         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
13104         * tree.c (tree_node_kind): Delete corresponding entries.
13106 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13108         * alias.c (may_alias_p): Remove unused ret.
13110 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
13112         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
13113         alias_sets_conflict_p.
13114         (walk_mems_1): Moved from alias.c.
13115         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
13116         in alias.c.
13117         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
13118         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
13119         * alias.c (walk_mems_2): Moved to ddg.c.
13120         (walk_mems_1): Ditto.
13121         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
13122         to ddg.c.
13123         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
13124         disambiguation.
13125         *(may_alias_p): New function to check whether two memory expression
13126         may alias or not. Currently used in buidling inter-iteration memory
13127         dependence.
13128         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
13129         (insn_alias_sets_conflict_p): Removed
13130         *rtl.h (may_alias_p): New function prototype.
13132 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13134         * tree.c (nreverse): Assert that we don't have a BLOCK.
13136 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13138         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
13139         * config/arm/arm.c (arm_get_pcs_model): Likewise.
13140         * config/avr/avr.c (init_cumulative_args): Likewise.
13141         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13142         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13143         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
13144         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
13145         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
13146         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13147         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
13148         * dwarf2out.c (gen_subprogram_die): Likewise.
13149         * function.c (allocate_struct_function): Likewise.
13150         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
13151         (deserves_ellipsis): Delete.
13153 2010-08-09  Richard Guenther  <rguenther@suse.de>
13155         * tree-ssa-copy.c (cached_last_copy_of): Remove.
13156         (valueize_val): New function.
13157         (get_last_copy_of): Remove.
13158         (set_copy_of_val): Simplify.
13159         (dump_copy_of): Likewise.
13160         (copy_prop_visit_cond_stmt): Use valueize_val.
13161         (copy_prop_visit_phi_node): Properly handle unvisited names.
13162         Drop code managing copy-of chains.
13163         (init_copy_prop): Adjust.
13164         (fini_copy_prop): Likewise.
13165         (execute_copy_prop): Remove obsolete comment.
13167 2010-08-09  Richard Guenther  <rguenther@suse.de>
13169         PR middle-end/44632
13170         * function.c (gimplify_parameters): Do not clear addressable
13171         bit of the original parameter.
13173 2010-08-09  Richard Guenther  <rguenther@suse.de>
13175         PR middle-end/45212
13176         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
13177         alignment from MEM_REF offset only if we took it from the
13178         base object.
13180 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
13182         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
13184 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
13186         * c-tree.h (build_arg_info): Declare.
13187         * c-decl.c (build_arg_info): Define.
13188         (get_parm_info): Call it.  Delete initialization code.
13189         * c-parser.c (c_parser_parms_declarator): Likewise.
13190         (c_parser_parms_list_declaractor): Likewise.
13192 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
13194         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
13195         (struct c_arg_info): Change type of tags field.
13196         * c-decl.c (grokdeclarator): Update for changed type of tags field.
13197         (get_parm_info): Likewise.
13198         (store_parm_decls_newstyle): Likewise.
13200 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
13202         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
13203         (branch_island_list): Delete.
13204         (branch_islands): Declare.
13205         (add_compiler_branch_island): Adjust for branch_islands instead of
13206         branch_island_list.
13207         (macho_branch_islands): Likewise.
13208         (no_previous_def): Likewise.
13209         (get_prev_label): Likewise.
13211 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13213         PR boehm-gc/34544
13214         * gthr-posix.h (__gthread_start): Delete.
13215         (__gthread_active_init): Use pthread_default_stacksize_np instead of
13216         pthread_create to determine if hpux pthreads are active.
13217         * gthr-posix95.h (__gthread_start): Delete.
13218         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
13220 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
13222         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
13223         _WIN64 not expanded.
13225 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
13226             H.J. Lu  <hongjiu.lu@intel.com>
13228         PR target/45213
13229         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
13230         to output 32bit SFmode immediate as 8 byte sign extended value.
13232 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13234         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
13235         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
13236         (SUBWORD_BOOL_CAS): Likewise.
13237         (SUBWORD_SYNC_OP): Likewise.
13238         (SUBWORD_TEST_AND_SET): Likewise.
13239         (FETCH_AND_OP_WORD): Parenthesise INF_OP
13240         (SUBWORD_SYNC_OP): Likewise.
13241         (OP_AND_FETCH_WORD): Likewise.
13243 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13245         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
13246         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
13247         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
13248         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
13249         generic part.
13250         (cortex_a9_sched_adjust_cost): New function.
13251         (xscale_sched_adjust_cost): New function.
13252         * config/arm/arm-protos.h (struct tune_params): New field
13253         sched_adjust_cost.
13254         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
13256 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
13258         PR target/44942
13259         * config/sparc/sparc.c (function_arg_advance): Always take into account
13260         the padding, if any.
13262 2010-08-06  Richard Guenther  <rguenther@suse.de>
13264         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
13265         (dump_lattice_value): Dump it.
13266         (get_default_value): Adjust.
13267         (get_constant_value): Likewise.
13268         (set_value_varying): Likewise.
13269         (set_lattice_value): Make sure to not go up the lattice
13270         with bitwise constant values.
13271         (get_value_for_expr): Handle ADDR_EXPRs.
13272         (value_to_double_int): New function.
13273         (get_value_from_alignment): Likewise.
13274         (do_dbg_cnt): Adjust.
13275         (ccp_lattice_meet): Handle partially constant values.
13276         (bit_value_unop_1): New function.
13277         (bit_value_binop_1): Likewise.
13278         (bit_value_unop): Likewise.
13279         (bit_value_binop): Likewise.
13280         (evaluate_stmt): Track partially constant values if
13281         flag_tree_bit_ccp is set.
13282         (ccp_fold_stmt): Dump if we folded a predicate.
13283         (ccp_visit_stmt): Adjust.
13284         * common.opt (ftree-bit-ccp): New flag.
13285         * doc/invoke.texi (ftree-bit-ccp): Document.
13286         * opts.c (decode_options): Enable bit-CCP at -O1.
13288 2010-08-06  Alan Modra  <amodra@gmail.com>
13290         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
13291         and -mrelocatable-lib description.
13293 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
13295         From Martin Thuresson  <martint@google.com>
13296         * postreload.c (reload_cse_simplify_operands): Use
13297         SET_REGNO_RAW instead of SET_REGNO.
13298         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
13299         SET_REGNO.
13300         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
13301         instead of SET_REGNO.
13302         * rtl.h (SET_REGNO_RAW): New macro.
13304 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
13306         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
13307         computations.  Fix formatting issues.
13308         (num_sign_bit_copies1): Likewise.
13309         (canonicalize_condition): Likewise.
13311 2010-08-05  Richard Henderson  <rth@redhat.com>
13313         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
13314         (floor_log2): Use clz_hwi.
13315         (exact_log2): Use ctz_hwi.
13316         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
13317         * builtins.c (fold_builtin_bitop): Use them.
13318         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13319         * combine.c (get_pos_from_mask): Use ctz_hwi.
13320         * double-int.c (double_int_ctz): Likewise.
13321         * explow.c (force_reg): Likewise.
13322         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
13324 2010-08-05  Richard Henderson  <rth@redhat.com>
13326         PR target/45189
13327         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
13328         the alignment constant is properly sign-extended.
13330 2010-08-05  Richard Guenther  <rguenther@suse.de>
13332         * expr.c (store_expr): Use emit_block_move only if both
13333         source and target are MEMs.  Use store_bit_field if only
13334         the target is a MEM.
13336 2010-08-05  Richard Henderson  <rth@redhat.com>
13338         PR debug/45188
13339         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
13340         (INCOMING_RETURN_ADDR_RTX): Likewise.
13341         (dwarf2out_do_frame): Remove conditional compilation.
13342         (dwarf2out_frame_init): Likewise.
13344 2010-08-05  Nicolas Setton  <setton@adacore.com>
13346         * gcov.c (flag_display_progress): New static variable.
13347         (main): Display progress info on standard output if requested.
13348         (options): Add -d/--display-progress.
13349         (print_usage): Print them.
13350         (process_args): Handle them.
13351         * doc/gcov.texi: Document them.
13353 2010-08-05  Martin Jambor  <mjambor@suse.cz>
13355         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
13356         (ipcp_insert_stage): Redirect only edges not flagged with
13357         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
13358         discovered constants.
13360 2010-08-05  Martin Jambor  <mjambor@suse.cz>
13362         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
13363         (struct ipa_param_descriptor): New fields types and
13364         cannot_devirtualize.
13365         (ipa_param_cannot_devirtualize_p): New function.
13366         (ipa_param_types_vec_empty): Likewise.
13367         (ipa_make_edge_direct_to_target): Declare.
13368         * ipa-cp.c: Fixed first stage driver name in initial comment,
13369         described devirtualization there too.
13370         (ipcp_analyze_node): Call ipa_analyze_params_uses.
13371         (ipcp_print_all_lattices): Print devirtualization info.
13372         (ipa_set_param_cannot_devirtualize): New function.
13373         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
13374         lattice to BOTTOM.
13375         (ipcp_init_stage): Merged into...
13376         (ipcp_generate_summary): ...its caller.
13377         (ipcp_change_tops_to_bottom): Also process type lists.
13378         (ipcp_add_param_type): New function.
13379         (ipcp_copy_types): Likewise.
13380         (ipcp_propagate_types): Likewise.
13381         (ipcp_propagate_stage): Also propagate types.
13382         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
13383         Also return true if propagated types require it.
13384         (ipcp_update_callgraph): Dump redirection info.
13385         (ipcp_process_devirtualization_opportunities): New function.
13386         (ipcp_const_param_count): Include known type information.
13387         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
13388         on new node.  Fixed formatting.
13389         * ipa-prop.c (make_edge_direct_to_target): Renamed to
13390         ipa_make_edge_direct_to_target and changed all callers.  Made
13391         externally visible.
13392         (ipa_node_duplication_hook): Duplicate types vector.
13393         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
13394         redirect outgoing calls for which we can't get a decl from the
13395         statement.  Check that we can get a decl from the call statement.
13396         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13397         ipa_analyze_params_uses only when ipa-cp is disabled.
13398         * tree-inline.c (get_indirect_callee_fndecl): Removed.
13399         (expand_call_inline): Do not call get_indirect_callee_fndecl.
13400         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
13401         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
13403 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
13405         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
13406         temporary. Emit move from temporary to accum, so REG_EQUAL note will
13407         be attached to this insn in correct mode.
13409 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
13411         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
13412         using REGNO of base_reg directly.
13414 2010-08-05  Jie Zhang  <jie@codesourcery.com>
13416         PR tree-optimization/45144
13417         * tree-sra.c (type_consists_of_records_p): Return false
13418         if the record contains bit-field.
13420 2010-08-04  Richard Henderson  <rth@redhat.com>
13422         * config/i386/i386.c (struct ix86_frame): Remove padding and
13423         to_allocate members.
13424         (ix86_compute_frame_layout): Don't store them.
13425         (ix86_can_use_return_insn_p): Use a more direct and more obviously
13426         correct condition for the position of the stack pointer.
13427         (ix86_expand_prologue): Compute remaining stack allocation based
13428         on the ultimate stack pointer offset.
13429         (ix86_expand_epilogue): Use more obvious expressions testing for
13430         the stack pointer already pointing to the saved registers.
13432         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
13433         duplication deconstructing the frame pointer.  Simplify
13434         deallocation of the local stack frame.
13436         * reg-notes.def (CFA_EXPRESSION): New.
13437         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13438         (dwarf2out_frame_debug_cfa_expression): New.
13439         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
13441         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
13442         * config/i386/i386.c (ix86_expand_prologue): Set it.
13443         (ix86_expand_epilogue): Clear it.
13444         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
13445         context, add REG_CFA_EXPRESSION notes.
13447         * config/i386/i386.h (struct machine_frame_state): Rename from
13448         machine_cfa_state.  Add members tracking SP and FP regardless
13449         of the current CFA register.
13450         (ix86_cfa_state): Remove.
13451         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
13452         and sse_reg_save_offset members.
13453         (ix86_compute_frame_layout): Set them.
13454         (gen_push): Increment sp_offset too.
13455         (choose_baseaddr_len, choose_baseaddr): New.
13456         (ix86_emit_save_reg_using_mov): New.
13457         (ix86_emit_save_regs_using_mov): Use it.
13458         (ix86_emit_save_sse_regs_using_mov): Likewise.
13459         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
13460         compare vs the saved red_zone_offset.
13461         (pro_epilogue_adjust_stack): Adjust sp_offset.
13462         (ix86_adjust_stack_and_probe): Likewise.
13463         (ix86_expand_prologue): Set up, use, and validate the new
13464         frame_state_info members.  Use gen_frame_mem.
13465         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
13466         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
13467         new frame_state_info members.
13468         (ix86_emit_leave): Likewise.
13469         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
13470         out-of-range stack pointer offsets here.
13471         (ix86_emit_restore_sse_regs_using_mov): Likewise.
13472         (ix86_expand_epilogue): Use and validate the new frame_state_info
13473         members.  Break up and simplify the logic selecting the
13474         restore_regs_via_mov code path.  Ensure that there will be no
13475         out-of-range stack pointer offsets.
13477         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
13479         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
13480         argument name to reflect the expected tree; fix indentation.
13481         (ix86_asm_output_function_label): Output the entire 32-bit
13482         ms_hook here as bytes ...
13483         (ix86_expand_prologue): ... not here as insns.  Attach the
13484         unwind info for the ms_hook to a blockage insn.
13485         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
13486         (ix86_ms_bitfield_layout_p): Fix indentation.
13487         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
13489         * config/i386/i386.c (ix86_using_red_zone): New.
13490         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
13491         ix86_expand_prologue, ix86_force_to_memory): Use it.
13493         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
13494         saving the int registers.
13496         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
13497         and DWARF2_UNWIND_INFO conditional compilation.
13499 2010-08-04  Richard Henderson  <rth@redhat.com>
13501         PR debug/45171
13502         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
13503         an is_naming_typedef_decl.
13505 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
13507         PR rtl-optimization/45162
13508         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
13509         * dce.c (word_dce_process_block): Likewise.
13511 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
13513         PR target/44583
13514         * config/ia64/constraints.md (Z): New.
13515         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
13516         (xfreg_or_signed_fp01_operand): New.
13517         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
13518         with fr_reg_or_signed_fp01_operand and constraint G with Z.
13519         (subsf3): Ditto.
13520         (*maddsf4): Ditto.
13521         (*msubsf4): Ditto.
13522         (adddf3): Ditto.
13523         (adddf3_trunc): Ditto.
13524         (subdf3): Ditto.
13525         (*subdf3_trunc): Ditto.
13526         (*madddf4): Ditto.
13527         (*madddf4_trunc): Ditto.
13528         (*msubdf4): Ditto.
13529         (*msubdf4_trunc): Ditto.
13530         (addxf3): Replace xfreg_or_fp01_operand with
13531         xfreg_or_signed_fp01_operand and constraint G with Z.
13532         (*addxf3_truncsf): Ditto.
13533         (*addxf3_truncdf): Ditto.
13534         (subxf3): Ditto.
13535         (*subxf3_truncsf): Ditto.
13536         (*subxf3_truncdf): Ditto.
13537         (*maddxf4): Ditto.
13538         (*maddxf4_truncsf): Ditto.
13539         (*maddxf4_truncdf): Ditto.
13540         (*msubxf4): Ditto.
13541         (*msubxf4_truncsf): Ditto.
13542         (*msubxf4_truncdf): Ditto.
13544 2010-08-04  Richard Guenther  <rguenther@suse.de>
13546         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
13547         if either alias-set is zero.
13549 2010-08-04  Richard Guenther  <rguenther@suse.de>
13551         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
13552         * tree-ssa-ccp.c: ... here.
13553         * tree-ssa-copy.c: ... and here.
13554         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
13555         value_range_t): Move ...
13556         * tree-vrp.c: ... here.
13557         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
13558         (substitute_and_fold): Adjust prototype.
13559         * tree-ssa-propagate.c (replace_uses_in): Adjust.
13560         (replace_phi_args_in): Likewise.
13561         (substitute_and_fold): Take callback to query lattice instead
13562         of pointer to lattice.  Replace SSA name defs with lattice
13563         values first.
13564         * tree-ssa-ccp.c (ccp_finalize): Adjust.
13565         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
13566         (get_value): New function.
13567         (fini_copy_prop): Adjust.
13568         * tree-vrp.c (vrp_finalize): Adjust.
13570 2010-08-04  Richard Guenther  <rguenther@suse.de>
13572         PR middle-end/45176
13573         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
13574         points-to set for original MEM_REF.
13576 2010-08-04  Richard Guenther  <rguenther@suse.de>
13578         * tree-ssa-ccp.c (get_constant_value): New function.
13579         (get_rhs_assign_op_for_ccp): Remove.
13580         (valueize_op): New function.
13581         (ccp_fold): Use get_constant_value and valueize_op.
13582         (fold_const_aggregate_ref): Likewise.
13583         (ccp_fold_stmt): Likewise.
13584         (visit_assignment): Simplify.
13586 2010-08-04  Richard Guenther  <rguenther@suse.de>
13588         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
13589         * double-int.h (double_int_ctz): Declare.
13590         * double-int.c (double_int_ctz): New function.
13592 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
13594         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
13595         Define.
13596         picochip_expand_movmemhi : Expand movmem pattern.
13597         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
13598         Declare.
13599         * config/picochip/picochip.md (movmemhi) : New pattern.
13601 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
13603         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
13605 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
13607         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
13608         NEG as operand of a MULT by merging it with the other operand.
13609         * combine.c (make_compound_operation): Use trunc_int_for_mode when
13610         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
13611         MULT.
13612         * config/arm/constraints.md (M): Examine only 32 bits of a
13613         HOST_WIDE_INT.
13614         * config/arm/predicates.md (power_of_two_operand): Likewise.
13616 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13618         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
13619         non-NOTE insns.
13621 2010-08-03  Jan Hubicka  <jh@suse.cz>
13623         * ipa-split.c (struct split_point): Add split_part_set_retval.
13624         (find_retval): Forward declare.
13625         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
13626         (consider_split): Compute current->split_part_set_retval.
13627         (visit_bb): Do not look into return value.
13628         (split_function): Handle !split_part_set_retval
13630 2010-08-03  Martin Jambor  <mjambor@suse.cz>
13632         * tree-sra.c (completely_scalarize_record): New parameter REF, create
13633         its own access->expr intead of using build_ref_for_offset.
13635 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
13637         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
13638         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
13639         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
13640         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
13641         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
13642         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
13643         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
13644         DEFAULT_SWITCH_TAKES_ARG.
13645         * config/rx/rx.opt (-patch=): Remove option.
13646         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
13647         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
13648         * doc/invoke.texi (RX Options): Remove -patch=.
13649         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
13650         (option_map): Remove --profile-blocks, --quiet and --silent.
13652 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
13654         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
13655         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
13656         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
13657         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
13658         Update calls to ix86_expand_compare and ix86_expand_branch.
13659         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
13660         ix86_expand_compare.
13661         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
13662         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
13663         Make static.
13664         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
13665         and ix86_compare_op1.  Update calls to ix86_expand_compare.
13666         (ix86_expand_int_movcc): Ditto.
13667         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
13668         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
13669         (ix86_expand_setcc): Ditto.
13670         (ix86_expand_compare): Remove prototype.
13671         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
13672         ix86_compare_op0 and ix86_compare_op1.  Update calls
13673         to ix86_expand_branch to directly pass operands[1] and operands[2].
13674         (cbranchxf4): Ditto.
13675         (cbranch<MODEF:mode>4): Ditto.
13676         (cbranchcc4): Ditto.
13677         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
13678         Update calls to ix86_expand_setcc to directly pass operands[2] and
13679         operands[3].
13680         (cstorexf4): Ditto.
13681         (cstore<MODEF:mode>4): Ditto.
13682         (cstorecc4): Ditto.
13684 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
13686         PR target/45063
13687         * caller-save.c (save_call_clobbered_regs): Remove regs from
13688         hard_regs_saved when they are set.
13690 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
13692         PR target/41089
13693         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
13694         as volatile.
13696 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
13698         * common.opt (ftree-loop-distribute-patterns): New.
13699         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
13700         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
13701         at -O3.
13702         * tree-data-ref.c (stores_zero_from_loop): New.
13703         * tree-data-ref.h (stores_zero_from_loop): Declared.
13704         * tree-loop-distribution.c (tree_loop_distribution): Call
13705         stores_zero_from_loop.
13706         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
13708 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
13710         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
13711         into account.
13713         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
13714         * config/arm/arm.c (thumb1_code): New variable.
13715         (arm_override_options): Set it.
13716         (thumb1_final_prescan_insn): Keep track of condition code status.
13717         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
13718         jumps that depend on them.
13719         * config/arm/arm.h (thumb1_code): Declare variable.
13720         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
13721         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
13722         thumb1_cc_mode.
13723         (CC_STATUS_INIT): New macro.
13724         * config/arm/constraints.md (Pd): New constraint.
13725         * config/arm/predicates.md (noov_comparison_operator): New predicate.
13726         * config/arm/arm.md (is_thumb1): New define_attr.
13727         (conds): Set default to "clob" when generating Thumb1 code.
13728         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
13729         code are set.  Use two-operand assembly syntax.
13730         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
13731         pattern.
13732         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
13733         codes are set.  Use two-operand assembly syntax.
13734         (zero_extendhisi splitter): Remove constraints.
13735         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
13736         thumb1_movsf_insn): Set conds attribute as appropriate.
13737         (cbranchsi4_insn): Use condition code status from struct
13738         machine_function to determine whether the comparison can be eliminated.
13739         Discourage the alternative using high registers.
13740         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
13741         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
13742         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
13743         subsi3_cbranch): Delete.
13744         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
13745         one subtract and one cbranch insn.
13747         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
13748         thumb2_movdf_soft_insn): Delete patterns.
13749         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
13750         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
13751         (pool_range, neg_pool_range): Use them to define defaults.
13752         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
13753         and allow for TARGET_32BIT.
13755         PR target/40457
13756         * config/arm/arm.h (arm_regs_in_sequence): Declare.
13757         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
13758         load_multiple_sequence, store_multiple_sequence): Delete
13759         declarations.
13760         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
13761         declarations.
13762         * config/arm/ldmstm.md: New file.
13763         * config/arm/arm.c (arm_regs_in_sequence): New array.
13764         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
13765         CHECK_REGS.  All callers changed.
13766         If SAVED_ORDER is nonnull, copy the computed order into it.
13767         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
13768         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
13769         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
13770         If SAVED_ORDER is nonnull, copy the computed order into it.
13771         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
13772         like REGS.  Handle Thumb mode.
13773         (arm_gen_load_multiple_1): New function, broken out of
13774         arm_gen_load_multiple.
13775         (arm_gen_store_multiple_1): New function, broken out of
13776         arm_gen_store_multiple.
13777         (arm_gen_multiple_op): New function, with code from
13778         arm_gen_load_multiple and arm_gen_store_multiple moved here.
13779         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
13780         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
13781         changed.
13782         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
13783         * config/arm/predicates.md (commutative_binary_operator): New.
13784         (load_multiple_operation, store_multiple_operation): Handle more
13785         variants of these patterns with different starting offsets.  Handle
13786         Thumb-1.
13787         * config/arm/arm.md: Include "ldmstm.md".
13788         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
13789         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
13790         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
13791         peepholes): Delete.
13792         * config/arm/ldmstm.md: New file.
13793         * config/arm/arm-ldmstm.ml: New file.
13795         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
13796         if statement which adds extra costs to frame-related expressions.
13798 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13800         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
13802 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
13804         PR target/45142
13805         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
13806         alternative 2.
13807         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
13808         split V4SI operands.
13810 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
13812         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
13813         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
13814         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
13815         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
13817 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
13819         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
13820         LOCAL_INCLUDE_DIR.
13822 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
13824         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
13825         used in the call to optab_for_tree_code.  Fix the second
13826         is_widening_mult_p call.  Check that both unwidened operands
13827         have the same sign.
13829 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
13831         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
13833 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
13835         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
13837 2010-07-30  DJ Delorie  <dj@redhat.com>
13839         * config/rx/predicates.md (rx_constshift_operand): New.
13840         * config/rx/rx.md (zs_cond): New.
13841         (cbranchsi4): Remove mode.
13842         (*cbranchsi4_<code>): Likewise.
13843         (*tstbranchsi4_<code>): New.
13844         (*tstbranchsi4r_<code>): New.
13845         (*tstbranchsi4m_eq): New.
13846         (*tstbranchsi4m_ne): New.
13847         (cbranchsf4): Remove mode.
13848         (*cbranchsf4_<code>): Likewise.
13850 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
13852         * rtlanal.c (simplify_subreg_regno): Don't treat
13853         HARD_FRAME_POINTER_REGNUM specially.
13855 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
13857         * common.opt (-G): Don't define option here.
13858         * config/g.opt: New.
13859         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
13860         rs6000/powerpc and score targets.
13861         * opts.c (common_handle_option): Don't handle -G here.
13862         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
13863         * config/frv/frv.c (frv_handle_option): Handle -G.
13864         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
13865         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
13866         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
13867         * config/mips/mips.c (mips_handle_option): Handle -G.
13868         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
13869         * config/score/score.c (score_handle_option): Handle -G.
13871 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
13873         * config/mmix/mmix.c: Include basic-block.h.
13875 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
13877         PR debug/45055
13878         PR rtl-optimization/45137
13879         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
13880         prototypes.
13881         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
13882         New functions.
13883         * combine.c (next_nonnote_nondebug_insn): Removed.
13884         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
13885         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
13886         * sched-deps.c (sched_analyze_insn): Likewise.
13887         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
13888         * rtlanal.c (canonicalize_condition): Likewise.
13889         * postreload.c (reload_combine_recognize_pattern): Likewise.
13890         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
13892 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
13894         * config/i386/i386.md (int_cond): Remove code iterator.
13895         (fp_cond): Ditto.
13896         (cbranch<mode>4): Use ordered_comparison_operator predicate
13897         for operator0.
13898         (cstore<mode>4): Ditto for operator1.
13899         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
13900         (add<mode>cc): ditto.
13902 2010-07-30  Richard Guenther  <rguenther@suse.de>
13904         PR middle-end/45141
13905         * expr.c (expand_expr_real_1): Check for not handled base address.
13907 2010-07-30  Richard Guenther  <rguenther@suse.de>
13909         * ipa-prop.c (ipa_modify_formal_parameters): Use
13910         build_distinct_type_copy.
13912 2010-07-30  Anthony Green  <green@moxielogic.com>
13914         * config/moxie/rtems.h: New file.
13915         * config.gcc: Add moxie-rtems support.
13917 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
13919         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
13920         df flags as in run_fast_df_dce.
13922 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
13924         Revert:
13925         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13927         * rtl.def (NOTE): Swap operands 4 and 5.
13928         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
13929         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
13930         Adjust accordingly.
13931         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
13933 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
13935         PR debug/45110
13936         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
13937         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
13938         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
13939         formal parameters.
13940         (gen_decl_die): Change return type to dw_die_ref, return what
13941         gen_formal_parameter_die returned.
13943 2010-07-29  Martin Jambor  <mjambor@suse.cz>
13945         * dbgcnt.def (eipa_sra): New counter.
13946         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
13948 2010-07-29  Xinliang David Li  <davidxl@google.com>
13950         PR bootstrap/45119
13951         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
13952         in revision 162652.
13954 2010-07-29  Richard Guenther  <rguenther@suse.de>
13956         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
13957         (TV_TREE_STORE_CCP): Likewise.
13958         (TV_TREE_REDPHI): Likewise.
13960 2010-07-29  Richard Guenther  <rguenther@suse.de>
13962         * double-int.h (double_int_and_not): New function.
13963         * combine.c (try_combine): Use it.
13964         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
13966 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
13968         PR rtl-optimization/42575
13969         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
13970         Argument AU removed.  All callers changed.  Ignore artificial refs.
13971         Use return value of df_word_lr_simulate_defs to decide whether an insn
13972         is necessary.
13973         (fast_dce): Rename arg to WORD_LEVEL.
13974         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
13975         static.
13976         (pass_fast_rtl_byte_dce): Delete.
13977         * dce.h (run_word_dce): Declare.
13978         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
13979         All callers changed.  Simplify code to only deal with two-word regs.
13980         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
13981         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
13982         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
13983         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
13984         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
13985         (df_word_lr_mark_ref): Declare.
13986         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
13987         df_word_lr_simulate_uses): Declare or rename from byte variants.
13988         (df_byte_lr_simulate_artificial_refs_at_top,
13989         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
13990         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
13991         declarations.
13992         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
13993         (enum df_mm): Delete.
13994         * df-byte-scan.c: Delete file.
13995         * df-problems.c (df_word_lr_problem_data): Renamed from
13996         df_byte_lr_problem_data, all members deleted except for
13997         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
13998         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
13999         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
14000         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
14001         df_byte_lr_confluence_0): Delete functions.
14002         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
14003         callers changed.
14004         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
14005         Don't initialize members that were deleted, don't try to discover data
14006         about registers.  Ignore hard regs.
14007         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
14008         (df_word_lr_mark_ref): New function.
14009         (df_word_lr_bb_local_compute): Renamed from
14010         df_byte_bb_lr_local_compute; all callers changed.  Use
14011         df_word_lr_mark_ref.  Assert that artificial refs don't include
14012         pseudos.  Ignore hard registers.
14013         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
14014         Assert that exit block uses don't contain pseudos.
14015         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
14016         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
14017         callers changed.  Ignore hard regs.
14018         (df_word_lr_transfer_function): Renamed from
14019         df_byte_lr_transfer_function; all callers changed.
14020         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
14021         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
14022         changed.
14023         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
14024         callers changed.
14025         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
14026         confluence operator 0 set to NULL.
14027         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
14028         callers changed.
14029         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
14030         Return bool, true if bitmap changed or insn otherwise necessary.
14031         All callers changed.  Simplify using df_word_lr_mark_ref.
14032         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
14033         all callers changed.  Simplify using df_word_lr_mark_ref.
14034         * lower-subreg.c: Include "dce.h"
14035         (decompose_multiword_subregs): Call run_word_dce if df available.
14036         * Makefile.in (lower-subreg.o): Adjust dependencies.
14037         (df-byte-scan.o): Delete.
14038         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
14040 2010-07-29  Richard Guenther  <rguenther@suse.de>
14042         * tree.c (build_vector): Assert that the vector constant
14043         has enough elements.
14044         (build_vector_from_ctor): Pad with trailing zeros.
14046 2010-07-29  Richard Guenther  <rguenther@suse.de>
14048         PR tree-optimization/45120
14049         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14050         Handle offset in DEREFs properly.
14051         (get_constraint_for_1): Handle MEM_REF offset properly.
14053 2010-07-29  Richard Guenther  <rguenther@suse.de>
14055         PR middle-end/45034
14056         * convert.c (convert_to_integer): Always use an unsigned
14057         type for narrowed negate and bitwise not.
14059 2010-07-29  Ira Rosen  <irar@il.ibm.com>
14061         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
14062         to outer loop when creating reduction epilogue for double reduction,
14063         and switch back to the inner loop when updating the phi nodes.
14064         Update uses of outer loop exit phi nodes in double reduction (instead
14065         of uses of reduction).
14067 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
14069         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
14070         popcount on power7 and parity on power6 systems.
14071         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
14072         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
14073         instructions.
14075         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
14076         (UNSPEC_PARITY): Ditto.
14077         (SFDF): New iterator for SF/DF.
14078         (rreg2): New mode attribute for floating register constraint.
14079         (TARGET_FLOAT): New mode attribute for whether single/double float
14080         is supported.
14081         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
14082         pattern.
14083         (parity<mode>2_cmpb): New insn for parity on power6 and newer
14084         machines.
14085         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
14086         pattern.  Add support for fcpsgn instruction added in power6.
14087         (copysignsf3): Delete.
14088         (copysigndf3): Delete.
14089         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
14090         instead of if_then_else in RTL to avoid problems with -0.
14092         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
14093         of if_then_else to mirror scalar code.
14094         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
14095         rs6000.md.
14097         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
14098         instead of if_then_else.
14100 2010-07-28  Xinliang David Li  <davidxl@google.com>
14102         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
14103         (dump_cand): Dump var_before/after.
14104         (htab_inv_expr_eq): New function.
14105         (htab_inv_expr_hash): New function.
14106         (tree_ssa_iv_optimize_init): Support pseudo invariants.
14107         (add_candidate_1): consider base type precision.
14108         (set_use_iv_cost): New parameter.
14109         (adjust_setup_cost): Use profile information.
14110         (get_address_cost): Do not hard code width in computing address
14111         offset limits.
14112         (compare_aff_trees): New function.
14113         (get_loop_invariant_expr_id): New function.
14114         (get_computation_cost_at): New parameter and use profile information.
14115         (get_computation_cost): New parameter.
14116         (determine_use_iv_cost_generic): Pass new parameter.
14117         (determine_use_iv_cost_address): Ditto.
14118         (determine_use_iv_cost_condition): Ditto.
14119         (autoinc_possible_for_pair): Ditto.
14120         (determine_use_iv_costs): More dumps.
14121         (iv_ca_get_num_inv_exprs): New function.
14122         (iv_ca_recount_cost): Consider loop invariants in register pressure
14123         cost.
14124         (iv_ca_add_use): New parameter.
14125         (iv_ca_dump): Better dumping.
14126         (iv_ca_extend): New parameter.
14127         (try_add_cand_for): Attempt to get better partial solution.
14128         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
14129         (create_new-ivs): More dumps.
14130         (rewrite_use_compare): Ditto.
14131         (free_loop_data): More cleanup.
14132         (treee_ssa_iv_optimize_finalize): Ditto.
14134 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
14136         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
14137         * config/i386/i386.c (ix86_profile_before_prologue): New.
14138         (override_options): Add special handling for -mfentry.
14139         (ix86_function_regparm): Likewise.
14140         (ix86_function_sseregparm): Likewise.
14141         (ix86_frame_pointer_required): Likewise.
14142         (ix86_expand_prologue): Check for ms_hook_prologue.
14143         (x86_function_profiler): Adjust mcount output.
14144         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
14145         * config/i386/i386.opt (mfentry): New.
14146         * doc/invoke.texi (mfentry): Add documentation.
14147         * doc/tm.texi: Regenerated..
14148         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
14149         * final.c (final_start_function): Replace macro
14150         PROFILE_BEFORE_PROLOGUE by target hook.
14151         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14152         * target.def (profile_before_prologue): New hook.
14153         * targhooks.c (default_profile_before_prologue): New.
14154         * targhooks.h (default_profile_before_prologue): New.
14156 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
14158         PR debug/45105
14159         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
14161         PR debug/45103
14162         * dwarf2out.c (dwarf2out_var_location): Always consider
14163         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
14165 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
14167         PR rtl-optimization/45107
14168         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
14170 2010-07-28  Richard Guenther  <rguenther@suse.de>
14172         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
14173         (set_lattice_value): Do not query an old default value.
14174         (get_value_for_expr): New function.  Properly canonicalize
14175         float values.
14176         (ccp_visit_phi_node): Use it.
14178 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
14180         * config/arm/arm.c (arm_pcs_default): Remove static.
14181         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
14182         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
14183         (arm_pcs_default): Declare.
14185 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
14187         * config/rs6000/rs6000.c (rs6000_override_options):
14188         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
14189         ... to darwin_rs6000_override_options.
14190         (rs6000_return_in_memory): Update preceding comment for darwin
14191         64 bit ABI.  Use TARGET_MACHO inline.
14192         (rs6000_darwin64_struct_check_p): New.
14193         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
14194         (function_arg): Likewise.
14195         (rs6000_arg_partial_bytes): Likewise.
14196         (rs6000_function_value): Likewise.
14198 2010-07-28  Andi Kleen  <ak@linux.intel.com>
14200         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
14202 2010-07-28  Richard Guenther  <rguenther@suse.de>
14204         PR middle-end/44903
14205         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
14206         targets try harder to not generate unaligned accesses.
14208 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
14210         PR rtl-optimization/45101
14211         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
14212         for gcse-las.
14214 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
14216         PR tree-optimization/44885
14217         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
14218         with non-aliased component.
14220 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
14222         * config/darwin-driver.c (SWITCH_TAKES_ARG,
14223         WORD_SWITCH_TAKES_ARG): Remove.
14224         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
14225         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
14226         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
14227         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
14228         definitions from gcc.c.
14229         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
14230         defaults.h.
14231         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
14232         Move to defaults.h.
14233         * opts-common.c: Include tm.h.
14234         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
14235         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
14236         Handle more than one argument.  Set canonical_option_num_elements.
14237         (decode_cmdline_options_to_array): Set
14238         canonical_option_num_elements and trailing elements of
14239         canonical_option.
14240         * opts.h (struct cl_decoded_option): Allow four elements in
14241         canonical_option.  Add field canonical_option_num_elements.
14242         * Makefile.in (opts-common.o): Update dependencies.
14244 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
14246         PR middle-end/44790
14247         PR middle-end/44993
14248         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
14249         sure the base has address_mode before adding the offset.
14251 2010-07-27  Xinliang David Li  <davidxl@google.com>
14253         * tree-flow.h (create_mem_ref): Add one new parameter.
14254         * tree-ssa-address.c (create_mem_ref): New parameter.
14255         (addr_to_parts): Ditto.
14256         (move_variant_to_index): New function.
14257         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
14259 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14261         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
14262         4 and 5.
14263         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
14264         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
14265         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
14266         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
14267         CODE_LABELs and NOTEs.
14268         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
14269         * combine.c (try_combine): Likewise.
14270         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14271         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
14273 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14275         * coretypes.h (struct cl_option_handlers): Declare.
14276         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
14277         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
14278         * langhooks-def.h (lhd_handle_option): Declare.
14279         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
14280         * langhooks.c (lhd_handle_option): New.
14281         * langhooks.h (struct lang_hooks): Update prototype and return
14282         value type of handle_option hook.
14283         * optc-gen.awk: Generate target_flags_explicit definition for the
14284         driver.
14285         * opts-common.c: Include diagnostic.h.
14286         (handle_option): Move from opts.c.  Update prototype and return
14287         value type.  Use handlers structure.
14288         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
14289         handlers structure.
14290         (set_option): Move from opts.c.
14291         * opts.c (common_handle_option): Update prototype and return value
14292         type.  Update calls to handle_option and enable_warning_as_error.
14293         (unknown_option_callback, post_handling_callback,
14294         lang_handle_option, target_handle_option): New.
14295         (handle_option, read_cmdline_option): Move to opts-common.c.
14296         (read_cmdline_options): Update prototype.  Update call to
14297         read_cmdline_option.
14298         (decode_options): Initialize and use handlers structure.
14299         (set_option): Move to opts-common.c.
14300         (enable_warning_as_error): Update prototype.  Update call to
14301         handle_option.
14302         * opts.h (struct cl_option_handler_func, struct
14303         cl_option_handlers): New.
14304         (handle_option, enable_warning_as_error): Update prototypes.
14305         (read_cmdline_option): Declare.
14306         * Makefile.in (opts-common.o): Update dependencies.
14308 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14310         * config/arm/arm.c (params.h): Include.
14311         (arm_override_options): Tune gcse-unrestricted-cost.
14312         * config/arm/t-arm (arm.o): Define dependencies.
14314 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14316         PR target/42495
14317         PR middle-end/42574
14318         * basic-block.h (get_dominated_to_depth): Declare.
14319         * dominance.c (get_dominated_to_depth): New function, use
14320         get_all_dominated_blocks as a base.
14321         (get_all_dominated_blocks): Use get_dominated_to_depth.
14323         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
14324         (hoist_exprs): Remove.
14325         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
14326         (compute_code_hoist_vbeinout): Add debug print outs.
14327         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
14329         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
14330         quadratic behavior.
14331         * params.h (MAX_HOIST_DEPTH): New macro.
14332         * doc/invoke.texi (max-hoist-depth): Document.
14334 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14336         PR rtl-optimization/40956
14337         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
14338         constants.
14340 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14342         PR target/42495
14343         PR middle-end/42574
14344         * config/arm/arm.c (legitimize_pic_address): Use
14345         gen_calculate_pic_address pattern to emit calculation of PIC address.
14346         (will_be_in_index_register): New function.
14347         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
14348         (thumb1_legitimate_address_p): Use it provided !strict_p.
14349         * config/arm/arm.md (calculate_pic_address): New expand and split.
14351 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14353         PR target/42495
14354         PR middle-end/42574
14355         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
14356         * config/arm/arm.md (define_split "J", define_split "K"): Make
14357         IRA/reload friendly.
14359 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14361         * gcse.c (insert_insn_end_basic_block): Update signature, remove
14362         unused checks.
14363         (pre_edge_insert, hoist_code): Update.
14365 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14367         PR target/42495
14368         PR middle-end/42574
14369         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
14371 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14373         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
14375 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14377         PR rtl-optimization/40956
14378         PR target/42495
14379         PR middle-end/42574
14380         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
14381         for hoisting.
14382         (hoist_code): Count occurences in current block too.
14384 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14386         * gcse.c (struct expr:max_distance): New field.
14387         (doing_code_hoisting_p): New static variable.
14388         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
14389         simple expressions, don't change behavior for PRE.  Set max_distance.
14390         (insert_expr_in_table): Set new max_distance field.
14391         (hash_scan_set): Update.
14392         (hoist_expr_reaches_here_p): Stop search after max_distance
14393         instructions.
14394         (find_occr_in_bb): New static function.  Use it in ...
14395         (hoist_code): Calculate sizes of basic block before any changes are
14396         done.  Pass max_distance to hoist_expr_reaches_here_p.
14397         (one_code_hoisting_pass): Set doing_code_hoisting_p.
14399         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
14400         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
14401         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
14402         macros.
14403         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
14404         Document.
14406 2010-07-27  Jeff Law  <law@redhat.com>
14407             Maxim Kuvyrkov  <maxim@codesourcery.com>
14409         * gcse.c (compute_transpout, transpout): Remove, move logic
14410         to prune_expressions.
14411         (compute_pre_data): Move pruning of trapping expressions ...
14412         (prune_expressions): ... here.  New static function.
14413         (compute_code_hoist_data): Use it.
14414         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
14416 2010-07-27  Xinliang David Li  <davidxl@google.com>
14418         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
14419         (rewrite_use_address): Adjust iv update position when needed.
14421 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14423         * dbgcnt.def (hoist_insn): New debug counter.
14424         * gcse.c (hoist_code): Use it.
14426 2010-07-27  Xinliang David Li  <davidxl@google.com>
14428         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
14429         (niter_for_single_dom_exit): Passes additional parameter.
14430         (iv_period): Fix comments.
14431         (may_eliminate_iv): Handles multiple exit loops properly.
14432         (free_tree_niter_desc): New function.
14433         (free_loop_data): Frees up loop iteration descriptors.
14435 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14437         PR target/44542
14438         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
14439         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
14440         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
14441         (expand_one_var): Don't consider DECL_ALIGN for variables for
14442         which expand_one_stack_var_at has been already called.
14444         PR testsuite/44701
14445         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
14446         constraints on IA-64.
14448 2010-07-27  Jie Zhang  <jie@codesourcery.com>
14450         PR target/44290
14451         Revert:
14452         2010-07-23  Jie Zhang  <jie@codesourcery.com>
14454         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
14455         false if ! tree_versionable_function_p.
14457 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14459         * dwarf2out.c (add_data_member_location_attribute): Use
14460         add_AT_unsigned instead of add_AT_int if offset is non-negative.
14462 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14464         * postreload.c (try_replace_in_use): New static function.
14465         (reload_combine_recognize_const_pattern): Use it here.  Allow
14466         substituting into a final add insn, and substituting into a memory
14467         reference in an insn that sets the reg.
14469 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14471         * common.opt (o): Add MissingArgError.
14472         * doc/options.texi (MissingArgError): Document.
14473         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
14474         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
14475         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
14476         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
14477         * langhooks.h (struct lang_hooks): Remove missing_argument.
14478         * optc-gen.awk: Handle MissingArgError and output new structure
14479         field initializers.
14480         * opts.c (read_cmdline_option): Use missing_argument_error field
14481         instead of missing_argument langhook.
14482         * opts.h (struct cl_option): Add missing_argument_error field.
14483         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
14485 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
14487         PR target/29090
14488         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
14489         Darwin64 ABI, for zero-sized objects.
14491 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
14493         PR target/35491
14494         PR target/29090
14496         Merge from Apple local 4.2.1.
14497         2005-05-11  Stan Shebs  <shebs@apple.com>
14498         Fix 64-bit varargs for Darwin (Radar 4028089).
14499         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
14500         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
14501         Add argument, add case for 8-byte register half-filled with a float.
14502         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
14503         single-precision floats specially.
14505 2010-07-27  Ira Rosen  <irar@il.ibm.com>
14507         PR tree-optimization/44152
14508         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
14509         complex numbers for further check.
14510         (vect_supported_load_permutation_p): Check nodes with
14511         complex numbers.
14513 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14515         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
14516         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
14517         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
14518         (LANG_HOOKS_INITIALIZER): Add new hooks.
14519         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
14520         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
14521         and complain_wrong_lang_p.  Update init_options prototype.
14522         * c-objc-common.c (c_initialize_diagnostics): First call
14523         c_common_initialize_diagnostics.
14524         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
14525         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
14526         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
14527         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
14528         (hook_uint_void_0): New.
14529         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
14530         (hook_uint_void_0): New.
14531         * opts-common.c (decode_cmdline_option,
14532         decode_cmdline_options_to_array): Also fill in canonical_option field.
14533         * opts.c (complain_wrong_lang): Use langhook to determine whether
14534         to complain instead of special-casing LTO.
14535         (decode_options): Separate lang_mask determination with
14536         option_lang_mask hook from call of init_options hook.
14537         * opts.h (struct cl_decoded_option): Add canonical_option.
14539 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14541         PR tree-optimization/45083
14542         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
14544 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14546         * postreload.c (reload_combine_recognize_const_pattern): Move test
14547         for limiting the insn movement to the right scope.
14549         PR rtl-optimization/45051
14550         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
14551         than reg_mentioned_p.
14553 2010-07-26  Richard Henderson  <rth@redhat.com>
14555         PR target/44132
14556         * tree-emutls.c: New file.
14557         * Makefile.in (OBJS-common): Add it.
14558         * tree-pass.h (pass_ipa_lower_emutls): Declare.
14559         * passes.c (init_optimization_passes): Add it.
14561         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
14562         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
14563         * expr.c (emutls_var_address): Delete.
14564         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
14565         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
14566         (emutls_finish): Delete.
14567         * toplev.c (compile_file): Don't call it.
14568         * tree.h (emutls_decl): Delete.
14569         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
14570         (emutls_finish, emutls_finalize_control_var): Delete.
14571         (emutls_object_type): Move to tree-emutls.c.
14572         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
14573         default_emutls_var_fields, get_emutls_object_type,
14574         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
14575         default_emutls_var_init): Likewise.
14576         (get_variable_section): Don't special case emutls.
14577         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
14578         default_elf_select_section, default_unique_section,
14579         default_encode_section_info): Likewise.
14580         * varpool.c (decide_is_variable_needed): Likewise.
14581         * gimple-iterator.c (update_call_edge_frequencies): New
14582         (gsi_insert_on_edge_immediate): Use it.
14583         (gsi_insert_seq_on_edge_immediate): Likewise.
14584         (gsi_commit_one_edge_insert): Likewise.
14586         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
14587         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
14588         (x86_64_elf_unique_section): Likewise.
14590 2010-07-26  Jan Hubicka  <jh@suse.cz>
14592         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
14593         GTY((skip)).
14595 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
14597         * target.def (output_source_filename): New hook.
14598         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
14599         * doc/tm.texi: Regenerate.
14600         * toplev.c (output_file_directive) Remove function.
14601         * toplev.h (output_file_directive) Remove.
14602         * output.h (default_asm_output_source_filename,
14603         output_file_directive): Declare.
14604         * varasm.h (default_asm_output_source_filename,
14605         output_file_directive): New functions.
14607         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
14608         * config/mips/mips-protos.h (mips_output_filename): Remove.
14609         * config/mips/mips.c (mips_output_filename): Make Static.
14610         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
14612 2010-07-26  Richard Guenther  <rguenther@suse.de>
14614         PR tree-optimization/43784
14615         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
14616         if the destination is used by the call.
14618 2010-07-26  Richard Guenther  <rguenther@suse.de>
14620         PR middle-end/45073
14621         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
14622         SSA updating on being in SSA form.
14624 2010-07-26  Richard Guenther  <rguenther@suse.de>
14626         PR middle-end/45056
14627         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
14629 2010-07-26  Richard Guenther  <rguenther@suse.de>
14631         PR tree-optimization/45071
14632         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
14633         adjust op->opcode.
14635 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
14637         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
14638         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
14639         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
14640         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
14641         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
14642         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
14643         save_r31, return_r31, save_interrupt, return_interrupt,
14644         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
14645         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
14646         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
14647         new ABI requirements.
14648         (save_r6_r9, L_callt_save_r6_r9): Remove.
14649         * config/v850/predicates.md (even_reg_operand, disp23_operand,
14650         const_float_1_operand const_float_0_operand): New Predicates.
14651         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
14652         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
14653         * config/v850/t-v850: Update multilibs for new target variants.
14654         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
14655         * config/v850/t-v850e: Likewise.
14656         * config/v850/v850.c (v850_issue_rate): New.
14657         (v850_strict_argument_naming): New.
14658         (function_arg): Modify to generate a different ABI.
14659         (print_operand): Update case 'z' to support float modes.
14660         (output_move_single): Modify to generate appropriate and better
14661         assembly.
14662         (v850_float_z_comparison_operator, v850_select_cc_mode,
14663         v850_float_nz_comparison_operator,  v850_gen_float_compare,
14664         v850_gen_compare): New functions to support comparison of float values.
14665         (ep_memory_offset): Add support for V850E2 targets.
14666         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
14667         (INTERRUPT_REGPARM_NUM): Remove.
14668         (compute_register_save_size): Add extra case to save/restore long call.
14669         (use_prolog_function): New function to support prologue.
14670         (expand_prologue): Add support for V850E2 targets and modified
14671         as per the current ABI requirements.
14672         (expand_epilogue): Likewise.
14673         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
14674         (construct_save_jarl): Likewise.
14675         (construct_dispose_instruction): Update as per the current ABI
14676         requirements.
14677         (construct_prepare_instruction): Likewise.
14678         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
14679         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
14680         (CPP_SPEC): Updated to support v850e2 targets.
14681         (STRICT_ALIGNMENT): Modified.
14682         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
14683         (FIXED_REGISTERS): Likewise.
14684         (CALL_USED_REGISTERS): Likewise.
14685         (CONDITIONAL_REGISTER_USAGE): Updated.
14686         (HARD_REGNO_MODE_OK): Updated.
14687         (reg_class): Updated to add even registers.
14688         (REG_CLASS_NAMES): Likewise.
14689         (REG_CLASS_CONTENTS): Likewise.
14690         (REGNO_REG_CLASS): Updated for CC registers.
14691         (REG_CLASS_FROM_LETTER): Added support for even registers.
14692         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
14693         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
14694         ARG_POINTER_REGNUM): Updated.
14695         (FUNCTION_ARG_ADVANCE): Define.
14696         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
14697         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
14698         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
14699         (GO_IF_LEGITIMATE_ADDRESS): Updated.
14700         (SELECT_CC_MODE): Define.
14701         (REGISTER_NAMES): Updated to add psw and fcc registers.
14702         (ADDITIONAL_REGISTER_NAMES): Updated.
14703         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
14704         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
14705         * config/v850/v850.md (define_constants): Define new constants.
14706         (type): Update store,bit1,macc,div,fpu and single attributes.
14707         (cpu): New attribute.
14708         (cc): Add set_z attribute.
14709         (unsign23byte_load, sign23byte_load, unsign23hword_load,
14710         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
14711         23word_store): New instructions for 23-bit displacement load and store.
14712         (movqi_internal, movhi_internal): Update the attributes.
14713         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
14714         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
14715         the attributes.
14716         (v850_tst1): Modified using CC_REGNUM.
14717         (tstsi): Remove.
14718         (cmpsi): Modified as define_expand from define_insn.
14719         (cmpsi_insn, cmpsf, cmpdf): New instructions.
14720         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
14721         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
14722         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
14723         one_cmplsi2): Clobber the CC_REGNUM register.
14724         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
14725         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
14726         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
14727         (setf_insn, set_z_insn, set_nz_insn): New instructions for
14728         v850e2v3 target.
14729         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
14730         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
14731         targets.
14732         (sasf_1, sasf_2): Remove.
14733         (sasf): New instruction.
14734         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
14735         targets. CC_REGNUM register is clobbered and attributes are
14736         updated.
14737         (branch_z_normal, branch_z_invert, branch_nz_normal,
14738         branch_nz_invert): New branch related instructions.
14739         (jump): Updated the attributes.
14740         (switch): Update to support new targets. CC_REGNUM register is
14741         clobbered and attributes are updated.
14742         (call_internal_short, call_internal_long, call_value_internal_short,
14743         call_value_internal_long): Updated the attributes.
14744         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
14745         clobbered and attributes are updated.
14746         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
14747         Update to support new targets. CC_REGNUM register is clobbered.
14748         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
14749         instructions.
14750         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
14751         are updated.
14752         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
14753         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
14754         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
14755         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
14756         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
14757         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
14758         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
14759         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
14760         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
14761         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
14762         point instructions defined for V850e2v3 target.
14763         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
14764         Add support for V850E2 targets and CC_REGNUM register is clobbered.
14765         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
14766         support for new targets.
14767         * config/v850/v850-modes.def: New file.
14768         * config/v850/v850.opt(mstrict-align): Remove.
14769         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
14770         mv850e2v3): New command line options for V850.
14771         * config.gcc: Update the newly added files.
14772         * doc/invoke.texi: Update the newly added command line options for
14773         V850 target.
14775 2010-07-26  Richard Guenther  <rguenther@suse.de>
14777         PR tree-optimization/45052
14778         * ipa-pure-const.c (check_stmt): Check volatileness.
14780 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
14782         PR target/44707
14783         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
14784         * config/sparc/sparc.c: Include reload.h.
14785         (legitimize_tls_address): Rename into...
14786         (sparc_legitimize_tls_address): ...this.
14787         (legitimize_pic_address): Rename into...
14788         (sparc_legitimize_pic_address): ...this.
14789         (sparc_expand_move): Adjust to above renaming.
14790         (sparc_tls_referenced_p): Likewise.
14791         (sparc_legitimize_tls_address): Likewise.
14792         (sparc_legitimize_pic_address): Likewise.
14793         (sparc_legitimize_address): Likewise.
14794         (sparc_output_mi_thunk): Likewise.
14795         (sparc_legitimize_reload_address): New global function.  Recognize
14796         (lo_sum (high ...) ...) patterns generated by earlier passes.
14797         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
14799 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
14801         PR target/44484
14802         * config/sparc/predicates.md (memory_reg_operand): Delete.
14803         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
14804         (*sync_compare_and_swap): Encode the address form in the pattern.
14805         (*sync_compare_and_swapdi_v8plus): Likewise.
14807 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
14809         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
14810         Streamline paragraph on compatibility with the system compiler.
14812 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
14814         PR middle-end/45035
14815         * alias.c (true_dependence_1): Fix thinko in merge of old
14816         true_dependence and canon_true_dependence.
14818 2010-07-23  Jan Hubicka  <jh@suse.cz>
14820         * lto-streamer-out.c (write_symbol): Fix visibilities of external
14821         references.
14823 2010-07-23  Le-Chun Wu  <lcwu@google.com>
14825         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
14826         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
14827         and an unnecessary assignment.
14828         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
14829         self-assign warning.
14830         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
14831         unnecessary self-init.
14833 2010-07-23  Richard Guenther  <rguenther@suse.de>
14835         PR lto/43071
14836         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
14837         for -flto and -fwhopr.
14839 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
14841         PR target/41943
14842         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
14843         (stmp-int-hdrs): Prefix/postfix headers by include_next.
14844         * config.gcc (user_headers_inc_next_pre): New.
14845         (user_headers_inc_next_post): Likewise.
14846         (*-w64-mingw*): Use for float.h post-fixing, and for
14847         stddef.h/stdarg.h pre-fixing by include_next.
14848         * configure.ac (user_headers_inc_next_post): New.
14849         (user_headers_inc_next_pre): New.
14850         * configure: Regenerated.
14852 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14854         * configure.ac: Don't disable TLS on Solaris 8/9 by default
14855         Set tga_func for Solaris 2/x86 resp. SPARC.
14856         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
14857         (LIB_THREAD_LDFLAGS_SPEC): Define.
14858         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
14859         * configure: Regenerate.
14860         * config.in: Regenerate.
14861         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
14862         -pthread, -threads, LIB_TLS_SPEC with -pthread.
14863         * doc/install.texi (Specific, *-*-solaris2*): Document use of
14864         alternate thread libraries on Solaris 8.
14865         Document TLS patch requirements.
14866         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
14867         Document tls.
14869         PR target/18788
14870         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
14871         -shared.
14873 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
14875         * tree.h (struct tree_base): Add nameless_flag bitfield.
14876         (TYPE_NAMELESS, DECL_NAMELESS): Define.
14877         * omp-low.c (create_omp_child_function, scan_omp_parallel,
14878         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
14879         DECL_ARTIFICIAL where needed.
14880         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
14881         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
14882         has DECL_NAMELESS set.
14884 2010-07-23  Martin Jambor  <mjambor@suse.cz>
14886         PR tree-optimization/44915
14887         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
14888         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
14889         (analyze_function): Likewise.
14891 2010-07-23  Martin Jambor  <mjambor@suse.cz>
14893         PR tree-optimization/44914
14894         * tree-sra.c (sra_modify_function_body): Return true if CFG was
14895         changed, add purging dead eh edges.
14896         (ipa_sra_modify_function_body): Return true if CFG was changed,
14897         simplify purging dead eh edges.
14898         (modify_function): Return true if CFG was changed.
14899         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
14900         was changed.
14901         (ipa_early_sra): Likewise.
14903 2010-07-23  Jie Zhang  <jie@codesourcery.com>
14905         PR target/44290
14906         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
14907         if "naked".
14908         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
14909         false if ! tree_versionable_function_p.
14911 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
14913         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
14914         * ipa-pure-const.c (special_builtlin_state): Remove
14915         BUILT_IN_ARGS_INFO case.
14916         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14917         * builtins.c (expand_builtin): Likewise.
14918         (expand_builtin_args_info): Remove.
14919         * doc/tm.texi (__builtin_args_info): Remove.
14920         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
14921         * doc/tm.text.in: Likewise.
14923 2010-07-23  Richard Guenther  <rguenther@suse.de>
14925         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
14926         (lto_symtab_merge_decls_2): Likewise.
14927         * tree-ssa.c (useless_type_conversion_p): Likewise.
14928         * lto-streamer-in.c (input_gimple_stmt): Likewise.
14929         * gimple.c (gtc_visited2, gtc_ob2): Remove.
14930         (struct type_pair_d): Make same_p an array indexed by mode.
14931         Update comment.
14932         (lookup_type_pair): Update initialization.
14933         (struct sccs): Adjust same_p type.
14934         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
14935         Adjust.
14936         (print_gimple_types_stats): Likewise.
14937         * gimple.h (enum gtc_mode): New.
14938         (gimple_types_compatible_p): Adjust prototype.
14940 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
14942         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
14943         again after processing insn.
14945 2010-07-23  Jie Zhang  <jie@codesourcery.com>
14947         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
14948         proper words when !tree_versionable_function_p.
14950 2010-07-23  Richard Guenther  <rguenther@suse.de>
14952         PR tree-optimization/45037
14953         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
14955 2010-07-23  Jie Zhang  <jie@codesourcery.com>
14957         * doc/extend.texi: Remove IP2K from the description of naked attribute.
14958         Add MCORE instead.
14960 2010-07-10  Andi Kleen  <ak@linux.intel.com>
14962         PR lto/44992
14963         * lto-opts.c (lto_write_options): Add NULL file_data argument to
14964         lto_get_section_name.
14965         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
14966         * lto-streamer-out.c (produce_asm): Likewise.
14967         (copy_function): Likewise.
14968         (produce_symtab): Likewise.
14969         (produce_asm_for_decls): Likewise.
14970         * lto-streamer.c (lto_get_section_name): Add file_data argument.
14971         Rewrite to add random postfix to LTO sections.
14972         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
14973         (lto_get_section_name): Add file_data argument to prototype.
14975 2010-07-10  Andi Kleen  <ak@linux.intel.com>
14977         * lto-section-in.c (lto_section_name): Synchronize names
14978         with lto_get_section_name.
14980 2010-07-10  Andi Kleen  <ak@linux.intel.com>
14982         * lto-opts.c (lto_read_file_options): Check for missing section.
14984 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
14986         * ira.c (check_allocation): Correctly handle the case where an allocno
14987         with two objects was allocated to a single reg.
14989 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
14991         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
14992         (is_widening_mult_p): Likewise.
14993         (convert_to_widen): Use them.
14994         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
14995         well as integer ones.
14997 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
14999         * alias.c (true_dependence_1): New function, merged version of
15000         true_dependence and canon_true_dependence.
15001         (true_dependence): Simplify.
15002         (canon_true_dependence): Simplify.
15004 2010-07-22  Richard Henderson  <rth@redhat.com>
15006         PR target/45027
15007         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
15008         of V4SFmode for the SSE saves; increase stack alignment if needed.
15009         (ix86_gimplify_va_arg): Don't increase stack alignment here.
15011 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
15013         PR bootstrap/45028
15014         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
15015         call cprop_find_used_regs again via note_uses.
15017 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
15019         * alias.c (get_alias_set): Fix formatting issues.
15021 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
15023         PR middle-end/44878
15024         * stmt.c (expand_value_return):  Call promote_function_mode with
15025         a for_return argument of 2 when returning by reference.
15027 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
15029         PR debug/45024
15030         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
15031         unit DIE if we can find the scope DIE.
15033 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15035         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
15036         changed.  Initialize OBJECT_SUBWORD.
15037         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
15038         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
15039         all callers changed.
15040         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
15041         (finish_allocno): Likewise.
15042         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
15043         (remove_low_level_allocnos): Likewise.
15044         (update_bad_spill_attribute): Likewise.
15045         (setup_min_max_allocno_live_range_point): Likewise.
15046         (sort_conflict_id_map): Likewise.
15047         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
15048         (ior_hard_reg_conflicts): New function.
15049         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
15050         (compress_conflict_vecs): Iterate over objects, not allocnos.
15051         (ira_add_live_range_to_object): New function.
15052         (object_range_compare_func): Renamed from allocno_range_compare_func.
15053         All callers changed.
15054         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
15055         subobjects, widen the min/max range of the lowest-order object to
15056         potentially include all other such low-order objects.
15057         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
15058         (check_allocation): Likewise.  Use more fine-grained tests for register
15059         conflicts.
15060         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
15061         allocno subobjects.
15062         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
15063         choices about which bits to set in each set.  Don't use
15064         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
15065         using the multiple sets we computed.
15066         (push_allocno_to_stack): Iterate over allocno subobjects.
15067         (all_conflicting_hard_regs_coalesced): New static function.
15068         (setup_allocno_available_regs_num): Use it.
15069         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
15070         subobjects.
15071         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
15072         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15073         by ALLOCNO_NUM_OBJECTS.
15074         (calculate_spill_cost): Likewise.
15075         (color_pass): Express if statement in a more normal way.
15076         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
15077         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
15078         (setup_slot_coalesced_allocno_live_ranges): Likewise.
15079         (allocno_reload_assign): Likewise.
15080         (ira_reassign_pseudos): Likewise.
15081         (fast_allocation): Likewise.
15082         * ira-conflicts.c (build_conflict_bit_table): Likewise.
15083         (print_allocno_conflicts): Likewise.
15084         (ira_build_conflicts): Likewise.
15085         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
15086         callers changed.  Test subword 0 of each allocno for conflicts.
15087         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
15088         callers changed.  Iterate over allocno subobjects.
15089         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
15090         * ira-int.h (struct ira_allocno): New member: num_objects.
15091         Rename object to objects and change it into an array.
15092         (ALLOCNO_OBJECT): Add new argument N.
15093         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
15094         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
15095         (ior_hard_reg_conflicts): Declare.
15096         (ira_add_live_range_to_object): Declare.
15097         (ira_allocno_object_iterator): New.
15098         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
15099         (FOR_EACH_ALLOCNO_OBJECT): New macro.
15100         * ira-lives.c (objects_live): Renamed from allocnos_live; all
15101         uses changed.
15102         (allocnos_processed): New sparseset.
15103         (make_object_born): Renamed from make_allocno_born; take an
15104         ira_object_t argument.  All callers changed.
15105         (make_object_dead): Renamed from make_allocno_dead; take an
15106         ira_object_t argument.  All callers changed.
15107         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
15108         All callers changed.
15109         (mark_pseudo_regno_live): Iterate over allocno subobjects.
15110         (mark_pseudo_regno_dead): Likewise.
15111         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
15112         functions.
15113         (mark_ref_live): Detect subword accesses and call
15114         mark_pseudo_regno_subword_live as appropriate.
15115         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
15116         (process_bb_nodes_live): Deal with object-related updates first; set
15117         and test bits in allocnos_processed to avoid computing allocno
15118         statistics more than once.
15119         (create_start_finish_chains): Iterate over objects, not allocnos.
15120         (print_object_live_ranges): New function.
15121         (print_allocno_live_ranges): Use it.
15122         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
15123         and objects_live.
15125 2010-07-22  Richard Guenther  <rguenther@suse.de>
15127         PR lto/42451
15128         * gimple.c (gtc_next_dfs_num): New global.
15129         (struct sccs): Make value a union, add integer same_p member.
15130         (gtc_visit): New function.
15131         (gimple_types_compatible_p_1): New function, split out from ...
15132         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
15133         (iterative_hash_gimple_type): Adjust for sccs change.
15135 2010-07-22  Martin Jambor  <mjambor@suse.cz>
15137         PR tree-optimization/44891
15138         * tree-sra.c: Include gimple-pretty-print.h.
15139         (replace_uses_with_default_def_ssa_name): Renamed to
15140         get_repl_default_def_ssa_name, return the new SSA name instead of
15141         replacing the old one.
15142         (sra_modify_assign): Dump a message when removing a load, if the LHS
15143         is an SSA_NAME, do not do any propagation, just set the RHS to a
15144         default definition SSA NAME, type convert if necessary.
15145         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
15147 2010-07-22  Richard Guenther  <rguenther@suse.de>
15149         PR tree-optimization/45017
15150         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
15151         TYPE_PRECISION of integral types in addition to size.
15153 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15155         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
15156         when no C library is specified.
15158 2010-07-22  Martin Jambor  <mjambor@suse.cz>
15160         * ipa-prop.h (struct ipa_node_params): Updated comment.
15161         (struct ipa_edge_args): Likewise.
15162         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
15164 2010-07-22  Martin Jambor  <mjambor@suse.cz>
15166         * cgraphunit.c (verify_edge_count_and_frequency): New function.
15167         (verify_cgraph_node): Verify frequencies of indirect edges.
15168         * tree-inline.c (tree_function_versioning): Update frequencies of
15169         indirect edges.
15171 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15173         PR target/43698
15174         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
15175         Set *arm_rev to be predicable.
15177 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
15179         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
15180         (LINK_COMMAND_SPEC_A): New.
15181         (DSYMUTIL): New.
15182         (DSYMUTIL_SPEC): New.
15183         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
15184         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
15186 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
15188         * calls.c (load_register_parameters): Move check for zero
15189         sized items so that only the call to
15190         mem_overlaps_already_clobbered_arg_p () is protected.
15192 2010-07-22  Jan Hubicka  <jh@suse.cz>
15194         * ipa-pure-const.c (varying_state): Break out from ...
15195         (get_function_state): ... here; always return varying_state
15196         when state would be NULL otherwise.
15197         (remove_node_data): Do not free varying state.
15199 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15201         PR bootstrap/44970
15202         PR middle-end/45009
15203         * postreload.c: Include "target.h".
15204         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
15205         into account.
15206         (fixup_debug_insns): Don't copy the rtx.
15207         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
15208         Don't copy when replacing.  Call fixup_debug_insns in the case where
15209         we merged one add with another.
15210         (reload_combine_recognize_pattern): Fail if there aren't any uses.
15211         Try harder to determine whether we're picking a valid index register.
15212         Don't set store_ruid for an insn we're going to scan in the
15213         next iteration.
15214         (reload_combine): Remove unused code.
15215         (reload_combine_note_use): When updating use information for
15216         an old insn, ignore a use that occurs after store_ruid.
15217         * Makefile.in (postreload.o): Update dependencies.
15219         * function.c (record_hard_reg_sets): Restrict the previous change
15220         to cases where the incoming nominal mode is the same as the
15221         incoming promoted mode and everything happens in MODE_INT.
15223 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
15225         PR debug/45015
15226         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
15227         ASM_OPERANDS_OUTPUT_IDX.
15228         (adjust_insn): For inline asm with multiple sets ensure first
15229         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
15230         the insn.
15232 2010-07-21  Richard Henderson  <rth@redhat.com>
15234         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
15235         comparison for avoiding xmm register saves.  Emit the xmm register
15236         saves explicitly.
15237         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
15238         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
15239         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
15240         Remove patterns and the associated splitters.
15242 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
15244         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
15245         and imagine parts of a complex, so that they can have the same
15246         base and fall into the same group.
15248 2010-07-21  Richard Guenther  <rguenther@suse.de>
15250         PR lto/45018
15251         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
15252         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
15253         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
15255 2010-07-21  Martin Jambor  <mjambor@suse.cz>
15257         PR tree-optimization/44900
15258         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
15259         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
15261 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
15263         PR middle-end/44738
15264         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
15266 2010-07-21  Richard Guenther  <rguenther@suse.de>
15268         PR middle-end/45013
15269         * tree-ssa.c (useless_type_conversion_p): Dispatch to
15270         gimple_types_compatible_p only when in lto.
15271         * gimple.c (gimple_types_compatible_p): Use canonical types
15272         to speed up comparison.
15274 2010-07-21  Richard Guenther  <rguenther@suse.de>
15276         * tree-flow.h (referenced_var): Move define ...
15277         * tree-flow-inline.h (referenced_var): ... here as an inline
15278         function.  Assert here ...
15279         * tree-dfa.c (referenced_var_lookup): ... instead of here.
15280         * tree-ssa.c (maybe_optimize_var): Check if the variable
15281         is in referenced vars.
15282         (execute_update_addresses_taken): Remove old broken check.
15283         * gimple-pretty-print.c (pp_points_to_solution): Use
15284         referenced_var_lookup.
15285         * tree-into-ssa.c (dump_decl_set): Likewise.
15287 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
15289         PR debug/45003
15290         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
15291         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
15292         ZERO_EXTEND here.
15294 2010-07-20  Richard Henderson  <rth@redhat.com>
15296         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
15298 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
15300         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
15301         computing the sum of the stack pointer and a large constant.
15302         * config/arm/constraints.md (M): Remove superfluous parentheses.
15303         (Pc): New constraint.
15305 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
15307         PR debug/45006
15308         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
15309         operand's type if exp is tcc_unary class tree.
15311 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
15313         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
15314         Reverse sense of if_then_else condition.
15316 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
15318         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
15319         * config/rs6000/rs6000.c (rs6000_override_options): Set
15320         rs6000_block_move_inline_limit appropriately.
15321         (expand_block_move): Use rs6000_block_move_inline_limit.
15322         * doc/invoke.texi (mblock-move-inline-limit): Document.
15324 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
15326         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
15327         FROM and TO.  All callers changed.  Don't look for tracked uses,
15328         just scan the RTL for DEBUG_INSNs and substitute.
15329         (reload_combine_recognize_pattern): Call fixup_debug_insns.
15330         (reload_combine): Ignore DEBUG_INSNs.
15332 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
15334         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
15335         depth to 8 from 5.
15337         PR debug/45003
15338         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
15339         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
15340         instead of the result's type.
15342 2010-07-20  Richard Guenther  <rguenther@suse.de>
15344         PR tree-optimization/44977
15345         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
15346         SSA form.
15348 2010-07-20  Richard Guenther  <rguenther@suse.de>
15350         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
15351         (lto_symtab_merge_decls_2): Likewise.
15352         * gimple.h (gimple_types_compatible_p): Declare.
15353         * gimple.c (gimple_queue_type_fixup): Remove.
15354         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
15355         (gimple_compatible_complete_and_incomplete_type_p): New function.
15356         (gimple_types_compatible_p): Adjust.
15357         (gimple_register_type): Remove type fixup code.
15358         (print_gimple_types_stats): Adjust.
15359         (free_gimple_type_tables): Likewise.
15360         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
15361         * tree-ssa.c (useless_type_conversion_p): Likewise.
15363 2010-07-20  Richard Guenther  <rguenther@suse.de>
15365         PR middle-end/44971
15366         PR middle-end/44988
15367         * tree-ssa.c (maybe_optimize_var): New function split out from ...
15368         (execute_update_addresses_taken): ... here.
15369         (non_rewritable_mem_ref_base): Likewise.
15370         (execute_update_addresses_taken): Do not iterate over all referenced
15371         vars but just all local decls and parms.
15372         Properly check call and asm arguments and rewrite call arguments.
15374 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
15376         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
15377         to top level.
15378         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
15379         definitions ...
15380         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
15381         New macro.
15382         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
15384 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15386         * gengtype.c (start_root_entry): New function, split out from
15387         write_root.  Check whether V is null and raise an error if so.
15388         (write_field_root): Check for V being null.  Don't raise an error here;
15389         set V to null instead.
15390         (write_root): Update comment above function.  Use start_root_entry.
15392 2010-07-19  Xinliang David Li  <davidxl@google.com>
15394         PR testsuite/44932
15395         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
15396         def edges.
15397         (find_uninit_use): Add dump.
15398         (is_use_properly_guarded): Ditto.
15399         (warn_uninitialized_phi): Ditto.
15400         (execute_late_warn_uninitialized): Ditto.
15402 2010-07-19  Richard Guenther  <rguenther@suse.de>
15404         PR middle-end/44941
15405         * expr.c (emit_block_move_hints): Move zero size check first.
15406         Move asserts to more useful places.
15407         * calls.c (load_register_parameters): Check for zero size.
15409 2010-07-19  Richard Henderson  <rth@redhat.com>
15411         * tree-optimize.c (execute_all_early_local_passes): New.  Change
15412         cgraph_state here ...
15413         (execute_early_local_optimizations): ... not here.  Remove.
15414         (pass_early_local_passes, pass_all_early_optimizations): Update.
15416 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
15418         * postreload.c (reload_combine_closest_single_use): Ignore the
15419         number of uses for DEBUG_INSNs.
15420         (fixup_debug_insns): New static function.
15421         (reload_combine_recognize_const_pattern): Use it.  Don't let the
15422         main loop be affected by DEBUG_INSNs.
15423         Really disallow moving adds past a jump insn.
15424         (reload_combine_recognize_pattern): Don't update use_ruid here.
15425         (reload_combine_note_use): Do it here.
15426         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
15428 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
15430         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
15431         of a loop.
15432         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
15434 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
15436         * config/i386/darwin.h: Define darwin_emit_branch_islands.
15437         (TARGET_MACHO_BRANCH_ISLANDS): New.
15438         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
15439         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
15440         default value.
15441         * config/i386/i386.c (output_pic_addr_const): Do not emit
15442         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
15443         (x86_output_mi_thunk): Adjust symbol creation.
15444         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
15445         Remove out of date comment.
15446         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
15447         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
15448         (DARWIN_GENERATE_ISLANDS): Ditto.
15449         (output_call):  Do not emit branch islands unless
15450         darwin_emit_branch_islands is set.
15451         * config/darwin.c: Declare darwin_emit_branch_islands.
15452         (machopic_indirect_data_reference): Do not emit unless
15453         darwin_emit_branch_islands is set.
15454         (darwin_override_options): Set darwin_emit_branch_islands
15455         where it is needed.
15456         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
15458 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15460         * doc/sourcebuild.texi (Effective-Target Keywords): Document
15461         sse_runtime, sse2_runtime.
15463 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
15465         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
15466         low half of a single-register SCmode return value before ORing
15467         it with the high half.
15468         * config/mips/mips16.S (MERGE_GPRf): Likewise.
15470 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15472         PR target/44805
15473         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
15474         on all targets.
15476 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
15478         PR target/42235
15479         * postreload.c (reload_cse_move2add): Return bool, true if anything.
15480         changed.  All callers changed.
15481         (move2add_use_add2_insn): Likewise.
15482         (move2add_use_add3_insn): Likewise.
15483         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
15484         reload_combine.
15485         (RELOAD_COMBINE_MAX_USES): Bump to 16.
15486         (last_jump_ruid): New static variable.
15487         (struct reg_use): New members CONTAINING_MEM and RUID.
15488         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
15489         (reload_combine_split_one_ruid, reload_combine_split_ruids,
15490         reload_combine_purge_insn_uses, reload_combine_closest_single_use
15491         reload_combine_purge_reg_uses_after_ruid,
15492         reload_combine_recognize_const_pattern): New static functions.
15493         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
15494         is true for our reg and that we have available index regs.
15495         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
15496         callers changed.  Use them to initialize fields in struct reg_use.
15497         (reload_combine): Initialize last_jump_ruid.  Be careful when to
15498         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
15499         Call reload_combine_recognize_const_pattern.
15500         (reload_combine_note_store): Update REAL_STORE_RUID field.
15502 2010-07-16  Jason Merrill  <jason@redhat.com>
15504         * Makefile.in (opts-common.o): Depend on options.h.
15506 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
15508         * tree.c (build_common_builtin_nodes): Use build_function_type_list
15509         instead of build_function_type.
15510         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
15511         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
15513 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
15515         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
15516         do all the work.
15517         (rs6000_emit_int_cmove): Use function pointers for insn generation.
15518         Don't force values into registers unnecessarily.
15519         (output_isel): Assert that we're not given conditions we can't handle.
15520         Delete corresponding code.
15521         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
15522         scc_comparison_operator constraint.  Permit 0 for the consequent
15523         operand.  Permit any GPR for the alternative operand.
15524         (isel_unsigned_<mode>): Likewise.
15526 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
15528         PR target/44942
15529         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
15530         argument to const_tree.
15531         * config/i386/i386.c (function_arg_advance): If padding needs to be
15532         inserted before argument, increment cum->words by number of padding
15533         words as well.
15534         (contains_aligned_value_p): Change argument to const_tree.
15535         (ix86_function_arg_boundary): Change second argument to const_tree.
15537 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
15539         PR target/42235
15540         * function.c (record_hard_reg_sets): New static function.
15541         (assign_parm_setup_reg): If an optab for extending exists and the
15542         generated code clobbbers no hard regs, emit the insn directly and
15543         create a REG_EQUIV note.
15545 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
15547         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
15548         TREE_CHAIN.
15549         * c-typeck.c (push_init_level): Likewise.
15550         (process_init_element): Likewise.
15552 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
15554         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
15555         (integer_three_node): Add.
15556         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
15557         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
15558         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
15559         of call build_int_cst.
15560         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
15561         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
15562         (find_interesting_uses_address): Ditto.
15563         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
15564         * tree-eh.c (lower_eh_constructs_2): Ditto.
15565         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
15566         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
15567         * expmed.c (expand_divmod): Ditto.
15568         * tree-mudflap.c (mx_register_decls): Ditto.
15569         * varasm.c (array_size_for_constructor): Ditto.
15570         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
15571         * c-parser.c (c_parser_postfix_expression): Ditto.
15573 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15575         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
15576         New static variables.
15577         (reload_combine_recognize_pattern): New static function, broken out
15578         of reload_combine.
15579         (reload_combine): Use it.  Only initialize first_index_reg and
15580         last_index_reg once.
15582 2010-07-15  Richard Henderson  <rth@redhat.com>
15584         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
15585         when done.
15587 2010-07-15  Jan Hubicka  <jh@suse.cz>
15589         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
15590         comdats for broken gold.
15591         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
15593 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
15595         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
15597 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
15599         * tree.h (DECL_CHAIN): Define.
15600         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
15601         * c-decl.c: Likewise.
15602         * c-parser.c: Likewise.
15603         * c-typeck.c: Likewise.
15604         * cfgexpand.c: Likewise.
15605         * cgraph.c: Likewise.
15606         * cgraphunit.c: Likewise.
15607         * combine.c: Likewise.
15608         * config/alpha/alpha.c: Likewise.
15609         * config/arm/arm.c: Likewise.
15610         * config/frv/frv.c: Likewise.
15611         * config/i386/i386.c: Likewise.
15612         * config/i386/winnt-cxx.c: Likewise.
15613         * config/ia64/ia64.c: Likewise.
15614         * config/iq2000/iq2000.c: Likewise.
15615         * config/mep/mep.c: Likewise.
15616         * config/mips/mips.c: Likewise.
15617         * config/pa/som.h: Likewise.
15618         * config/rs6000/rs6000.c: Likewise.
15619         * config/s390/s390.c: Likewise.
15620         * config/sh/sh.c: Likewise.
15621         * config/sh/symbian-cxx.c: Likewise.
15622         * config/sparc/sparc.c: Likewise.
15623         * config/spu/spu.c: Likewise.
15624         * config/stormy16/stormy16.c: Likewise.
15625         * config/vxworks.c: Likewise.
15626         * config/xtensa/xtensa.c: Likewise.
15627         * coverage.c: Likewise.
15628         * dbxout.c: Likewise.
15629         * dwarf2out.c: Likewise.
15630         * emit-rtl.c: Likewise.
15631         * expr.c: Likewise.
15632         * function.c: Likewise.
15633         * gimple-low.c: Likewise.
15634         * gimple-pretty-print.c: Likewise.
15635         * gimplify.c: Likewise.
15636         * integrate.c: Likewise.
15637         * ipa-inline.c: Likewise.
15638         * ipa-prop.c: Likewise.
15639         * ipa-split.c: Likewise.
15640         * ipa-struct-reorg.c: Likewise.
15641         * ipa-type-escape.c: Likewise.
15642         * langhooks.c: Likewise.
15643         * lto-cgraph.c: Likewise.
15644         * omp-low.c: Likewise.
15645         * stor-layout.c: Likewise.
15646         * tree-cfg.c: Likewise.
15647         * tree-complex.c: Likewise.
15648         * tree-dfa.c: Likewise.
15649         * tree-dump.c: Likewise.
15650         * tree-inline.c: Likewise.
15651         * tree-mudflap.c: Likewise.
15652         * tree-nested.c: Likewise.
15653         * tree-object-size.c: Likewise.
15654         * tree-pretty-print.c: Likewise.
15655         * tree-sra.c: Likewise.
15656         * tree-ssa-live.c: Likewise.
15657         * tree-ssa-loop-niter.c: Likewise.
15658         * tree-ssa-math-opts.c: Likewise.
15659         * tree-ssa-reassoc.c: Likewise.
15660         * tree-ssa-sccvn.c: Likewise.
15661         * tree-ssa-structalias.c: Likewise.
15662         * tree-tailcall.c: Likewise.
15663         * tree-vrp.c: Likewise.
15664         * tree.c: Likewise.
15665         * var-tracking.c: Likewise.
15666         * varasm.c: Likewise.
15668 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15670         PR target/44877
15671         * config/spu/spu.c (spu_expand_builtin_1): Allow references
15672         (as well as pointers) as argument to mask_for_load builtins.
15674 2010-07-15  Richard Guenther  <rguenther@suse.de>
15676         PR tree-optimization/44946
15677         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
15678         with accessing only padding properly.
15680 2010-07-15  Jan Hubicka  <jh@suse.cz>
15682         * ipa.c (function_and_variable_visibility): Variables marked as used
15683         should not be localized.
15685 2010-07-15  Jan Hubicka  <jh@suse.cz>
15687         * cgraph.c: Include lto-streamer.h
15688         (change_decl_assembler_name): Work when assembler name hash is at place.
15689         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
15690         be sure to rename it to avoid name clash.
15691         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
15692         Localize hidden symbols only when locally defined.
15694 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
15696         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
15698 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
15699             Kevin F. Quinn  <kevquinn@gentoo.org>
15701         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
15702         * common.opt: Add -Wtrampolines.
15703         * doc/invoke.texi: Add -Wtrampolines.
15705 2010-07-15  Jie Zhang  <jie@codesourcery.com>
15707         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
15708         cortex_a8_issue_ls.
15710 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
15712         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
15713         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
15715 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15717         * config/spu/spu.c (reg_names): Remove prototype.
15718         (call_used_regs): Likewise.
15720 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
15722         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
15723         "unused" with attribute "used".
15724         (__JCR_END__): Likewise.
15725         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
15726         "used" attribute.
15727         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
15729 2010-07-14  Richard Guenther  <rguenther@suse.de>
15731         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
15732         (maybe_fixup_decls): Likewise.
15733         (input_gimple_stmt): Do not fixup anything.
15734         * lto-streamer-out.c (output_gimple_stmt): Make sure all
15735         non-automatic variable uses are wrapped inside a MEM_REF.
15737 2010-07-14  Richard Henderson  <rth@redhat.com>
15739         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
15740         for functions.
15741         * varasm.c (assemble_variable): Remove early exit for functions;
15742         assert that we're given a variable.
15744 2010-07-14  Jie Zhang  <jie@codesourcery.com>
15746         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
15747         cortex_a8_default when neon_type is not none.
15749 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15751         * lower-subreg.c (subreg_context): New static bitmap.
15752         (decompose_multiword_subregs): Allocate and free it.
15753         (find_decomposable_subregs): Set a bit in it for a register that
15754         occurs in a subreg that changes mode but not size.
15755         (can_decompose_p): Test it instead of non_decomposable_context.
15757 2010-07-14  Richard Guenther  <rguenther@suse.de>
15759         PR tree-optimization/44824
15760         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
15761         is_gimple_mem_ref_addr.
15762         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
15763         non-decl_address_invariant_p addresses.
15765 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15767         * reload.c (find_reloads): Revert code to penalize small register
15768         classes that was brought in with the IRA merge.
15770 2010-07-14  Richard Guenther  <rguenther@suse.de>
15772         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
15773         as base of ARRAY_REFs.
15775 2010-07-14  Richard Guenther  <rguenther@suse.de>
15777         PR middle-end/44930
15778         * tree-pretty-print.c (do_niy): Do not print a newline.
15780 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15782         * ira-int.h (struct ira_object): New.
15783         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
15784         (struct ira_allocno): Remove members min, max,
15785         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
15786         conflict_allocnos_num and conflict_vec_p.  Add new member object.
15787         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
15788         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
15789         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
15790         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
15791         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
15792         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
15793         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
15794         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
15795         an ira_object_t rather than ira_allocno_t.  All uses changed.
15796         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
15797         contains a vector of ira_object_t; all uses changed.
15798         (ira_objects_num): Declare variable.
15799         (ira_create_allocno_object): Declare function.
15800         (ira_conflict_vector_profitable_p): Adjust prototype.
15801         (ira_allocate_conflict_vec): Renamed from
15802         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
15803         (ira_allocate_object_conflicts): Renamed from
15804         ira_allocate_allocno_conflicts; first arg now ira_object_t.
15805         (struct ira_object_iterator): New.
15806         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
15807         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
15808         to conflict_vec_p.  All uses changed.
15809         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
15810         Changed to take into account that conflicts are now tracked for
15811         objects.
15812         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
15813         Args changed to accept ira_object_t.  All uses changed.
15814         (allocnos_conflict_p): New static function.
15815         (collected_conflict_objects): Renamed from collected_allocno_objects;
15816         now a vector of ira_object_t.  All uses changed.
15817         (build_conflict_bit_table): Changed to take into account that
15818         conflicts are now tracked for objects.
15819         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
15820         (print_allocno_conflicts, ira_build_conflicts): Likewise.
15821         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
15822         setup_allocno_left_conflicts_size, allocno_reload_assign,
15823         fast_allocation): Likewise.
15824         * ira-lives.c (make_hard_regno_born, make_allocno_born)
15825         process_single_reg_class_operands, process_bb_node_lives): Likewise.
15826         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
15827         Likewise.
15828         * ira-build.c (ira_objects_num): New variable.
15829         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
15830         contains a vector of ira_object_t; all uses changed.
15831         (ira_object_id_map_vec): Corresponding change.
15832         (object_pool): New static variable.
15833         (initiate_allocnos): Initialize it.
15834         (finish_allocnos): Free it.
15835         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
15836         New functions.
15837         (ira_create_allocno): Don't set members that were removed.
15838         (ira_set_allocno_cover_class): Don't change conflict hard regs.
15839         (merge_hard_reg_conflicts): Changed to take into account that
15840         conflicts are now tracked for objects.
15841         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
15842         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
15843         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
15844         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
15845         setup_min_max_conflict_allocno_ids, ):  Likewise.
15846         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
15847         to ira_object_t; all callers changed.
15848         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
15849         to ira_object_t, all callers changed.
15850         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
15851         to ira_object_t, all callers changed.
15852         (conflict_check, curr_conflict_check_tick): Renamed from
15853         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
15854         changed.
15855         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
15856         arg changed to ira_object_t, all callers changed.
15857         (create_cap_allocno): Call ira_create_allocno_object.
15858         (finish_allocno): Free the corresponding object.
15859         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
15860         callers changed.  Adjusted for dealing with objects.
15861         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
15862         dealing with objects.
15863         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
15865         * ira-int.h (struct live_range): Rename allocno member to object
15866         and change type to ira_object_t.
15867         (struct ira_object): New member live_ranges.
15868         (struct ira_allocno): Remove member live_ranges.
15869         (ALLOCNO_LIVE_RANGES): Remove.
15870         (OBJECT_LIVE_RANGES): New macro.
15871         (ira_create_live_range, ira_copy_live_range_list,
15872         ira_merge_live_range_list, ira_live_ranges_intersect_p,
15873         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
15874         * ira-build.c (ira_create_object): Initialize live ranges here.
15875         (ira_create_allocno): Not here.
15876         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
15877         changed to ira_object_t, all callers changed.
15878         (copy_live_range): Rename from copy_allocno_live_range, all callers
15879         changed.
15880         (ira_copy_live_range_list): Rename from
15881         ira_copy_allocno_live_range_list, all callers changed.
15882         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
15883         all callers changed.
15884         (ira_live_ranges_intersect_p): Rename from
15885         ira_allocno_live_ranges_intersect_p, all callers changed.
15886         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
15887         callers changed.
15888         (ira_finish_live_range_list): Rename from
15889         ira_finish_allocno_live_range_list, all callers changed.
15890         (change_object_in_range_list): Rename from change_allocno_in_range_list,
15891         last arg changed to ira_object_t, all callers changed.
15892         (finish_allocno): Changed to expect live ranges in the allocno's object.
15893         (move_allocno_live_ranges, copy_allocno_live_ranges,
15894         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
15895         ira_flattening, ira_build): Likewise.
15896         * ira-color.c (allocnos_have_intersected_live_ranges_p,
15897         slot_coalesced_allocno_live_ranges_intersect,
15898         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
15899         * ira-conflicts.c (build_conflict_bit_table): Likewise.
15900         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
15901         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
15902         make_allocno_dead, create_start_finish_chains,
15903         remove_some_program_points_and_update_live_ranges,
15904         ira_debug_live_range_list): Likewise.
15906         * ira-int.h (ira_object_conflict_iterator): Rename from
15907         ira_allocno_conflict_iterator.
15908         (ira_object_conflict_iter_init): Rename from
15909         ira_allocno_conflict_iter_init, second arg changed to
15910         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
15911         FOR_EACH_ALLOCNO_CONFLICT.
15912         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
15913         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
15914         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
15915         * ira-conflicts.c (print_allocno_conflicts): Likewise.
15917 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
15919         PR other/44874
15920         * tree-dump.c (dump_options): Add enumerate_locals entry.
15921         Add TDF_NOID exclusion to all entry.
15922         * tree-dump.h (dump_enumerated_decls): Declare.
15923         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
15924         Don't display type uid.
15925         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
15926         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
15927         * tree-ssa-live.c: Include gimple.h.
15928         (numbered_tree_d): New struct.
15929         (numbered_tree): New typedef.
15930         (DEF_VEC_O (numbered_tree): New.
15931         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
15932         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
15933         (dump_enumerated_decls): Likewise.
15934         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
15935         debug info and flag_dump_final_insns, call dump_enumerated_decls.
15936         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
15937         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
15939 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
15941         * expmed.h (MAX_BITS_PER_WORD): Move to...
15942         * defaults.h (MAX_BITS_PER_WORD): ...here.
15944 2010-07-13  DJ Delorie  <dj@redhat.com>
15946         * config/h8300/h8300.c (h8300_init_once): Default to
15947         -fstrict_volatile_bitfields.
15949         * config/sh/sh.c (sh_override_options): Default to
15950         -fstrict_volatile_bitfields.
15952         * config/rx/rx.c (rx_option_override): New.
15954         * config/m32c/m32c.c (m32c_override_options): Default to
15955         -fstrict_volatile_bitfields.
15957 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
15959         * tree.h (build_function_call_expr): Delete.
15960         (build_call_expr_loc_array): New function.
15961         (build_call_expr_loc_vec): New function.
15962         * tree-flow.h (struct omp_region): Change type of ws_args field
15963         to a VEC.
15964         * builtins.c (build_function_call_expr): Delete.
15965         (build_call_expr_loc_array): New function.
15966         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
15967         (build_call_expr): Likewise.
15968         (build_call_expr_loc_vec): New function.
15969         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
15970         build_function_call_expr.
15971         * expr.c (emutls_var_address): Likewise.
15972         * varasm.c (emutls_common_1): Likewise.
15973         * omp-low.c (expand_omp_atomic_mutex): Likewise.
15974         (expand_omp_taskreg): Adjust for new type of region->ws_args.
15975         (get_ws_args_for): Return a VEC instead of a tree.
15976         (expand_parallel_call): Call build_call_expr_loc_vec instead of
15977         build_function_call_expr.
15978         * stor-layout.c (self_referential_size): Likewise.
15980 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
15982         PR testsuite/44701
15983         * recog.c (constrain_operands): Allow side-effects in memory
15984         operands if either < or > constraint is used, rather than if
15985         both < and > is used.
15987 2010-07-13  Richard Guenther  <rguenther@suse.de>
15989         PR middle-end/44911
15990         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
15991         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
15992         without name.
15994 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
15996         PR target/44761
15997         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
15998         to variable emited.
15999         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
16000         * config/sh/sh.md (symGOT_load): Likewise.
16001         (symDTPOFF2reg): Likewise.
16002         (symTPOFF2reg): Likewise.
16004 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16006         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
16007         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
16009 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16011         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
16012         explanation.
16013         Find ucontext_t * on Solaris 11.
16014         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
16015         Handle new Solaris 11 __sighndlr patterns.
16017 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
16019         PR debug/44901
16020         * vec.h (VEC_block_remove): Fix comment.
16021         * tree-ssa-live.c (remove_unused_locals): Don't use
16022         VEC_unordered_remove on local_decls, instead replace a single
16023         vector element in each iteration if at least one element had
16024         to be removed and VEC_truncate at the end.
16025         * omp-low.c (expand_omp_taskreg): Likewise.
16027 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16029         * c-decl.c (finish_function): Fix typo in comment.
16031 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
16033         PR bootstrap/44921
16034         * postreload.c (move2add_use_add3_insn): Silence gcc warning
16035         on min_regno.
16037 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
16039         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
16040         (simplify_stmt_using_ranges): Use it.
16042 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16044         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
16045         member.  Do not mark as GTY(()).
16046         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
16047         (spu_builtin_decls): New static variable.
16048         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
16049         (spu_init_builtins): Likewise.
16050         (spu_builtin_mul_widen_even): Likewise.
16051         (spu_builtin_mul_widen_odd): Likewise.
16052         (spu_builtin_mask_for_load): Likewise.
16053         (spu_builtin_vec_perm): Likewise.
16054         * config/spu/spu-c.c: Include "target.h".
16055         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
16056         of using spu_builtins[].fndecl.
16058 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16060         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
16061         imply -minterlink-mips16.
16063 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16065         * config/mips/mips.h (mips16_globals): Declare.
16066         (SWITCHABLE_TARGET): Define.
16067         * config/mips/mips.c: Include target-globals.h.
16068         (mips16_globals): New variable.
16069         (mips_set_mips16_mode): Use save_target_globals and
16070         restore_target_globals instead of target_reinit.
16072 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16074         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
16075         to say that the function can be called more than once.
16076         * target-globals.c (save_target_globals): Call init_reg_sets.
16078 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16080         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
16081         * bb-reorder.h: New file.
16082         * bb-reorder.c (default_target_bb_reorder): New variable.
16083         (this_target_bb_reorder): New conditional variable.
16084         (uncond_jump_length): Redefine as a macro.
16085         * target-globals.h (this_target_bb_reorder): Declare.
16086         (target_globals): Add a bb_reorder field.
16087         (restore_target_globals): Copy the bb_reorder field to
16088         this_target_bb-reorder.
16089         * target-globals.c: Include bb-reorder.h.
16090         (default_target_globals): Initialize the bb_reorder field.
16091         (save_target_globals): Likewise.
16093 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16095         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
16096         * gcse.h: New file.
16097         * gcse.c: Include gcse.h.
16098         (default_target_gcse): New variable.
16099         (this_target_gcse): New conditional variable.
16100         (can_copy): Redefine as a macro.
16101         (can_copy_init_p): New macro.
16102         (can_copy_p): Remove can_copy_init_p.
16103         * target-globals.h (this_target_gcse): Declare.
16104         (target_globals): Add a gcse field.
16105         (restore_target_globals): Copy the gcse field to this_target_gcse.
16106         * target-globals.c: Include gcse.h.
16107         (default_target_globals): Initialize the gcse field.
16108         (save_target_globals): Likewise.
16110 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16112         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
16113         and x_ira_prohibited_mode_move_regs_initialized_p.
16114         (ira_prohibited_mode_move_regs): Redefine as a macro.
16115         * ira.c (ira_prohibited_mode_move_regs): Delete.
16116         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
16118 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16120         * reload.h (target_reload): Add x_cached_reg_save_code and
16121         x_cached_reg_restore_code.
16122         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
16123         Redefine as macros.
16125 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16127         * Makefile.in (target-globals.o): Depend on builtins.h.
16128         * builtins.h: New file.
16129         * builtins.c: Include builtins.h.
16130         (default_target_builtins): New variable.
16131         (this_target_builtins): New conditional variable.
16132         (apply_args_mode, apply_result_mode): Redefine as macros.
16133         * target-globals.h (this_target_builtins): Declare.
16134         (target_globals): Add a builtins field.
16135         (restore_target_globals): Copy the builtins field to
16136         this_target_builtins.
16137         * target-globals.c: Include builtins.h.
16138         (default_target_globals): Initialize the builtins field.
16139         (save_target_globals): Likewise.
16141 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16143         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
16144         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
16145         from expmed.c.
16146         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
16147         (alg_hash, alg_hash_used_p): New macros.
16148         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
16149         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
16150         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
16152 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16154         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
16155         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
16156         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
16157         (this_op_costs, costs_classes): Redefine as macros.
16158         (record_reg_classes): Don't take op_costs as a parameter.
16159         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
16160         (scan_one_insn): Update call to record_operand_costs.
16162 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16164         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
16165         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
16166         (target_ira_int): New structure.
16167         (default_target_ira_int): Declare.
16168         (this_target_ira_int): Declare as a variable or define as a macro.
16169         (ira_reg_mode_hard_regset, ira_register_move_cost)
16170         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
16171         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
16172         (prohibited_class_mode_regs, ira_important_classes_num)
16173         (ira_important_classes, ira_reg_class_intersect)
16174         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
16175         (ira_reg_class_union): Redefine as macros.
16176         * ira.h (target_ira): New structure.
16177         (default_target_ira): Declare.
16178         (this_target_ira): Declare as a variable or define as a macro.
16179         (ira_available_class_regs, ira_hard_regno_cover_class)
16180         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
16181         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
16182         (ira_class_hard_regs_num): Redefine as macros.
16183         * ira.c (default_target_ira, default_target_ira_int): New variables.
16184         (this_target_ira, this_target_ira_int): New conditional variables.
16185         (ira_reg_mode_hard_regset, ira_memory_move_cost)
16186         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
16187         (ira_class_subset_p): Delete.
16188         (no_unit_alloc_regs): Redefine as a macro.
16189         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
16190         (ira_class_hard_regs_num, ira_class_hard_reg_index)
16191         (ira_available_class_regs): Delete.
16192         (alloc_reg_class_subclasses): Redefine as a macro.
16193         (ira_reg_class_cover_size, ira_reg_class_cover)
16194         (ira_important_classes_num, ira_important_classes)
16195         (ira_important_class_nums, ira_class_translate): Delete.
16196         (cover_class_order): Document the variable's lifetime.
16197         (reorder_important_classes): Don't set ira_important_class_nums.
16198         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
16199         (ira_reg_class_super_classes, ira_reg_class_union)
16200         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
16201         Delete.
16202         (setup_reg_class_nregs): Don't set ira_max_regs.
16203         (prohibited_class_mode_regs): Delete.
16204         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
16205         (target_globals): Add ira and ira_int fields.
16206         (restore_target_globals): Copy the ira field to this_target_ira
16207         and the ira_int field to this_target_ira_int.
16208         * target-globals.c: Include ira-int.h.
16209         (default_target_globals): Initialize the ira and ira_int fields.
16210         (save_target_globals): Likewise.
16212 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16214         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
16215         * cfgloop.h (target_cfgloop): New structure.
16216         (default_target_cfgloop): Declare.
16217         (this_target_cfgloop): Declare as a variable or define as a macro.
16218         (target_avail_regs, target_clobbered_regs, target_res_regs)
16219         (target_reg_cost, target_spill_cost): Redefine as macros.
16220         * cfgloopanal.c (default_target_cfgloop): New variable.
16221         (this_target_cfgloop): New conditional variable.
16222         (target_avail_regs, target_clobbered_regs, target_res_regs)
16223         (target_reg_cost, target_spill_cost): Delete.
16224         * target-globals.h (this_target_cfgloop): Declare.
16225         (target_globals): Add a cfgloop field.
16226         (restore_target_globals): Copy the cfgloop field to
16227         this_target_cfgloop.
16228         * target-globals.c: Include cfgloop.h.
16229         (default_target_globals): Initialize the cfgloop field.
16230         (save_target_globals): Likewise.
16232 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16234         * regs.h (target_regs): Add x_direct_load, x_direct_store and
16235         x_float_extend_from_mem.
16236         (direct_load, direct_store, float_extend_from_mem): New macros.
16237         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
16239 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16241         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
16242         (target-globals.o): Depend on $(LIBFUNCS_H).
16243         * libfuncs.h: Include hashtab.h.
16244         (libfunc_entry): Moved from optabs.c.
16245         (target_libfuncs): New structure.
16246         (default_target_libfuncs): Declare.
16247         (this_target_libfuncs): Declare as a variable or define as a macro.
16248         (libfunc_table): Redefine as a macro.
16249         * optabs.c (default_target_libfuncs): New variable.
16250         (this_target_libfuncs): New conditional variable.
16251         (libfunc_table): Delete.
16252         (libfunc_entry): Moved to optabs.h.
16253         (libfunc_hash): Redefine as a macro.
16254         (hash_libfunc, eq_libfunc): Fix comments.
16255         (init_optabs): Use libfunc_hash to detect cases where the function
16256         has already been called.  Clear the hash table instead of
16257         recreating it.
16258         * target-globals.h (this_target_libfuncs): Declare.
16259         (target_globals): Add a libfuncs field.
16260         (restore_target_globals): Copy the libfuncs field to
16261         this_target_libfuncs.
16262         * target-globals.c: Include libfuncs.h.
16263         (default_target_globals): Initialize the libfuncs field.
16264         (save_target_globals): Likewise.
16266 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16268         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
16269         in all dependency lists.
16271 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16273         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
16274         * optabs.h (target_optabs): New structure.
16275         (default_target_optabs): Declare.
16276         (this_target_optabs): Declare as a variable or define as a macro.
16277         (optab_table, convert_optab_table, direct_optab_table): Redefine
16278         as macros.
16279         * optabs.c (default_target_optabs): New variable.
16280         (this_target_optabs): New conditional variable.
16281         (optab_table, convert_optab_table, direct_optab_table): Delete.
16282         * target-globals.h (this_target_optabs): Declare.
16283         (target_globals): Add a optabs field.
16284         (restore_target_globals): Copy the optabs field to
16285         this_target_optabs.
16286         * target-globals.c: Include expr.h and optabs.h.
16287         (default_target_globals): Initialize the optabs field.
16288         (save_target_globals): Likewise.
16290 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16292         * flags.h (target_flagstate): Add x_flag_excess_precision.
16293         (flag_excess_precision): Redefine as a macro.
16294         * toplev.c (flag_excess_precision): Delete.
16296 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16298         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
16299         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
16300         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
16301         (no_caller_save_reg_set): Redefine as a macro.
16302         * reload.h (target_reload): Add x_caller_save_initialized_p and
16303         x_regno_save_mode.
16304         (caller_save_initialized_p): Redefine as a macro.
16305         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
16306         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
16307         (regno_save_mode): Redefine as a macro.
16309 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16311         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
16312         * expmed.h: New file.
16313         * expmed.c (default_target_costs): New variable.
16314         (this_target_costs): New conditional variable.
16315         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
16316         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
16317         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
16318         * target-globals.h (this_target_expmed): Declare.
16319         (target_globals): Add a expmed field.
16320         (restore_target_globals): Copy the expmed field to
16321         this_target_expmed.
16322         * target-globals.c: Include expmed.h.
16323         (default_target_globals): Initialize the expmed field.
16324         (save_target_globals): Likewise.
16326 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16328         * Makefile.in (target-globals.o): Depend on reload.h.
16329         * reload.h (target_reload): New structure.
16330         (default_target_reload): Declare.
16331         (this_target_reload): Declare as a variable or define as a macro.
16332         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
16333         * reload1.c (default_target_reload): New variable
16334         (this_target_reload): New conditional variable.
16335         (indirect_symref_ok, double_reg_address_ok): Delete.
16336         (spill_indirect_levels): Redefine as a macro.
16337         * target-globals.h (this_target_reload): Declare.
16338         (target_globals): Add a reload field.
16339         (restore_target_globals): Copy the reload field to
16340         this_target_reload.
16341         * target-globals.c: Include hard-reg-set.h.
16342         (default_target_globals): Initialize the reload field.
16343         (save_target_globals): Likewise.
16345 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16347         * rtl.h (target_rtl): Add x_static_reg_base_value.
16348         * alias.c (static_reg_base_value): Redefine as a macro.
16350 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16352         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
16353         (GTFILES): Remove reginfo.c.
16354         * rtl.h (target_rtl): Add x_top_of_stack.
16355         (top_of_stack): New macro.
16356         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
16357         (top_of_stack): Delete.
16359 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16361         * regs.h (target_regs): Add x_hard_regs_of_mode,
16362         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
16363         x_may_move_out_cost and x_last_mode_for_init_move_cost.
16364         (have_regs_of_mode, contains_reg_of_mode, move_cost)
16365         (may_move_in_cost, may_move_out_cost): Redefine as macros.
16366         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
16367         (may_move_in_cost, may_move_out_cost): Delete.
16368         (last_mode_for_init_move_cost): Redefine as a macro.
16370 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16372         * hard-reg-set.h (target_hard_regs): New structure.
16373         (default_target_hard_regs): Declare.
16374         (this_target_hard_regs): Declare as a variable or define as a macro.
16375         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
16376         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
16377         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
16378         (reg_class_size, reg_class_subclasses, reg_class_subunion)
16379         (reg_class_superunion, reg_names): Redefine as macros.
16380         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
16381         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
16382         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
16383         (reg_class_contents, reg_class_size, reg_class_subclasses)
16384         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
16385         (default_target_hard_regs): New variable
16386         (this_target_hard_regs, initial_call_really_used_regs)
16387         (initial_reg_alloc_order): New conditional variables.
16388         (initial_reg_names): New variable.
16389         (init_reg_sets): Assert that initial_call_really_used_regs,
16390         initial_reg_alloc_order and initial_reg_names
16391         are all the same size as their variable counterparts.  Use them to
16392         initialize those counterparts.
16393         * target-globals.h (this_target_hard_regs): Declare.
16394         (target_globals): Add a hard_regs field.
16395         (restore_target_globals): Copy the hard_regs field to
16396         this_target_hard_regs.
16397         * target-globals.c: Include hard-reg-set.h.
16398         (default_target_globals): Initialize the hard_regs field.
16399         (save_target_globals): Likewise.
16401 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16403         * Makefile.in (target-globals.o): Depend on $(RTL_H).
16404         * rtl.h (target_rtl): New structure.
16405         (default_target_rtl): Declare.
16406         (this_target_rtl): Declare as a variable or define as a macro.
16407         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
16408         Redefine as macros.
16409         * emit-rtl.c (default_target_rtl): New variable.
16410         (this_target_rtl): New conditional variable.
16411         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
16412         (return_address_pointer_rtx): Delete.
16413         (initial_regno_reg_rtx): New macro.
16414         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
16415         (init_emit_regs): Likewise.
16416         * target-globals.h (this_target_rtl): Declare.
16417         (target_globals): Add a rtl field.
16418         (restore_target_globals): Copy the rtl field to this_target_rtl.
16419         * target-globals.c: Include rtl.h.
16420         (default_target_globals): Initialize the rtl field.
16421         (save_target_globals): Likewise.
16423 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16425         * Makefile.in (target-globals.o): Depend on $(REGS_H).
16426         * regs.h (target_reg_modes): New structure.
16427         (default_target_reg_modes): Declare.
16428         (this_target_reg_modes): Declare as a variable or define as a macro.
16429         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
16430         * reginfo.c (default_target_reg_modes): New variable.
16431         (this_target_reg_modes): New conditional variable.
16432         (hard_regno_nregs, reg_raw_mode): Delete.
16433         * target-globals.h (this_target_regs): Declare.
16434         (target_globals): Add a regs field.
16435         (restore_target_globals): Copy the regs field to this_target_regs.
16436         * target-globals.c: Include regs.h.
16437         (default_target_globals): Initialize the regs field.
16438         (save_target_globals): Likewise.
16440 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16442         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
16443         * doc/tm.texi: Regenerate.
16444         * Makefile.in (OBJS-common): Add target-globals.o.
16445         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
16446         and target-globals.h.
16447         (target-globals.o): New rule.
16448         (GTFILES): Include $(srcdir)/target-globals.h.
16449         * defaults.h (SWITCHABLE_TARGET): Define.
16450         * gengtype.c (open_base_files): Add target-globals.h to the
16451         list of includes.
16452         * target-globals.h: New file.
16453         * target-globals.c: Likewise.
16455         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
16456         * flags.h (target_flag_state): New structure.
16457         (default_target_flag_state): Declare.
16458         (this_target_flag_state): Declare as a variable or define as a macro.
16459         (align_loops_log): Redefine as a macro.
16460         (align_loops_max_skip, align_jumps_log): Likewise.
16461         (align_jumps_max_skip, align_labels_log): Likewise.
16462         (align_labels_max_skip, align_functions_log): Likewise.
16463         * toplev.c (default_target_flag_state): New variable.
16464         (this_target_flag_state): New conditional variable.
16465         (align_loops_log): Delete.
16466         (align_loops_max_skip, align_jumps_log): Likewise.
16467         (align_jumps_max_skip, align_labels_log): Likewise.
16468         (align_labels_max_skip, align_functions_log): Likewise.
16469         * target-globals.h (this_target_flag_state): Declare.
16470         (target_globals): Add a flag_state field.
16471         (restore_target_globals): Copy the flag_state field to
16472         this_target_flag_state.
16473         * target-globals.c: Include flags.h.
16474         (default_target_globals): Initialize the flag_state field.
16475         (save_target_globals): Likewise.
16477 2010-07-12  Jie Zhang  <jie@codesourcery.com>
16479         * postreload.c (reg_symbol_ref[]): New.
16480         (move2add_use_add2_insn): New.
16481         (move2add_use_add3_insn): New.
16482         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
16483         (move2add_note_store): Likewise.
16485 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
16487         PR rtl-optimization/44752
16488         * genautomata.c (main): Don't emit an empty file even if there
16489         is no automaton.
16491 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16493         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
16494         ix86_solaris_return_in_memory.
16495         * config/i386-protos.h: Reflect this.
16496         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
16497         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
16498         Move ...
16499         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
16501 2010-07-12  Jie Zhang  <jie@codesourcery.com>
16503         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
16504         align the stack when it's going to be saved.
16506 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16508         PR pch/14940
16509         * config/host-solaris.c (mmap_fixed): New function.
16510         (sol_gt_pch_get_address): Use it.
16511         (sol_gt_pch_use_address): Likewise.
16513 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16515         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
16516         pentiumpro on Solaris 8 and 9/x86.
16517         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
16518         Document SSE/SSE2 support.
16519         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
16521 2010-07-12  Andi Kleen  <ak@linux.intel.com>
16523         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
16524         instead of gcc_assert to print better error message for multiple
16525         prevailing defs.
16527 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
16529         * config/i386/i386.c (ix86_asm_output_function_label): Change format
16530         string placeholder from 0x%x to %#x.
16531         (ix86_code_end): Use putc to output '\n'.
16532         (ix86_print_operand) <case ';'>: Use putc to output ';'.
16534 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
16536         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
16537         in directive -export.
16539 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
16541         * reginfo.h (reg_classes_intersect_p): Change arguments type to
16542         reg_class_t.
16543         * rtl.h (reg_classes_intersect_p): Adjust prototype.
16545         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16546         Remove macros.
16547         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
16548         rs6000_memory_move_cost): Remove
16549         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
16550         TARGET_MEMORY_MOVE_COST): Define.
16551         (rs6000_register_move_cost): Make static. Change arguments type from
16552         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
16553         (rs6000_memory_move_cost): Make static. Change arguments type from
16554         'enum reg_class' to reg_class_t.
16556 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
16558         PR middle-end/42505
16559         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
16560         lookup code into....
16561         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
16562         new functions.
16563         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
16564         * cfgloopanal.c (target_clobbered_regs): Define.
16565         (init_set_costs): Initialize target_clobbered_regs.
16566         (estimate_reg_pressure_cost): Add call_p argument.  When true,
16567         adjust the number of available registers to exclude the
16568         call-clobbered registers.
16569         * cfgloop.h (target_clobbered_regs): Declare.
16570         (estimate_reg_pressure_cost): Adjust declaration.
16571         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
16572         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
16573         (determine_set_costs): Dump target_clobbered_regs.
16574         (loop_body_includes_call): New function.
16575         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
16576         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
16577         call_p flag through.
16578         (best_gain_for_invariant): Likewise.
16579         (find_invariants_to_move): Likewise.
16580         (move_single_loop_invariants): Likewise, using already-computed
16581         has_call field.
16583 2010-07-10  Richard Guenther  <rguenther@suse.de>
16584             Joern Rennecke  <joern.rennecke@embecosm.com>
16586         PR debug/44832
16587         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
16588         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
16589         unless they have DECL_IGNORED_P set.
16591 2010-07-10  Richard Guenther  <rguenther@suse.de>
16593         PR lto/44889
16594         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
16595         helper function.
16596         (gimple_types_compatible_p): Similar to pointed-to
16597         types allow and merge a mix of complete and incomplete aggregate.
16598         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
16599         (iterative_hash_gimple_type): Adjust for that.
16601 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
16603         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
16605 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
16607         PR objc/44140
16608         * config/darwin.c (output_objc_section_asm_op): Save and restore
16609         section when outputting ObjC section list.
16611 2010-07-09  Jan Hubicka  <jh@suse.cz>
16613         * lto-streamer-out.c (produce_symtab): Do not write alias
16614         cgraph/varpool nodes.
16616 2010-07-09  Jan Hubicka  <jh@suse.cz>
16618         * tree-inline.c (declare_return_variable): Fix ICE while
16619         inlining DECL_BY_VALUE function not in SSA form
16621 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
16623         PR tree-optimization/44576
16624         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
16625         New.  Pull out from is_loop_prefetching_profitable to implement
16626         the trip count to ahead ratio heuristic.
16627         (mem_ref_count_reasonable_p): New.  Pull out from
16628         is_loop_prefetching_profitable to implement the instruction to
16629         memory reference ratio heuristic.  Also consider not reasonable if
16630         the memory reference count is above a threshold (to avoid
16631         explosive compilation time.
16632         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
16633         is_loop_prefetching_profitable to implement the instruction to
16634         prefetch ratio heuristic.
16635         (is_loop_prefetching_profitable): Removed.
16636         (loop_prefetch_arrays): Distribute the cost analysis across the
16637         function to allow early exit of the prefetch analysis.
16638         is_loop_prefetching_profitable is splitted into three functions,
16639         with each one called as early as possible.
16640         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
16641         number of memory references in a loop is considered too many.
16643 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
16645         * reload.c (find_reloads): Don't clear badop if we have a winreg
16646         alternative, but not win, and the class only has fixed regs.
16647         * hard-reg-set.h (class_only_fixed_regs): Declare.
16648         * reginfo.c (class_only_fixed_regs): New array.
16649         (init_reg_sets_1): Initialize it.
16650         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
16651         discourage alternatives using the stack pointer.
16653         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
16655         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
16657         * config/arm/arm.md (cbranchqi4): Fix array size.
16658         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
16659         calculating length.
16661 2010-07-09  Richard Guenther  <rguenther@suse.de>
16663         * gimple.c (struct type_fixup_s): New struct and VEC type.
16664         (gimple_register_type_fixups): New static global.
16665         (gimple_queue_type_fixup): New function.
16666         (gimple_types_compatible_p): Queue type fixups instead of
16667         applying them here.
16668         (gimple_register_type): Apply queued fixups for the
16669         canonical type.  Empty the type fixup queue.
16671 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
16673         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
16674         * configure: Regenerate.
16675         * config.in: Ditto.
16677 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
16678             Denys Vlasenko  <dvlasenk@redhat.com>
16679             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16681         PR tree-optimization/28632
16682         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
16683         (extract_range_from_binary_expr): Further optimize
16684         BIT_AND_EXPR and BIT_IOR_EXPR.
16686 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
16688         * tree-if-conv.c (fold_or_predicates): New.
16689         (add_to_predicate_list): Call it.
16691 2010-07-09  Richard Guenther  <rguenther@suse.de>
16693         PR middle-end/44890
16694         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
16695         if base is a pointer.
16696         * tree-cfg.c (verify_expr): Update MEM_REF checking.
16698 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
16700         PR target/44877
16701         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
16702         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
16703         builtin mask for load/store builtins.
16705 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
16707         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
16708         for "lock addl".
16709         * configure: Regenerate.
16710         * config/i386/i386.c (ix86_print_operand) <case ';'>:
16711         Remove TARGET_MACHO.
16713 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
16715         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
16716         default ISA flags.
16717         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
16719 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
16721         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
16723 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
16725         * config/picochip/picochip.md (commsTestPort): Emit more
16726         efficient sequence for tstport instruction.
16728 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
16730         * config/i386/i386.c (ix86_veclib_handler): Make static.
16732 2010-07-09  Richard Guenther  <rguenther@suse.de>
16734         PR tree-optimization/44852
16735         * tree-ssa-alias.c: Include toplev.h for exact_log2.
16736         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
16737         in MEM_REF.
16738         (indirect_refs_may_alias_p): Likewise.
16739         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
16741 2010-07-09  Richard Guenther  <rguenther@suse.de>
16743         PR tree-optimization/44882
16744         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
16745         sets do conflict.
16746         (vectorizable_load): Likewise.
16748 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
16750         PR target/40657
16751         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
16752         All callers changed.
16753         Handle the case when we're called for the epilogue.
16754         (thumb_unexpanded_epilogue): Use it.
16755         (thumb1_expand_epilogue): Likewise.
16757 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
16759         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
16760         both ranges are range_int_cst_p with non-negative minimum,
16761         try harder to derive smaller range.
16763 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16765         * genrecog.c: Include diagnostic-core.h before toplev.h.
16766         * genoutput.c: Likewise.
16767         * genextract.c: Likewise.
16768         * genautomata.c: Likewise.
16769         * genemit.c: Likewise.
16770         * genpeep.c: Likewise.
16771         * genattrtab.c: Likewise.
16772         * genconditions.c: Likewise.
16773         * genpreds.c: Likewise.
16775 2010-07-08  Andi Kleen  <ak@linux.intel.com>
16777         * lto-section-in.c (lto_section_name): Add missing comma.
16779 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
16781         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
16782         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
16783         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
16784         (ia64_override_options): Rename to...
16785         (ia64_option_override): ... this one. Make static.
16787 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16789         PR middle-end/44843
16790         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
16791         pointed-to type of the offset in a MEM_REF to compute the alignment.
16793 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
16795         * final.c (final_scan_insn): Replace
16796         TARGET_UNWIND_INFO macro check by unwind_emit
16797         hook NULL check.
16798         * targhooks.c (default_unwind_emit): Removed.
16799         * targhooks.h (default_unwind_emit): Likewise.
16800         * target.def (unwind_emit): Set default value to NULL.
16802         * config/i386/i386-protos.h (ix86_asm_output_function_label):
16803         New prototype.
16804         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
16805         for NULL fntype argument and allow 64-bit targets.
16806         (ix86_asm_output_function_label): New function.
16807         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
16808         (ix86_handle_fndecl_attribute): Likewise.
16809         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
16810         * doc/doc/tm.texi: Regenerated.
16811         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
16812         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
16813         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
16814         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
16815         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
16816         * config/elfos.h: Likewise.
16817         * config/i386/cygming.h: Likewise.
16818         * config/netbsd-aout.h: Likewise.
16819         * config/openbsd.h: Likewise.
16820         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
16821         by ix86_asm_output_function_label function call.
16822         * varasm.c (assemble_start_function): Use
16823         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
16825 2010-07-08  Jan Hubicka  <jh@suse.cz>
16827         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
16828         New function.
16829         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
16830         Declare.
16831         * ipa-cp.c (ipcp_estimate_growth): Use it.
16832         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
16833         Likewise.
16835 2010-07-08  Jan Hubicka  <jh@suse.cz>
16837         * tree-inline.c (declare_return_variable): Allocate annotation for new
16838         temporary.
16840 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
16842         PR tree-optimization/44710
16843         * tree-if-conv.c (parse_predicate): New.
16844         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
16845         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
16847 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
16849         * common.opt (ftree-loop-if-convert): New flag.
16850         * doc/invoke.texi (ftree-loop-if-convert): Documented.
16851         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
16852         when flag_tree_loop_if_convert is set.
16854 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
16856         * config/i386/i386.c: Use short syntax for function calls
16857         through function pointers.
16858         * config/i386/i386.md: Ditto.
16860 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16862         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
16864 2010-07-08  Richard Guenther  <rguenther@suse.de>
16866         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
16867         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
16869 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
16871         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
16872         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
16873         (loc_list_from_tree): Likewise.
16874         (output_loc_operands): Handle outputting DW_OP_const[48]u
16875         with loc->dtprel set.
16876         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
16878 2010-07-08  Jan Hubicka  <jh@suse.cz>
16880         * ipa.c: Include pointer-set.h
16881         (cgraph_externally_visible_p): New attribute ALIASED;
16882         when in LTO, hidden symbols are local unless they are aliased.
16883         (function_and_variable_visibility): Compute aliased nodes;
16884         handle LTO and hidden symbol on functions and vars.
16885         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
16886         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
16888 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16890         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16891         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16892         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16893         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16894         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16895         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
16896         (ix86_gen_probe_stack_range): Likewise.
16897         (override_options): Set them.
16898         (ix86_target_stack_probe): New function.
16899         (ix86_compute_frame_layout): Force use of push instructions to
16900         save registers if stack checking with probes is enabled.
16901         (get_scratch_register_on_entry): New function.
16902         (release_scratch_register_on_entry): Likewise.
16903         (ix86_adjust_stack_and_probe): Likewise.
16904         (output_adjust_stack_and_probe): Likewise.
16905         (ix86_emit_probe_stack_range): Likewise.
16906         (output_probe_stack_range): Likewise.
16907         (ix86_expand_prologue): Emit stack checking code if static built-in
16908         stack checking is enabled.
16909         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
16910         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
16911         (output_adjust_stack_and_probe): Likewise.
16912         (output_probe_stack_range): Likewise.
16913         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16914         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
16915         TARGET_STACK_PROBE.
16916         (allocate_stack_worker_64): Likewise.
16917         (allocate_stack): Likewise.
16918         (adjust_stack_and_probe): New insn.
16919         (probe_stack_range): Likewise.
16921 2010-07-08  Richard Guenther  <rguenther@suse.de>
16923         PR tree-optimization/44831
16924         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
16925         a MEM_REF preserving TBAA info of the original dereference.
16926         Dereference the original pointer if the address is not invariant.
16927         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
16928         at least one invariant address that we are going to dereference.
16930 2010-07-08  Richard Guenther  <rguenther@suse.de>
16932         PR tree-optimization/44861
16933         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
16934         information when building MEM_REFs.
16935         (vectorizable_load): Likewise.
16936         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
16938 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16940         * config/sol2-c.c: Do not include diagnostic-core.h.
16942 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16944         PR bootstrap/44768
16945         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
16946         with respect to current_function_decl. Pass decl of the function.
16947         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
16948         * ipa-inline.c (compute_inline_parameters): Pass decl to
16949         estimated_stack_frame_size.
16951 2010-07-08  Richard Guenther  <rguenther@suse.de>
16953         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16954         New function.
16955         (valueize_refs): Call it.
16957 2010-07-08  Richard Guenther  <rguenther@suse.de>
16959         PR rtl-optimization/44838
16960         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
16961         SSA form do not use pointer equivalence.
16963 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16965         * dwarf2out.c (AT_linkage_name): Delete.
16966         (add_linkage_attr): New function.
16967         (add_linkage_name): Call it to emit the linkage attribute.
16968         (dwarf2out_finish): Likewise.
16969         (move_linkage_attr): Explicitly accept both attribute variants.
16971 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16973         * toplev.h: Do not include diagnostic-core.h.
16974         Include diagnostic-core.h in every file that includes toplev.h.
16975         * c-tree.h: Do not include toplev.h.
16976         * pretty-print.h: Update comment.
16977         * Makefile.in: Update dependencies.
16978         * alias.c: Include diagnostic-core.h in every file that includes
16979         toplev.h.
16980         * attribs.c: Likewise.
16981         * auto-inc-dec.c: Likewise.
16982         * bb-reorder.c: Likewise.
16983         * bt-load.c: Likewise.
16984         * caller-save.c: Likewise.
16985         * calls.c: Likewise.
16986         * cfg.c: Likewise.
16987         * cfganal.c: Likewise.
16988         * cfgbuild.c: Likewise.
16989         * cfgcleanup.c: Likewise.
16990         * cfghooks.c: Likewise.
16991         * cfgloop.c: Likewise.
16992         * combine.c: Likewise.
16993         * config/alpha/alpha.c: Likewise.
16994         * config/arc/arc.c: Likewise.
16995         * config/arm/arm.c: Likewise.
16996         * config/arm/pe.c: Likewise.
16997         * config/avr/avr.c: Likewise.
16998         * config/bfin/bfin.c: Likewise.
16999         * config/cris/cris.c: Likewise.
17000         * config/crx/crx.c: Likewise.
17001         * config/darwin-c.c: Likewise.
17002         * config/darwin.c: Likewise.
17003         * config/fr30/fr30.c: Likewise.
17004         * config/frv/frv.c: Likewise.
17005         * config/h8300/h8300.c: Likewise.
17006         * config/host-darwin.c: Likewise.
17007         * config/i386/i386.c: Likewise.
17008         * config/i386/netware.c: Likewise.
17009         * config/i386/nwld.c: Likewise.
17010         * config/i386/winnt-cxx.c: Likewise.
17011         * config/i386/winnt-stubs.c: Likewise.
17012         * config/i386/winnt.c: Likewise.
17013         * config/ia64/ia64-c.c: Likewise.
17014         * config/ia64/ia64.c: Likewise.
17015         * config/iq2000/iq2000.c: Likewise.
17016         * config/lm32/lm32.c: Likewise.
17017         * config/m32c/m32c-pragma.c: Likewise.
17018         * config/m32c/m32c.c: Likewise.
17019         * config/m32r/m32r.c: Likewise.
17020         * config/m68hc11/m68hc11.c: Likewise.
17021         * config/m68k/m68k.c: Likewise.
17022         * config/mcore/mcore.c: Likewise.
17023         * config/mep/mep-pragma.c: Likewise.
17024         * config/mep/mep.c: Likewise.
17025         * config/mmix/mmix.c: Likewise.
17026         * config/mn10300/mn10300.c: Likewise.
17027         * config/moxie/moxie.c: Likewise.
17028         * config/pa/pa.c: Likewise.
17029         * config/pdp11/pdp11.c: Likewise.
17030         * config/picochip/picochip.c: Likewise.
17031         * config/rs6000/rs6000-c.c: Likewise.
17032         * config/rs6000/rs6000.c: Likewise.
17033         * config/rx/rx.c: Likewise.
17034         * config/s390/s390.c: Likewise.
17035         * config/score/score.c: Likewise.
17036         * config/score/score3.c: Likewise.
17037         * config/score/score7.c: Likewise.
17038         * config/sh/sh.c: Likewise.
17039         * config/sh/symbian-base.c: Likewise.
17040         * config/sh/symbian-c.c: Likewise.
17041         * config/sh/symbian-cxx.c: Likewise.
17042         * config/sol2-c.c: Likewise.
17043         * config/sol2.c: Likewise.
17044         * config/sparc/sparc.c: Likewise.
17045         * config/spu/spu.c: Likewise.
17046         * config/stormy16/stormy16.c: Likewise.
17047         * config/v850/v850-c.c: Likewise.
17048         * config/v850/v850.c: Likewise.
17049         * config/vax/vax.c: Likewise.
17050         * config/vxworks.c: Likewise.
17051         * config/xtensa/xtensa.c: Likewise.
17052         * convert.c: Likewise.
17053         * cse.c: Likewise.
17054         * cselib.c: Likewise.
17055         * dbgcnt.c: Likewise.
17056         * dbxout.c: Likewise.
17057         * ddg.c: Likewise.
17058         * dominance.c: Likewise.
17059         * emit-rtl.c: Likewise.
17060         * explow.c: Likewise.
17061         * expmed.c: Likewise.
17062         * fixed-value.c: Likewise.
17063         * fold-const.c: Likewise.
17064         * fwprop.c: Likewise.
17065         * gcse.c: Likewise.
17066         * ggc-common.c: Likewise.
17067         * ggc-page.c: Likewise.
17068         * ggc-zone.c: Likewise.
17069         * gimple-low.c: Likewise.
17070         * gimplify.c: Likewise.
17071         * graph.c: Likewise.
17072         * haifa-sched.c: Likewise.
17073         * ifcvt.c: Likewise.
17074         * implicit-zee.c: Likewise.
17075         * integrate.c: Likewise.
17076         * ira-build.c: Likewise.
17077         * ira-color.c: Likewise.
17078         * ira-conflicts.c: Likewise.
17079         * ira-costs.c: Likewise.
17080         * ira-lives.c: Likewise.
17081         * ira.c: Likewise.
17082         * lists.c: Likewise.
17083         * loop-doloop.c: Likewise.
17084         * loop-iv.c: Likewise.
17085         * lto-opts.c: Likewise.
17086         * lto-symtab.c: Likewise.
17087         * main.c: Likewise.
17088         * modulo-sched.c: Likewise.
17089         * optabs.c: Likewise.
17090         * params.c: Likewise.
17091         * plugin.c: Likewise.
17092         * postreload-gcse.c: Likewise.
17093         * postreload.c: Likewise.
17094         * predict.c: Likewise.
17095         * profile.c: Likewise.
17096         * real.c: Likewise.
17097         * regcprop.c: Likewise.
17098         * reginfo.c: Likewise.
17099         * regmove.c: Likewise.
17100         * reorg.c: Likewise.
17101         * resource.c: Likewise.
17102         * rtl.c: Likewise.
17103         * rtlanal.c: Likewise.
17104         * sched-deps.c: Likewise.
17105         * sched-ebb.c: Likewise.
17106         * sched-rgn.c: Likewise.
17107         * sdbout.c: Likewise.
17108         * sel-sched-dump.c: Likewise.
17109         * sel-sched-ir.c: Likewise.
17110         * simplify-rtx.c: Likewise.
17111         * stmt.c: Likewise.
17112         * stor-layout.c: Likewise.
17113         * store-motion.c: Likewise.
17114         * targhooks.c: Likewise.
17115         * tree-cfg.c: Likewise.
17116         * tree-cfgcleanup.c: Likewise.
17117         * tree-dump.c: Likewise.
17118         * tree-eh.c: Likewise.
17119         * tree-inline.c: Likewise.
17120         * tree-nomudflap.c: Likewise.
17121         * tree-object-size.c: Likewise.
17122         * tree-optimize.c: Likewise.
17123         * tree-outof-ssa.c: Likewise.
17124         * tree-phinodes.c: Likewise.
17125         * tree-profile.c: Likewise.
17126         * tree-ssa-ccp.c: Likewise.
17127         * tree-ssa-coalesce.c: Likewise.
17128         * tree-ssa-live.c: Likewise.
17129         * tree-ssa-loop-niter.c: Likewise.
17130         * tree-ssa-loop-prefetch.c: Likewise.
17131         * tree-ssa-loop.c: Likewise.
17132         * tree-ssa-structalias.c: Likewise.
17133         * tree-ssa-uninit.c: Likewise.
17134         * tree-ssa.c: Likewise.
17135         * tree-vect-data-refs.c: Likewise.
17136         * tree-vect-loop-manip.c: Likewise.
17137         * tree-vect-loop.c: Likewise.
17138         * tree-vect-patterns.c: Likewise.
17139         * tree-vect-stmts.c: Likewise.
17140         * tree-vrp.c: Likewise.
17141         * varasm.c: Likewise.
17142         * vec.c: Likewise.
17143         * web.c: Likewise.
17144         * xcoffout.c: Likewise.
17146 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
17148         * gengtype.c (write_field_root): New function.
17149         (write_root): Use it.
17151 2010-07-07  Wei Guozhi  <carrot@google.com>
17153         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
17154         of lowest bits to lshift/compare): Add a missing line.
17156 2010-07-07  Wei Guozhi  <carrot@google.com>
17158         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
17159         of lowest bits to lshift/compare): New.
17161 2010-07-07  Tom Tromey  <tromey@redhat.com>
17163         * doc/tm.texi: Update.
17164         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
17165         Add @hook.
17166         * target.def (want_debug_pub_sections): New hook.
17167         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
17168         * dwarf2out.c (add_pubname_string): Check
17169         targetm.want_debug_pub_sections.
17170         (add_pubname): Likewise.
17171         (add_pubtype): Likewise.
17173 2010-07-07  Jie Zhang  <jie@codesourcery.com>
17175         * genautomata.c (output_automata_list_min_issue_delay_code):
17176         Correctly decompress min_issue_delay.
17178 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
17180         PR rtl-optimization/44404
17181         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
17182         possible, use reg_overlap_mentioned_p instead.
17184 2010-07-07  Duncan Sands  <baldrick@free.fr>
17186         PR middle-end/41355
17187         * tree.c (build_function_type_skip_args): Copy the original type using
17188         build_distinct_type_copy rather than copy_node.
17190 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
17192         PR target/44850
17193         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
17194         revision 161876.
17195         (ix86_expand_prologue): Likewise.
17196         (ix86_handle_fndecl_attribute): Likewise.
17197         (ix86_asm_declare_function_name): Likewise.
17198         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17199         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17200         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
17201         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
17202         * doc/extend.texi: Likewise.
17204 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
17206         PR target/44844
17207         * config/i386/i386.md (rdrand<mode>): Changed to expand to
17208         retry if the carry flag isn't valid.
17209         (rdrand<mode>_1): New.
17211 2010-07-07  Richard Guenther  <rguenther@suse.de>
17213         PR middle-end/44790
17214         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
17215         for expanding the constant offset for MEM_REFs.
17217 2010-07-07  Richard Guenther  <rguenther@suse.de>
17219         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
17220         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
17221         * gimple.h (is_gimple_operand): Remove.
17222         * gimple.c (is_gimple_operand): Likewise.
17223         (walk_gimple_op): Fix wi->val_only setting for calls.
17224         * tree-cfg.c (verify_gimple_call): Fix argument validation.
17225         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
17226         invalid gimple calls.
17228 2010-07-06  Jan Hubicka  <jh@suse.cz>
17230         * lto-cgraph.c (output_cgraph): Add missing declaration.
17232 2010-07-06  Jan Hubicka  <jh@suse.cz>
17234         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
17235         partition.
17237 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
17239         * doc/gimple.texi (GIMPLE_DEBUG): Document.
17240         * doc/rtl.texi (Debug Information): New node.
17241         (NOTE_INSN_VAR_LOCATION): Document.
17242         (debug_insn): Likewise.
17243         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
17245 2010-07-07  Jan Hubicka  <jh@suse.cz>
17247         With parts by Richard Guenther.
17249         PR middle-end/44813
17250         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
17251         for functions passed by reference.
17252         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
17253         in memory when passed by reference.
17254         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
17255         beggining.
17256         * ipa-split.c (split_function): Cleanup way return value is passed;
17257         handle SSA DECL_BY_REFERENCE retvals.
17258         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
17259         DECL_BY_REFERENCE is set.
17260         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
17261         find_what_p_points_to): Handle RESULT_DECL.
17262         * tree-inline.c (declare_return_variable): Get new entry_block argument;
17263         when passing by reference ensure that RESULT_DECL is gimple_val.
17264         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
17265         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
17267 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
17269         PR rtl-optimization/44787
17270         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
17271         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
17273 2010-07-06  Jan Hubicka  <jh@suse.cz>
17275         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
17276         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
17277         with body can prevail.
17278         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
17279         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
17280         * cgraph.c (cgraph_get_node_or_alias): New function.
17281         * cgraph.h (cgraph_get_node_or_alias): Declare.
17283 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
17285         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
17286         support.
17287         (ix86_expand_prologue): Likewise.
17288         (ix86_handle_fndecl_attribute): Likewise.
17289         (ix86_asm_declare_function_name): New function for
17290         ASM_DECLARE_FUNCTION_NAME.
17291         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
17292         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
17293         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
17294         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
17295         * doc/extend.texi: Adjust documentation about ms_hook_prologue
17296         attribute.
17298 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
17300         * config/i386/i386.md (immediate_operand): New mode attribute.
17302         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
17303         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
17304         using P mode iterator.
17305         (pro_epilogue_adjust_stack_di_2): Rename from
17306         pro_epilogue_adjust_stack_rex64_2.
17308         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
17310 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
17312         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
17313         through gen_mov_insv_1 function pointer.
17314         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
17315         gen_truncxf<mode>2 through gen_truncxf function pointer.
17316         (remainder<mode>3): Ditto.
17317         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
17318         (allocate_stack): Call gen_allocate_stack_worker_64 or
17319         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
17320         function pointer.
17321         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
17322         function pointer.
17324 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
17326         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
17327         operand constraint instead of <r><i>m.
17329 2010-07-06  Richard Guenther  <rguenther@suse.de>
17331         PR middle-end/44828
17332         * convert.c (convert_to_integer): Watch out for overflowing
17333         MULT_EXPR as well.
17335 2010-07-05  Jan Hubicka  <jh@suse.cz>
17337         * lto-streamer.c (write_symbol_vec): Rename to ...
17338         (write_symbol) ... this one; write only symbol given and when
17339         present in cache. Sanity check that what is defined is present
17340         in cgraph/varpool with body/finalized decl.
17341         (write_symbols_of_kind): Remove.
17342         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
17343         pairs to produce symtab.
17344         (produce_asm_for_decls): Update call of produce_symtab; don't do so
17345         when doing WPA streaming.
17347 2010-07-05  Jan Hubicka  <jh@suse.cz>
17349         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
17350         function is still available to fold into.
17352 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
17354         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
17355         * function.h (struct_function): Change type of local_decls field
17356         to a VEC.
17357         (add_local_decl): New function.
17358         (FOR_EACH_LOCAL_DECL): New macro.
17359         * cfgexpand.c (init_vars_expansion): Adjust for new type of
17360         cfun->local_decls.
17361         (estimated_stack_frame_size): Likewise.
17362         (expand_used_vars): Likewise.
17363         * cgraphbuild.c (build_cgraph_edges): Likewise.
17364         * function.c (instantiate_decls_1): Likewise.
17365         * ipa-struct-reorg.c (build_data_structure): Likewise.
17366         * ipa-type-escape.c (analyze_function): Likewise.
17367         * lto-streamer-in.c (input_function): Likewise.
17368         * lto-streamer-out.c (output_function): Likewise.
17369         * tree-ssa-live.c (remove_unused_locals): Likewise.
17370         * tree.c (free_lang_data_in_decl): Likewise.
17371         (find_decls_types_in_node): Likewise.
17372         * omp-low.c (remove_exit_barrier): Likewise.
17373         (expand_omp_taskreg): Likewise.
17374         (list2chain): Rename to...
17375         (vec2chain): ...this.  Adjust.
17376         * cgraphunit.c (assemble_thunk): Call add_local_decl.
17377         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
17378         * gimple-low.c (record_vars_into): Likewise.
17379         * tree-inline.c (remap_decls): Likewise.
17380         (declare_return_variable): Likewise.
17381         (declare_inline_vars): Likewise.
17382         (copy_forbidden): Adjust for new type of cfun->local_decls.
17383         (add_local_variables): New function.
17384         (expand_call_inline): Call it.
17385         (tree_function_versioning): Likewise.
17387 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17389         AVX Programming Reference (June, 2010)
17390         * config/i386/cpuid.h (bit_F16C): New.
17391         (bit_RDRND): Likewise.
17392         (bit_FSGSBASE): Likewise.
17394         * config/i386/i386-builtin-types.def: Add
17395         "DEF_FUNCTION_TYPE (UINT16)", function types for
17396         float16 <-> float conversions and
17397         "DEF_FUNCTION_TYPE (VOID, UINT64)".
17399         * config/i386/i386-c.c (ix86_target_macros_internal): Support
17400         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
17401         OPTION_MASK_ISA_F16C.
17403         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
17404         (OPTION_MASK_ISA_RDRND_SET): Likewise.
17405         (OPTION_MASK_ISA_F16C_SET): Likewise.
17406         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
17407         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
17408         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
17409         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
17410         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
17411         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
17412         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
17413         (override_options): Handle them.
17414         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
17415         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
17416         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
17417         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
17418         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
17419         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
17420         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
17421         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
17422         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
17423         (bdesc_args): Likewise.
17424         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
17425         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
17426         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
17427         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
17428         Handle non-memory store.
17430         * config/i386/i386.h (TARGET_FSGSBASE): New.
17431         (TARGET_RDRND): Likewise.
17432         (TARGET_F12C): Likewise.
17434         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
17435         (UNSPEC_VCVTPS2PH): Likewise.
17436         (UNSPECV_RDFSBASE): Likewise.
17437         (UNSPECV_RDGSBASE): Likewise.
17438         (UNSPECV_WRFSBASE): Likewise.
17439         (UNSPECV_WRGSBASE): Likewise.
17440         (UNSPECV_RDRAND): Likewise.
17441         (rdfsbase<mode>): Likewise.
17442         (rdgsbase<mode>): Likewise.
17443         (wrfsbase<mode>): Likewise.
17444         (wrgsbase<mode>): Likewise.
17445         (rdrand<mode>): Likewise.
17447         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
17449         * config/i386/immintrin.h (_rdrand_u16): New.
17450         (_rdrand_u32): Likewise.
17451         (_readfsbase_u32): Likewise.
17452         (_readfsbase_u64): Likewise.
17453         (_readgsbase_u32): Likewise.
17454         (_readgsbase_u64): Likewise.
17455         (_writefsbase_u32): Likewise.
17456         (_writefsbase_u64): Likewise.
17457         (_writegsbase_u32): Likewise.
17458         (_writegsbase_u64): Likewise.
17459         (_rdrand_u64): Likewise.
17460         (_cvtsh_ss): Likewise.
17461         (_mm_cvtph_ps): Likewise.
17462         (_mm256_cvtph_ps): Likewise.
17463         (_cvtss_sh): Likewise.
17464         (_mm_cvtps_ph): Likewise.
17465         (_mm256_cvtps_ph): Likewise.
17467         * config/i386/sse.md (vcvtph2ps): New.
17468         (*vcvtph2ps_load): Likewise.
17469         (vcvtph2ps256): Likewise.
17470         (vcvtps2ph): Likewise.
17471         (*vcvtps2ph): Likewise.
17472         (*vcvtps2ph_store): Likewise.
17473         (vcvtps2ph256): Likewise.
17475         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
17477         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
17479 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
17481         PR bootstrap/44512
17482         * genenums.c (main): Output include of insn-constants.h
17483         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
17485 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
17487         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
17488         (override_options): Initialize it.
17489         (ix86_expand_prologue): Use it.
17491 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
17493         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
17495 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
17497         * double-int.h (fit_double_type): Remove declaration.
17498         * double-int.c (fit_double_type): Remove function.
17499         * tree.h (int_fits_type_p): Adjust prototype.
17500         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
17501         instead of fit_double_type.
17502         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
17503         instead of fit_double_type and build_int_cst_wide.
17504         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
17505         instead of fit_double_type and build_int_cst_wide.
17506         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
17507         of fit_double_type.
17509 2010-07-05  Jan Hubicka  <jh@suse.cz>
17511         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
17512         in_other_partition.
17513         * lto-cgraph.c (referenced_from_other_partition_p,
17514         reachable_from_other_partition_p): Use in_other_partition flags.
17515         (output_node, output_varpool_node): COMDAT nodes always have private
17516         copies and thus are never used from other partition.
17518 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
17520         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17521         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
17522         * config/ia64/ia64.c Include reload.h.
17523         (ia64_memory_move_cost): New function.
17524         (TARGET_MEMORY_MOVE_COST): Define.
17525         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
17526         memory_move_cost.
17528 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
17530         PR middle-end/42505
17531         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
17532         comments about cost model.
17533         (try_add_cand_for):  Add second strategy for choosing initial set
17534         based on original IVs, controlled by ORIGINALP argument.
17535         (get_initial_solution): Add ORIGINALP argument.
17536         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
17537         (find_optimal_iv_set): Try two different strategies for choosing
17538         the IV set, and return the one with lower cost.
17540 2010-07-05  Richard Guenther  <rguenther@suse.de>
17542         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
17544 2010-07-05  Richard Guenther  <rguenther@suse.de>
17546         * tree.c (reference_alias_ptr_type): New function.
17547         * tree.h (reference_alias_ptr_type): Declare.
17548         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
17549         allow non-TARGET_MEM_REF new refs.
17550         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
17551         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
17552         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
17553         (create_mem_ref): Get alias pointer type.  Adjust calls to
17554         create_mem_ref_raw.
17555         (maybe_fold_tmr): Likewise.
17556         * tree-flow.h (create_mem_ref): Adjust prototype.
17558 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
17560         PR c++/44808
17561         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
17562         *from_p is VAR_DECL.
17564 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
17566         * tree.h (build_call_list): Remove.
17567         * tree.c (build_call_list): Remove.
17569 2010-07-05  Richard Guenther  <rguenther@suse.de>
17571         * double-int.h (double_int_sub): Declare.
17572         * double-int.c (double_int_sub): New function.
17573         * dwarf2out.c (field_byte_offset): Use it.
17574         * fixed-value.c (do_fixed_add): Likewise.
17575         (do_fixed_multiply): Likewise.
17576         (do_fixed_divide): Likewise.
17577         * tree-predcom.c (add_ref_to_chain): Likewise.
17578         (determine_roots_comp): Likewise.
17579         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
17581 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
17583         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
17584         implementations.
17586 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
17588         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
17589         * arm-modes.def (CC_NOTB): Don't define.
17590         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
17591         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
17592         (LTUGEU): New code_iterator.
17593         (cnb, optab): New corresponding code_attrs.
17594         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
17595         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
17596         using LTUGEU.
17597         (addsi3_carryin_shift_<optab>): Likewise.
17598         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
17599         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
17600         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
17601         (subsi3_compare): Renamed from subsi3_compare0_c.
17602         Change CC_NOTB to CC.
17603         (arm_subsi3_insn): Allow constants for operand 0.
17604         (compare_scc peephole for eq case): New.
17605         (compare_scc splitters): Change CC_NOTB to CC.
17607 2010-07-05  Richard Guenther  <rguenther@suse.de>
17609         * tree-ssa-loop-im.c (for_each_index): Do not handle
17610         ALIGN_INDIRECT_REF.
17611         (gen_lsm_tmp_name): Likewise.
17612         * tree-dump.c (dequeue_and_dump): Likewise.
17613         * tree-pretty-print.c (dump_generic_node): Likewise.
17614         (op_code_prio): Likewise.
17615         (op_symbol_code): Likewise.
17616         * tree.c (staticp): Likewise.
17617         (build1_stat): Likewise.
17618         * tree.h (INDIRECT_REF_P): Likewise.
17619         * fold-const.c (maybe_lvalue_p): Likewise.
17620         (operand_equal_p): Likewise.
17621         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17622         (ao_ref_init_from_vn_reference): Likewise.
17623         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
17624         (find_interesting_uses_address): Likewise.
17625         * dwarf2out.c (loc_list_from_tree): Likewise.
17626         * gimplify.c (gimplify_expr): Likewise.
17627         * tree-eh.c (tree_could_trap_p): Likewise.
17628         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
17629         * cfgexpand.c (expand_debug_expr): Likewise.
17630         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17631         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
17632         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
17633         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
17634         * tree-ssa-operands.c (get_expr_operands): Likewise.
17635         * expr.c (safe_from_p): Likewise.
17636         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
17637         * tree-vect-data-refs.c (vect_setup_realignment): Build
17638         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
17639         * tree-vect-stmts.c (vectorizable_load): Likewise.
17640         * tree.def (ALIGN_INDIRECT_REF): Remove.
17642 2010-07-05  Richard Guenther  <rguenther@suse.de>
17644         PR tree-optimization/44784
17645         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
17646         for inserted stmts.
17647         (find_or_generate_expression): Fix SCCVN insertion check.
17649 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
17651         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
17652         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
17653         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
17654         directives.
17656 2010-07-05  Ira Rosen  <irar@il.ibm.com>
17658         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
17659         statements that are not vectorized.
17660         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
17661         in INSIDE_COST.
17663 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
17665         PR bootstrap/44820
17666         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
17668 2010-07-05  Richard Guenther  <rguenther@suse.de>
17670         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
17671         RESULT_DECLs properly.
17673 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17675         PR rtl-optimization/44695
17676         * config/i386/i386.md (extract_code): Removed.
17677         (<u>divmodqi4): Likewise.
17678         (divmodqi4): New.
17679         (udivmodqi4): Likewise.
17680         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
17681         (udivmodhiqi3): Likewise.
17683 2010-07-04  Jan Hubicka  <jh@suse.cz>
17685         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
17687 2010-07-04  Jan Hubicka  <jh@suse.cz>
17689         * cgraphunit.c (init_cgraph): Only initialize dump file if it
17690         is not already initialized.
17692 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
17694         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
17695         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
17696         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
17697         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
17698         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
17699         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
17700         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
17701         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
17702         (sync_new_nand_optab): Redefine as macros.
17703         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
17704         Delete.
17705         (direct_optab_index): New enum.
17706         (direct_optab_d): New structure.
17707         (direct_optab): New typedef.
17708         (direct_optab_table): Declare.
17709         (direct_optab_handler, set_direct_optab_handler): New functions.
17710         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
17711         (sync_lock_release_optab): New macros.
17712         * optabs.c (direct_optab_table): New variable.
17713         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
17714         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
17715         cmpstr_optab and cmpstrn_optab.
17716         (emit_conditional_move): Likewise for movcc_optab.
17717         (can_conditionally_move_p): Likewise for movcc_gen_code.
17718         (init_insn_codes): Clear direct_optab_table.
17719         (init_optabs): Don't initialize the new "direct optabs" here.
17720         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
17721         vcond_gen_code.
17722         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
17723         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
17724         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
17725         (expand_sync_operation): Likewise other sync_*_optabs.
17726         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
17727         to sync_compare_and_swap_optab.
17728         (expand_sync_lock_test_and_set): Use direct_optab_handler for
17729         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
17730         to the names of both.
17731         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
17732         cmpstr_optab and cmpstrn_optab.
17733         (expand_builtin_lock_release): Likewise sync_lock_release.
17734         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
17735         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
17736         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
17737         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
17738         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
17739         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
17740         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
17741         (sync_lock_test_and_set, sync_lock_release): Delete.
17742         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
17743         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
17744         * genopinit.c (optabs): Use set_direct_optab_handler for the new
17745         macro optabs.
17746         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
17747         the "optab" local variable.  Use direct_optab_handler for optab and
17748         sync_compare_and_swap_optab.
17749         * reload1.c (reload_in_optab, reload_out_optab): Delete.
17750         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
17751         reload_in_optab and reload_out_optab.
17752         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
17753         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
17754         * config/pa/pa.c (pa_secondary_reload): Likewise.
17755         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
17756         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
17757         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
17758         (VMSupportsCS8_builtin): Likewise.
17760 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
17762         * optabs.h (optab_handlers): Change type of insn_code to int.
17763         (optab_handler, set_optab_handler, convert_optab_handler)
17764         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
17765         CODE_FOR_nothing".
17766         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
17767         (init_insn_codes): Zero both the above arrays.
17768         (init_optabs): Never call init_insn_codes first time around.
17770 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
17772         * optabs.h (optab_handler, convert_optab_handler): Turn into
17773         inline functions that return an insn code.
17774         (set_optab_handler, set_convert_optab_handler): New functions.
17775         * builtins.c: Replace optab_handler(X)->insn_code with
17776         optab_handler or set_optab_handler thoughout.  Likewise
17777         convert_optab_handler(X)->insn_code with convert_optab_handler
17778         and set_convert_optab_handler.
17779         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
17780         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
17781         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
17782         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17783         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
17784         config/spu/spu.c: Likewise.
17786 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
17788         PR target/44531
17789         * config.gcc (sh*-*-*): Use regular expressions instead of
17790         the 'i' modifier for sed substitutions.
17792 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
17794         * gimple.c (gimple_body): Comments added.
17796 2010-07-04  Richard Guenther  <rguenther@suse.de>
17798         PR middle-end/44809
17799         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
17800         of an INDIRECT_REF.
17802 2010-07-04  Richard Guenther  <rguenther@suse.de>
17804         PR tree-optimization/44479
17805         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
17806         extra SSA name copy statements which preserves points-to
17807         information.
17808         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17809         Copy points-to information for all pointers.  Properly handle
17810         MEM_REFs.
17811         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
17812         copy statements.
17813         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
17814         dependency.
17816 2010-07-04  Richard Guenther  <rguenther@suse.de>
17818         PR middle-end/44785
17819         * tree-inline.c (initialize_inlined_parameters): Do not
17820         re-use pointer-map slot over remap_type call.
17822 2010-07-04  Richard Guenther  <rguenther@suse.de>
17824         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
17826 2010-07-04  Richard Guenther  <rguenther@suse.de>
17828         PR tree-optimization/44656
17829         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
17830         again after value-replacing in the defintions lhs.
17832 2010-07-04  Ira Rosen  <irar@il.ibm.com>
17833             Revital Eres  <eres@il.ibm.com>
17835         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
17836         Document new arguments.
17837         * doc/tm.texi: Regenerate.
17838         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
17839         Handle unaligned store.
17840         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
17841         * target.def (builtin_vectorization_cost): Add new arguments.
17842         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
17843         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
17844         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
17845         (vect_vfa_segment_size): Fix indentation.
17846         * tree-vectorizer.h (struct _vect_peel_info): New.
17847         (struct _vect_peel_extended_info): New.
17848         (struct _loop_vec_info): Add new field for peeling hash table and a
17849         macro for its access.
17850         (VECT_MAX_COST): Define.
17851         (vect_get_load_cost): Declare.
17852         (vect_get_store_cost, vect_get_known_peeling_cost,
17853         vect_get_single_scalar_iteraion_cost): Likewise.
17854         (vect_supportable_dr_alignment): Add new argument.
17855         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
17856         field.
17857         (destroy_loop_vec_info): Free peeling hash table.
17858         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
17859         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
17860         vect_analyze_slp. Fix indentation.
17861         (vect_get_single_scalar_iteraion_cost): New function.
17862         (vect_get_known_peeling_cost): Likewise.
17863         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
17864         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
17865         statement. Move outside cost calculation inside unknown peeling case.
17866         Call vect_get_known_peeling_cost for known amount of peeling.
17867         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
17868         reference to the print message of forced alignment.
17869         (vect_verify_datarefs_alignment): Update call to
17870         vect_supportable_dr_alignment.
17871         (vect_get_data_access_cost): New function.
17872         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
17873         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
17874         vect_peeling_hash_choose_best_peeling): Likewise.
17875         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
17876         to store all the accesses in the loop and find best possible access to
17877         align using peeling for known alignment case. For unknown alignment
17878         check if stores are preferred or if peeling is worthy.
17879         (vect_find_same_alignment_drs): Analyze pairs of loads too.
17880         (vect_supportable_dr_alignment): Add new argument and check aligned
17881         accesses according to it.
17882         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
17883         (cost_for_stmt): Call vect_get_stmt_cost.
17884         (vect_model_simple_cost): Likewise.
17885         (vect_model_store_cost): Call vect_get_stmt_cost. Call
17886         vect_get_store_cost to calculate the cost of the statement.
17887         (vect_get_store_cost): New function.
17888         (vect_model_load_cost): Call vect_get_stmt_cost. Call
17889         vect_get_load_cost to calculate the cost of the statement.
17890         (vect_get_load_cost): New function.
17891         (vectorizable_store): Update call to vect_supportable_dr_alignment.
17892         (vectorizable_load): Likewise.
17893         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
17894         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
17895         arguments. Handle unaligned store.
17896         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
17897         (rs6000_builtin_support_vector_misalignment): Return true for word and
17898         double word alignments for VSX.
17899         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
17900         vect_supportable_dr_alignment and builtin_vectorization_cost.
17902 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17904         PR target/44597
17905         * config/pa/predicates.md (prefetch_cc_operand): Remove.
17906         (prefetch_nocc_operand): Likewise.
17907         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
17908         (prefetch_20): New insn.
17909         (prefetch_cc): Remove.
17910         (prefetch_nocc): Likewise.
17912 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17914         * expr.c (vector_mode_valid_p): Move to c-common.c.
17915         * expr.h (vector_mode_valid_p): Do not declare here.
17916         * system.h: Poison GCC_EXPR_H in front-ends.
17917         * Makefile.in: Update dependencies.
17919 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17921         PR target/44705
17922         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
17924 2010-07-03  Jan Hubicka  <jh@suse.cz>
17926         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
17927         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
17928         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
17929         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
17930         Likewise.
17932         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
17933         Update timevars.V
17934         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
17935         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
17936         TV_IPA_LTO_DECL_OUT): New.
17937         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
17939 2010-07-03  Jan Hubicka  <jh@suse.cz>
17941         * ipa-inline.c (update_edge_key): Break out from ...
17942         update_callers_keys): ... here;
17943         (update_callee_keys): Update only the edges from caller to callee.
17944         (update_all_calle_keys): Do what update_calle_keys did.
17945         (decide_inlining_of_small_functions): Avoid recomputing of all
17946         callees when badness increase.
17948 2010-07-03  Jie Zhang  <jie@codesourcery.com>
17950         * config/arm/arm.c (arm_attr_length_move_neon): New.
17951         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
17952         * config/arm/neon.md (define_mode_attr V_slen): Remove.
17953         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
17954         to compute length attribute.
17956 2010-07-03  Jie Zhang  <jie@codesourcery.com>
17958         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
17959         as predicate for operand 1 and remove its constraint.
17960         * config/arm/predicates.md (vfp_register_operand): New.
17961         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
17962         (*push_fp_multi): Likewise.
17964 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
17966         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
17968 2010-07-03  Jan Hubicka  <jh@suse.cz>
17970         * config/i386/i386.c (override_options): Revert accidental commit.
17972 2010-07-02  Le-Chun Wu  <lcwu@google.com>
17974         PR c++/44128
17975         * doc/invoke.texi: Update documentation of -Wshadow.
17977 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
17978             Julian Brown  <julian@codesourcery.com>
17979             Sandra Loosemore  <sandra@codesourcery.com>
17981         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
17982         comparisons.  Adjust to take both operands.
17983         (arm_select_cc_mode): Handle DImode comparisons.
17984         (arm_gen_compare_reg): Generate a scratch register for DImode
17985         comparisons which require one.  Use xor for Thumb equality checks.
17986         (arm_const_double_by_immediates): New.
17987         (arm_print_operand): Allow 'Q' and 'R' for constants.
17988         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
17989         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
17990         arm_canonicalize_comparison.
17991         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
17992         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
17993         prototype.
17994         (arm_const_double_by_immediates): Declare.
17995         * config/arm/constraints.md (Di): New constraint.
17996         * config/arm/predicates.md (arm_immediate_di_operand)
17997         (arm_di_operand, cmpdi_operand): New.
17998         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
17999         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
18000         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
18001         (cstoredi4): Handle non-Cirrus also.
18003 2010-07-02  Julian Brown  <julian@codesourcery.com>
18004             Sandra Loosemore  <sandra@codesourcery.com>
18006         PR target/43703
18007         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
18008         (smax<mode>3): Disable for NEON float modes when
18009         flag_unsafe_math_optimizations is false.
18010         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
18011         (*mul<mode>3_neon)
18012         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
18013         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
18014         for NEON float modes when flag_unsafe_math_optimizations is false.
18015         (quad_halves_<code>v4sf): Only enable if
18016         flag_unsafe_math_optimizations is true.
18017         * doc/invoke.texi (ARM Options): Add note about floating point
18018         vectorization requiring -funsafe-math-optimizations.
18020 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18021             Julian Brown  <julian@codesourcery.com>
18023         * config/arm/neon.md (UNSPEC_VABA): Delete.
18024         (UNSPEC_VABAL): Delete.
18025         (UNSPEC_VABS): Delete.
18026         (UNSPEC_VMUL_N): Delete.
18027         (adddi3_neon): New.
18028         (subdi3_neon): New.
18029         (mul<mode>3add<mode>_neon): Make the pattern named.
18030         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18031         (neon_vadd<mode>): Replace with define_expand, and move the remaining
18032         unspec parts...
18033         (neon_vadd<mode>_unspec): ...to this.
18034         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
18035         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
18036         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
18037         (neon_vaba<mode>): Rewrite in terms of vabd.
18038         (neon_vabal<mode>): Rewrite in terms of vabdl.
18039         (neon_vabs<mode>): Rewrite without unspec.
18040         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
18041         (*arm_subdi3): Likewise.
18042         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
18043         No_op attribute to disable assembly output checks.
18044         * config/arm/arm_neon.h: Regenerated.
18045         * doc/arm-neon-intrinsics.texi: Regenerated.
18047 2010-07-02  Jan Hubicka  <jh@suse.cz>
18049         * ipa-split.c (split_function): For aggregate values, set the return
18050         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
18051         *<retval> = fncall.part ().
18052         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
18054 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18056         * config/arm/neon.md (UNSPEC_VAND): Delete.
18057         (UNSPEC_VBIC): Delete.
18058         (UNSPEC_VCLZ): Delete.
18059         (UNSPEC_VCNT): Delete.
18060         (UNSPEC_VEOR): Delete.
18061         (UNSPEC_VORN): Delete.
18062         (UNSPEC_VORR): Delete.
18063         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
18064         core registers too.
18065         (anddi3_neon): Likewise.
18066         (orndi3_neon): Likewise.
18067         (bicdi3_neon): Likewise.
18068         (xordi3_neon): Likewise.
18069         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
18070         rid of unspec and handle unused operand.
18071         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
18072         * config/arm/predicates.md (imm_for_neon_logic_operand):
18073         Require TARGET_NEON.
18074         (imm_for_neon_inv_logic_operand): Likewise.
18075         * config/arm/arm.md (define_split for logical_binary_operator):
18076         Disable for NEON registers.
18077         (anddi3): Add new define_expand, and rename the insn.  Disable
18078         this insn for NEON, where anddi3_neon now applies.
18079         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
18080         (iordi3): As for anddi3.
18081         (xordi3): Likewise.
18082         * config/arm/neon.ml (Vand): Split DImode variants and mark them
18083         as No_op to disable testing for exact instruction match.
18084         (Vorr): Likewise.
18085         (Veor): Likewise.
18086         (Vbic): Likewise.
18087         (Vorn): Likewise.
18088         * config/arm/arm_neon.h: Regenerated.
18089         * doc/arm-neon-intrinsics.texi: Regenerated.
18091 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
18093         * expr.h (emit_stack_probe): Declare.
18094         * explow.c (emit_stack_probe): Make global.
18095         (anti_adjust_stack_and_probe): Fix comments.
18096         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
18097         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18098         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18099         * config/sparc/sparc.c: Include except.h.
18100         (sparc_emit_probe_stack_range): New function.
18101         (output_probe_stack_range): Likewise.
18102         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
18103         built-in stack checking is enabled.
18104         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
18105         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
18106         (probe_stack_range): New insn.
18108 2010-07-02  Richard Guenther  <rguenther@suse.de>
18110         PR target/43958
18111         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
18112         for argument alignment.
18114 2010-07-02  Jan Hubicka  <jh@suse.cz>
18116         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
18117         walk backwards from entry_bb to check only those basic block of header
18118         that might lead to execution of split part.
18119         (consider_split) ... here.
18120         (find_return_bb): Allow assignment in return BB.
18121         (find_retval): New.
18122         (split_function): Fix name of cloned function; take care of updating
18123         return value in return_bb containing move.
18125 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
18127         PR target/44771
18128         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
18129         used variable insn.
18131 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
18133         * implicit-zee.c (combine_reaching_defs): Fix long lines.
18134         (is_set_with_extension_DI): Delete.
18135         (struct zero_extend_info): New structure.
18136         (add_removable_zero_extend): New function.
18137         (find_removable_zero_extends): Use note_stores to find SETs.
18138         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
18140 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
18142         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
18143         is_miss_rate_acceptable. Pull total_positions computation
18144         out of the loops.  Early return if miss_positions exceeds
18145         the acceptable threshold.
18146         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
18147         is_miss_rate_acceptable after renaming of compute_miss_rate.
18149 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
18151         PR middle-end/44576
18152         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
18153         of 1000) for miss rate if the address diference is greater than or
18154         equal to the cache line size (the two reference will never hit the
18155         same cache line).
18157 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
18159         PR target/42835
18160         * config/arm/arm-modes.def (CC_NOTB): New mode.
18161         * config/arm/arm.c (get_arm_condition_code): Handle it.
18162         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
18163         * config/arm/arm.md (subsi3_compare0_c): New pattern.
18164         (compare_scc): Now a define_and_split.  Add a number of extra
18165         splitters before it.
18167         PR target/42172
18168         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
18169         and ZERO_EXTEND.
18170         (arm_rtx_costs_1): Likewise.
18171         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
18172         * config/arm/arm.md (is_arch6): New attribute.
18173         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
18174         extendqisi2): Tighten the code somewhat, avoiding invalid
18175         RTL to occur in the expander patterns.
18176         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
18177         (thumb1_zero_extendhisi2_v6): Delete.
18178         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
18179         (thumb1_extendhisi2_v6): Delete.
18180         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
18181         (thumb1_extendqisi2_v6): Delete.
18182         (zero_extendhisi2 for register input splitter): New.
18183         (zero_extendqisi2 for register input splitter): New.
18184         (thumb1_extendhisi2 for register input splitter): New.
18185         (extendhisi2 for register input splitter): New.
18186         (extendqisi2 for register input splitter): New.
18187         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
18188         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
18189         and add support for a register alternative requiring a split.
18190         (thumb1_zero_extendqisi2): Likewise.
18191         (arm_zero_extendqisi2): Likewise.
18192         (arm_extendhisi2): Likewise.
18193         (arm_extendqisi2): Likewise.
18195 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18197         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
18198         instead of an unspec.
18199         (neon_expand_vector_init): Likewise.
18200         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
18201         (UNSPEC_VDUP_LANE): Delete.
18202         (UNSPEC VDUP_N): Delete.
18203         (UNSPEC_VGET_HIGH): Delete.
18204         (UNSPEC_VGET_LANE): Delete.
18205         (UNSPEC_VGET_LOW): Delete.
18206         (UNSPEC_VMVN): Delete.
18207         (UNSPEC_VSET_LANE): Delete.
18208         (V_double_vector_mode): New.
18209         (vec_set<mode>_internal): Make code emitted match that for the
18210         corresponding intrinsics.
18211         (vec_setv2di_internal): Likewise.
18212         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
18213         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
18214         (neon_vset_lane<mode>): Combine double and quad patterns and
18215         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
18216         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
18217         (neon_vdup_n<mode>): Rewrite RTL without unspec.
18218         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
18219         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
18220         with neon_vdup_lanev2di, adjusting the pattern from the latter
18221         to be predicable for consistency.
18222         (neon_vdup_lane<mode>_internal): New.
18223         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
18224         to avoid using an unspec.
18225         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
18226         (neon_vdup_lanev2di): Turn into a define_expand.
18227         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
18228         (neon_vget_high<mode>): Replace with....
18229         (neon_vget_highv16qi): New pattern using canonical RTL.
18230         (neon_vget_highv8hi): Likewise.
18231         (neon_vget_highv4si): Likewise.
18232         (neon_vget_highv4sf): Likewise.
18233         (neon_vget_highv2di): Likewise.
18234         (neon_vget_low<mode>): Replace with....
18235         (neon_vget_lowv16qi): New pattern using canonical RTL.
18236         (neon_vget_lowv8hi): Likewise.
18237         (neon_vget_lowv4si): Likewise.
18238         (neon_vget_lowv4sf): Likewise.
18239         (neon_vget_lowv2di): Likewise.
18241         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
18242         test for this emitting vmov.
18243         (Vset_lane): Likewise.
18244         (Vdup_n): Likewise.
18245         (Vmov_n): Likewise.
18247         * doc/arm-neon-intrinsics.texi: Regenerated.
18249 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18251         * config/arm/neon.md (vec_extractv2di): Correct error in register
18252         numbering to reconcile with neon_vget_lanev2di.
18254 2010-07-02  Richard Guenther  <rguenther@suse.de>
18256         * tree-ssa-structalias.c (pt_solution_set_var): New function.
18257         * tree-ssa-alias.h (pt_solution_set_var): Declare.
18258         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
18259         points-to information.
18261 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
18263         * config/s390/s390.c (override_options): Adopt prefetching
18264         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
18266 2010-07-02  Jan Hubicka  <jh@suse.cz>
18268         * df-problems.c (df_kill_notes): Do not collect dead  notes.
18269         (df_set_note): Just call add_reg_note.
18270         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
18271         df_create_unused_note): Do not deal with lists of old notes.
18272         (df_note_bb_compute): Likewise.
18274 2010-07-02  Richard Guenther  <rguenther@suse.de>
18276         * tree-ssa-structalias.c (find_func_aliases): Handle
18277         pointer alignment via BIT_AND_EXPR.
18278         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
18280 2010-07-02  Richard Guenther  <rguenther@suse.de>
18282         * tree-data-ref.c (initialize_data_dependence_relation): Handle
18283         mismatching number of dimensions properly.
18285 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18287         PR target/44707
18288         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
18289         (lo_sum (high ...) ...) patterns generated by earlier passes.
18291 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18293         * doc/install.texi (Prerequisites): Document Perl requirement on
18294         Solaris 2.
18295         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
18297 2010-07-02  Richard Guenther  <rguenther@suse.de>
18299         PR middle-end/44777
18300         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
18302 2010-07-02  Jan Hubicka  <jh@suse.cz>
18304         PR middle-end/44706
18305         * predict.c (predict_paths_for_bb): Handle case when control dependence
18306         BB has only abnormal edges.
18308 2010-07-02  Richard Guenther  <rguenther@suse.de>
18310         PR tree-optimization/44748
18311         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
18312         the embedded conversion in MEM_REFs.
18314 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
18316         * reload.c: Include toplev.h.
18317         * recog.c:  Likewise.
18318         * Makefile.in: Adjust dependencies.
18320 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
18322         PR debug/44694
18323         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
18324         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
18326 2010-07-01  Richard Guenther  <rguenther@suse.de>
18328         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
18329         types for offsets.
18331 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
18333         PR target/44732
18334         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
18335         Fix argument types.
18337 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
18339         PR target/44727
18340         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
18341         Make sure operand 0 dies.
18343 2010-07-01  Richard Guenther  <rguenther@suse.de>
18345         PR middle-end/42834
18346         PR middle-end/44468
18347         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
18348         * doc/generic.texi (References to storage): Document MEM_REF.
18349         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
18350         (print_call_name): Likewise.
18351         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
18352         (build_simple_mem_ref_loc): New function.
18353         (mem_ref_offset): Likewise.
18354         * tree.h (build_simple_mem_ref_loc): Declare.
18355         (build_simple_mem_ref): Define.
18356         (mem_ref_offset): Declare.
18357         * fold-const.c: Include tree-flow.h.
18358         (operand_equal_p): Handle MEM_REF.
18359         (build_fold_addr_expr_with_type_loc): Likewise.
18360         (fold_comparison): Likewise.
18361         (fold_unary_loc): Fold
18362         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
18363         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
18364         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
18365         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
18366         (ptr_deref_may_alias_ref_p_1): Likewise.
18367         (ao_ref_base_alias_set): Properly differentiate base object for
18368         offset and TBAA.
18369         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
18370         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
18371         (indirect_refs_may_alias_p): Likewise.
18372         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
18373         chasing code.
18374         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
18375         (call_may_clobber_ref_p_1): Likewise.
18376         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
18377         * expr.c (expand_assignment): Handle MEM_REF.
18378         (store_expr): Handle MEM_REFs from STRING_CSTs.
18379         (store_field): If expanding a MEM_REF of a non-addressable
18380         decl use bitfield operations.
18381         (get_inner_reference): Handle MEM_REF.
18382         (expand_expr_addr_expr_1): Likewise.
18383         (expand_expr_real_1): Likewise.
18384         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
18385         * alias.c (ao_ref_from_mem): Handle MEM_REF.
18386         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
18387         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
18388         (dr_analyze_indices): Likewise.
18389         (dr_analyze_alias): Likewise.
18390         (object_address_invariant_in_loop_p): Likewise.
18391         * gimplify.c (mark_addressable): Handle MEM_REF.
18392         (gimplify_cond_expr): Build MEM_REFs.
18393         (gimplify_modify_expr_to_memcpy): Likewise.
18394         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
18395         (gimple_fold_indirect_ref): Adjust.
18396         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
18397         * tree.def (MEM_REF): New tree code.
18398         * tree-dfa.c: Include toplev.h.
18399         (get_ref_base_and_extent): Handle MEM_REF.
18400         (get_addr_base_and_unit_offset): New function.
18401         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
18402         * gimple-fold.c (may_propagate_address_into_dereference): Handle
18403         MEM_REF.
18404         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
18405         accesses if the array has just one dimension.  Remove always true
18406         parameter.  Do not require type compatibility here.
18407         (maybe_fold_offset_to_component_ref): Remove.
18408         (maybe_fold_stmt_indirect): Remove.
18409         (maybe_fold_reference): Remove INDIRECT_REF handling.
18410         Fold back to non-MEM_REF.
18411         (maybe_fold_offset_to_address): Simplify.  Deal with type
18412         mismatches here.
18413         (maybe_fold_reference): Likewise.
18414         (maybe_fold_stmt_addition): Likewise.  Also handle
18415         &ARRAY + I in addition to &ARRAY[0] + I.
18416         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
18417         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
18418         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
18419         * tree-ssa.c (useless_type_conversion_p): Make most pointer
18420         conversions useless.
18421         (warn_uninitialized_var): Handle MEM_REF.
18422         (maybe_rewrite_mem_ref_base): New function.
18423         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
18424         to SSA form.
18425         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
18426         INDIRECT_REF handling.
18427         (copy_tree_body_r): Handle MEM_REF.
18428         * gimple.c (is_gimple_addressable): Adjust.
18429         (is_gimple_address): Likewise.
18430         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
18431         invariant base are invariant.
18432         (is_gimple_min_lval): Adjust.
18433         (is_gimple_mem_ref_addr): New function.
18434         (get_base_address): Handle MEM_REF.
18435         (count_ptr_derefs): Likewise.
18436         (get_base_loadstore): Likewise.
18437         * gimple.h (is_gimple_mem_ref_addr): Declare.
18438         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
18439         * tree-cfg.c (verify_address): New function, split out from ...
18440         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
18441         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
18442         INDIRECT_REFs.
18443         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
18444         INDIRECT_REF.  Allow conversions.
18445         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
18446         a register does not change its size.
18447         (verify_types_in_gimple_reference): Verify MEM_REF.
18448         (verify_gimple_assign_single): Disallow INDIRECT_REF.
18449         Handle MEM_REF.
18450         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
18451         New.
18452         (mark_address_taken): Handle MEM_REF.
18453         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
18454         (get_asm_expr_operands): Pass opf_not_non_addressable.
18455         (get_expr_operands): Handle opf_[not_]non_addressable.
18456         Handle MEM_REF.  Remove INDIRECT_REF handling.
18457         * tree-vrp.c (check_array_ref): Handle MEM_REF.
18458         (search_for_addr_array): Likewise.
18459         (check_array_bounds): Likewise.
18460         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
18461         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
18462         (ref_always_accessed_p): Likewise.
18463         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
18464         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
18465         Handle MEM_REF.
18466         * cgraphbuild.c (mark_load): Properly check for NULL result
18467         from get_base_address.
18468         (mark_store): Likewise.
18469         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
18470         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
18471         handling for MEM_REF.
18472         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
18473         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
18474         * builtins.c (stabilize_va_list_loc): Use the function ABI
18475         valist type if we couldn't canonicalize the argument type.
18476         Always dereference with the canonical va-list type.
18477         (maybe_emit_free_warning): Handle MEM_REF.
18478         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
18479         memmove to memcpy.
18480         * builtins.c (fold_builtin_memory_op): Use ref-all types
18481         for all memcpy foldings.
18482         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
18483         (build_outer_var_ref): Likewise.
18484         (scan_omp_1_op): Likewise.
18485         (lower_rec_input_clauses): Likewise.
18486         (lower_lastprivate_clauses): Likewise.
18487         (lower_reduction_clauses): Likewise.
18488         (lower_copyprivate_clauses): Likewise.
18489         (expand_omp_atomic_pipeline): Likewise.
18490         (expand_omp_atomic_mutex): Likewise.
18491         (create_task_copyfn): Likewise.
18492         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
18493         Remove old union trick.  Initialize constant offsets.
18494         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
18495         INDIRECT_REF.  Init base_alias_set properly.
18496         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
18497         (vn_reference_fold_indirect): Adjust for MEM_REFs.
18498         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
18499         for ARRAY_REFs.
18500         (may_insert): Remove.
18501         (visit_reference_op_load): Do not test may_insert.
18502         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
18503         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
18504         a field to store the constant offset this op applies.
18505         (run_scc_vn): Adjust prototype.
18506         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
18507         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
18508         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
18509         bother about volatile qualifiers on pointers.
18510         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
18511         * tree-ssa-loop-ivopts.c
18512         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
18513         (strip_offset_1): Likewise.
18514         (find_interesting_uses_address): Replace INDIRECT_REF handling with
18515         MEM_REF handling.
18516         (get_computation_cost_at): Likewise.
18517         * ipa-pure-const.c (check_op): Handle MEM_REF.
18518         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
18519         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
18520         and constants.
18521         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
18522         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
18523         (eliminate_local_variables_1): Likewise.
18524         (create_call_for_reduction_1): Likewise.
18525         (create_loads_for_reductions): Likewise.
18526         (create_loads_and_stores_for_name): Likewise.
18527         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
18528         (ssa_accessed_in_tree): Handle MEM_REF.
18529         (ssa_accessed_in_assign_rhs): Likewise.
18530         (update_type_size): Likewise.
18531         (analyze_accesses_for_call_stmt): Likewise.
18532         (analyze_accesses_for_assign_stmt): Likewise.
18533         (transform_access_sites): Likewise.
18534         (transform_allocation_sites): Likewise.
18535         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
18536         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
18537         not handle INDIRECT_REF.
18538         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
18539         (cond_store_replacement): Likewise.
18540         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
18541         MEM_REF, no not handle INDIRECT_REFs.
18542         (insert_into_preds_of_block): Properly initialize avail.
18543         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
18544         for ARRAY_REFs.  Properly handle reference lookups that
18545         require a bit re-interpretation.
18546         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
18547         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
18548         (build_ref_for_offset_1): Remove.
18549         (build_ref_for_offset): Build MEM_REFs.
18550         (gate_intra_sra): Disable for now.
18551         (sra_ipa_modify_expr): Handle MEM_REF.
18552         (ipa_early_sra_gate): Disable for now.
18553         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
18554         MEM_REF handling.
18555         (disqualify_base_of_expr): Likewise.
18556         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
18557         MEM_REF handling.
18558         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
18559         Use mem_ref_offset.  Remove bogus folding.
18560         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
18561         (make_fancy_name_1): Add support for MEM_REF.
18562         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
18563         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
18564         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
18565         (compute_complex_ancestor_jump_func): Likewise.
18566         (ipa_analyze_virtual_call_uses): Likewise.
18567         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
18568         INDIRECT_REF folding with more generalized MEM_REF folding.
18569         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
18570         (forward_propagate_addr_into_variable_array_index): Also handle
18571         &ARRAY + I in addition to &ARRAY[0] + I.
18572         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
18573         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
18574         creates assignments with overlap.
18575         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
18576         (get_frame_field): Likewise.
18577         (get_nonlocal_debug_decl): Likewise.
18578         (convert_nonlocal_reference_op): Likewise.
18579         (struct nesting_info): Add mem_refs pointer-set.
18580         (create_nesting_tree): Allocate it.
18581         (convert_local_reference_op): Insert to be folded mem-refs.
18582         (fold_mem_refs): New function.
18583         (finalize_nesting_tree_1): Perform defered folding of mem-refs
18584         (free_nesting_tree): Free the pointer-set.
18585         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
18586         (vectorizable_load): Likewise.
18587         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
18588         (propagate_with_phi): Likewise.
18589         * tree-object-size.c (addr_object_size): Handle MEM_REFs
18590         instead of INDIRECT_REFs.
18591         (compute_object_offset): Handle MEM_REF.
18592         (plus_stmt_object_size): Handle MEM_REF.
18593         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
18594         for &MEM_REF.
18595         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
18596         (symbol_marked_for_renaming): Likewise.
18597         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
18598         (fold-const.o): Add $(TREE_FLOW_H).
18599         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
18600         (find_func_clobbers): Likewise.
18601         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
18602         (decompose_access): Likewise.
18603         (replace_field_acc): Likewise.
18604         (replace_field_access_stmt): Likewise.
18605         (insert_new_var_in_stmt): Likewise.
18606         (get_stmt_accesses): Likewise.
18607         (reorg_structs_drive): Disable.
18608         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
18609         (ix86_canonical_va_list_type): Likewise.
18611 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
18613         PR other/44566
18614         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
18615         * target.def (struct gcc_target): Replace enum reg_class with
18616         reg_class_t in hook argument / return types.
18617         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
18618         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
18619         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
18620         * targhooks.h (default_branch_target_register_class): Likewise.
18621         (default_ira_cover_classes, default_secondary_reload): Likewise.
18622         (default_memory_move_cost, default_register_move_cost): Likewise.
18623         * targhooks.c (default_branch_target_register_class): Likewise.
18624         (default_ira_cover_classes, default_secondary_reload): Likewise.
18625         (default_memory_move_cost, default_register_move_cost): Likewise.
18626         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
18627         * bt-load.c (branch_target_load_optimize): Likewise.
18628         * ira.c (setup_cover_and_important_classes): Likewise.
18629         * ira-costs.c (copy_cost): Likewise.
18630         * reload1.c (emit_input_reload_insns): Likewise.
18631         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
18632         * config/frv/frv.c (frv_secondary_reload): Likewise.
18633         * config/s390/s390.c (s390_secondary_reload): Likewise.
18634         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
18635         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
18636         (ix86_register_move_cost): Likewise.
18637         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
18638         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
18639         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
18640         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
18641         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
18642         (rs6000_ira_cover_classes): Likewise.
18643         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
18644         * config/picochip/picochip-protos.h (picochip_secondary_reload):
18645         Likewise.
18646         * config/pa/pa.c (pa_secondary_reload): Likewise.
18647         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
18648         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
18649         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
18650         * doc/tm.texi: Regenerate.
18652 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
18654         PR bootstrrap/44726
18655         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
18656         use.
18657         (build_alias_set_optimal_p): Likewise.
18658         (build_base_obj_set_for_drs): Likewise.
18660 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
18662         * target.def: Remove comment about licensing problems of function
18663         declarations.
18665         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
18666         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
18667         * doc/tm.texi: Regenerate.
18669         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
18670         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
18672         * target.def (enum_va_list_p): Use DEFHOOK.
18673         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
18674         Rename ptype to ptree.
18675         * doc/tm.texi: Regenerate.
18677         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
18678         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
18679         * doc/tm.texi: Regenerate.
18681         * target.def (memory_move_cost): Use DEFHOOK.
18682         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
18683         Rename regclass AKA class to rclass.
18684         * doc/tm.texi: Regenerate.
18686         * target.def (pragma_parse): Use DEFHOOK.
18687         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
18688         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
18689         * doc/tm.texi: Regenerate.
18691         * target.def (pass_by_reference): Use DEFHOOK.
18692         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
18693         * doc/tm.texi: Regenerate.
18695         * target.def (resolve_overloaded_builtin): Rename params to arglist.
18696         Use DEFHOOK.
18697         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
18698         * doc/tm.texi: Regenerate.
18700         * target.def (return_pops_args): Use DEFHOOK.
18701         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
18702         Rename stack-size to size.
18703         * doc/tm.texi: Regenerate.
18705         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
18706         last-sched_cycle to last_clock, cur_cycle to clock.
18707         * doc/tm.texi.in: Use @hook.
18708         * doc/tm.texi: Regenerate.
18710         * target.def (print_operand, print_operand_address): Update comment.
18711         (print_operand_punct_valid_p): Likewise.
18713 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18715         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
18716         to rtl.h.
18717         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
18718         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
18719         * rtl-error.h: New.
18720         * regrename.c: Do not include toplev.h. Include rtl-error.h.
18721         * rtl-error.c: Likewise.
18722         * reload.c: Likewise.
18723         * recog.c:  Likewise.
18724         * sel-sched.c: Likewise.
18725         * function.c: Likewise.
18726         * reg-stack.c: Likewise.
18727         * cfgrtl.c: Likewise.
18728         * reload1.c: Likewise.
18729         * final.c: Include rtl-error.
18730         * Makefile.in: Adjust dependencies.
18732 2010-06-30  Jan Hubicka  <jh@suse.cz>
18734         PR middle-end/PR44706
18735         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
18736         to return the value.
18738 2010-06-30  Michael Matz  <matz@suse.de>
18740         PR bootstrap/44699
18741         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
18742         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
18743         a gimple reg, attach the original VDEF to the last store in the
18744         sequence.
18746 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
18748         PR other/44034
18749         * config/darwin.c (darwin_override_options): Use renamed
18750         targetm.asm_out.emit_unwind_label.
18752 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
18754         PR tree-optimization/39799
18755         * tree-inline.c (remap_ssa_name): Initialize variable only if
18756         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
18758 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
18760         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
18762 2010-06-30  Richard Guenther  <rguenther@suse.de>
18764         PR target/44722
18765         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
18766         against oscillation with reverse peephole2.
18768 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
18770         PR target/44721
18771         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
18772         Fix last commit.
18774 2010-06-30  Nick Clifton  <nickc@redhat.com>
18776         * config/rx/rx-modes.def: New file.
18777         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
18778         (CC_REGNUM): Define.
18779         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
18780         register.
18781         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
18782         (SELECT_CC_MODE): Define.
18783         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
18784         (reg:CC CC_REG) instead of (cc0).
18785         (attr "cc"): Delete.
18786         (cbranchsi4): Do not split compare and branch here. Instead move
18787         it to...
18788         (cbranchsi4_<code>): ... here.  New patterns.
18789         (cmpsi): Call rx-compare_redundant to find out if it is necessary
18790         to emit the compare instruction.
18791         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
18792         cc_status flags.
18793         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
18794         FIRST_PSEUDO_REGNUM.
18795         (rx_expand_prologue, rx_expand_epilogue): Likewise.
18796         (rx_notice_update_cc): Delete.
18797         (rx_cc_modes_compatible): New function.
18798         (flags_needed_for_conditional): New function.
18799         (flags_from_mode): New function.
18800         (rx_compare_redundant): New function - scans backwards through
18801         insn list to find out if condition flags are already set correctly.
18802         (TARGET_CC_MODES_COMPATIBLE): Define.
18803         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
18805         * config/rx/rx.h (BRANCH_COST): Define.
18806         (REGISTER_MOVE_COST): Define.
18807         * config/rx/predicates (rx_source_operand): Allow all constant types.
18808         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
18809         (tstsi4): New pattern.
18810         * config/rx/rx.c (rx_memory_move_cost): Define.
18811         (TARGET_MEMORY_MOVE_COST): Define.
18813 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18815         * tree.h (block_may_fallthru): Declare here.
18816         * tree-flow.h (block_may_fallthru): Do not declare here.
18817         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
18818         bitmap.h
18819         * Makefile.in (c-typeck.o): Update dependencies.
18821 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
18823         PR debug/44694
18824         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
18825         * cselib.c (cfa_base_preserved_regno): New static variable.
18826         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
18827         of REGNO (cfa_base_preserved_val->locs->loc).
18828         (cselib_preserve_cfa_base_value): Add regno argument, set
18829         cfa_base_preserved_regno to it.
18830         (cselib_invalidate_regno): Allow removal of registers other than
18831         cfa_base_preserved_regno from cfa_base_preserved_val.
18832         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
18833         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
18834         of MEM addresses, if not on LHS.
18835         (reverse_op): Don't add reverse ops for cfa_base_rtx.
18836         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
18838 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
18840         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
18841         static variables.
18842         (peep2_buf_position): New static function.
18843         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
18844         peephole2_optimize): Use it.
18845         (peep2_attempt, peep2_update_life): New static functions, broken out
18846         of peephole2_optimize.
18847         (peep2_fill_buffer): New static function.
18848         (peephole2_optimize): Change the main loop to try to fill the buffer
18849         with the maximum number of insns before matching them against
18850         peepholes.  Use a forward scan.  Remove special case for targets with
18851         conditional execution.
18852         * genrecog.c (change_state): Delete dead code.
18853         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
18854         Rewrite so as not to expect the second insn to have had a peephole
18855         applied yet.
18857 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
18859         * genhooks.c (emit_findices): Cast field precision to int.
18860         (emit_documentation): Likewise.
18862 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
18864         PR tree-optimization/43801
18865         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
18866         if old_decl was DECL_ONE_ONLY.
18868         PR debug/44668
18869         * dwarf2out.c (add_accessibility_attribute): New function.
18870         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
18871         instead of adding DW_AT_accessibility manually.
18872         (gen_enumeration_type_die, gen_struct_or_union_type_die,
18873         gen_typedef_die): Use it.
18875 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
18877         * vmsdbgout.c (full_name): Just output the file name if not native.
18879 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
18881         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
18882         (funcnam_table): New static table.
18883         (funcnum_table): New static table.
18884         (write_rtnbeg): Write value saved in funcnum_table.
18885         (write_rtnend): Write value saved in funcnum_table.
18886         (vmsdbgout_begin_function): Save current function info in
18887         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
18888         (vmsdbgout_finish): Iterate over funcnum_table.
18890 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
18892         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
18893         (vmsdbgout_type_decl): Declare
18894         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
18895         (FUNC_EPILOGUE_LABEL): New macro
18896         (vmsdbgout_begin_epilogue): New function.
18897         (vmsdbgout_type_decl): New function.
18899 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
18901         * vmsdbg.h: Update copyright.
18903 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
18905         * vmsdbg.h (DST_K_TBG): New DST constant.
18906         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
18907         (write_modbeg): Cast module_language to avoid warning.
18908         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
18910 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
18912         PR other/44034
18913         * target.def, doc/tm.texi.in, genhooks.c: New files.
18914         * target.h: Instead of defining individual hook members,
18915         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
18916         include target.def.
18917         * target-def.h: Instead of defining individual hook initializers,
18918         include target-hooks-def.h.
18919         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
18920         targetm.live_on_entry -> targetm.extra_live_on_entry
18921         targetm.sched.md_finish ->targetm.sched.finish
18922         targetm.sched.md_init -> targetm.sched.init
18923         targetm.sched.md_init_global -> targetm.sched.init_global
18924         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
18925         targetm.asm_out.except_table_label ->
18926           targetm.asm_out.emit_except_table_label
18927         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
18928         targetm.target_help -> targetm.help
18929         targetm.vectorize.builtin_support_vector_misalignment ->
18930           targetm.vectorize.support_vector_misalignment
18931         targetm.file_start_app_off -> targetm.asm_file_start_app_off
18932         targetm.file_start_file_directive ->
18933          targetm.asm_file_start_file_directive
18934         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
18935         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
18936         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
18937         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
18938           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
18939         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
18940           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
18941         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
18942         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
18943         * Makefile.in (TARGET_H): Depend on target.def.
18944         (TARGET_DEF_H): Depend on target-hooks-def.h.
18945         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
18946         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
18947         * doc/tm.texi: Regenerate.
18949         * Makefile.in (s-tm-texi): Remove stray tab / rule.
18951         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
18952         (targetm.sched.init): Likewise.
18954 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
18956         PR bootstrap/44713
18957         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
18958         (function_arg_advance_32): Const-ify TYPE parameter.
18959         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
18960         (ix86_function_arg_advance): Change type of NAMED to bool.
18961         (function_arg_32): Const-ify CUM and TYPE parameters.
18962         (function_arg_64): Likewise.  Change type of NAMED to bool.
18963         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
18964         to bool.
18965         (ix86_function_arg): Change type of NAMED to bool.
18966         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
18967         last argument as a bool.
18969 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
18971         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
18972         (OVERRIDE_OPTIONS): Add note of obsolescence.
18973         Replace references with references to TARGET_OPTION_OVERRIDE.
18974         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
18975          the macro).
18976         * targhooks.c (default_target_option_override): New function.
18977         * targhooks.h (default_target_option_override): Declare.
18978         * target.h (struct gcc_target): Add override member to
18979         target_option member.
18980         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
18981         targetm.target_option.override call.
18982         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
18983         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
18985 2010-06-29  Jan Hubicka  <jh@suse.cz>
18987         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
18989 2010-06-29  Jan Hubicka  <jh@suse.cz>
18991         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
18992         unreachable.
18993         (rebuild_frequencies): New function.
18994         * predict.h (rebuild_frequencies): Declare.
18995         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
18996         entry block and edge reaching new_entry.
18997         (tree_function_versioning): When doing partial cloning, rebuild
18998         frequencies when done.
18999         * passes.c (execute_function_todo): Use rebild_frequencies.
19001 2010-06-29  Richard Guenther  <rguenther@suse.de>
19003         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
19004         * tree-flow.h (enum noalias_state): Remove.
19005         (struct var_ann_d): Remove noalias_state member.
19007 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
19009         PR target/43902
19010         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
19011         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
19012         (maddhidi4): Likewise.
19014         Revert parts of the change for PR25130.
19015         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
19016         MEM_ALIAS_SET.
19018 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
19020         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
19021         targetm.calls.function_incoming_arg, and
19022         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
19023         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
19024         * target.h (struct gcc_target): Add function_arg_advance,
19025         function_arg, and function_incoming_arg fields.
19026         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
19027         (TARGET_FUNCTION_INCOMING_ARG): Define.
19028         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
19029         and TARGET_FUNCTION_INCOMING_ARG.
19030         * targhooks.h (default_function_arg_advance): Declare.
19031         (default_function_arg, default_function_incoming_arg): Declare.
19032         * targhooks.c (default_function_arg_advance): New function.
19033         (default_function_arg, default_function_incoming_arg): New function.
19034         * config/i386/i386.c (function_arg_advance): Rename to...
19035         (ix86_function_arg_advance): ...this.  Make static.
19036         (function_arg): Rename to...
19037         (ix86_function_arg): ...this.  Make static.
19038         (TARGET_FUNCTION_ARG_ADVANCE): Define.
19039         (TARGET_FUNCTION_ARG): Define.
19040         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
19041         (FUNCTION_ARG): Delete.
19042         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
19043         (function_arg): Delete prototype.
19045 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
19047         * reginfo.c (init_reg_sets_1): Adjust comments.
19048         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
19049         * calls.c (prepare_call_address): Likewise.
19050         (emit_call_1): Use targetm.calls.return_pops_args.
19051         (expand_call): Likewise.
19052         * function.c (assign_parms): Likewise.
19053         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
19054         * target.h (struct gcc_target) [struct calls]: Add
19055         return_pops_args field.
19056         * targhooks.h (default_return_pops_args): Declare.
19057         * targhooks.c (default_return_pops_args): Define.
19058         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
19059         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
19060         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
19061         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
19062         documentation.
19063         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
19064         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
19065         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
19066         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
19067         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
19068         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
19069         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
19070         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
19071         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
19072         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
19073         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
19074         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
19075         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
19076         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
19077         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
19078         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
19079         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
19080         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
19081         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
19082         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
19083         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
19084         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
19085         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
19086         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
19087         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
19088         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
19089         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
19090         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
19091         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
19092         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
19093         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
19094         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
19095         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
19096         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
19097         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
19098         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
19099         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
19100         * config/i386/i386.c (ix86_return_pops_args): Make static.
19101         Constify arguments.
19102         (TARGET_RETURN_POPS_ARGS): Define.
19103         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
19104         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
19105         (TARGET_RETURN_POPS_ARGS): Define.
19106         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
19107         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
19108         (TARGET_RETURN_POPS_ARGS): Define.
19110 2010-06-29  Richard Guenther  <rguenther@suse.de>
19112         PR middle-end/44667
19113         * tree-inline.c (initialize_inlined_parameters): Make sure
19114         to remap the inlined parameter variable substitutions types.
19116 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
19118         PR rtl-optimization/44659
19119         * combine.c (make_compound_operation) <SUBREG>: Do not return the
19120         result of force_to_mode if it partially re-expanded the compound.
19122 2010-06-28  Jan Hubicka  <jh@suse.cz>
19124         PR middle-end/44671
19125         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
19126         RESULT_DECL.
19128 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
19130         * double-int.h (force_fit_type_double): Remove declaration.
19131         * double-int.c (force_fit_type_double): Move to tree.c.
19132         * tree.h (force_fit_type_double): Declare.
19133         * tree.h (force_fit_type_double): Moved from double-int.c. Use
19134         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
19135         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
19136         * convert.c (convert_to_pointer): Adjust call to
19137         force_fit_type_double.
19138         * tree-vrp.c (extract_range_from_assert,
19139         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
19140         * fold-const.c: Update comment.
19141         (int_const_binop, fold_convert_const_int_from_int,
19142         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
19143         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
19144         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
19145         round_up_loc): Adjust call to force_fit_type_double.
19147 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19149         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
19151 2010-06-28  Martin Jambor  <mjambor@suse.cz>
19153         * tree-sra.c (convert_callers): New parameter, change fndecls of
19154         recursive calls.
19155         (modify_function): Pass the old decl to convert_callers.
19157 2010-06-28  Martin Jambor  <mjambor@suse.cz>
19159         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
19160         ipa_check_create_node_params and ipa_initialize_node_params with
19161         checking asserts they are not necessary.
19163 2010-06-28  Jan Hubicka  <jh@suse.cz>
19165         PR tree-optimization/44687
19166         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
19168 2010-06-28  Martin Jambor  <mjambor@suse.cz>
19170         PR c++/44535
19171         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
19172         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
19173         instead of BINFO_BASE_BINFO.
19175 2010-06-28  Michael Matz  <matz@suse.de>
19177         PR middle-end/44592
19178         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
19179         proper VDEF chain for intermediate stores in the sequence.
19181 2010-06-28  Jan Hubicka  <jh@suse.cz>
19183         PR tree-optimization/44357
19184         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
19185         uninlinable functions.
19187 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19189         * config.gcc (powerpc*-*-*): Handle titan.
19190         * config/rs6000/rs6000.c (titan_cost): New costs.
19191         (rs6000_override_options): Add "titan" to processor_target_table.
19192         Add Titan to branch alignment logic.
19193         Correctly set rs6000_cost for titan.
19194         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
19195         * config/rs6000/titan.md: New file.
19196         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
19198 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
19200         * tree-browser.c (TB_history_stack): Convert to a VEC.
19201         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
19202         (TB_history_prev): Likewise.
19204 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
19206         * vec.h (vec_heap_free): Add parentheses around free.
19208 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
19210         * system.h: Poison GCC_EXCEPT_H for front-end files.
19212         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
19213         langhook.
19214         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
19215         Define to NULL by default.
19216         * except.h: Define GCC_EXCEPT_H.
19217         (doing_eh): Remove prototype.
19218         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
19219         (lang_protect_cleanup_actions): Remove.
19220         * except.c (lang_protect_cleanup_actions): Remove.
19221         (doing_eh): Remove.
19222         (gen_eh_region): Don't check doing_eh here.
19223         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
19224         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
19225         instead of lang_protect_cleanup_actions.
19226         * omp-low.c (maybe_catch_exception): Likewise.
19227         * Makefile.in: Update dependencies.
19229 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
19231         * cgraph.h (struct varpool_node): new used_from_object_file flag.
19232         (struct cgraph_local_info): new used_from_object_file flag.
19233         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
19234         (cgraph_clone_node): initialize used_from_object_file.
19235         (cgraph_create_virtual_clone): initialize used_from_object_file.
19236         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
19237         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
19238         when compiling with -fwhole-program.
19239         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
19240         internal resolver.
19241         * ipa.c (function_and_variable_visibility): Set externally_visible
19242         flag of varpool_node if used_from_object_file flag is set.
19243         (cgraph_externally_visible_p): check used_from_object_file flag.
19244         * doc/invoke.texi (-fwhole-program option): Change description of
19245         externally_visible attribute accordingly.
19246         * doc/extend.texi (externally_visible): Ditto.
19248 2010-06-27  Jan Hubicka  <jh@suse.cz>
19250         * params.def (max-inline-insns-auto): Default to 40.
19251         * doc/invoke.texi (max-inline-insns-auto): Document the change.
19253 2010-06-27  Jan Hubicka  <jh@suse.cz>
19255         PR middle-end/44671
19256         PR middle-end/44686
19257         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
19258         signature change.
19259         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
19260         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
19262 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
19264         * target.h (struct gcc_target): Add register_move_cost field.
19265         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
19266         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
19267         * targhooks.c (default_register_move_cost): New function.
19268         * targhooks.h (default_register_move_cost): Declare function.
19269         * defaults.h (REGISTER_MOVE_COST): Delete.
19270         * ira-int.h (ira_register_move_cost): Update comment.
19271         * ira.c (ira_register_move_cost): Update comment.
19272         * reload.h (register_move_cost): Declare.
19273         * reginfo.c (register_move_cost): New function.
19274         (move_cost): Update comment.
19275         (init_move_cost, memory_move_secondary_cost): Replace
19276         REGISTER_MOVE_COST with register_move_cost.
19277         * postreload.c (reload_cse_simplify_set): (Ditto.).
19278         * reload.c (find_valid_class, find_reloads): (Ditto.).
19279         * reload1.c (choose_reload_regs): (Ditto.).
19280         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
19281         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
19282         * doc/md.texi (can_create_pseudo_p): Update documentation.
19284         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
19285         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
19286         * config/i386/i386.h (ix86_memory_move_cost): Make static.
19287         (TARGET_MEMORY_MOVE_COST): Define.
19289         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
19290         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
19291         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
19292         (TARGET_MEMORY_MOVE_COST): Define.
19294 2010-06-27  Richard Guenther  <rguenther@suse.de>
19296         PR tree-optimization/44683
19297         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
19298         false edge from the inverted condition.
19300 2010-06-27  Richard Guenther  <rguenther@suse.de>
19302         PR middle-end/44684
19303         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
19304         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
19305         for register LHS.  Or non-store assignments.
19307 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
19309         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
19310         (sparc_emit_set_const64): Likewise.  Remove disabled code.
19311         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
19312         (sparc_emit_set_const64): Likewise.
19314 2010-06-26  Catherine Moore  <clm@codesourcery.com>
19316         * config/mips/mips.md (alu_type): New attribute.
19317         (type): Infer type from alu_type.
19318         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
19319         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
19320         *subsi3_extended, negsi2, negdi2, *low<mode>,
19321         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
19322         xor<mode>3, *nor<mode>3,
19323         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
19324         *zero_extendhi_truncqi):  Set alu_type instead of type.
19326 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
19328         * config/alpha/alpha.c (alpha_need_linkage): Adjust
19329         splay_tree_new_ggc call.
19330         (alpha_use_linkage): Likewise.
19332 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
19334         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
19335         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
19336         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
19337         (static_specs): Remove switches_need_spaces.
19338         (process_command, do_self_spec): Hardcode handling "-o" instead of
19339         checking switches_need_spaces.
19340         * system.h (SWITCHES_NEED_SPACES): Poison.
19342 2010-06-26  Richard Guenther  <rguenther@suse.de>
19344         PR tree-optimization/44393
19345         * tree-loop-distribution.c (generate_loops_for_partition): Fix
19346         stmt removal and VOP renaming.
19347         (generate_memset_zero): Remove redundant stmt updating.
19348         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
19349         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
19351 2010-06-26  Jan Hubicka  <jh@suse.cz>
19353         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
19354         edges comming from header are equivalent.
19355         (visit_bb): Handle PHIs correctly.
19356         * tree-inline.c (copy_phis_for_bb): Be able to copy
19357         PHI from entry edge.
19358         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
19360 2010-06-26  Richard Guenther  <rguenther@suse.de>
19362         PR middle-end/44674
19363         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
19364         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
19366 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
19368         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
19369         add_infile, alloc_switch): New.
19370         (process_command): Remove variable lang_n_infiles.  Process
19371         options in a single pass.  Use new functions for allocating
19372         infiles and switches arrays.  Properly skip operands of
19373         -Xpreprocessor and -Xassembler.
19375 2010-06-26  Jan Hubicka  <jh@suse.cz>
19377         PR middle-end/44671
19378         * cgraphunit.c (cgraph_function_versioning): Remove wrong
19379         cgraph_make_decl_local call; fix typo copying RTL data.
19381 2010-06-25  DJ Delorie  <dj@redhat.com>
19383         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
19384         (m32c_output_aligned_common): Likewise.
19385         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
19386         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
19387         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
19388         (m32c_register_pragmas): Register it.
19389         * config/m32c/m32c.c (m32c_get_pragma_address): New.
19390         (m32c_insert_attributes): Set #pragma address decls volatile.
19391         (pragma_entry_eq): New.
19392         (pragma_entry_hash): New.
19393         (m32c_note_pragma_address): New.
19394         (m32c_get_pragma_address): New.
19395         (m32c_output_aligned_common): New.
19396         * doc/extend.texi: Document the new pragma.
19398         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
19399         also.
19400         * config/m32c/predicates.md (m32c_any_operand): Check the code
19401         instead of memory_operand so as to allow matching volatile MEMs.
19402         (m32c_nonimmediate_operand): Likewise.
19403         (mra_operand): Allow volatiles.
19405 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
19407         PR debug/44610
19408         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
19409         address if the offset is unknown.
19411 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
19413         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
19414         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
19415         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
19416         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
19417         to ia64_start_function. Invoke it.
19418         * config/ia64/ia64.c (ia64_start_function): Call new function
19419         dwarf2out_vms_debug_main_pointer.
19421 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19423         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
19424         statements computing the true predicate.
19426 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19428         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
19429         to boolean_true_node.
19430         (reset_bb_predicate): New.
19431         (predicate_bbs): Call reset_bb_predicate.
19433 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19435         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
19436         (tree_if_conversion): Returns true when something has been changed.
19437         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
19438         changed something.
19440 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19442         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
19443         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
19444         * tree-if-conv.c: Include dbgcnt.h.
19445         (tree_if_conversion): Use if_conversion_tree to count the number of
19446         if-convertible loops.
19448 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
19450         * common.opt (fprefetch-loop-arrays): Re-define
19451         -fprefetch-loop-arrays as a tri-state option with the initial
19452         value of -1.
19453         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
19454         pass only when flag_prefetch_loop_arrays > 0.
19455         * toplev.c (process_options): Note that, with tri-states,
19456         flag_prefetch_loop_arrays>0 means prefetching is enabled.
19457         * config/i386/i386.c (override_options): Enable prefetching at -O3
19458         for a set of CPUs that sw prefetching is helpful.
19459         (software_prefetching_beneficial_p): New.  Return TRUE if software
19460         prefetching is beneficial for the given CPU.
19462 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19464         PR rtl-optimization/44326
19465         * implicit-zee.c (find_removable_zero_extends): Replace
19466         INSN_P with NONDEBUG_INSN_P.
19468 2010-06-25  Martin Jambor  <mjambor@suse.cz>
19470         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
19471         (struct ipa_node_params): Removed the modification_analysis_done flag.
19472         (ipa_is_param_modified): Removed.
19473         (ipa_analyze_node): Declare.
19474         (ipa_compute_jump_functions): Remove declaration.
19475         (ipa_count_arguments): Likewise.
19476         (ipa_detect_param_modifications): Likewise.
19477         (ipa_analyze_params_uses): Likewise.
19478         * ipa-prop.c (struct param_analysis_info): New type.
19479         (visit_store_addr_for_mod_analysis): Removed.
19480         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
19481         moved down in the file.
19482         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
19483         (ipa_count_arguments): Made static.
19484         (mark_modified): New function.
19485         (is_parm_modified_before_call): New function.
19486         (compute_pass_through_member_ptrs): New parameter parms_info, call
19487         is_parm_modified_before_call instead of ipa_is_param_modified.
19488         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
19489         it to compute_pass_through_member_ptrs.
19490         (ipa_compute_jump_functions): New parameter parms_info, pass it to
19491         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
19492         on the callee if it is analyzed.  Made static.
19493         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
19494         is_parm_modified_before_call instead of ipa_is_param_modified.
19495         (ipa_analyze_call_uses): New parameter parms_info, pass it to
19496         ipa_analyze_indirect_call_uses.
19497         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
19498         ipa_analyze_call_uses.
19499         (ipa_analyze_params_uses): New parameter parms_info, pass it to
19500         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
19501         (ipa_analyze_node): New function.
19502         (ipa_print_node_params): Do not dump the modified flag.
19503         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
19504         it.  Do not stream the modified parameter flag.
19505         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
19506         it.  Do not stream the modified parameter flag.
19507         * ipa-cp.c (ipcp_analyze_node): Removed.
19508         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
19509         with only a call to ipa_analyze_node.
19510         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
19511         node with only a call to ipa_analyze_node.
19513 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19515         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
19517 2010-06-25  Jan Hubicka  <jh@suse.cz>
19519         * tree-pass.h (pass_split_functions): Declare.
19520         * opts.c (decode_options): Enable function splitting at -O2
19521         * timevar.def (TV_IPA_FNSPLIT): New macro.
19522         * ipa-split.c: New file.
19523         * common.opt (-fpartial-inlining): New flag.
19524         * Makefile.in (ipa-split.o): New object file.
19525         * passes.c (init_optimization_passes): Add ipa-split.
19526         * params.def (partial-inlining-entry-probability): New parameters.
19527         * doc/invoke.texi (-fpartial-inlining): New.
19529 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19531         PR 44665
19532         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
19533         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
19534         (gimplify_expr): Likewise.
19536 2010-06-25  Martin Jambor  <mjambor@suse.cz>
19538         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
19539         statements instead of bailing out on them.
19540         (ipa_analyze_indirect_call_uses): Do not require that loads from the
19541         parameter are in the same BB as the condition.  Update comments.
19543 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
19545         PR middle-end/43866
19546         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
19547         true or always false, return NULL_TREE.
19548         (tree_unswitch_single_loop): Optimize conditions even when reaching
19549         max-unswitch-level parameter.  If num > 0, optimize first all conditions
19550         using entry checks, then do still reachable block discovery and consider
19551         only conditions in still reachable basic blocks in the loop.
19553         PR tree-optimization/44539
19554         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
19555         the call doesn't have LHS, but has VDEF.
19557 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
19559         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
19560         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
19561         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
19562         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
19563         * system.h (MODIFY_TARGET_NAME): Poison.
19565 2010-06-25  Alan Modra  <amodra@gmail.com>
19567         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
19568         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
19569         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
19570         CMODEL_LARGE as default.
19571         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
19572         (offsettable_ok_by_alignment): Delete.
19573         (rs6000_emit_move): Remove mcmodel=medium optimization.
19575 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
19577         With large parts from Jim Wilson:
19578         PR target/43902
19579         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
19580         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
19581         * optabs.c (optab_for_tree_code): Likewise.
19582         (expand_widen_pattern_expr): Likewise.
19583         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
19584         out of execute_optimize_widening_mul.
19585         (convert_plusminus_to_widen): New function.
19586         (execute_optimize_widening_mul): Use the two new functions.
19587         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
19588         Remove code to generate widening multiply-accumulate.  Add support
19589         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
19590         * gimple-pretty-print.c (dump_ternary_rhs): New function.
19591         (dump_gimple_assign): Call it when appropriate.
19592         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
19593         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
19594         (expand_gimple_stmt_1): Likewise.
19595         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
19596         WIDEN_MULT_MINUS_EXPR.
19597         * tree-ssa-operands.c (get_expr_operands): Likewise.
19598         * tree-inline.c (estimate_operator_cost): Likewise.
19599         * gimple.c (extract_ops_from_tree_1): Renamed from
19600         extract_ops_from_tree.  Add new arg for a third operand; fill it.
19601         (gimple_build_assign_stat): Support operations with three operands.
19602         (gimple_build_assign_with_ops_stat): Likewise.
19603         (gimple_assign_set_rhs_from_tree): Likewise.
19604         (gimple_assign_set_rhs_with_ops_1): Renamed from
19605         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
19606         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
19607         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
19608         WIDEN_MULT_MINUS_EXPR.
19609         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
19610         (extract_ops_from_tree_1): Adjust declaration.
19611         (gimple_assign_set_rhs_with_ops_1): Likewise.
19612         (gimple_build_assign_with_ops): Pass NULL for last operand.
19613         (gimple_build_assign_with_ops3): New macro.
19614         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
19615         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
19616         functions.
19617         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
19618         (verify_gimple_assign): Call it.
19619         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
19620         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
19621         functions for dealing with three-operand statements.
19622         * tree.c (commutative_ternary_tree_code): New function.
19623         * tree.h (commutative_ternary_tree_code): Declare it.
19624         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
19625         ternary statements.
19626         (gimple_assign_nonzero_warnv_p): Likewise.
19627         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
19628         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
19629         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
19630         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
19631         (struct hashtable_expr): New member ternary in the union.
19632         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
19633         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
19634         (iterative_hash_hashable_expr): Likewise.
19635         (print_expr_hash_elt): Handle EXPR_TERNARY.
19636         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
19637         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
19638         statements.  Handle GIMPLE_TERNARY_RHS.
19640 2010-06-25  Jan Hubicka  <jh@suse.cz>
19642         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
19644 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
19646         PR c/44517
19647         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
19648         parameters are not good.
19649         (c_parser_parameter_declaration): Error unknown type name if the type
19650         name can't start declaration specifiers.
19652 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
19654         * gcc.c (translate_options): Don't mention +e in comment.
19655         (process_command): Don't handle +e specially.
19657 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
19659         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
19661         * ira-build.c (merge_hard_reg_conflicts): New function.
19662         (create_cap_allocno, copy_info_to_removed_store_destinations,
19663         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
19664         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
19665         (remove_unnecessary_allocnos, remove_low_level_allocnos)
19666         copy_nifo_to_removed_store_destination): Use them.
19667         * ira-lives.c (make_hard_regno_born): New function, split out of
19668         make_regno_born.
19669         (make_allocno_born): Likewise.
19670         (make_hard_regno_dead): New function, split out of make_regno_dead.
19671         (make_allocno_dead): Likewise.
19672         (inc_register_pressure): New function, split out of set_allocno_live.
19673         (dec_register_pressure): New function, split out of clear_allocno_live.
19674         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
19675         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
19676         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
19677         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
19678         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
19679         mark_pseudo_regno_live.
19680         (process_bb_node_lives): Use mark_pseudo_regno_live,
19681         make_hard_regno_born and make_allocno_dead.
19682         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
19683         set_allocno_live, clear_allocno_live): Delete functions.
19685         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
19686         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
19687         functions.
19688         (ira_flattening): Use ira_parent_allocno.
19689         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
19690         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
19692         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
19693         statement.
19695         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
19696         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
19697         minmax_set_iter_cond, minmax_set_iter_next,
19698         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
19699         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
19700         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
19701         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
19702         uses changed.
19704         * ira-int.h (struct live_range, live_range_t): Renamed from struct
19705         ira_allocno_live_range and allocno_live_range_t; all uses changed.
19706         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
19707         All uses changed.
19709 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
19711         * thumb2.md (thumb2_tlobits_cbranch): Delete.
19712         (peephole2 to convert zero_extract/compare of single bit to
19713          lshift/compare): New.
19715 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
19717         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
19718         recursive call and call to 'int_const_binop'.
19719         (build_range_check, fold_cond_expr_with_comparison, unextend,
19720         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
19721         multiple_of_p): Adjust call to const_binop.
19723 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
19725         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
19726         determine size of XFmode operand.
19727         (XFmode extended DFmode push splitter): Ditto.
19728         (XFmode extended SFmode push splitter): Ditto.
19730 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19732         PR target/44588
19733         * config/i386/i386.md (extract_code): New.
19734         (<u>divmodqi4): Likewise.
19735         (divmodhiqi3): Likewise.
19736         (udivmodhiqi3): Likewise.
19737         (<u>divqi3): Remvoved.
19739 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
19741         PR middle-end/44492
19742         * recog.h (struct recog_data): Add is_asm field.
19743         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
19744         present in constraints of inline-asm operand and memory operand
19745         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
19746         (extract_insn): Initialize recog_data.is_asm.
19747         * doc/md.texi (Constraints): Document operand side-effect rules.
19749 2010-06-24  Andi Kleen  <ak@linux.intel.com>
19751         * c-parser.c (c_parser_conditional_expression): Call
19752         warn_for_omitted_condop.
19753         * doc/invoke.texi: Document omitted condop warning.
19755 2010-06-24  Nick Clifton<nickc@redhat.com>
19757         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
19758         insn in the sequence is a jump insn before setting its label.
19760 2010-06-24  Alan Modra  <amodra@gmail.com>
19762         * collect2.c (main): Match exactly --version and --help.
19764 2010-06-24  DJ Delorie  <dj@redhat.com>
19766         * config/m32c/m32c-pragma.c: Don't include rtl.h.
19768 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
19770         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
19771         using X87MODEF mode iterator.
19772         (pushsf splitter): Macroize splitter using P mode iterator.
19773         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
19774         mode iterator.
19776         (*movxf_internal): Rename from *movxf_integer.
19777         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
19778         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
19779         (*movdf_internal): Rename from *movdf_integer.
19780         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
19781         (*movsf_internal): Rename from *movdf_1.
19783 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
19785         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
19786         (const_gimple_seq_node): Removed typedefs.
19788         * gimple.h (gimple_seq_node_d, gimple_seq_node)
19789         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
19791 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19793         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
19794         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
19795         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
19796         and CODE_FOR_vec_extract_lo_v4df.
19798         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
19799         Changed to define_insn_and_split.
19800         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
19801         (vec_extract_lo_v16hi): Likewise.
19802         (vec_extract_lo_v32qi): Likewise.
19803         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
19804         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
19806 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
19808         PR target/44640
19809         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
19810         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
19811         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
19812         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
19813         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
19815         PR target/44640
19816         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
19818         PR other/44644
19819         * df-core.c (struct df): Rename to df_d.
19820         * df.h (struct df): Likewise.
19821         * dse.h (struct df): Remove forward declaration.
19822         * recog.h (struct insn_data): Rename to:
19823         (struct_insn_data_d).  Adjusted all users.
19825 2010-06-23  Arnaud Charlet  <charlet@adacore.com
19827         PR ada/22220
19828         * doc/install.texi: Update requirements to build GNAT.
19830 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
19832         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
19833         enum type.
19834         (m68k_sched_attr_opx_type): Remove unreachable return.
19835         (m68k_sched_attr_opy_type): Likewise.
19836         (m68k_sched_attr_size): Likewise.
19837         (sched_get_opxy_mem_type): Likewise.
19838         (m68k_sched_attr_op_mem): Likewise.
19840 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
19842         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
19843         new statement and adjust VDEF only if necessary.  Remove superfluous
19844         call to maybe_clean_or_replace_eh_stmt.
19845         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
19846         copy the flags.
19847         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
19848         * tree-inline.c (copy_bb): ...and not there.
19850 2010-06-22  Cary Coutant  <ccoutant@google.com>
19852         * dwarf2out.c (is_nested_in_subprogram): New function.
19853         (should_move_die_to_comdat): Use it.
19854         (copy_ancestor_tree): Don't mark DIEs here.
19855         (copy_decls_walk): Start walk from root of newly-added tree;
19856         mark DIEs here instead.
19858 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19860         * config/i386/i386.md (unit): Also check sseishft1.
19862 2010-06-22  Jan Hubicka  <jh@suse.cz>
19864         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
19865         enabled.
19867 2010-06-22  Jan Hubicka  <jh@suse.cz>
19869         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
19870         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
19871         Return true if something changed.
19872         * df.h (df_confluence_function_n): Return bool.
19873         * df-core.c (df_worklist_propagate_forward,
19874         df_worklist_propagate_backward): Track changes and ages.
19875         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
19876         track ages.
19877         * dse.c (dse_confluence_n): Return always true.
19879 2010-06-22  Jan Hubicka  <jh@suse.cz>
19881         * bitmap.c (bitmap_clear_bit): Micro optimize.
19883 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
19885         * config/i386/i386.md (SWI1248x): New mode iterator.
19886         (SWI48x): Ditto.
19887         (SWI12): Ditto.
19888         (SWI24): Ditto.
19890         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
19891         SWI1248x mode iterator.
19892         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
19893         using SWI124 mode iterator.
19894         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
19895         mode iterator.
19896         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
19897         *pushdi2_prologue_rex64 using P mode iterator.
19898         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
19899         using SWI48 mode iterator.
19900         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
19901         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
19902         using SWI1248x mode iterator.
19903         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
19904         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
19905         SWI48 mode iterator.
19906         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
19907         iterator.
19908         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
19909         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
19910         SWI12 mode iterator.
19911         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
19912         SWI12 mode iterator.
19913         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
19914         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
19915         SWI24 mode iterator.
19916         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
19917         SWI48 mode iterator.
19918         (mov<mode>_insn_1): New expander.
19919         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
19920         using SWI48x mode iterator.
19922         (*movoi_internal_avx): Rename from *movoi_internal.
19923         (*movti_internal_rex64): Rename from *movti_rex64.
19924         (*movti_internal_sse): Rename from *movti_sse.
19925         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
19926         (*movdi_internal): Rename from *movdi_2.
19927         (*movsi_internal): Rename from *movsi_1.
19928         (*movhi_internal): Rename from *movhi_1.
19929         (*movqi_internal): Rename from *movqi_1.
19931         (insv): Update the call to gen_movsi_insv_1 for rename.
19932         * config/i386/i386.c (promote_duplicated_reg): Ditto.
19934 2010-06-22  Jan Hubicka  <jh@suse.cz>
19936         * passes.c (execute_function_todo): Move call of statistics_fini_pass
19937         to ...
19938         (execute_todo) ... this one.
19940 2010-06-22  Alan Modra  <amodra@gmail.com>
19942         PR target/44364
19943         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
19944         * caller-save.c (insert_restore, insert_save): Use non-validate
19945         form of adjust_address.
19947 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19949         PR target/39690
19950         * config/pa/pa.c (override_options): Disable
19951         -freorder-blocks-and-partition.
19953 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
19955         PR target/44615
19956         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
19958         * config/i386/i386.md (type): Add sseishft1
19960         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
19961         (ppro_insn_load): Likewise.
19962         (ppro_insn_store): Likewise.
19963         (ppro_insn_both): Likewise.
19965         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
19966         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
19967         for type.
19968         (*vec_extractv2di_1_avx): Likewise.
19969         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
19970         type.  Remove atom_unit.
19971         (*vec_extractv2di_1_sse2): Likewise.
19973 2010-06-21  DJ Delorie  <dj@redhat.com>
19975         * diagnostic.h (diagnostic_classification_change_t): New.
19976         (diagnostic_context): Add history and push/pop list.
19977         (diagnostic_push_diagnostics): Declare.
19978         (diagnostic_pop_diagnostics): Declare.
19979         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
19980         from pragmas in a history chain instead of the global table.
19981         (diagnostic_push_diagnostics): New.
19982         (diagnostic_pop_diagnostics): New.
19983         (diagnostic_report_diagnostic): Scan history chain to find state
19984         of diagnostics as of the diagnostic location.
19985         * opts.c (set_option): Pass UNKNOWN_LOCATION to
19986         diagnostic_classify_diagnostic.
19987         (enable_warning_as_error): Likewise.
19988         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
19989         use in the history chain.
19990         * doc/extend.texi: Document pragma GCC diagnostic changes.
19992 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
19994         * dwarf2out.c (add_linkage_name): New function.  Don't add
19995         anything to DW_TAG_member DIEs.
19996         (add_name_and_src_coords_attributes): Use it.
19997         (gen_variable_die): Call it for C++ static data members if
19998         specification is DW_TAG_member.
20000         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
20001         C++ char16_t and char32_t.
20003         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
20004         * genattrtab.c: Include vecprim.h.
20005         (cached_attrs, cached_attr_count, attrs_seen_once,
20006         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
20007         attrs_cached_after): New variables.
20008         (find_attrs_to_cache): New function.
20009         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
20010         (write_test_expr): Add attrs_cached argument, return it too,
20011         attempt to cache non-const attributes used more than once in
20012         a single case handling.
20013         (write_attr_get): Use find_attrs_to_cache, for caching candidates
20014         emit cached_* variables.  Adjust write_attr_set callers.
20015         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
20016         to find attributes that should be cached in this block.  Adjust
20017         write_test_expr callers.
20018         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
20019         callers.
20020         (make_automaton_attrs): Adjust write_test_expr caller.
20022         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
20023         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
20024         (make_automaton_attrs): If find_tune_attr returns non-NULL,
20025         write separate internal_dfa_insn_code_* and insn_default_latency_*
20026         functions for each attribute's value and emit init_sched_attrs
20027         function and function pointers.
20028         * genattr.c (const_attrs, reservations): New variables.
20029         (gen_attr): Add const attributes to const_attrs vector.
20030         (check_tune_attr, find_tune_attr): New functions.
20031         (main): Add reservations to reservations vector.  If find_tune_attr
20032         returns true, add prototype for init_sched_attrs and make
20033         internal_dfa_insn_code and insn_default_latency function pointers,
20034         otherwise define init_sched_attrs as dummy macro.
20035         * cfgexpand.c: Include insn-attr.h.
20036         (gimple_expand_cfg): Call init_sched_attrs.
20038         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
20040         PR target/44575
20041         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
20042         va_arg from a set of register save slots into a temporary,
20043         if the container is bigger than type size, do the copying
20044         using smaller mode or using memcpy.
20046         PR bootstrap/44426
20047         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
20048         prototype.
20049         (sel_print_to_dot): Remove macro.
20050         (sel_print): Likewise.  New prototype.
20051         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
20052         (sel_print): New function.
20054 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20056         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
20057         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
20059 2010-06-21  Nick Clifton  <nickc@redhat.com>
20061         * config/rx/rx.h (PTRDIFF_TYPE): Define.
20062         (SMALL_REGISTER_CLASS): Define (to zero).
20063         (PRINT_OPERAND): Delete.
20064         (PRINT_OPERAND_ADDRESS): Delete.
20065         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
20066         (rx_print_operand_address): Delete prototype.
20067         * config/rx/rx.c (rx_print_operand): Make static.
20068         Allow %H and %L to handle CONST_DOUBLEs.
20069         (rx_print_operand_address): Make static.
20070         (rx_gen_move_template): Rename local variable 'template' to
20071         out_template.
20072         (rx_function_arg): Do not pass unknown sized objects in registers.
20073         (TARGET_PRINT_OPERAND): Define.
20074         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20076 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
20078         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
20080 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
20082         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
20083         stack-alignment for simple leaf-functions.
20085 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
20087         * doc/install.texi: Document bootstrap-lto.
20089 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
20091         PR debug/44248
20092         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
20093         (input_function): Drop them here, if VTA is disabled.
20095 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
20097         PR target/44546
20098         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
20099         New predicate.
20100         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
20101         ix86_swapped_fp_comparsion_operator instead of
20102         ix86_fp_comparison_operator.
20104         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
20105         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
20106         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
20107         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
20108         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
20109         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
20111 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
20113         PR other/32998
20114         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
20115         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
20116         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
20117         (decode_cmdline_option): Update for this return value.  Set
20118         orig_option_with_args_text field.  Set arg field for unknown
20119         options.  Make static.
20120         (decode_cmdline_options_to_array): New.
20121         (prune_options): Update handling of find_opt return value.
20122         * opts.c (read_cmdline_option): Take decoded option.  Return void.
20123         (read_cmdline_options): Take decoded options.
20124         (decode_options): Add parameters for decoded options.  Use
20125         decode_cmdline_options_to_array.  Use decoded options for -O
20126         scan.  Use integral_argument for -O parameters.  Update call to
20127         read_cmdline_options.
20128         (enable_warning_as_error): Update handling of find_opt return value.
20129         * opts.h: Update comment on unknown options.
20130         (struct cl_decoded_option): Update comments on opt_index and arg.
20131         Add orig_option_with_args_text.
20132         (decode_cmdline_option): Remove.
20133         (decode_cmdline_options_to_array): Declare.
20134         (decode_options): Update prototype.
20135         * toplev.c (save_argv): Remove.
20136         (save_decoded_options, save_decoded_options_count): New.
20137         (read_integral_parameter): Remove.
20138         (print_switch_values): Use decoded options.
20139         (toplev_main): Don't set save_argv.  Update call to decode_options.
20140         * toplev.h (read_integral_parameter): Remove.
20141         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
20143 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
20145         PR target/44072
20146         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
20147         immediate.
20148         * constraints.md (Pw, Px): New constraints.
20149         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
20151 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
20153         * config/i386/sse.md (fma4modesuffixf4): Removed.
20154         (ssemodesuffixf2s): Likewise.
20155         (ssemodesuffixf4): Likewise.
20156         (ssemodesuffixf2c): Likewise.
20157         (ssescalarmodesuffix2s): Likewise.
20158         (avxmodesuffixf2c): Likewise.
20159         (ssemodesuffix): New.
20160         (ssescalarmodesuffix): Likewise.
20161         Update patterns with ssemodesuffix and ssescalarmodesuffix.
20163 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
20165         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
20167 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
20169         * stor-layout.c (debug_rli): Remove unused local variables.
20171 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
20173         PR rtl-optimization/40900
20174         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
20175         original expression for later reuse.
20176         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
20177         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
20179 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
20181         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
20182         double_int_fits_in_uhwi_p): Implement as static inline.
20183         (double_int_xor): New inline function.
20184         (double_int_lrotate, double_int_rrotate, double_int_max,
20185         double_int_umax, double_int_smax, double_int_min, double_int_umin,
20186         double_int_smin): Declare.
20187         (lrotate_double, rrotate_double): Remove declaration.
20188         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
20189         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
20190         (double_int_lrotate, double_int_rrotate, double_int_max,
20191         double_int_umax, double_int_smax, double_int_min, double_int_umin,
20192         double_int_smin): New function.
20193         * fold-const.c (int_const_binop): Clean up, use double_int_*
20194         functions.
20195         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
20196         double_int_* and immed_double_int_const functions.
20198 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
20200         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
20201         * function.c (types_used_by_cur_var_decl): Likewise.
20202         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
20204 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
20206         * tree.h (record_layout_info): Change type of pending_statics field
20207         to a VEC.
20208         * stor-layout.c (start_record_layout): Store NULL into
20209         pending_statics.
20210         (debug_rli): Call debug_vec_tree instead of debug_tree.
20211         (place_field): Likewise.
20212         (finish_record_layout): Likewise.
20214 2010-06-18  Alan Modra  <amodra@gmail.com>
20216         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
20218 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20220         PR target/43740
20221         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
20222         for SET source operand from SET destination operand.
20224 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
20226         PR rtl-optimization/39871
20227         * reload1.c (init_eliminable_invariants): For flag_pic, disable
20228         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
20229         (function_invariant_p): Rule out a plus of frame or arg pointer with
20230         a SYMBOL_REF.
20231         * ira.c (find_reg_equiv_invariant_const): Likewise.
20233 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
20235         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
20236         print_operand_address and puts to output the operand for CONST.
20238 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
20240         PR debug/44572
20241         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
20242         hook.
20244 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20246         * v850-protos.h (print_operand): Delete.
20247         (print_operand_address): Delete.
20248         * v850.h (PRINT_OPERAND): Delete.
20249         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20250         (PRINT_OPERAND_ADDRESS): Delete.
20251         * v850.c (print_operand_address): Rename to...
20252         (v850_print_operand_address): ...this.  Make static. Call
20253         v850_print_operand.
20254         (print_operand): Rename to...
20255         (v850_print_operand): ...this.  Make static.  Call
20256         v850_print_operand_address.
20257         (v850_print_operand_punct_valid_p): New function.
20258         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20259         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20261 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20263         * config/sh/sh-protos.h (print_operand): Delete.
20264         (print_operand_address): Delete.
20265         * config/sh/sh.h (PRINT_OPERAND): Delete.
20266         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20267         (PRINT_OPERAND_ADDRESS): Delete.
20268         * config/sh/sh.c (sh_print_operand_address): Make static.
20269         (sh_print_operand): Make static.  Call sh_print_operand_address
20270         and sh_print_operand.
20271         (sh_print_operand_punct_valid_p): New function.
20272         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20273         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20275 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20277         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
20278         (mcore_print_operand_address): Delete.
20279         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
20280         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20281         (PRINT_OPERAND_ADDRESS): Delete.
20282         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
20283         (mcore_print_operand): Make static.
20284         (mcore_print_operand_punct_valid_p): New function.
20285         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
20286         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20288 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20290         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
20291         (print_operand_address): Delete.
20292         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
20293         (PRINT_OPERAND_ADDRESS): Delete.
20294         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
20295         static.
20296         (m68hc11_print_operand): Make static.
20297         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20299 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20301         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
20302         (m32r_print_operand_address): Delete.
20303         * config/m32r/m32r.h (m32r_punct_chars): Delete.
20304         (PRINT_OPERAND): Delete.
20305         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20306         (PRINT_OPERAND_ADDRESS): Delete.
20307         * config/m32r/m32r.c (m32r_punct_chars): Make static.
20308         (m32r_print_operand_address): Make static.
20309         (m32r_print_operand): Make static.
20310         (m32r_print_operand_punct_valid_p): New function.
20311         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20312         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20314 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20316         * config/iq2000/iq2000-protos.h (print_operand): Delete.
20317         (print_operand_address): Delete.
20318         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
20319         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20320         (PRINT_OPERAND_ADDRESS): Delete.
20321         (iq2000_print_operand_punct): Delete.
20322         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
20323         (iq2000_print_operand_address): Make static.
20324         (iq2000_print_operand): Make static.
20325         (iq2000_print_operand_punct_valid_p): New function.
20326         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20327         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20329 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20331         * config/frv/frv-protos.h (frv_print_operand): Delete.
20332         (frv_print_operand_address): Delete.
20333         * config/frv/frv.h (PRINT_OPERAND): Delete.
20334         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20335         (PRINT_OPERAND_ADDRESS): Delete.
20336         * config/frv/frv.c (frv_print_operand_address): Make static.
20337         (frv_print_operand): Make static.
20338         (frv_print_operand_punct_valid_p): New function.
20339         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20340         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20342 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20344         * tree.h (vec_member): Declare.
20345         * tree.c (vec_member): Define.
20347 2010-06-17  Richard Guenther  <rguenther@suse.de>
20349         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
20350         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
20352 2010-06-17  Richard Guenther  <rguenther@suse.de>
20354         * tree-inline.c (declare_return_variable): Remove bogus code.
20356 2010-06-17  Richard Guenther  <rguenther@suse.de>
20358         * gimplify.c (gimplify_bind_expr): Always promote complex
20359         and vector variables to registers if possible.
20361 2010-06-17  Richard Guenther  <rguenther@suse.de>
20363         * expr.c (get_inner_reference): Use double_int for bit_offset
20364         calculation.
20366 2010-06-16  DJ Delorie  <dj@redhat.com>
20368         * common.opt (-fstrict-volatile-bitfields): new.
20369         * doc/invoke.texi: Document it.
20370         * fold-const.c (optimize_bit_field_compare): For volatile
20371         bitfields, use the field's type to determine the mode, not the
20372         field's size.
20373         * expr.c (expand_assignment): Likewise.
20374         (get_inner_reference): Likewise.
20375         (expand_expr_real_1): Likewise.
20376         * expmed.c (store_fixed_bit_field): Likewise.
20377         (extract_bit_field_1): Likewise.
20378         (extract_fixed_bit_field): Likewise.
20380 2010-06-16  Richard Guenther  <rguenther@suse.de>
20382         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
20384 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
20386         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
20387         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
20388         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
20389         * debug.c: Likewise.
20390         * sdbout.c: Likewise.
20391         * vmsdbgout.c: Likewise.
20392         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
20393         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
20394         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
20395         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
20396         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
20397         * dwarf2out.c (dw_fde_struct): New fields
20398         dw_fde_vms_{end,begin}_prologue.
20399         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
20400         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
20401         (dwarf2out_vms_end_prologue): New function.
20402         (dwarf2out_vms_begin_epilogue): New function.
20403         (dw_val_struct): New value dw_val_class_vms_delta.
20404         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
20405         begin_epilogue for VMS.
20406         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
20407         new static functions.
20408         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
20409         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
20410         static functions.
20411         (print_die): New case dw_val_class_vms_delta.
20412         (attr_checksum): Likewise.
20413         (same_dw_val_p: Likewise.
20414         (size_of_die): Likewise.
20415         (value_format): Likewise.
20416         (output_die): Likewise.
20417         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
20418         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
20419         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
20420         dwarf2out_cfi_begin_epilogue
20421         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
20423 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
20425         * config/cris/cris-protos.h (cris_print_operand): Delete.
20426         (cris_print_operand_address): Delete.
20427         * config/cris/cris.h (PRINT_OPERAND): Delete.
20428         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20429         (PRINT_OPERAND_ADDRESS): Delete.
20430         * config/cris/cris.c (cris_print_operand_address): Make static.
20431         (cris_print_operand): Make static.
20432         (cris_print_operand_punct_valid_p): New function.
20433         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20434         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20436 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
20438         * config/arm/arm-protos.h (arm_print_operand): Delete.
20439         (arm_print_operand_address): Delete.
20440         * config/arm/arm.h (PRINT_OPERAND): Delete.
20441         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20442         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
20443         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
20444         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
20445         (arm_print_operand): Make static.
20446         (arm_print_operand_punct_valid_p): New function.
20447         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20448         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20450 2010-06-16  Nick Clifton  <nickc@redhat.com>
20452         * config/rx/constraints.md (NEGint4): New constraint.
20453         * config/rx/rx.md (attr cc): Add set_zsc.
20454         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
20455         initialised.
20456         (cmpsf): Likewise.
20457         (call_internal): Clobber the cc0 register.
20458         (call_value_internal): Likewise.
20459         (cstoresi4): Likewise.
20460         (movsieq): Likewise.
20461         (movsine): Likewise.
20462         (addsi3): Add alternative to handle small negative constants.
20463         (sunsi3): Likewise.
20464         (addsi3): Do not set the O bit in the cc0 register.
20465         (adddi3): Likewise.
20466         (subsi3): Likewise.
20467         (subdi3): Likewise.
20468         (andsi3): Reorder alternatives to prefer shorter forms.
20469         (mulsi3): Likewise.
20470         (iorsi3): Likewise.
20471         (negsi2): Note that the cc0 flags are set.
20472         (rotlsi3): Note that only the Z and S bits are set in cc0.
20473         (lshrsi3): Likewise.
20474         (ashlsi3): Likewise.
20475         (subsf3): Use %Q for the MEM operand.
20476         (fix_truncsfsi2): Likewise.
20477         (floatsisf2): Likewise.
20478         (bitset): Remove early clobber from destination.
20479         (bitset_in_memory): Likewise.
20480         (lrintsf2): Clobber the cc0 register.
20481         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
20482         (rx_print_operand): Handle %N.
20484 2010-06-16  Jan Hubicka  <jh@suse.cz>
20486         * df-core.c (df_compact_blocks): Free problem_temps vector.
20488 2010-06-16  Martin Jambor  <mjambor@suse.cz>
20490         PR tree-optimization/43905
20491         * tree-sra.c: Include tree-inline.h.
20492         (create_abstract_origin): Removed.
20493         (modify_function): Version the call graph node instead of creating
20494         abstract origins and dealing with same_body aliases.
20495         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
20496         function is versionable.
20497         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
20499 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
20501         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
20502         (CHOOSE_DYNAMIC_LINKER): Update.
20504 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
20506         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
20507         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
20508         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
20509         *prefetch_3dnow_rex.
20511 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
20513         * target.h (struct asm_out):Add declare_constant_name field.
20514         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
20515         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
20516         * output.h (default_asm_declare_constant_name): Declare.
20517         (assemble_label): Update prototype.
20518         * varasm.c (assemble_constant_contents): Use
20519         targetm.asm_out.declare_constant_name target hook.
20520         (assemble_label): Add 'file' argument.
20521         (default_asm_declare_constant_name): New function.
20522         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
20523         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
20524         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
20526         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
20527         * config/darwin.c (darwin_asm_declare_constant_name): New function.
20528         (machopic_output_indirection): Update assemble_label argument list.
20529         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
20530         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
20532 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
20534         PR middle-end/44391
20535         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
20536         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
20538 2010-06-15  Richard Guenther  <rguenther@suse.de>
20540         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
20542 2010-06-15  Paul Brook  <paul@codesourcery.com>
20544         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
20545         hard-float ABI.
20547 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
20549         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
20550         don't get a vector type for output.
20552 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
20554         PR fortran/44536
20555         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
20556         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
20557         (LANG_HOOKS_DECLS): Add it.
20558         * gimplify.c (omp_notice_variable): Call
20559         lang_hooks.decls.omp_report_decl.
20561 2010-06-15  Martin Jambor  <mjambor@suse.cz>
20563         PR lto/44464
20564         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
20565         on the newly dead SSA name.
20567 2010-06-15  Alan Modra  <amodra@gmail.com>
20569         * doc/invoke.texi: Add mcmodel to powerpc options.
20570         * configure.ac: Add HAVE_LD_LARGE_TOC test.
20571         * configure: Regenerate.
20572         * config.in: Regenerate.
20573         * config/rs6000/linux64.opt (mcmodel): New.
20574         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
20575         (TARGET_CMODEL, SET_CMODEL): Define.
20576         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
20577         select CMODEL_MEDIUM default.
20578         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
20579         (TARGET_CMODEL): Define default.
20580         * config/rs6000/rs6000.c (cmodel): New variable.
20581         (rs6000_explicit_options): Add cmodel field.
20582         (rs6000_handle_option): Handle -mcmodel.
20583         (create_TOC_reference): Add largetoc_reg param.  Generate high,
20584         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
20585         (rs6000_delegitimize_address): Recognise new toc reference rtl
20586         and minimal-toc rtl.
20587         (rs6000_legitimize_reload_address): Handle new toc references.
20588         (print_operand_address): Handle legitimate_constant_pool_address_p
20589         match before lo_sum.
20590         (rs6000_eliminate_indexed_memrefs): Tidy.
20591         (rs6000_emit_move): Tweak threshold for inlining constants.
20592         Keep rs6000_emit_allocate_stack large stack frame offsets
20593         loaded into r0 inline.
20594         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
20595         (tocrel_base, tocrel_offset): New variables.
20596         (toc_relative_expr_p): Set them here.
20597         (print_operand_address): Skip over any offset on constant pool address.
20598         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
20599         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
20600         (offsettable_ok_by_alignment): New function.
20601         (rs6000_emit_move): Address suitably aligned local symbol_refs
20602         relative to the toc pointer for -mcmodel=medium.
20603         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
20604         strict param.  Allow lo_sum version of addressing.  Verify reg
20605         used for -mminimal-toc and -mcmodel != small.  Update all callers.
20606         * config/rs6000/constraints.md: Update for above change.
20607         * config/rs6000/predicates.md: Likewise.
20608         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
20609         code.
20610         (tls_gd): Split for -mcmodel=medium/large.
20611         (tls_gd_high, tls_gd_low): New.
20612         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
20613         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
20614         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
20615         (largetoc_high, largetoc_low): New.
20616         (cmptf_internal2): Add clobber.
20617         * config/rs6000/rs6000-protos.h: Update.
20619 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
20621         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
20622         true if no prefetch is going to be generated for a given group.
20623         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
20624         estimate the prefetch_count.
20625         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
20626         prefetch count by considering the unroll_factor and prefetch_mod
20627         for is_loop_prefetching_profitable.
20629 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
20631         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
20632         anything if the argument is not a MEM.
20634 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
20636         PR debug/43650
20637         PR debug/44181
20638         PR debug/44247
20639         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
20640         debug stmts.
20641         (canonicalize_loop_ivs): Likewise.
20643 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
20645         PR debug/43656
20646         * haifa-sched.c (setup_insn_reg_pressure_info,
20647         update_register_pressure): Reject debug insns.
20648         (ready_sort): Don't setup reg pressure for debug insns.
20649         (schedule_insn): Don't update reg pressure for debug insns.
20651 2010-06-14  Richard Guenther  <rguenther@suse.de>
20653         * lto-streamer.c (cached_bp): Remove.
20654         (bitpack_delete): Likewise.
20655         (bitpack_create): Likewise.
20656         (bp_get_next_word): Likewise.
20657         (bp_pack_value, bp_unpack_value): Move ...
20658         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
20659         Re-implement.
20660         (struct bitpack_d): Likewise.
20661         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
20662         New inline functions.
20663         * lto-streamer-out.c (lto_output_bitpack): Remove.
20664         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
20665         (pack_value_fields): Adjust.
20666         (lto_write_tree): Likewise.
20667         (output_gimple_stmt): Likewise.
20668         (output_function): Likewise.
20669         * lto-streamer-in.c (input_gimple_stmt): Adjust.
20670         (input_function): Likewise.
20671         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
20672         (lto_input_bitpack): Remove.
20673         (lto_materialize_tree): Adjust.
20674         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
20675         * lto-cgraph.c (lto_output_edge): Adjust.
20676         (lto_output_node): Likewise.
20677         (lto_output_varpool_node): Likewise.
20678         (lto_output_ref): Likewise.
20679         (input_node): Likewise.
20680         (input_varpool_node): Likewise.
20681         (input_ref): Likewise.
20682         (input_edge): Likewise.
20683         (output_node_opt_summary): Likewise.
20684         (input_node_opt_summary): Likewise.
20685         * ipa-pure-const.c (pure_const_write_summary): Likewise.
20686         (pure_const_read_summary): Likewise.
20687         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
20688         (ipa_read_indirect_edge_info): Likewise.
20689         (ipa_write_node_info): Likewise.
20690         (ipa_read_node_info): Likewise.
20692 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
20694         PR target/44534
20695         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
20696         (vec_extract_lo_v16hi): Likewise.
20697         (vec_extract_lo_v32qi): Likewise.
20699 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
20701         PR bootstrap/44426
20702         * tree.h (build_call_expr): Don't define as vararg macro, instead
20703         add a prototype.
20704         * builtins.c (build_call_nofold): Remove.
20705         (expand_builtin_int_roundingfn, expand_builtin_pow,
20706         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
20707         expand_builtin_memset_args, expand_builtin_strcmp,
20708         expand_builtin_strncmp, expand_builtin_memory_chk): Use
20709         build_call_nofold_loc instead of build_call_nofold.
20710         (build_call_expr): New function.
20712         PR tree-optimization/44508
20713         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
20714         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
20715         don't eliminate trivially dead stmts.
20716         * tree-vrp.c (vrp_finalize): Pass false as last argument
20717         to substitute_and_fold.
20718         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
20719         to substitute_and_fold.
20720         * tree-ssa-ccp.c (ccp_finalize): Likewise.
20722         PR bootstrap/44509
20723         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
20725 2010-06-14  Ira Rosen  <irar@il.ibm.com>
20727         PR tree-optimization/44507
20728         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
20729         to build initial vector for BIT_AND_EXPR.
20730         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
20732 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
20734         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
20735         adjust z10prop set_attr.
20737 2010-06-13  Jan Hubicka  <jh@suse.cz>
20739         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
20740         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
20741         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
20742         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
20743         datastructure checks into checking asserts.
20744         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
20745         * tree-ssa-sccvn.c (VN_INFO): Likewise.
20746         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
20747         df_ref_create_structure): Likewise.
20748         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
20749         pool_free): Use gcc_checking_assert.
20750         * alias.c (get_alias_set): Likewise.
20751         * var-tracking.c (variable_htab_free, shared_hash_copy,
20752         canonicalize_values_mark, variable_merge_over_cur): Likewise.
20753         * lto-streamer.c (bp_unpack_value): Likewise.
20755 2010-06-13  Richard Guenther  <rguenther@suse.de>
20757         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
20758         Do not stream but initialize TYPE_CANONICAL to NULL.
20759         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
20760         * gimple.c (gimple_types_compatible_p): Disregard
20761         TYPE_STRUCTURAL_EQUALITY_P.
20762         (gimple_register_type): Use TYPE_CANONICAL as cache.
20763         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
20764         before registering common types.
20765         * config/i386/i386.c (ix86_function_arg_boundary): Do not
20766         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
20767         * tree.h (TYPE_CANONICAL): Clarify documentation.
20769 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
20771         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
20772         LIBCALL_VALUE): Remove macros.
20773         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
20774         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20775         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20776         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
20777         (ia64_function_value): Make static. Handle receiving the function
20778         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
20780 2010-06-12  Jan Hubicka  <jh@suse.cz>
20782         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
20783         at correct place.
20785 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
20787         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
20789 2010-06-12  Jan Hubicka  <jh@suse.cz>
20791         * df-core.c (df_clear_bb_info): New function.
20792         (df_set_blocks): bb_info is always allocated.
20793         (df_get_bb_info): Use block_info_elt_size.
20794         (df_set_bb_info): Likewise.
20795         (df_compact_blocks): Update for new block_info.
20796         (grow_bb_info): New function.
20797         * df-problems.c (df_grow_bb_info): Move to df-core.c
20798         (df_rd_set_bb_info): Remove.
20799         (df_rd_free_bb_info): Do not free block pool.
20800         (df_rd_alloc): Do not create pool, use check for
20801         obstack presence instead of NULL pointer for new blocks.
20802         (df_rd_free): DO not free alloc pool; clear block_info.
20803         (problem_RD): Add size of block info structure.
20804         (df_lr_set_bb_info): Remove.
20805         (df_lr_free_bb_info): Do not free block pool.
20806         (df_lr_alloc): Do not create pool, use check for
20807         obstack presence instead of NULL pointer for new blocks.
20808         (df_lr_free): DO not free alloc pool; clear block_info.
20809         (problem_LR): Add size of block info structure.
20810         (df_live_set_bb_info): Remove.
20811         (df_live_free_bb_info): Do not free block pool.
20812         (df_live_alloc): Do not create pool, use check for
20813         obstack presence instead of NULL pointer for new blocks.
20814         (df_live_free): DO not free alloc pool; clear block_info.
20815         (problem_LIVE): Add size of block info structure.
20816         (problem_CHAIN): Add size of block info structure.
20817         (df_byte_lr_set_bb_info): Remove.
20818         (df_byte_lr_free_bb_info): Do not free block pool.
20819         (df_byte_lr_alloc): Do not create pool, use check for
20820         obstack presence instead of NULL pointer for new blocks.
20821         (df_byte_lr_free): DO not free alloc pool; clear block_info.
20822         (problem_BYTE_LR): Add size of block info structure.
20823         (problem_NOTE): Add size of block info structure.
20824         (df_byte_MD_set_bb_info): Remove.
20825         (df_byte_MD_free_bb_info): Do not free block pool.
20826         (df_byte_MD_alloc): Do not create pool, use check for
20827         obstack presence instead of NULL pointer for new blocks.
20828         (df_byte_MD_free): DO not free alloc pool; clear block_info.
20829         (problem_BD): Add size of block info structure.
20830         * df-scan.c (df_scan_free_internal): Free block pool.
20831         (df_scan_set_bb_info): Remove.
20832         (df_scan_free_bb_info): Check for artificial_defs instead
20833         of bb_info being non-NULL.
20834         (df_scan_alloc): DO not create df_scan_block pool.
20835         (problem_SCAN): Set size of block info.
20836         (df_bb_refs_record): Do not allocate bb_info.
20837         * df.h (df_problem): Add block_info_elt_size.
20838         (struct dataflow): Change block_info to void *.
20839         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
20840         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
20841         in-line structures.
20843 2010-06-12  Jan Hubicka  <jh@suse.cz>
20845         PR tree-optimize/44485
20846         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
20847         containing use of return value of noreturn function.
20849 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
20851         * targhooks.c (default_function_value): Don't use
20852         FUNCTION_OUTGOING_VALUE.
20853         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
20854         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
20856 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
20858         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
20859         Add crtfastmath.o to extra_parts.
20860         * config/mips/crtfastmath.c: New.
20861         * config/mips/linux.h (ENDFILE_SPEC): New.
20863 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
20865         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
20866         old_type in parameter.
20867         (gcc_type_for_value): Update call to gcc_type_for_interval.
20868         (compute_type_for_level_1): Renamed compute_type_for_level.
20869         Update call to gcc_type_for_interval.
20871 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
20873         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
20874         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
20876 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
20878         * opts-common.c: Include options.h.
20879         (integral_argument): Move from opts.c.
20880         (decode_cmdline_option): New.  Based on read_cmdline_option.
20881         * opts.c (integral_argument): Move to opts-common.c.
20882         (read_cmdline_option): Move most contents to
20883         decode_cmdline_option.  Use %qs in diagnostics.
20884         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
20885         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
20886         decode_cmdline_option): New.
20888 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
20890         PR target/44481
20891         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
20892         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
20893         (partiysi2_cmp): Ditto.
20894         (*partiyhi2_cmp): Ditto.
20895         (*parityqi2_cmp): Remove.
20897 2010-06-11  Jan Hubicka  <jh@suse.cz>
20899         * bitmap.h (bmp_iter_next_bit): New.
20900         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
20902 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
20903             Eric Botcazou  <ebotcazou@adacore.com>
20905         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
20906         computed cost.
20908 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
20910         * config/i386/i386.md (unspec): New define_c_enum.
20911         (unspecv): Ditto.
20913 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
20915         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
20917 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
20919         PR middle-end/44483
20920         * tree-if-conv.c (bb_predicate_s): New struct.
20921         (bb_predicate_p): New.
20922         (bb_has_predicate): New.
20923         (bb_predicate): New.
20924         (set_bb_predicate): New.
20925         (bb_predicate_gimplified_stmts): New.
20926         (set_bb_predicate_gimplified_stmts): New.
20927         (add_bb_predicate_gimplified_stmts): New.
20928         (init_bb_predicate): New.
20929         (free_bb_predicate): New.
20930         (is_predicated): Use bb_predicate.
20931         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
20932         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
20933         before processing their successors.
20934         (clean_predicate_lists): Removed.
20935         (find_phi_replacement_condition): Use bb_predicate.
20936         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
20937         computations.
20938         (insert_gimplified_predicates): New.
20939         (combine_blocks): Call insert_gimplified_predicates.
20940         (tree_if_conversion): Call free_bb_predicate instead of
20941         clean_predicate_lists.
20943 2010-10-11  Paul Brook  <paul@codesourcery.com>
20945         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
20946         * config/arm/arm.c (all_architectures): Change v7e-m default to
20947         cortexm4.
20948         * config/arm/arm-cores.def: Add cortex-m4.
20949         * config/arm/arm-tune.md: Regenerate.
20951 2010-06-11  Jan Hubicka  <jh@suse.cz>
20953         * ipa-pure-const.c (special_builtlin_state): New function.
20954         (check_call): Use it instead of special casign BUILT_IN_RETURN.
20955         (propagate_pure_const): Use it.
20957 2010-06-11  Jan Hubicka  <jh@suse.cz>
20959         * df-problems.c (df_live_scratch): Convert to bitmap_head.
20960         (df_live_alloc): Initialize df_live_scratch when initializing
20961         problem_data.
20962         (df_live_transfer_function): Update uses of df_live_scratch.
20963         (df_live_free): Free problem_data; clear df_live_scratch before
20964         releasing the obstack.
20965         (df_md_free): Free problem data.
20967 2010-06-11  Jan Hubicka  <jh@suse.cz>
20969         * doc/invoke.texi (Wsuggest-attribute): Document.
20970         (Wmissing-noreturn): Remove.
20971         * ipa-pure-const.c (warn_function_noreturn): New function.
20972         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
20973         warn_missing_noreturn.
20974         * common.opt (Wsuggest-attribute=noreturn): New.
20975         * tree-flow.h (warn_function_noreturn): Declare.
20976         * tree-cfg.c (execute_warn_function_noreturn): Use
20977         warn_function_noreturn.
20978         (gate_warn_function_noreturn): New.
20979         (pass_warn_function_noreturn): Update.
20981 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20983         * c-typeck.c (handle_warn_cast_qual): Add loc
20984         parameter. Improve warning message.
20985         (build_c_cast): Pass location to handle_warn_cast_qual.
20987 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
20989         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
20990         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
20991         insn mnemonic.
20992         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
20994 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
20996         Fix bootstap on mips
20997         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
20998         be naming typedefs.
21000 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
21002         * system.h (helper_const_non_const_cast): New inline for
21003         gcc version <= 4.0.
21004         (CONST_CAST2): For gcc version <= 4.0 use
21005         new helper to do const/non-const casting.
21007 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21009         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
21010         * Makefile.in (OBJS-common): Include insn-enums.o.
21011         (insn-enums.o): New rule.
21012         (simple_generated_c): Add insn-enums.c.
21013         (build/genenums.o): New rule.
21014         (genprogmd): Add "enums".
21015         * genconstants.c (print_enum_type): Declare a C string array
21016         for each enum.
21017         * genenums.c: New file.
21018         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
21019         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
21020         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
21022 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21024         * doc/md.texi (define_enum_attr): Document.
21025         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
21026         * read-md.h (lookup_enum_type): Declare.
21027         * read-md.c (lookup_enum_type): New function.
21028         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
21029         * genattrtab.c (attr_desc): Add an enum_name field.
21030         (evaluate_eq_attr): Take the associated attribute as argument.
21031         Get the enum prefix from the enum_name field, if defined.
21032         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
21033         (simplify_test_exp): Pass attr to evaluate_eq_attr.
21034         (add_attr_value): New function, split out from...
21035         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
21036         (write_test_expr): Pass attr to evaluate_eq_attr.
21037         (write_attr_get): Use the enum_name as the enum tag, if defined.
21038         (write_attr_valueq): Use the enum_name as a prefix, if defined.
21039         (find_attr): Initialize enum_name.
21040         (main): Handle DEFINE_ENUM_ATTR.
21041         * gensupport.c (process_rtx): Likewise.
21042         * config/mips/mips.h (mips_tune_attr): Delete.
21043         * config/mips/mips.md (cpu): Use define_attr_enum.
21045 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21047         * doc/md.texi (define_c_enum, define_enum): Document.
21048         * read-md.h (md_constant): Add a parent_enum field.
21049         (enum_value, enum_type): New structures.
21050         (upcase_string, traverse_enum_types): Declare.
21051         * read-md.c (enum_types): New variable.
21052         (upcase_string, add_constant): New functions.
21053         (handle_constants): Don't create the hash table here.
21054         Use add_constant.
21055         (traverse_md_constants): Don't check for a null md_constants.
21056         (decimal_string, handle_enum, traverse_enum_types): New functions.
21057         (read_md_files): Initialize md_constants and md_enums.
21058         * genconstants.c (print_md_constant): Ignore info argument.
21059         Only print constants that belong to no enum.
21060         (print_enum_type): New function.
21061         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
21062         for each defined enum type.
21063         * config/mips/mips.md (processor): New define_enum.
21064         (unspec): New define_c_enum.
21065         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
21066         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
21067         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
21068         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
21069         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
21070         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
21071         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
21072         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
21073         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
21074         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
21075         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
21076         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
21077         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
21078         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
21079         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
21080         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
21081         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
21082         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
21083         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
21084         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
21085         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
21086         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
21087         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
21088         (UNSPEC_RDDSP): Move to mips-dsp.md.
21089         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
21090         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
21091         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
21092         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
21093         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
21094         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
21095         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
21096         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
21097         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
21098         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
21099         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
21100         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
21101         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
21102         Moved to mips-dspr2.md.
21103         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
21104         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
21105         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
21106         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
21107         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
21108         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
21109         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
21110         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
21111         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
21112         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
21113         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
21114         UNSPEC_LOONGSON_PSADBH)
21115         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
21116         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
21117         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
21118         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
21119         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
21120         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
21121         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
21122         (cpu): Update comment.
21123         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
21124         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
21125         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
21126         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
21127         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
21128         UNSPEC_LOONGSON_PCMPEQ)
21129         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
21130         UNSPEC_LOONGSON_PINSR_0)
21131         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
21132         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
21133         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
21134         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
21135         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
21136         UNSPEC_LOONGSON_PSADBH)
21137         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
21138         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
21139         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
21140         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
21141         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
21142         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
21143         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
21144         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
21145         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
21146         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
21147         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
21148         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
21149         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
21150         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
21151         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
21152         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
21153         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
21154         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
21155         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
21156         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
21157         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
21158         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
21159         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
21160         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
21161         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
21162         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
21163         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
21164         (UNSPEC_RDDSP): Moved from mips.md.
21165         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
21166         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
21167         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
21168         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
21169         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
21170         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
21171         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
21172         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
21173         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
21174         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
21175         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
21176         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
21177         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
21178         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
21179         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
21180         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
21181         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
21182         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
21183         (UNSPEC_SCC): Moved from mips.md.
21184         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
21185         "processor_type" to "processor".
21186         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
21187         * config/mips/mips.h (processor_type): Delete.
21188         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
21189         "processor_type" to "processor".
21191 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21193         * configure.ac (tm_include_list): Add insn-constants.h.
21194         * configure: Regenerate.
21195         * Makefile.in (GTM_H): Move insn-constants.h here from...
21196         (TM_H): ...here.
21197         * mkconfig.sh: Remove special handling for insn-constants.h.
21199 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21201         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
21202         (BUILD_MD): ...this new variable.
21203         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
21204         that include the old contents of simple_generated_h and
21205         simple_generated_c.
21206         (simple_generated_h, simple_generated_c): Include them.  Add
21207         insn-constants.h.
21208         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
21209         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
21210         Remove these dependencies from the main rule and include
21211         insn-conditions.md in the command line only if it appears
21212         in the dependency list.
21213         (insn-constants.h, s-constants): Delete.
21214         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
21215         or gensupport.h.
21216         (build/genmddeps.o): Likewise.
21217         (genprogrtl): New variable that contains everything from genprogmd
21218         except mddeps and constants.
21219         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
21220         depend on $(BUILD_MD)
21221         (genprog): New variable.  Make these programs depend on
21222         $(BUILD_ERRORS).
21223         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
21224         (main): Use read_md_files instead of init_rtx_reader_args.
21225         * genconstants.c: As for genmddeps.c.
21226         * read-md.h (read_skip_construct): Declare.
21227         * read-md.c (read_skip_construct): New function.
21228         (handle_file): Allow a null handle_directive, skipping the
21229         construct if so.
21230         (parse_include): Update the comment accordingly.
21232 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21234         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
21235         * genmddeps.c: Include read-md.h.
21236         (main): Call init_rtx_reader_args instead of init_md_reader_args.
21237         * genattr.c (main): Likewise.
21238         * genattrtab.c (main): Likewise.
21239         * genautomata.c (main): Likewise.
21240         * gencodes.c (main): Likewise.
21241         * genconditions.c (main): Likewise.
21242         * genconfig.c (main): Likewise.
21243         * genconstants.c (main): Likewise.
21244         * genemit.c (main): Likewise.
21245         * genextract.c (main): Likewise.
21246         * genflags.c (main): Likewise.
21247         * genopinit.c (main): Likewise.
21248         * genoutput.c (main): Likewise.
21249         * genpeep.c (main): Likewise.
21250         * genrecog.c (main): Likewise.
21251         * genpreds.c (main): Likewise.
21252         * gensupport.h (in_fname): Move to read-md.h.
21253         (init_md_reader_args_cb): Rename to...
21254         (init_rtx_reader_args_cb): ...this and return a bool.
21255         (init_md_reader_args): Rename to...
21256         (init_rtx_reader_args): ...this and return a bool.
21257         (include_callback): Move to read-md.h.
21258         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
21259         (file_name_list, first_dir_md_include): Move to read-md.c
21260         (first_bracket_include): Delete unused variable.
21261         (last_dir_md_include): Move to read-md.c.
21262         (process_include): Delete, moving code to read-md.c:handle_include.
21263         (process_rtx): Don't handle INCLUDE.
21264         (save_string): Delete.
21265         (rtx_handle_directive): New function.
21266         (init_md_reader_args_cb): Rename to...
21267         (init_rtx_reader_args_cb): ...this and return a boolean success value.
21268         Use read_md_args.
21269         (init_md_reader_args): Rename to...
21270         (init_rtx_reader_args): ...this and return a boolean success value.
21271         * rtl.def (INCLUDE): Delete.
21272         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
21273         argument.
21274         * read-rtl.c (read_conditions): Don't gobble ')' here.
21275         (read_mapping): Likewise.
21276         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
21277         Handle top-level non-rtx constructs here rather than in read_rtx_1.
21278         Store the whole queue in *X.  Remove call to init_md_reader.
21279         (read_rtx_1): Rename to...
21280         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
21281         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
21282         here.
21283         (read_nested_rtx): New function.  Handle (nil) here rather than
21284         in read_rtx_code.
21285         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
21286         gobble ')' here.
21287         * read-md.h (directive_handler_t): New type.
21288         (in_fname, include_callback): Moved from read-md.h.
21289         (read_constants, init_md_reader): Delete.
21290         (read_md_files): Declare.
21291         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
21292         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
21293         from gensupport.c.
21294         (read_constants): Rename to...
21295         (handle_constants): ...this.  Don't gobble ')' here.
21296         (handle_include, handle_file, handle_toplevel_file)
21297         (parse_include): New functions, mostly taken from gensupport.c.
21298         (init_md_reader): Subsume into...
21299         (read_md_files): ...this new function.
21301 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21303         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
21304         (unread_char): Decrement read_md_lineno after putting back '\n'.
21305         * read-md.c (fatal_with_file_and_line): Push back any characters
21306         that we decide not to add to the context.
21307         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
21308         fatal_expected_char in cases where '/' ends a line (for example).
21309         (read_name): Don't increment read_md_lineno here.
21310         (read_escape): Likewise.
21311         (read_quoted_string): Likewise.
21312         (read_braced_string): Likewise.
21314 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21316         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
21317         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
21318         * genconstants.c: Include read-md.h.
21319         * read-rtl.c (md_constants): Move to read-md.c.
21320         (md_name): Move to read-md.h.
21321         (initialize_iterators): Use leading_string_hash instead of def_hash
21322         and leading_string_eq_p instead of def_name_eq_p.
21323         (read_name): Move to read-md.c.
21324         (def_hash, def_name_eq_p): Delete.
21325         (read_constants, traverse_md_constants): Move to read-md.c.
21326         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
21327         * read-md.h: Include hashtab.h.
21328         (md_name): Moved from read-rtl.c.
21329         (md_constant): Moved from read-md.h.
21330         (leading_string_hash, leading_string_eq_p, read_name)
21331         (read_constants, traverse_md_constants): Declare.
21332         * read-md.c (md_constants): Moved from read-rtl.c.
21333         (leading_string_hash, leading_string_eq_p): New functions.
21334         (read_name, read_constants, traverse_md_constants): Moved from
21335         read-rtl.c.
21337 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21339         * read-rtl.c (md_name): New structure.
21340         (read_name): Take an md_name instead of a buffer pointer.
21341         Use the "string" field instead of strcpy when expanding constants.
21342         (read_constants): Remove the tmp_char argument.  Update the calls
21343         to read_name, using two local name buffers instead of the tmp_char
21344         argument.  Merge the constant-creation code.
21345         (read_conditions): Remove the tmp_char argument.  Update the calls
21346         to read_name, using a local name buffer instead of the tmp_char
21347         argument.
21348         (read_mapping): Replace tmp_char variable with a local name buffer.
21349         Update the calls to read_name.
21350         (read_rtx_1): Likewise.  Update the calls to read_constants and
21351         read_conditions.
21353 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21355         * Makefile.in (build/read-md.o): Depend on errors.h.
21356         * read-md.h (error_with_line): Declare.
21357         * read-md.c: Include errors.h.
21358         (message_with_line_1): New function, extracted from...
21359         (message_with_line): ...here.
21360         (error_with_line): New function.
21361         * genattrtab.c: If a call to message_with_line is followed by
21362         "have_error = 1;", replace both statements with a call to
21363         error_with_line.
21364         * genoutput.c: Likewise.
21365         * genpreds.c: Likewise.
21366         * genrecog.c: If a call to message_with_line is followed by
21367         "error_count++;", replace both statements with a call to
21368         error_with_line.
21369         (errorcount): Delete.
21370         (main): Don't check it.
21371         * gensupport.c: If a call to message_with_line is followed by
21372         "errors = 1;", replace both statements with a call to error_with_line.
21373         (errors): Delete.
21374         (process_define_cond_exec): Check have_error instead of errors.
21375         (init_md_reader_args_cb): Likewise.  Don't set errors.
21377 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21379         * read-md.h (read_md_file): Declare.
21380         (read_char, unread_char): New functions.
21381         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
21382         (read_quoted_string, read_string): Remove FILE * argument.
21383         * read-md.c (read_md_file): New variable.
21384         (read_md_filename, read_md_lineno): Update comments and remove
21385         unnecessary initialization.
21386         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
21387         (read_escape, read_quoted_string, read_braced_string, read_string):
21388         Remove FILE * argument.  Update calls accordingly, using read_char
21389         and unread_char instead of getc and ungetc.
21390         * rtl.h (read_rtx): Remove FILE * argument.
21391         * read-rtl.c (iterator_group): Remove FILE * argument from
21392         "find_builtin".
21393         (iterator_traverse_data): Remove "infile" field.
21394         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
21395         (add_mapping, read_name, read_constants, read_conditions)
21396         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
21397         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
21398         Remove file arguments from all calls, using read_char and unread_char
21399         instead of getc and ungetc.
21400         * gensupport.c (process_include): Preserve read_md_file around
21401         the include.  Set read_md_file to the handle of the included file.
21402         Update call to read_rtx.
21403         (init_md_reader_args_cb): Set read_md_file to the handle of the file
21404         and remove local FILE *.  Update calls to read_rtx.
21406 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21408         * read-md.h (read_rtx_lineno): Rename to...
21409         (read_md_lineno): ...this.
21410         (read_rtx_filename): Rename to...
21411         (read_md_filename): ...this.
21412         (copy_rtx_ptr_loc): Rename to...
21413         (copy_md_ptr_loc): ...this.
21414         (print_rtx_ptr_loc): Rename to...
21415         (print_md_ptr_loc): ...this.
21416         * read-md.c: Likewise.  Update references after renaming.
21417         (string_obstack): Replace RTL with MD in comment.
21418         (set_rtx_ptr_loc): Rename to...
21419         (set_md_ptr_loc): ...this.
21420         (get_rtx_ptr_loc): Rename to...
21421         (get_md_ptr_loc): ...this.
21422         * genconditions.c: Update references after renaming.
21423         * genemit.c: Likewise.
21424         * genoutput.c: Likewise.
21425         * genpreds.c: Likewise.
21426         * gensupport.c: Likewise.
21427         * read-rtl.c: Likewise.
21429 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21431         * Makefile.in (READ_MD_H): New variable.
21432         (BUILD_RTL): Add build/read-md.o.
21433         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
21434         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
21435         (build/genattrtab.o, build/genconditions.o build/genemit.o)
21436         (build/genextract.o, build/genflags.o, build/genoutput.o)
21437         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
21438         (build/read-md.o): New rule.
21439         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
21440         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
21441         * coretypes.h: ...here.
21442         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
21443         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
21444         * genattr.c: Include read-md.h.
21445         * genattrtab.c: Likewise.
21446         * genconditions.c: Likewise.
21447         * genemit.c: Likewise.
21448         * genextract.c: Likewise.
21449         * genflags.c: Likewise.
21450         * genoutput.c: Likewise.
21451         * genpreds.c: Likewise.
21452         * genrecog.c: Likewise.
21453         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
21454         (join_c_conditions, print_c_condition, read_rtx_filename)
21455         (read_rtx_lineno): Move to read-md.h.
21456         * read-rtl.c: Include read-md.h.
21457         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
21458         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
21459         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
21460         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
21461         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
21462         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
21463         (read_braced_string, read_string): Move to read-md.c.
21464         (read_rtx): Move some initialization to init_md_reader and call
21465         init_md_reader here.
21466         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
21467         Move to read-md.h.
21468         * gensupport.c: Include read-md.h.
21469         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
21470         * read-md.h, read-md.c: New files.
21472 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
21474         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21475         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21476         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
21477         * config/moxie/moxie.c (moxie_function_value): Make static.
21478         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
21479         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21481 2010-06-10  Martin Jambor  <mjambor@suse.cz>
21483         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
21484         * dbgcnt.def (tree_sra): New counter.
21485         * tree-sra.c: Include dbgcnt.h.
21486         (gate_intra_sra): Check tree_sra debug counter.
21488 2010-06-10  Martin Jambor  <mjambor@suse.cz>
21490         PR tree-optimization/44258
21491         * tree-sra.c (build_access_subtree): Return false iff there is a
21492         partial overlap.
21493         (build_access_trees): Likewise.
21494         (analyze_all_variable_accesses): Disqualify candidates if
21495         build_access_trees returns true for them.
21497 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
21499         PR debug/41371
21500         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
21501         tail-recurse into canonical node.  Fast-forward over
21502         non-canonical VALUEs.
21504 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
21506         PR boostrap/44470
21507         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
21508         (*addsi_1_zext) <TYPE_LEA>: Likewise.
21509         (add lea splitter): Likewise.
21510         (add_zext lea splitter): Likewise.
21512 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
21514         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
21516 2010-06-10  Jan Hubicka  <jh@suse.cz>
21518         * df-problems.c (df_live_problem_data): Add live_bitmaps.
21519         (df_live_alloc): Initialize problem data and live_osbtacks.
21520         (df_live_finalize): Remove obstack, problem data; do not
21521         clear all bitmaps.
21522         (df_live_top_dump, df_live_bottom_dump): Do not dump old
21523         data when not allocated.
21524         (df_live_verify_solution_start): Do not allocate problem data.
21525         (df_live_verify_solution_end): Check if out is allocated.
21526         (struct df_md_problem_data): New structure.
21527         (df_md_alloc): Allocate problem data.
21528         (df_md_free): Free problem data; do not clear bitmaps.
21530 2010-06-10  Jan Beulich  <jbeulich@novell.com>
21532         PR bootstrap/37304
21533         * configure.ac: Replace $() with ${} when intending to expand
21534         variables rather than invoking commands.
21535         * configure: Re-generate.
21537 2010-06-10  Jan Hubicka  <jh@suse.cz>
21539         PR rtl-optimization/44460
21540         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
21541         TYPE_NEEDS_CONSTRUCTING sanity check.
21543 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
21545         * doc/include/fdl.texi: Move to GFDL version 1.3.
21547         * doc/cpp.texi: Move to GFDL version 1.3.
21548         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
21549         * doc/gccint.texi: Move to GFDL version 1.3.
21550         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
21551         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
21552         * doc/invoke.texi: Move to GFDL version 1.3.
21554 2010-06-09  Jan Hubicka  <jh@suse.cz>
21556         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
21557         Break out from ...
21558         (propagate) ... here; swap the order.
21560 2010-06-09  Jan Hubicka  <jh@suse.cz>
21562         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
21563         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
21564         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
21565         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
21567 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
21569         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
21570         Do not the gather memory reference in the outer loop if the step
21571         is not a constant.
21573 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
21575         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
21576         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
21577         8 to 4.  Minor change of the related comments.
21579 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
21581         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
21582         the scev analysis when the variable is not used outside the loop
21583         in a close phi node: call compute_overall_effect_of_inner_loop.
21585 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
21587         * graphite-sese-to-poly.c (single_pred_cond): Renamed
21588         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
21589         (build_sese_conditions_before): Renamed call to single_pred_cond.
21590         (build_sese_conditions_after): Same.
21592 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
21594         * graphite-poly.h: Fix comments and indentation.
21595         * graphite-sese-to-poly.c: Same.
21596         (build_sese_conditions_before): Compute stmt and gbb only when needed.
21597         * tree-chrec.c: Fix comments and indentation.
21598         (tree-ssa-loop-niter.c): Same.
21600 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
21602         PR rtl-optimization/42461
21603         * dce.c (deletable_insn_p): Return true for const or pure calls again.
21604         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
21606 2010-06-09  Jan Hubicka  <jh@suse.cz>
21608         * bitmap.c (bitmap_and): Walk array forward.
21609         (bitmap_and_compl_into): Likewise.
21610         (bitmap_xor): Likewise.
21611         (bitmap_xor_into):  Likewise.
21612         (bitmap_equal_p): Likewise.
21613         (bitmap_intersect_p): Likewise.
21614         (bitmap_intersect_compl_p): Likewise.
21615         (bitmap_ior_and_into): Likewise.
21616         (bitmap_elt_copy): Likewise.
21617         (bitmap_and_compl): Likewise.
21618         (bitmap_elt_ior): Likewise.
21620 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
21622         * opts-common.c (prune_options): Ensure replacement argv array
21623         is correctly terminated by a NULL entry.
21625 2010-06-09  Jan Hubicka  <jh@suse.cz>
21627         * cgraph.h (varpool_first_static_initializer,
21628         varpool_next_static_initializer): Make checking only when
21629         checking enabled.
21630         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
21631         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
21632         gcc_assert to gcc_checking_assert.
21633         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
21634         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
21635         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
21636         op_iter_init_phiuse, op_iter_init_phidef,
21637         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
21638         gcc_checking_assert.
21639         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
21640         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
21641         partition_is_global, live_on_entry, live_on_exit,
21642         live_merge_and_clear): Likewise.
21643         * system.h (gcc_checking_assert): New macro.
21644         * gimple.h (set_bb_seq): Use gcc_checking_assert.
21646 2010-06-09  Jason Merrill  <jason@redhat.com>
21648         * Makefile.in (TAGS): Collect tags info from c-family.
21650 2010-06-09  Jan Hubicka  <jh@suse.cz>
21652         * gimple.h (gcc_gimple_checking_assert): New macro.
21653         (gimple_set_def_ops, gimple_set_use_ops,
21654         gimple_set_vuse, gimple_set_vdef,
21655         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
21656         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
21657         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
21658         gimple_asm_output_op, gimple_asm_output_op_ptr,
21659         gimple_asm_set_output_op, gimple_asm_clobber_op,
21660         gimple_asm_set_clobber_op, gimple_asm_label_op,
21661         gimple_asm_set_label_op, gimple_try_set_kind,
21662         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
21663         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
21664         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
21665         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
21666         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
21667         gimple_omp_for_set_initial, gimple_omp_for_final,
21668         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
21669         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
21670         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
21671         conditional with ENABLE_GIMPLE_CHECKING.
21672         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
21674 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
21676         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
21677         (get_computation_cost_at): Use it.
21678         (determine_use_iv_cost_condition): Likewise.
21679         (determine_iv_cost): Likewise.
21681 2010-06-09  Richard Guenther  <rguenther@suse.de>
21683         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
21684         replace constants.
21686 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
21688         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
21690 2010-06-09  Martin Jambor  <mjambor@suse.cz>
21692         PR tree-optimization/44423
21693         * tree-sra.c (dump_access): Dump also grp_assignment_read.
21694         (analyze_access_subtree): Pass negative allow_replacements to children
21695         if the current type is scalar.
21697 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
21699         PR testsuite/42843
21700         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
21701         * doc/plugins.texi (Plugin license check): Update information
21702         on type of plugin_is_GPL_compatible.
21703         * Makefile.in (PLUGINCC): Define as $(COMPILER).
21704         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
21706 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
21708         * config/arm/arm.c (thumb2_reorg): New function.
21709         (arm_reorg): Call it.
21710         * config/arm/thumb2.md (define_peephole2 for flag clobbering
21711         arithmetic operations): Delete.
21713 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
21715         PR target/44067
21716         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
21717         e500v2 target.
21719 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
21721         PR plugins/44459
21722         * gcc-plugin.h: Encapsulate all declarations in extern "C".
21724 2010-06-08  Jan Hubicka  <jh@suse.cz>
21726         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
21727         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
21729 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
21731         PR tree-optimization/39874
21732         PR middle-end/28685
21733         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
21734         Declare.
21735         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
21736         same_bool_result_p): New.
21737         (and_var_with_comparison, and_var_with_comparison_1,
21738         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
21739         (or_var_with_comparison, or_var_with_comparison_1,
21740         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
21741         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
21742         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
21743         of combine_comparisons.
21744         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
21746 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
21748         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21749         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21750         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
21751         pdp11_function_value_regno_p): New functions.
21752         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21753         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21755 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
21757         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
21758         Thumb-2 in the MINUS case.
21760 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21762         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
21764         * doc/gty.texi (GTY Options): Document typed GC allocation and
21765         variable_size GTY option.
21767         * ggc-internal.h: New.
21769         * ggc.h: Update copyright year.
21770         (digit_string): Move to stringpool.c.
21771         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
21772         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
21773         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
21774         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
21775         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
21776         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
21777         (ggc_force_collect, ggc_get_size, ggc_statistics)
21778         (ggc_print_common_statistics): Move to ggc-internal.h.
21779         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
21780         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
21781         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
21782         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
21783         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
21784         (ggc_alloc_zone_pass_stat): Remove.
21785         (ggc_internal_alloc_stat, ggc_internal_alloc)
21786         (ggc_internal_cleared_alloc_stat): New.
21787         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
21788         (ggc_internal_vec_alloc_stat)
21789         (ggc_internal_cleared_vec_alloc_stat)
21790         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
21791         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
21792         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
21793         (ggc_cleared_alloc_ptr_array_two_args): New.
21794         (htab_create_ggc, splay_tree_new_ggc): Redefine.
21795         (ggc_splay_alloc): Change the type of the first argument to
21796         enum gt_types_enum.
21797         (ggc_alloc_string): Make macro.
21798         (ggc_alloc_string_stat): New.
21799         (ggc_strdup): Redefine.
21800         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
21801         (ggc_alloc_rtvec_sized): New.
21802         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
21803         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
21804         (ggc_internal_cleared_alloc_zone_stat)
21805         (ggc_internal_zone_alloc_stat)
21806         (ggc_internal_zone_cleared_alloc_stat)
21807         (ggc_internal_zone_vec_alloc_stat)
21808         (ggc_alloc_zone_rtx_def_stat)
21809         (ggc_alloc_zone_tree_node_stat)
21810         (ggc_alloc_zone_cleared_tree_node_stat)
21811         (ggc_alloc_cleared_gimple_statement_d_stat): New.
21813         * ggc-common.c: Include ggc-internal.h.
21814         (ggc_internal_cleared_alloc_stat): Rename from
21815         ggc_alloc_cleared_stat.
21816         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
21817         (ggc_calloc): Remove.
21818         (ggc_cleared_alloc_htab_ignore_args): New.
21819         (ggc_cleared_alloc_ptr_array_two_args): New.
21820         (ggc_splay_alloc): Add obj_type parameter.
21821         (init_ggc_heuristics): Formatting fixes.
21823         * ggc-none.c: Update copyright year.
21824         (ggc_alloc_stat): Rename to ggc_alloc_stat.
21825         (ggc_alloc_cleared_stat): Rename to
21826         ggc_internal_cleared_alloc_stat.
21827         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
21829         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
21830         Remove references to ggc_alloc in comments.
21831         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
21832         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
21833         (new_ggc_zone, destroy_ggc_zone): Remove.
21834         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
21836         * ggc-zone.c: Include ggc-internal.h.  Remove references to
21837         ggc_alloc in comments.
21838         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
21839         (ggc_internal_alloc_zone_pass_stat): New.
21840         (ggc_internal_cleared_alloc_zone_stat): New.
21841         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
21842         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
21843         (new_ggc_zone, destroy_ggc_zone): Remove.
21845         * stringpool.c: Update copyright year.  Include ggc-internal.h
21846         (digit_vector): Make static.
21847         (digit_string): Moved from ggc.h.
21848         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
21849         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
21851         * Makefile.in (GGC_INTERNAL_H): New.
21852         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
21853         $(GGC_INTERNAL_H) to dependencies.
21855         * gentype.c: Update copyright year.
21856         (walk_type): Accept variable_size GTY option.
21857         (USED_BY_TYPED_GC_P): New macro.
21858         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
21859         whitespace at the end of strings.
21860         (get_type_specifier, variable_size_p): New functions.
21861         (alloc_quantity, alloc_zone): New enums.
21862         (write_typed_alloc_def): New function.
21863         (write_typed_struct_alloc_def): Likewise.
21864         (write_typed_typed_typedef_alloc_def): Likewise.
21865         (write_typed_alloc_defns): Likewise.
21866         (output_typename, write_splay_tree_allocator_def): Likewise.
21867         (write_splay_tree_allocators): Likewise.
21868         (main): Call write_typed_alloc_defns and
21869         write_splay_tree_allocators.
21871         * lto-streamer.h (lto_file_decl_data_ptr): New.
21873         * passes.c (order): Define using cgraph_node_ptr.
21875         * strinpool.c (struct string_pool_data): Declare nested_ptr using
21876         ht_identifier_ptr.
21878         * gimple.h (union gimple_statement_d): Likewise.
21880         * rtl.h (struct rtx_def): Likewise.
21881         (struct rtvec_def): Likewise.
21883         * tree.h (union tree_node): Likewise.
21885         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
21887         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
21889         * tree-scalar-evolution.c (scev_initialize): Likewise.
21891         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
21893         * dwarf2asm.c (dw2_force_const_mem): Likewise.
21895         * omp-low.c (lower_omp_critical): Likewise.
21897         * bitmap.h (struct bitmap_head_def): Update comment to not
21898         reference ggc_alloc.
21900         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
21902         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
21904         * ipa-prop.c (duplicate_ggc_array): Rename to
21905         duplicate_ipa_jump_func_array.  Use typed GC allocation.
21906         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
21908         * gimple.c (gimple_alloc_stat): Use
21909         ggc_alloc_cleared_gimple_statement_d_stat.
21911         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
21913         * tree.c (make_node_stat): Use
21914         ggc_alloc_zone_cleared_tree_node_stat.
21915         (make_tree_vec_stat): Likewise.
21916         (build_vl_exp_stat): Likewise.
21917         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
21918         (make_tree_binfo_stat): Likewise.
21919         (tree_cons_stat): Likewise.
21921         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
21922         (shallow_copy_rtx_stat): Likewise.
21923         (make_node_stat): Likewise.
21925         * lto-symtab.c: Fix comment.
21927         * tree-cfg.c (create_bb): Update comment to not reference
21928         ggc_alloc_cleared.
21929         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
21931         * varpool.c (varpool_node): Use typed GC allocation.
21932         (varpool_extra_name_alias): Likewise.
21934         * varasm.c (emutls_decl): Likewise.
21935         (get_unnamed_section): Likewise.
21936         (get_noswitch_section): Likewise.
21937         (get_section): Likewise.
21938         (get_block_for_section): Likewise.
21939         (build_constant_desc): Likewise.
21940         (create_constant_pool): Likewise.
21941         (force_const_mem): Likewise.
21943         * tree.c (build_vl_exp_stat): Likewise.
21944         (build_real): Likewise.
21945         (build_string): Likewise.
21946         (decl_debug_expr_insert): Likewise.
21947         (decl_value_expr_insert): Likewise.
21948         (type_hash_add): Likewise.
21949         (build_omp_clause): Likewise.
21951         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
21953         * tree-ssa.c (init_tree_ssa): Likewise.
21955         * tree-ssa-structalias.c (heapvar_insert): Likewise.
21957         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
21959         * tree-ssa-loop-niter.c (record_estimate): Likewise.
21961         * tree-ssa-alias.c (get_ptr_info): Likewise.
21963         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
21965         * tree-phinodes.c (allocate_phi_node): Likewise.
21967         * tree-iterator.c (tsi_link_before): Likewise.
21968         (tsi_link_after): Likewise.
21970         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
21972         * tree-dfa.c (create_var_ann): Likewise.
21974         * tree-cfg.c (create_bb): Likewise.
21976         * toplev.c (alloc_for_identifier_to_locale): Likewise.
21977         (general_init): Likewise.
21979         * stringpool.c (stringpool_ggc_alloc): Likewise.
21980         (gt_pch_save_stringpool): Likewise.
21982         * sese.c (if_region_set_false_region): Likewise.
21984         * passes.c (do_per_function_toporder): Likewise.
21986         * optabs.c (set_optab_libfunc): Likewise.
21987         (set_conv_libfunc): Likewise.
21989         * lto-symtab.c (lto_symtab_register_decl): Likewise.
21991         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
21992         (input_eh_region): Likewise.
21993         (input_eh_lp): Likewise.
21994         (make_new_block): Likewise.
21995         (unpack_ts_real_cst_value_fields): Likewise.
21997         * lto-section-in.c (lto_new_in_decl_state): Likewise.
21999         * lto-cgraph.c (input_node_opt_summary): Likewise.
22001         * loop-init.c (loop_optimizer_init): Likewise.
22003         * lambda.h (lambda_vector_new): Likewise.
22005         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
22007         * ira.c (update_equiv_regs): Likewise.
22009         * ipa.c (cgraph_node_set_new): Likewise.
22010         (cgraph_node_set_add): Likewise.
22011         (varpool_node_set_new): Likewise.
22012         (varpool_node_set_add): Likewise.
22014         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
22015         (duplicate_ipa_jump_func_array): Likewise.
22016         (ipa_read_node_info): Likewise.
22018         * ipa-cp.c (ipcp_create_replace_map): Likewise.
22020         * integrate.c (get_hard_reg_initial_val): Likewise.
22022         * gimple.c (gimple_alloc_stat): Likewise.
22023         (gimple_build_omp_for): Likewise.
22024         (gimple_seq_alloc): Likewise.
22025         (gimple_copy): Likewise.
22027         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
22028         (gsi_insert_after_without_update): Likewise.
22030         * function.c (add_frame_space): Likewise.
22031         (insert_temp_slot_address): Likewise.
22032         (assign_stack_temp_for_type): Likewise.
22033         (allocate_struct_function): Likewise.
22034         (types_used_by_var_decl_insert): Likewise.
22036         * except.c (init_eh_for_function): Likewise.
22037         (gen_eh_region): Likewise.
22038         (gen_eh_region_catch): Likewise.
22039         (gen_eh_landing_pad): Likewise.
22040         (add_call_site): Likewise.
22042         * emit-rtl.c (get_mem_attrs): Likewise.
22043         (get_reg_attrs): Likewise.
22044         (start_sequence): Likewise.
22045         (init_emit): Likewise.
22047         * dwarf2out.c (new_cfi): Likewise.
22048         (queue_reg_save): Likewise.
22049         (dwarf2out_frame_init): Likewise.
22050         (new_loc_descr): Likewise.
22051         (find_AT_string): Likewise.
22052         (new_die): Likewise.
22053         (add_var_loc_to_decl): Likewise.
22054         (clone_die): Likewise.
22055         (clone_as_declaration): Likewise.
22056         (break_out_comdat_types): Likewise.
22057         (new_loc_list): Likewise.
22058         (loc_descriptor): Likewise.
22059         (add_loc_descr_to_each): Likewise.
22060         (add_const_value_attribute): Likewise.
22061         (tree_add_const_value_attribute): Likewise.
22062         (add_comp_dir_attribute): Likewise.
22063         (add_name_and_src_coords_attributes): Likewise.
22064         (lookup_filename): Likewise.
22065         (store_vcall_insn): Likewise.
22066         (dwarf2out_init): Likewise.
22068         * dbxout.c (dbxout_init): Likewise.
22070         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
22072         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
22074         * config/score/score7.c (score7_output_external): Likewise.
22076         * config/score/score3.c (score3_output_external): Likewise.
22078         * config/s390/s390.c (s390_init_machine_status): Likewise.
22080         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
22081         (rs6000_init_machine_status): Likewise.
22082         (output_toc): Likewise.
22084         * config/pa/pa.c (pa_init_machine_status): Likewise.
22085         (get_deferred_plabel): Likewise.
22087         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
22089         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
22091         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
22093         * config/mep/mep.c (mep_init_machine_status): Likewise.
22094         (mep_note_pragma_flag): Likewise.
22096         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
22098         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
22100         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
22102         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
22103         (i386_pe_maybe_record_exported_symbol): Likewise.
22105         * config/i386/i386.c (get_dllimport_decl): Likewise.
22106         (ix86_init_machine_status): Likewise.
22107         (assign_386_stack_local): Likewise.
22109         * config/frv/frv.c (frv_init_machine_status): Likewise.
22111         * config/darwin.c (machopic_indirection_name): Likewise.
22113         * config/cris/cris.c (cris_init_machine_status): Likewise.
22115         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
22117         * config/avr/avr.c (avr_init_machine_status): Likewise.
22119         * config/arm/arm.c (arm_init_machine_status): Likewise.
22121         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
22122         (alpha_need_linkage): Likewise.
22123         (alpha_use_linkage): Likewise.
22125         * cgraph.c (cgraph_allocate_node): Likewise.
22126         (cgraph_create_edge_1): Likewise.
22127         (cgraph_create_indirect_edge): Likewise.
22128         (cgraph_add_asm_node): Likewise.
22130         * cfgrtl.c (init_rtl_bb_info): Likewise.
22132         * cfgloop.c (alloc_loop): Likewise.
22133         (rescan_loop_exit): Likewise.
22135         * cfg.c (init_flow): Likewise.
22136         (alloc_block): Likewise.
22137         (unchecked_make_edge): Likewise.
22139         * c-parser.c (c_parse_init): Likewise.
22140         (c_parse_file): Likewise.
22142         * c-decl.c (bind): Likewise.
22143         (record_inline_static): Likewise.
22144         (push_scope): Likewise.
22145         (make_label): Likewise.
22146         (lookup_label_for_goto): Likewise.
22147         (finish_struct): Likewise.
22148         (finish_enum): Likewise.
22149         (c_push_function_context): Likewise.
22151         * bitmap.c (bitmap_element_allocate): Likewise.
22152         (bitmap_gc_alloc_stat): Likewise.
22154         * alias.c (record_alias_subset): Likewise.
22155         (init_alias_analysis): Likewise.
22157 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
22159         * fold-const.c (fold_comparison): Remove redundant parenthesis.
22160         * tree-inline.c (expand_call_inline): Pass translated return value of
22161         cgraph_inline_failed_string to diagnostic function.
22163 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
22164             Shujing Zhao  <pearly.zhao@oracle.com>
22166         PR c/37724
22167         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
22168         implicit bad conversions is initialization.
22169         (error_init): Use gmsgid instead of msgid for argument name and change
22170         the call for error.
22171         (pedwarn_init): Use gmsgid instead of msgid for argument name and
22172         change the call for pedwarn.
22173         (warning_init): Use gmsgid instead of msgid for argument name and
22174         change the call for warning.
22176 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
22178         * config/mips/mips-protos.h (mips_print_operand): Delete.
22179         (mips_print_operand_address): Delete.
22180         * config/mips/mips.h (mips_print_operand_punct): Delete.
22181         (PRINT_OPERAND): Delete.
22182         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22183         (PRINT_OPERAND_ADDRESS): Delete.
22184         * config/mips/mips.c (mips_print_operand_punct): Make static.
22185         (mips_print_operand_address): Make static.
22186         (mips_print_operand): Make static.  Call
22187         mips_print_operand_punct_valid_p.
22188         (mips_print_operand_punct_valid_p): New function.
22189         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22190         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22192 2010-06-07  Jan Hubicka  <jh@suse.cz>
22194         PR middle-end/44454
22195         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
22196         are allocated.
22198 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
22200         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
22201         name of RECORD.
22203 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22205         * doc/sourcebuild.texi (Effective-Target Keywords, Other
22206         attributes): Document gas.
22208 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
22210         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
22211         <TYPE_LEA>: Split instruction.
22212         <default>: Remove alternative 2 handling.
22213         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
22214         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
22215         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
22217         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
22218         (ashift_zext lea splitter): Use DImode for multiplication.
22220         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
22221         to generate addition.
22223 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
22225         * common.opt (fira-verbose): Use Var.
22226         (fpcc-struct-return): Use Init instead of VarExists.
22227         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
22228         toplev.c.
22229         * flags.h (flag_signed_char, flag_short_enums,
22230         flag_pcc_struct_return, flag_ira_verbose,
22231         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
22232         * toplev.c (flag_detailed_statistics, flag_signed_char,
22233         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
22234         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
22235         * toplev.h (flag_crossjumping, flag_if_conversion,
22236         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
22237         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
22238         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
22239         flag_cprop_registers, time_report, flag_ira_loop_pressure,
22240         flag_ira_coalesce, flag_ira_move_spills,
22241         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
22243 2010-06-07  Jan Hubicka  <jh@suse.cz>
22245         * df-core.c (df_analyze_problem): Do verification after allocation.
22247         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
22248         (df_lr_alloc): Initialize problem data; move bitmaps to
22249         lr_bitmaps obstack.
22250         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
22251         (df_lr_verify_solution_start): Do not initialize problem data;
22252         allocate bitmaps in lr_bitmaps.
22253         (df_lr_verify_solution_end): Do not free problem data.
22255 2010-06-07  Jan Hubicka  <jh@suse.cz>
22257         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
22258         if caller is noreturn.
22259         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
22260         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
22261         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
22262         * ipa-pure-const.c (check_decl): Add IPA parameter.
22263         (state_from_flags): New function.
22264         (better_state, worse_state): New functions.
22265         (check_call): When in IPA mode, do not care about callees.
22266         (check_load, check_store): Update.
22267         (check_ipa_load, check_ipa_store): New.
22268         (check_stmt): When in IPA mode, use IPA checkers.
22269         (analyze_function): Use state_from_flags.
22270         (propagate): Check indirect edges and references.
22272 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
22274         PR rtl-optimization/44404
22275         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
22276         of count_occurrences to see if it's safe to modify mem_insn.
22278 2010-06-07  Richard Guenther  <rguenther@suse.de>
22280         * gimplify.c (gimplify_cleanup_point_expr): For empty body
22281         and EH-only cleanup drop the cleanup instead of inserting it
22282         unconditionally.
22284 2010-06-07  Ira Rosen  <irar@il.ibm.com>
22286         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
22287         documentation.
22288         * targhooks.c (default_builtin_vectorization_cost): New function.
22289         * targhooks.h (default_builtin_vectorization_cost): Declare.
22290         * target.h (enum vect_cost_for_stmt): Define.
22291         (builtin_vectorization_cost): Change argument and comment.
22292         * tree-vectorizer.h: Remove cost model macros.
22293         * tree-vect-loop.c: Include target.h.
22294         (vect_get_cost): New function.
22295         (vect_estimate_min_profitable_iters): Replace cost model macros with
22296         calls to vect_get_cost.
22297         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
22298         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
22299         default implementation.
22300         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
22301         calls to target hook builtin_vectorization_cost.
22302         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
22303         Likewise.
22304         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
22305         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
22306         implementation to return costs.
22307         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
22308         * config/spu/spu.h: Remove vectorizer cost model macros.
22309         * config/i386/i386.h: Likewise.
22310         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
22311         a call to target hook builtin_vectorization_cost.
22313 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
22315         PR target/44319
22316         * config/i386/i386.c (override_options): Turn zee pass on for level 2
22317         and above and defer till target is known.
22318         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
22319         turn off otherwise.
22321 2010-05-25  Jan Hubicka  <jh@suse.cz>
22323         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
22324         (df_compact_blocks): Likewise.
22325         * df.h (struct df): Turn hardware_regs_used,
22326         regular_block_artificial_uses, eh_block_artificial_uses,
22327         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
22328         bitmap_head.
22329         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
22330         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
22331         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
22332         df_scan_blocks, df_insn_delete, df_insn_rescan,
22333         df_insn_rescan_debug_internal, df_insn_rescan_all,
22334         df_process_deferred_rescans, df_process_deferred_rescans,
22335         df_notes_rescan, df_get_call_refs, df_get_call_refs,
22336         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
22337         df_record_entry_block_defs, df_record_exit_block_uses,
22338         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
22339         df_scan_verify): Update.
22341 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
22343         PR c++/44188
22344         * c-common.c (is_typedef_decl): Move this definition ...
22345         * tree.c (is_typedef_decl): ... here.
22346         (typdef_variant_p): Move definition here from cp/tree.c.
22347         * c-common.h (is_typedef_decl): Move this declaration ...
22348         * tree.h (is_typedef_decl): ... here.
22349         (typedef_variant_p): Move declaration here from cp/cp-tree.h
22350         * dwarf2out.c (is_naming_typedef_decl): New function.
22351         (gen_tagged_type_die): Split out of ...
22352         (gen_type_die_with_usage): ... this function. When an anonymous
22353         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22354         is emitted for the typedef.
22355         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22356         anonymous tagged types.
22358 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22360         PR c/20000
22361         * c-decl.c (grokdeclarator): Delete warning.
22363 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22365         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
22366         newly built CALL_EXPR.
22367         * tree-profile.c (tree_profiling): Don't profile functions produced
22368         for built-in stuff.
22370 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
22372         PR bootstrap/44427
22373         PR bootstrap/44428
22374         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
22375         endianness-independent.
22377 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
22379         * c-common.c: Move to c-family/.
22380         * c-common.def: Likewise.
22381         * c-common.h: Likewise.
22382         * c-cppbuiltin.c: Likewise.
22383         * c-dump.c: Likewise.
22384         * c-format.c: Likewise.
22385         * c-format.h : Likewise.
22386         * c-gimplify.c: Likewise.
22387         * c-lex.c: Likewise.
22388         * c-omp.c: Likewise.
22389         * c.opt: Likewise.
22390         * c-opts.c: Likewise.
22391         * c-pch.c: Likewise.
22392         * c-ppoutput.c: Likewise.
22393         * c-pragma.c: Likewise.
22394         * c-pragma.h: Likewise.
22395         * c-pretty-print.c: Likewise.
22396         * c-pretty-print.h: Likewise.
22397         * c-semantics.c: Likewise.
22398         * stub-objc.c: Likewise.
22400         * gengtype.c (get_file_langdir): Special-case files in c-family/.
22401         (get_output_file_with_visibility): Fix name for c-common.h.
22402         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
22404         * c-tree.h: Update include path for moved files.
22405         * c-lang.c: Likewise.
22406         * c-lang.h: Likewise.
22407         * c-parser.c: Likewise.
22408         * c-convert.c: Likewise.
22409         * c-decl.c: Likewise.
22410         * c-objc-common.c: Likewise.
22411         * configure.ac: Make sure c-family/ exists in the build directory.
22412         * configure: Regenerate.
22413         * Makefile.in: Update paths for moved files.  Regroup files per
22414         location and update dependencies.  Move generated_files down after
22415         ALL_GTFILES_H.
22417         * config/spu/spu-c.c: Update paths for moved files.
22418         * config/mep/mep-pragma.c: Likewise.
22419         * config/darwin-c.c: Likewise.
22420         * config/i386/msformat-c.c: Likewise.
22421         * config/i386/i386-c.c: Likewise.
22422         * config/avr/avr-c.c: Likewise.
22423         * config/sol2-c.c: Likewise.
22424         * config/ia64/ia64-c.c: Likewise.
22425         * config/rs6000/rs6000-c.c: Likewise.
22426         * config/arm/arm.c: Likewise.
22427         * config/arm/arm-c.c: Likewise.
22428         * config/h8300/h8300.c: Likewise.
22429         * config/v850/v850-c.c: Likewise.
22431         * config/t-darwin: Fix dependencies for moved files.
22432         * config/t-sol2: Fix dependencies for moved files.
22433         * config/mep/t-mep: Fix dependencies for moved files.
22434         * config/ia64/t-ia64: Fix dependencies for moved files.
22435         * config/rs6000/t-rs6000: Fix dependencies for moved files.
22436         * config/v850/t-v850: Fix dependencies for moved files.
22437         * config/v850/t-v850e: Fix dependencies for moved files.
22439         * config/m32c/m32c-pragma.c
22441         * po/exgettext: Look in c-family/ also.
22443 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
22445         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
22446         (mark_control_dependent_edges_necessary): Call it instead of marking
22447         the last statement manually.
22448         (propagate_necessity): Likewise.
22450 2010-06-05  Jan Hubicka  <jh@suse.cz>
22452         * basic-block.h (compute_dominance_frontiers): Updated.
22453         (compute_idf): Likewise.
22455         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
22456         for dominance frontiers.
22457         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
22458         (insert_updated_phi_nodes_for): Likewise.
22459         (update_ssa): Likewise.
22460         * cfganal.c (compute_dominance_frontiers_1): Likewise.
22461         (compute_dominance_frontiers): Likewise.
22462         (compute_idf): Likewise.
22463         * df-problems.c (df_md_local_compute): Likewise.
22465 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
22467         * target.h (struct gcc_target): Add memory_move_cost field.
22468         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
22469         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
22470         * targhooks.c (default_memory_move_cost): New function.
22471         * targhooks.h (default_memory_move_cost): Declare function.
22472         * reload.h (memory_move_cost): Declare.
22473         (memory_move_secondary_cost): Change type of 'in' argument to bool.
22474         * reginfo.c (memory_move_cost): New function.
22475         (memory_move_secondary_cost): Change type of 'in' argument to bool.
22476         * ira.h (ira_memory_move_cost): Update comment.
22477         * ira.c (ira_memory_move_cost): Update comment.
22478         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
22479         with memory_move_cost.
22480         * postreload.c (reload_cse_simplify_set): (Ditto.).
22481         * reload1.c (choose_reload_regs): (Ditto.).
22482         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
22483         (MEMORY_MOVE_COST):  Revise documentation.
22485         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
22486         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
22487         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
22488         type of 'in' argument to bool.
22489         (TARGET_MEMORY_MOVE_COST): Define.
22491 2010-06-05  Jan Hubicka  <jh@suse.cz>
22493         * ipa-pure-const.c (propagate): Fix typo in handling of functions
22494         that cannot return.  Be more careful when merging the results with
22495         previously known ones.
22497 2010-06-05  Matthias Klose  <doko@ubuntu.com>
22499         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
22500         function to add the -iplugindir option.
22501         (find_plugindir_spec_function): Add new declaration and function.
22502         (static_spec_func): Use it for "find-plugindir".
22504 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
22506         PR c++/44361
22507         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
22508         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
22509         statement expression.
22511 2010-06-05  Jan Hubicka  <jh@suse.cz>
22513         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
22514         (df_rd_problem_data): Convert sparse_invalidated_by_call,
22515         dense_invalidated_by_call to bitmap head.
22516         (df_rd_alloc, df_rd_bb_local_compute_process_def,
22517         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
22518         df_rd_start_dump, df_lr_verify_transfer_functions,
22519         df_live_verify_transfer_functions, df_chain_create_bb,
22520         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
22521         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
22522         df_simulate_one_insn_forwards, df_md_alloc,
22523         df_md_bb_local_compute_process_def,
22524         df_md_bb_local_compute_process_def, df_md_local_compute,
22525         df_md_transfer_function df_md_free): Update.
22527 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
22529         PR c/44322
22530         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
22531         target type for ADDR_EXPR; require no changes to qualifiers except
22532         for function types.
22533         * c-tree.h (c_build_type_variant): Remove.
22535 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
22537         * genautomata.c (get_excl_set): Do work per element, not per char.
22538         (check_presence_pattern_sets): Similar.
22539         (check_absence_pattern_sets): Similar.
22541 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
22543         * genautomata.c (curr_state_pass_num): Delete.
22544         (min_issue_delay_pass_states): Delete.
22545         (min_issue_delay): Delete.
22546         (initiate_min_issue_delay_pass_states): Delete.
22547         (output_min_issue_delay_table): Compute min_issue_delay_vect
22548         using a breadth-first search variant.
22549         (output_tables): Don't call initiate_min_issue_delay_pass_states.
22551 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22553         PR boostrap/44421
22554         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
22555         (df_byte_lr_bb_local_compute): Likewise.
22557 2010-06-03  Jason Merrill  <jason@redhat.com>
22559         Implement noexcept operator (5.3.7)
22560         * c-common.c (c_common_reswords): Add noexcept.
22561         * c-common.h (enum rid): Add RID_NOEXCEPT.
22563 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
22565         * config/darwin-driver.c (darwin_default_min_version): Use
22566         GCC-specific formats in diagnostics.
22567         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
22568         diagnostics.
22569         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
22570         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
22571         eval_spec_function, handle_braces, process_brace_body, main,
22572         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
22573         getenv_spec_function, compare_version_strings,
22574         version_compare_spec_function): Use GCC-specific formats in
22575         diagnostics.
22577 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
22579         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
22580         that operand 0 and operand 1 are equal.
22581         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
22582         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
22583         and operand 1 are equal.
22584         <default>: Ditto.  Remove ??? comment.
22585         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
22586         and operand 1 are equal.
22587         <default>: Ditto.  Remove ??? comment.
22588         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
22589         are equal.
22590         (*add<mode>_4) <default>: Ditto.
22591         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
22593 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
22595         * config/i386/i386-protos.h (ix86_print_operand): Declare.
22596         * config/i386/i386.c (ix86_print_operand): Make non-static.
22597         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
22598         * output.h (output_operand): Declare.
22599         * final.c (output_operand): Make non-static.
22601 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
22603         PR rtl-optimization/44013
22604         * sched-deps.c (add_dependence_list_and_free): Don't free lists
22605         when processing debug insns.
22607         PR debug/41371
22608         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
22609         recursing.  Check that recursion is bounded.  Rename inner var
22610         to avoid hiding incoming argument.
22612 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
22614         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
22615         operands[2] == 255.
22616         (*addqi_3): Ditto.
22617         (*addqi_4): Ditto.
22618         (*addqi_5): Ditto.
22619         (*addqi_ext_1_rex64): Ditto.
22620         (*addqi_ext_1): Ditto.
22622         (*addqi_4): Check for incdec_operand in QImode.
22624         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
22625         using SWI mode iterator.
22626         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
22627         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
22628         mode iterator.
22629         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
22630         using SWI mode iterator.
22632 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22634         PR c/25880
22635         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
22636         * c-format.c (gcc_diag_flag_specs): Add hash.
22637         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
22638         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
22639         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
22640         pp_c_cv_qualifiers. Handle qualifiers spelling here.
22641         (pp_c_type_qualifier_list): Call the function above.
22642         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
22643         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
22644         (WARN_FOR_QUALIFIERS): New macro.
22645         (convert_for_assignment): Use it.
22647 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
22649         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
22651 2010-06-04  Jan Hubicka  <jh@suse.cz>
22653         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
22654         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
22655         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
22656         DF_BYTE_LR_OUT): Update for embedded bitmaps.
22657         * fwprop.c (single_def_use_enter_block): Likewise.
22658         * ddg.c (create_ddg_dep_from_intra_loop_link,
22659         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
22660         * loop-iv.c (latch_dominating_def): Likewise.
22661         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
22662         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
22663         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
22664         df_rd_transfer_function, df_rd_top_dump,
22665         df_rd_bottom_dump): Update.
22666         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
22667         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
22668         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
22669         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
22670         df_lr_verify_solution_start, df_lr_verify_solution_end,
22671         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
22672         df_live_free_bb_info, df_live_alloc, df_live_reset,
22673         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
22674         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
22675         df_live_verify_solution_start, df_live_verify_solution_end,
22676         df_live_verify_transfer_functions, df_chain_create_bb,
22677         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
22678         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
22679         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
22680         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
22681         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
22682         df_byte_lr_transfer_function, df_byte_lr_top_dump,
22683         df_byte_lr_bottom_dump, df_create_unused_note,
22684         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
22685         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
22686         df_md_transfer_function, df_md_init, df_md_confluence_0,
22687         df_md_confluence_n,
22688         df_md_top_dump, df_md_bottom_dump): Update.
22689         (struct df_lr_problem_data): Embedd bitmap headers.
22691 2010-06-04  Jan Hubicka  <jh@suse.cz>
22693         * dce.c (dce_process_block): Do not re-scan already marked
22694         instructions.
22696 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22698         PR rtl-optimization/39871
22699         PR rtl-optimization/40615
22700         PR rtl-optimization/42500
22701         PR rtl-optimization/42502
22702         * ira.c (init_reg_equiv_memory_loc: New function.
22703         (ira): Call it twice.
22704         * reload.h (calculate_elim_costs_all_insns): Declare.
22705         * ira-costs.c: Include "reload.h".
22706         (regno_equiv_gains): New static variable.
22707         (init_costs): Allocate it.
22708         (finish_costs): Free it.
22709         (ira_costs): Call calculate_elim_costs_all_insns.
22710         (find_costs_and_classes): Take estimated elimination costs
22711         into account.
22712         (ira_adjust_equiv_reg_cost): New function.
22713         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
22714         * reload1.c (init_eliminable_invariants, free_reg_equiv,
22715         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
22716         (elim_bb): New static variable.
22717         (reload): Move code out of here into init_eliminable_invariants and
22718         free_reg_equiv.  Call them.
22719         (calculate_elim_costs_all_insns): New function.
22720         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
22721         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
22722         but call note_reg_elim_costly if we turned a valid memory address
22723         into an invalid one.
22724         * Makefile.in (ira-costs.o): Depend on reload.h.
22726 2010-06-04  Julian Brown  <julian@codesourcery.com>
22728         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
22729         for pool ranges.
22731 2010-06-04  Richard Guenther  <rguenther@suse.de>
22733         PR lto/41584
22734         * cgraph.h (struct varpool_node): Add lto_file_data field.
22735         * lto-cgraph.c (input_varpool_node): Initialize it.
22737 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
22739         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
22740         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
22741         predicate in "type" attribute calculation.
22742         (*addsi_1_zext): Ditto.
22743         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
22744         (*addsi_2_zext): Ditto.
22745         (*add<mode>_3): Ditto.
22746         (*addsi_3_zext): Ditto.
22747         (*add<mode>_5): Ditto.
22749 2010-06-03  Jan Hubicka  <jh@suse.cz>
22751         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
22752         of bitmap_bit_p.
22753         * cfganal.c (compute_dominance_frontiers_1): Likewise.
22755 2010-06-03  Jan Hubicka  <jh@suse.cz>
22757         * df-problems.c (df_create_unused_note, df_note_bb_compute):
22758         micro-optimize the checks when to add new note.
22760 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
22762         * final.c (output_asm_insn): Call
22763         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
22764         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
22765         (output_address): Call targetm.asm_out.print_operand_address.
22766         Update comments.
22767         * target.h (struct gcc_target): Add print_operand,
22768         print_operand_address, and print_operand_punct_valid_p fields.
22769         * targhooks.h (default_print_operand): Declare.
22770         (default_print_operand_address): Declare.
22771         (default_print_operand_punct_valid_p): Declare.
22772         * targhooks.c (default_print_operand): Define.
22773         (default_print_operand_address): Define.
22774         (default_print_operand_punct_valid_p): Define.
22775         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
22776         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
22777         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
22778         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
22779         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
22780         * vmsdbgout.c (addr_const_to_string): Update comment.
22781         * config/i386/i386.c (print_operand): Rename to...
22782         (ix86_print_operand): ...this.  Make static.
22783         (print_operand_address): Rename to...
22784         (ix86_print_operand_address): ...this.  Make static.  Call
22785         ix86_print_operand instead of PRINT_OPERAND.
22786         (ix86_print_operand_punct_valid_p): New function.
22787         (TARGET_PRINT_OPERAND): Define.
22788         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22789         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22790         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
22791         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22792         (PRINT_OPERAND): Delete.
22793         (PRINT_OPERAND_ADDRESS): Delete.
22794         * config/i386/i386-protos.h (print_operand): Delete prototype.
22795         (print_operand_address): Delete prototype.
22797 2010-06-03  Richard Guenther  <rguenther@suse.de>
22799         PR tree-optimization/44403
22800         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
22801         Preserve pointer qualifiers.
22802         (vect_create_data_ref_ptr): Likewise.
22804 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
22806         PR c++/44294
22807         * defaults.h (MAX_FIXED_MODE_SIZE): New.
22809         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
22811 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
22813         PR debug/44375
22814         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
22815         return false if merging the bbs would lead to goto_locus
22816         location being lost from the IL.
22818 2010-06-03  Jan Hubicka  <jh@suse.cz>
22819             Jakub Jelinek  <jakub@redhat.com>
22821         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
22822         set->regs[i] is NULL or has just one entry.
22824 2010-06-03  Jan Hubicka  <jh@suse.cz>
22826         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
22827         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
22829 2010-06-03  Paul Brook  <paul@codesourcery.com>
22831         * config/arm/arm.c (FL_TUNE): Define.
22832         (arm_default_cpu, arm_cpu_select): Remove.
22833         (all_cores): Populate core field.
22834         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
22835         (arm_find_cpu): New function.
22836         (arm_handle_option): Lookup cpu/architecture names.
22837         (arm_override_options): Cleanup mcpu/march/mtune handling.
22838         (arm_file_start): Ditto.
22840 2010-06-03  Alan Modra  <amodra@gmail.com>
22842         PR target/44169
22843         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
22844         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
22845         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
22846         (rs6000_emit_load_toc_table): Likewise.
22848 2010-06-02  Jan Hubicka  <jh@suse.cz>
22850         * passes.c (init_optimization_passes): Put ipa reference
22851         after ipa pure-const.
22853 2010-06-02  Jan Hubicka  <jh@suse.cz>
22855         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
22856         calls_read_all and calls_write_all.
22857         (get_reference_optimization_summary): Fix formatting.
22858         (is_proper_for_analysis): Check that decl is not readonly.
22859         (propagate_bits): Check CONST/PURE/noreturn flags.
22860         (ipa_init): Move all_module_statics to optimization_summary_obstack.
22861         (analyze_function): Ignore indirect edges.
22862         (copy_global_bitmap): For all module statics, do nothing.
22863         (generate_summary): Do not print calls_read_all/calls_write_all.
22864         (read_write_all_from_decl): Take node as argument; check
22865         cgraph_node_cannot_return.
22866         (propagate): Reorganize read_all/write_all computation;
22867         check indirect edges; check ecf flags; use all_module_statics
22868         in the results; do not free all_module_statics.
22869         (stream_out_bitmap): Handle all_module_statics.
22870         (ipa_reference_write_optimization_summary): Likewise; use
22871         varpool/cgraph encoders to get boundaries.
22872         (ipa_reference_read_optimization_summary): Read in all_module_statics;
22873         use it when possible.
22875 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22877         PR target/44218
22878         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
22879         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
22881         * doc/extend.texi (powerpc builtins): Document vec_recip,
22882         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
22884         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
22885         (rs6000_emit_swrsqrt): Ditto.
22886         (rs6000_emit_swdivsf): Delete.
22887         (rs6000_emit_swdivdf): Ditto.
22888         (rs6000_emit_swrsqrtsf): Ditto.
22890         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
22891         describe the reciprocal estimate support for each type.
22892         (recip_options): Map -mrecip=<opt> into option bits.
22893         (gen_2arg_fn_t): New typedef for binary rtx gen function.
22894         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
22895         reciprocal estimate instructions.
22896         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
22897         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
22898         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
22899         cost information if -mdebug=cost or -mdebug=reg.
22900         (rs6000_override_options): Set -mrecip-precision for power6, and
22901         power7 machines.  If -mvsx or -mdfp, enable various options that
22902         came in previous instruction set ISAs, unless the option was
22903         explicitly disabled by the command line option.  Parse
22904         -mrecip=<opt> options.
22905         (rs6000_builtin_vectorized_function): Add support for vectorizing
22906         the reciprocal estimate builtins and expansions.
22907         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
22908         (bdesc_2arg): Add reciprocal estimate builtins.
22909         (bdesc_1arg): Add reciprocal square root estimate builtins.
22910         (rs6000_expand_builtin): Rewrite to use a switch statement,
22911         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
22912         (rs6000_init_builtins): Create declarations for reciprocal
22913         estimate builtins.
22914         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
22915         sized, prefer traditional floating point registers, if integer
22916         vector types, prefer altivec registers.  Don't actually look at
22917         the memory address any more.
22918         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
22919         builtins.
22920         (rs6000_load_constant_and_splat): New helper function to load up
22921         the constant for reciprocal estimate instructions.
22922         (rs6000_emit_madd): New helper function for generating
22923         multiply/add type instructions, based on the current switches.
22924         (rs6000_emit_msub): Ditto.
22925         (rs6000_emit_mnsub): Ditto.
22926         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
22927         replace a divide with a reciprocal estimate and fixup, adding
22928         support for machines with high precision and vectors.
22929         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
22930         low precision machines.
22931         (rs6000_emit_swdiv): New common function to be called to replace a
22932         division with reciprocal estimate and fixup.
22933         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
22934         for double and vector types.  Add support for high precision machines.
22936         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
22937         the reciprocal estimate instructions can be generated.
22938         (TARGET_FRE): Ditto.
22939         (TARGET_FRSQRTES): Ditto.
22940         (TARGET_FRSQRTE): Ditto.
22941         (RS6000_RECIP_*): New macros for reciprocal estimate support.
22943         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
22944         square root estimate on vectors.
22945         (re<mode>2): New insn for reciprocal division estimate on vectors.
22947         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
22948         New builtin.
22949         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
22950         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
22951         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
22952         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
22953         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
22954         (RS6000_BUILTIN_RSQRT): Ditto.
22955         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
22956         floating point builtin.
22958         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
22959         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
22960         __RECIP_PRECISION__ based on the command line switches.
22961         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
22963         * config/rs6000/rs6000.opt (-mrecip): Document add support for
22964         replacing division instructions with reciprocal estimate and fixup.
22965         (-mrecip=<opt>): New option.
22966         (-mrecip-precision): Ditto.
22968         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
22969         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
22970         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
22971         precision scalar.
22973         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
22974         (UNSPEC_VREFP): Ditto.
22975         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
22976         conterparts with regard to support of -mno-fused-madd and -ffast-math.
22977         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
22978         reciprocal estimate instructions to be generated.
22979         (altivec_vrefp): Ditto.
22981         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
22982         estimate support.
22983         (rreg): New mode attribute for reciprocal estimate support.
22984         (recip<mode>3): New insn for division using reciprocal estimate
22985         and fixup builtins.
22986         (divide define_split): New define_split to convert floating point
22987         division to use reciprocal estimate if the user used the
22988         appropriate options and the split is run when we can add new
22989         pseudo registers for the fixup.
22990         (rsqrt<mode>2): New insn for reciprocal square root support.
22991         (recipsf3): Move into recip<mode>3.
22992         (recipdf3): Ditto.
22993         (fres): Use TARGET_FRES.
22994         (rsqrtsf2): Move into rsqrt<mode>2.
22995         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
22996         (copysignsf3): Add support for VSX.
22997         (fred): Use TARGET_FRE.
22998         (fred_fpr): Ditto.
22999         (rsqrtdf_internal1): New function for frsqrte instruciton.
23001         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
23002         (vec_rsqrt): Ditto.
23004 2010-06-03  Richard Guenther  <rguenther@suse.de>
23006         PR middle-end/44291
23007         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
23008         (set_user_assembler_libfunc): Likewise.
23010 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
23012         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
23013         defaults.h.
23014         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
23015         to defaults.h
23016         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
23017         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
23018         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
23019         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
23020         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
23021         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
23022         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
23023         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
23024         * defaults.h: Updated for above mentioned changes.
23026 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
23028         * c-common.c: Remove header include of tm_p.h.
23029         * Makefile.in (c-common.o): Remove TM_P_H dependency.
23031 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
23033         * tree.h (struct tree_decl_map): New type.
23034         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
23035         (tree_decl_map_hash): New prototype.
23036         (debug_expr_for_decl, value_expr_for_decl): Change into
23037         tree_decl_map hashtab from tree_map.
23038         (init_ttree): Adjust initialization.
23039         (tree_decl_map_hash): New function.
23040         (decl_debug_expr_lookup, decl_debug_expr_insert,
23041         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
23043 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23045         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
23046         linker emulations.
23047         * configure: Regenerate.
23048         * config.in: Regenerate.
23050         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
23051         (X86_64_EMULATION): Define.
23052         (TARGET_LD_EMULATION): Use them.
23054         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
23055         (SPARC64_EMULATION): Define.
23056         (LINK_ARCH_SPEC): Use them.
23058 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
23060         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
23061         smallest_mode_for_size for computing the precision types of new
23062         graphite IVs.  Do not call lang_hooks.types.type_for_size.
23064 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
23066         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
23067         information.
23068         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
23070 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
23072         PR middle-end/44363
23073         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
23074         return false instead.
23076 2010-06-02  Jan Hubicka  <jh@suse.cz>
23078         PR middle-end/44295
23079         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
23080         create new cgraph node to check callee.
23082 2010-06-02  Richard Guenther  <rguenther@suse.de>
23084         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
23086 2010-06-02  Richard Guenther  <rguenther@suse.de>
23088         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
23089         (lto_wrapper_cleanup): ... this.  Do not exit.
23090         (fatal): Adjust.  Exit here.
23091         (fatal_perror): Likewise.
23092         (fatal_signal): New function.
23093         (main): Set up signal handlers to cleanup temporary files.
23094         * Makefile.in (lto-wrapper.o): Adjust dependencies.
23096 2010-06-02  Richard Guenther  <rguenther@suse.de>
23098         PR tree-optimization/44377
23099         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
23101 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23103         * config/s390/2097.md (z10_fhex): Remove insn reservation.
23104         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
23105         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
23106         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
23107         instruction.
23108         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
23110 2010-06-02  Jan Hubicka  <jh@suse.cz>
23112         * bitmap.c (bitmap_descriptor): Add search_iter.
23113         (bitmap_find_bit): Increment it.
23114         (print_statistics): Print it.
23116 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
23118         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
23119         instead of gimple_build_call_vec.  Delete unnecessary local variable.
23121 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
23123         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
23124         change from yesterday.
23126 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
23128         * c-ada-spec.c: Clean up redundant includes.
23130 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
23132         * gimplify.c: Do not include except.h and optabs.h.
23133         (gimplify_body): Do not initialize RTL profiling.
23134         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
23135         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
23136         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
23137         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
23138         langhooks.h.
23140         * tree-pretty-print.h: Include pretty-print.h.
23141         * gimple-pretty-print.h: Include pretty-print.h.
23143         * tree-pretty-print.c: Do not include diagnostic.h.
23144         * tree-vrp.c: Likewise.
23145         * tree-tailcall.c: Likewise
23146         * tree-scalar-evolution.c: Likewise
23147         * tree-ssa-dse.c: Likewise
23148         * tree-chrec.c: Likewise
23149         * tree-ssa-sccvn.c: Likewise
23150         * tree-ssa-copyrename.c: Likewise
23151         * tree-nomudflap.c: Likewise
23152         * tree-call-cdce.c: Likewise
23153         * tree-stdarg.c: Likewise
23154         * tree-ssa-math-opts.c: Likewise
23155         * tree-nrv.c: Likewise
23156         * tree-ssa-sink.c: Likewise
23157         * tree-browser.c: Likewise
23158         * tree-ssa-loop-ivcanon.c: Likewise
23159         * tree-ssa-loop.c: Likewise
23160         * tree-parloops.c: Likewise
23161         * tree-ssa-address.c: Likewise
23162         * tree-ssa-ifcombine.c: Likewise
23163         * tree-if-conv.c: Likewise
23164         * tree-data-ref.c: Likewise
23165         * tree-affine.c: Likewise
23166         * tree-ssa-phiopt.c: Likewise
23167         * tree-ssa-coalesce.c: Likewise
23168         * tree-ssa-pre.c: Likewise
23169         * tree-ssa-live.c: Likewise
23170         * tree-predcom.c: Likewise
23171         * tree-ssa-forwprop.c: Likewise
23172         * tree-ssa-dce.c: Likewise
23173         * tree-ssa-ter.c: Likewise
23174         * tree-ssa-loop-prefetch.c: Likewise
23175         * tree-optimize.c: Likewise
23176         * tree-ssa-phiprop.c: Likewise
23177         * tree-object-size.c: Likewise
23178         * tree-outof-ssa.c: Likewise
23179         * tree-ssa-structalias.c: Likewise
23180         * tree-switch-conversion.c: Likewise
23181         * tree-ssa-reassoc.c: Likewise
23182         * tree-ssa-operands.c: Likewise
23183         * tree-vectorizer.c: Likewise
23184         * tree-vect-data-refs.c: Likewise
23185         * tree-vect-generic.c: Likewise
23186         * tree-vect-stmts.c: Likewise
23187         * tree-vect-patterns.c: Likewise
23188         * tree-vect-slp.c: Likewise
23189         * tree-vect-loop.c: Likewise
23190         * tree-ssa-loop-ivopts.c: Likewise
23191         * tree-ssa-loop-im.c: Likewise
23192         * tree-ssa-loop-niter.c: Likewise
23193         * tree-ssa-loop-unswitch.c: Likewise
23194         * tree-ssa-loop-manip.c: Likewise
23195         * tree-ssa-loop-ch.c: Likewise
23196         * tree-dump.c: Likewise
23197         * tree-complex.c: Likewise
23199         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
23200         * tree-ssa-uninit.c: Likewise
23201         * tree-ssa-threadupdate.c: Likewise
23202         * tree-ssa-uncprop.c: Likewise
23203         * tree-ssa-ccp.c: Likewise
23204         * tree-ssa-dom.c: Likewise
23205         * tree-ssa-propagate.c: Likewise
23206         * tree-ssa-alias.c: Likewise
23207         * tree-dfa.c: Likewise
23208         * tree-cfgcleanup.c: Likewise
23209         * tree-sra.c: Likewise
23210         * tree-ssa-copy.c: Likewise
23211         * tree-ssa.c: Likewise
23212         * tree-profile.c: Likewise
23213         * tree-cfg.c: Likewise
23214         * tree-ssa-threadedge.c: Likewise
23215         * tree-vect-loop-manip.c: Likewise
23217         * tree-inline.c: Do not include diagnostic.h and expr.h.
23218         Include rtl.h.
23219         (copy_decl_for_dup_finish): Do not use NULL_RTX.
23221         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
23222         * tree-loop-distribution.c: Likewise.
23224 2010-06-01  Jan Hubicka  <jh@suse.cz>
23226         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
23228 2010-06-01  Jan Hubicka  <jh@suse.cz>
23230         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
23231         remove return value.
23232         (split_bbs_on_noreturn_calls) .... here.
23233         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
23234         * tree-flow.h (fixup_noreturn_call): New.
23236 2010-06-01  Jan Hubicka  <jh@suse.cz>
23238         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
23240 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
23242         * tree.h (build_nt_call_list): Delete.
23243         * tree.c (build_nt_call_list): Delete.
23245 2010-06-01  Jan Hubicka  <jh@suse.cz>
23247         * fwprop.c: Make emit-rtl.h include last.
23248         * rtlanal.c: Include emit-rtl.h.
23249         * genautomata.c: Output emit-rtl include into insn-automata.c
23250         * df-scan.c: Include emit-rtl.h.
23251         * haifa-sched.c: Indlude emit-rtl.h.
23252         * mode-switching.c: Indlude emit-rtl.h.
23253         * graph.c: Indlude emit-rtl.h.
23254         * sel-sched.c: Include emit-rtl.h.
23255         * sel-sched-ir.c: Include emit-rtl.h.
23256         * ira-build.c: Include emit-rtl.h.
23257         * emit-rtl.c (first_insn, last_insn): Remove defines.
23258         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
23259         Move to emit-rtl.h.
23260         (set_new_first_and_last_insn, get_last_insn_anywhere,
23261         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
23262         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
23263         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
23264         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
23265         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
23266         Use accessor functions.
23267         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
23268          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
23269         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
23270         mem_expr_equal_p): Move here from rtl.h.
23271         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
23272         Move here from emit-rtl.c; make inline.
23273         * cfglayout.h: Include emit-rtl.h.
23274         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
23275          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
23276         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
23277         mem_expr_equal_p, get_insns, set_first-insn,
23278         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
23279         * reg-stack.c: Include emit-rtl.h.
23280         * dce.c: Likewise.
23282 2010-06-01  Jan Hubicka  <jh@suse.cz>
23284         * cgraph.h (tree_function_versioning): Update prototype.
23285         (cgraph_function_versioning): Update prototype.
23286         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
23287         bitmap.
23288         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
23289         (cgraph_materialize_clone, save_inline_function_body): Update use of
23290         tree_function_versioning.
23291         * tree-inline.c (copy_bb): Look for previous copied block to link
23292         after; fix debug output.
23293         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
23294         (copy_body): Likewise.
23295         (expand_call_inline): Update use of copy_body.
23296         (tree_function_versioning): Update use of copy body; accept
23297         blocks_to_copy and new_entry.
23299 2010-06-01  Jan Hubicka  <jh@suse.cz>
23301         * gegenrtl.c: Remove unnecesary prototypes.
23302         (gendecl): Remove.
23303         (gendef): Produce static inline.
23304         (gencode): Remove.
23305         (main): Do not decode parameters; generate header only.
23306         * Makefile.in (genrtl.c): Remove.
23308 2010-06-01  Jan Hubicka  <jh@suse.cz>
23310         * tree-switch-conversion.c (build_one_array): Make it readonly.
23312 2010-06-01  Richard Guenther  <rguenther@suse.de>
23314         * optabs.c (init_optabs): Guard all accesses to reinit.
23315         * ipa-pure-const.c (propagate): Fix another typo.
23316         * opts.c (common_handle_option): Split assignment to bool.
23317         * c-opts.c (c_common_handle_option): Likewise.
23319 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
23320             Matthew Gingell  <gingell@adacore.com>
23322         * doc/invoke.texi: Mention -fdump-ada-spec.
23323         * tree-dump.c (dump_files): Add ada-spec.
23324         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
23325         * tree-pass.h (tree_dump_index): Add TDI_ada.
23326         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
23327         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
23328         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
23329         * c-decl.c: Include c-ada-spec.h.
23330         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
23331         functions.
23332         (c_write_global_declarations): Add handling of -fdump-ada-spec.
23333         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
23334         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
23335         * c-ada-spec.h, c-ada-spec.c: New files.
23337 2010-06-01  Richard Guenther  <rguenther@suse.de>
23339         PR lto/43853
23340         * ipa-pure-const.c (get_function_state): Hand back varying state
23341         if we do not have one.
23342         (has_function_state): New function.
23343         (duplicate_node_data): Adjust.
23344         (remove_node_data): Likewise.
23345         (pure_const_write_summary): Likewise.
23346         (propagate): Likewise.  Fix typo.
23348 2010-06-01  Jan Hubicka  <jh@suse.cz>
23350         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
23351         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
23352         (execute_all_ipa_transforms): Do not play with the states.
23354 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
23356         * config/arm/t-linux-androideabi: New.
23357         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
23359 2010-06-01  Jan Hubicka  <jh@suse.cz>
23361         * tree-inline.c (estimate_num_insns): For stdarg functions look
23362         into call statement to count cost of argument passing.
23364 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
23366         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
23367         argument for fprintf.
23368         (ix86_output_addr_diff_elt): Likewise.
23369         (x86_function_profiler): Likewise.
23370         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
23371         (LPREFIX): Likewise.
23372         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
23374 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
23376         PR target/44338
23377         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
23378         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
23379         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
23380         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
23381         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
23382         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
23383         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
23384         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
23385         TARGET_FUSED_MADD.
23387 2010-05-31  Jan Hubicka  <jh@suse.cz>
23389         * tree.h (tree_range_check_failed): Declare noreturn.
23391 2010-05-31  Jan Hubicka  <jh@suse.cz>
23393         * gimple.c (gimple_call_builtin_p): New function.
23394         * gimple.h (gimple_call_builtin_p): Declare.
23395         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
23396         to exit.
23397         (execute_warn_function_return): BUILT_IN_RETURN is return.
23398         (split_critical_edges): Return edges are not critical.
23399         (is_ctrl_altering_stmt): Builtin_in_return is altering.
23400         (gimple_verify_flow_info): Handle built_in_return.
23401         (execute_warn_function_return): Handle built_in_return.
23402         * ipa-pure-const.c (check_call): Ignore builtin_return.
23404 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
23406         PR middle-end/44337
23407         * expr.c (expand_assignment): Don't store anything for out-of-bounds
23408         array accesses with non-MEM.
23410         PR tree-optimization/44182
23411         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
23412         newly needs to end a bb is followed by debug stmts, instead return
23413         true from the function at the end.
23414         (maybe_move_debug_stmts_to_successors): New function.
23415         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
23417 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
23419         PR target/44161
23420         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
23422 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23424         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
23425         for nested functions in non-optimized compilation.
23427 2010-05-31  Richard Guenther  <rguenther@suse.de>
23429         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
23431 2010-05-30  Jan Hubicka  <jh@suse.cz>
23433         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
23435 2010-05-30  Richard Guenther  <rguenther@suse.de>
23437         PR lto/42975
23438         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
23439         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
23440         no longer needed.
23442 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
23444         * config/darwin.c (output_objc_section_asm_op): Add comment.
23445         (name_needs_quotes): Add '_' to list of valid comment chars.
23446         (machopic_output_function_base_name): Remove unneeded quotes.
23447         (darwin_encode_section_info): Adjust asm whitespace.
23448         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
23449         (ASM_OUTPUT_LOCAL): Ditto.
23450         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
23451         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
23452         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
23454 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
23456         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
23457         RS6000_OUTPUT_BASENAME unconditionally.
23458         (rs6000_output_function_epilogue): Likewise.
23460 2010-05-30  Jan Hubicka  <jh@suse.cz>
23462         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
23463         nodes.
23465 2010-05-30  Richard Guenther  <rguenther@suse.de>
23467         * tree-cfg.c (verify_gimple_assign_single): Implement
23468         verification for COND_EXPR rhs.
23470 2010-05-30  Jan Hubicka  <jh@suse.cz>
23472         * cgraph.h (cgraph_dump_file): Declare.
23473         * cgraphunit.c (cgraph_dump_file): Export.
23474         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
23476 2010-05-30  Jan Hubicka  <jh@suse.cz>
23478         * dwarf2out.c (reference_to_unused,
23479         premark_types_used_by_global_vars_helper): Avoid creation of new
23480         varpool nodes.
23482 2010-05-30  Jan Hubicka  <jh@suse.cz>
23484         * cgraph.h (cgraph_node_cannot_return,
23485         cgraph_edge_cannot_lead_to_return): New functions.
23486         * cgraph.c (cgraph_node_cannot_return,
23487         cgraph_edge_cannot_lead_to_return): Use them.
23488         * ipa-pure-const.c (pure_const_names): New static var.
23489         (check_call): Handle calls not leading to return.
23490         (pure_const_read_summary): Dump info read.
23491         (propagate): Dump info about propagation process; ignore side effects
23492         of functions not leading to exit; fix handling of pure functions.
23494 2010-05-30  Jan Hubicka  <jh@suse.cz>
23496         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
23497         for tail call epilogues.
23499 2010-05-30  Jan Hubicka  <jh@suse.cz>
23501         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
23502         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
23503         dump files.
23505 2010-05-29  Jan Hubicka  <jh@suse.cz>
23507         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
23508         node; remove references in node we no longer keep in cgrpah but need
23509         body of.
23511 2010-05-29  Jan Hubicka  <jh@suse.cz>
23513         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
23515 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23517         PR target/44165
23518         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
23520 2010-05-29  Jan Hubicka  <jh@suse.cz>
23522         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
23523         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
23524         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
23525         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
23526         debug_names_replaced_by, debug_update_ssa): Likewise.
23527         * sbitmap.c (debug_sbitmap): Likewise.
23528         * genrecog.c (debug_decision, debug_decision_list): Likewise.
23529         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
23530         debug_tree_chain): Likewise.
23531         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
23532         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
23533         * optabs.c (debug_optab_libfuncs): Likewise.
23534         (verify_loop_closed_ssa): Likewise.
23535         * value-prof.c (verify_histograms): Likewise.
23536         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
23537         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
23538         * cfghooks.c (verify_flow_info): Likewise.
23539         * fold-const.c (debug_fold_checksum): Likewise.
23540         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
23541         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
23542         Likewise.
23543         * omega.c (debug_omega_problem): Likewise.
23544         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
23545         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
23546         * dominance.c (verify_dominators, debug_dominance_info,
23547         debug_dominance_tree): Likewise.
23548         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
23549         * df_regno_debug, df_ref_debug,
23550         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
23551         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
23552         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
23553         * sel-sched.c (debug_state): Likewise.
23554         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
23555         Likewise.
23556         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
23557         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
23558         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
23559         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
23560         Likewise.
23561         * c-pretty-print.c (debug_c_tree): Likewise.
23562         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
23563         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
23564         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
23565         * ebitmap.c (debug_ebitmap): Likewise.
23566         * function.c (debug_find_var_in_block_tree): Likewise.
23567         * print-rtl.c (debug_rtx): Likewise.
23568         (debug_rtx_count): Likewise.
23569         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
23570         * stor-layout.c (debug_rli): Likewise.
23571         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
23572         * tree-data-ref.c (debug_data_references,
23573         debug_data_dependence_relations, debug_data_reference,
23574         debug_data_dependence_relation, debug_rdg_vertex,
23575         debug_rdg_component, debug_rdg): Likewise.
23576         * tree-affine.c (debug_aff): Likewise.
23577         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
23578         Likewise.
23579         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
23580         * emit-rtl.c (verify_rtl_sharing): Likewise.
23581         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
23582         debug_value_expressions): Likewise.
23583         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
23584         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
23585         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
23586         * cfglayout.c (verify_insn_chain): Likewise.
23587         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
23588         debug_clast_stmt, debug_generated_program): Likewise.
23589         * ggc-page.c (debug_print_page_list): Likewise.
23590         * tree-ssa-ter.c (debug_ter): Likewise.
23591         * graphite-dependences.c (debug_pddr): Likewise.
23592         * sched-deps.c (debug_ds): Likewise.
23593         * tree-ssa.c (verify_ssa): Likewise.
23594         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
23595         debug_scattering_functions, debug_iteration_domains, debug_pdr,
23596         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
23597         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
23598         * tree-inline.c (debug_find_tree): Likewise.
23599         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
23600         debug_ppl_powerset_matrix): Likewise.
23601         * var-tracking.c (debug_dv): Likewise.
23602         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
23603         * cfgloop.c (verify_loop_structure): Likewise.
23604         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
23605         * c-common.c (verify_sequence_points): Likewise.
23606         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
23607         debug_candidates, debug_rgn_dependencies): Likewise.
23608         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
23609         * debug_constraint_graph, debug_solution_for_var,
23610         debug_sa_points_to_info): Likewise.
23611         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
23612         Likewie.
23613         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
23614         debug_loops, debug_loop, debug_loop_num): Likewise.
23615         * passes.c (debug_pass): Likewise.
23616         (dump_properties): Likewise; add cfglayout property.
23617         (debug_properties): Likewise.
23618         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
23619         * varpool.c (debug_varpool): Likewise.
23620         * regcprop.c (debug_value_data): Likewise.
23621         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
23622         debug_immediate_uses_for): Likewise.
23624 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
23626         PR bootstrap/44315
23627         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
23628         Filter out insn-flags.h.
23630 2010-05-29  Jan Hubicka  <jh@suse.cz>
23632         * cgraph.h (struct varpool_node_set_def,
23633         struct cgraph_node_set_def): Remove unused AUX pointer.
23634         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
23635         VEC_empty macro.
23637 2010-05-29  Jan Hubicka  <jh@suse.cz>
23639         PR middle-end/44324
23640         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
23642 2010-05-29  Richard Guenther  <rguenther@suse.de>
23644         * lto-streamer.c (cached_bp): New global variable.
23645         (bitpack_create): Return the cached bitpack, if available.
23646         (bitpack_delete): Clear and cache the bitpack, if appropriate.
23647         (bp_pack_value): Remove redundant asserts.
23649 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
23651         PR middle-end/44306
23652         * tree-if-conv.c (is_true_predicate): New.
23653         (is_predicated): Use is_true_predicate.
23654         (add_to_predicate_list): Same.  Do not use unshare_expr.
23655         (add_to_dst_predicate_list): Same.
23657 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
23659         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
23660         field on edges.
23661         (predicate_bbs): Same.
23662         (clean_predicate_lists): Same.
23663         (find_phi_replacement_condition): Do not AND the predicate from
23664         edge->aux.
23666 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
23668         PR bootstrap/44315
23669         * Makefile.in (build/gencondmd.o): Add a missing `\'.
23671 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23673         PR target/44261
23674         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
23675         (negdf2): Adjust expander pattern and use negdf2_slow.
23676         (negsf2): Likewise.
23678 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
23680         * basic-block.h (struct control_flow_graph): Move last_label_uid field
23681         up.
23682         * df.h (struct df_base_ref): Move regno field up.
23683         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
23684         * expr.h (struct separate_ops): Move location field up.
23685         * optabs.h (struct optab_d): Move libcall_basename field down.
23686         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
23687         * config/i386/i386.h (struct machine_function): Convert call_abi field
23688         into a bitfield.  Move cfa field to the end of the structure.
23690 2010-05-29  Jan Hubicka  <jh@suse.cz>
23692         * varpool.c (varpool_get_node): Fix lookup.
23694 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23696         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
23697         RTL specific prototypes with #ifdef RTX_CODE.
23698         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
23699         * config/spu/t-spu-elf: Fix dependencies.
23701         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
23703 2010-05-29  Mike Stump  <mikestump@comcast.net>
23705         PR bootstrap/44315
23706         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
23707         TM_H when building to avoid dependency loops.
23709 2010-05-29  Jan Hubicka  <jh@suse.cz>
23711         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
23712         refs and body; not the whole node for masters of materialized clones.
23714 2010-05-29  Mike Stump  <mikestump@comcast.net>
23716         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
23718 2010-05-29  Jan Hubicka  <jh@suse.cz>
23720         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
23721         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
23722         use of clone_function_name.
23723         * cgraph.h (cgraph_create_virtual_clone,
23724         cgraph_function_versioning): update prototypes.
23725         (clone_function_name): Declare.
23726         * ipa-cp.c (ipcp_insert_stage): Update call of
23727         cgraph_create_virtual_clone.
23728         * omp-low.c (create_omp_child_function_name): Use
23729         cgraph_create_virtual_clone.
23730         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
23731         (cgraph_function_versioning): Take SUFFIX argument; produce new name
23732         and make decl local.
23734 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23736         * vec.h: Include statistics.h
23737         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
23738         with VEC_H.
23740 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23742         * c-lex.c: Do not include c-tree.h.
23743         * c-pretty-print.c: Likewise.
23744         * c-opts.c: Likewise.
23745         * c-gimplify.c: Likewise.
23746         * c-common.c: Likewise.
23747         * c-dump.c: Likewise.  Include c-common.h.
23749 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23751         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
23752         before including diagnostic-core.h.
23753         (c_cpp_error): New prototype moved from c-tree.h.
23754         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
23755         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
23756         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
23757         (c_cpp_error): Prototype moved to c-common.h.
23758         * Makefile.in: Update dependency for C_COMMON_H.
23760 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23762         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
23763         * c-common.c (c_register_addr_space): Remove here.
23764         * c-decl.c (c_register_addr_space): Re-add here.
23766 2010-05-28  Mike Stump  <mikestump@comcast.net>
23768         * config/darwin-c.c: Remove c-tree.h include.
23770 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
23772         * gcc.c: Include diagnostic.h.
23773         (error_count): Remove.  All users changed to use errorcount.
23774         (programname): Remove.  All users changed to use progname.
23775         (fancy_abort, internal_error, fatal_error, error, warning, inform,
23776         fnotice): Remove.
23777         (execute): Don't include "Internal error" and bug reporting
23778         information in argument of internal_error call.
23779         (process_command): Don't increment error_count after calling
23780         perror_with_name.
23781         (input_filename): Rename to gcc_input_filename.  All users
23782         changed.
23783         (main): Call diagnostic_initialize.  Register delete_temp_files
23784         with atexit.  Use seen_error to test for errors.
23785         * gcc.h: Include diagnostic-core.h.
23786         (fatal_error, error, warning): Remove.
23787         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
23788         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
23789         (gcc.o): Update dependencies.
23791 2010-05-28  Jeff Law  <law@redhat.com>
23793         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
23794         functions.
23795         * ira.h (ira_bad_reload_regno): Declare
23796         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
23798         * ira-color.c (update_curr_costs): Free updated hard reg costs.
23799         (ira_reassign_conflict_allocnos): Remove bogus asserts.
23800         (allocno_reload_assign): Likewise.
23802 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
23804         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
23805         build1_stat.
23807 2010-05-28  Richard Guenther  <rguenther@suse.de>
23809         PR lto/44312
23810         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
23811         Stream fixed-point constants mode.
23812         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
23813         and TYPE_PRECISION.
23814         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
23815         Stream fixed-point constants mode.
23816         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
23817         and TYPE_PRECISION.
23819 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
23821         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
23822         only place it was called from.
23823         (number_of_latch_executions): Do not return chrec_dont_know when the
23824         may_be_zero is a runtime condition: instead, return a COND_EXPR
23825         including the may_be_zero condition.
23826         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
23827         of nb_iterations.
23828         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
23829         COND_EXPRs.
23831 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
23833         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
23834         generate COND_EXPRs for degenerate_phi_result.
23836 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
23838         PR middle-end/44293
23839         * tree-if-conv.c (if_convertible_loop_p): Check the
23840         if-convertibility of phi nodes in non predicated BBs.
23842 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
23844         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
23846 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
23848         PR driver/15303
23849         * gcc.c (inform, warning, inform): New functions.
23850         (fatal_ice): Rename to internal_error; change cmsgid parameter to
23851         gmsgid.  All callers changed.
23852         (notice): Rename to fnotice; add parameter fp.  All callers changed.
23853         (fatal_error): Rename to fatal_signal.  All users changed.
23854         (fatal): Rename to fatal_error; change cmsgid parameter to
23855         gmsgid.  All callers changed.
23856         (process_command): Use warning instead of error for warnings.
23857         (end_going_arg): Don't use _() around argument of error.
23858         (do_spec_1): Use inform for message from %n specs.  Use warning
23859         instead of error for warnings.
23860         (main): Use inform for comparison messages.  Use warning for
23861         message about unused linker input.
23862         (error): Increment error_count.  Print "error: ".
23863         * gcc.h (fatal): Change to fatal_error.
23864         (warning): Declare.
23865         * config/darwin-driver.c (darwin_default_min_version): Use warning
23866         instead of fprintf for warnings.
23867         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
23869 2010-05-28  Julian Brown  <julian@codesourcery.com>
23871         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
23872         (*thumb2_addsi3_compare0_scratch): New.
23873         * config/arm/constraints.md (Pv): New.
23874         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
23875         for ARM mode only.
23876         (*addsi3_compare0_scratch): Likewise.
23878 2010-05-28  Jan Hubicka  <jh@suse.cz>
23880         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
23881         check.
23882         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
23883         only on local statics.
23885 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
23887         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
23889 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
23891         PR bootstrap/44314
23892         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
23893         (OPTION_GLIBC): Define.
23895 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
23897         PR debug/41048
23898         * dwarf2out.c (double_int_type_size_in_bits): New function.
23899         (round_up_to_align): Change first argument and return value to
23900         double_int.
23901         (field_byte_offset): Work internally on double_ints.
23903         PR target/43636
23904         * builtins.c (expand_movstr): Use a temporary pseudo instead
23905         of target even when target is not NULL and not const0_rtx, but
23906         fails movstr predicate.
23907         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
23909 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
23911         * final.c (rest_of_clean_state): Use %m in errors instead of
23912         strerror (errno).
23913         * gengtype.c (read_input_list, close_output_files): Use xstrerror
23914         instead of strerror.
23915         * toplev.c (process_options): Use %m in errors instead of strerror
23916         (errno).
23917         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
23918         (errno).
23920 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
23922         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
23923         (ix86_canonical_va_list_type): Make static.  Add declaration.
23924         (ix86_enum_va_list): Make static.  Reindent.
23925         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
23926         (ix86_canonical_va_list_type): Ditto.
23927         (ix86_enum_va_list): Ditto.
23929 2010-05-28  Richard Guenther  <rguenther@suse.de>
23931         * lto-wrapper.c (run_gcc): With -save-temps generate a
23932         user-visible ltrans filename.  Fixup ltrans unit numbering.
23934 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
23936         * c-common.c (c_common_nodes_and_builtins): Replace use
23937         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
23938         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
23939         to ix86_enum_va_list.
23940         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
23941         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
23942         (TARGET_ENUM_VA_LIST_P): Add hook description.
23943         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
23944         * target.h (gcc_target): Add enum_va_list hook.
23946         PR bootstrap/44299
23947         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
23948         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
23949         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
23951 2010-05-28  Alan Modra  <amodra@gmail.com>
23953         PR target/44266
23954         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
23955         emit_library_call machinery to set up __tls_get_addr calls.
23957 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23959         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
23961 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
23963         Revert fix for PR c++/44188
23964         * c-common.c (is_typedef_decl): Revert the moving of  this
23965         definition ...
23966         * tree.c (is_typedef_decl): ... here.
23967         (typdef_variant_p): Revert the moving of this  definition
23968         here from cp/tree.c.
23969         * c-common.h (is_typedef_decl): Revert the moving of this
23970         declaration ...
23971         * tree.h (is_typedef_decl): ... here.
23972         (typedef_variant_p): Revert the moving of this  declaration here
23973         from cp/cp-tree.h
23974         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
23975         (gen_tagged_type_die): Revert the splitting out of ...
23976         (gen_type_die_with_usage): ... this function. Revert the anonymous
23977         tagged type handling.
23978         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
23979         typedefs naming anonymous tagged types.
23981 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
23983         * config/rs6000/rs6000-modes.def (PSImode): Delete.
23985 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
23987         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
23988         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
23989         throughout.
23990         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
23991         "xer" to "ca".
23992         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
23993         XER_REGS to CA_REGS throughout.
23994         * config/rs6000/rs6000.h: Same.
23995         (ADDITIONAL_REGISTER_NAMES): Add "xer".
23996         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
23997         that mode_iterator "P" is the size for arithmetic carries as well.
23998         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
24000 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
24002         PR bootstrap/44255
24003         * combine.c (struct rtx_subst_pair): Define unconditionally.
24004         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
24005         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
24006         Call make_compound_operation on pair->to.
24007         (propagate_for_debug): Don't call make_compound_operation here.
24008         Always use simplify_replace_fn_rtx.
24010 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
24012         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
24013         * config/xtensa/xtensa.c (override_options): Check
24014           TARGET_FORCE_NO_PIC and set flag_pic.
24015         * config/xtensa/xtensa.opt: Document -mforce-no-pic
24017 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
24019         PR bootstrap/44299
24020         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
24021         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
24023 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
24025         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
24026         toplev.h.
24027         * diagnostic.c: Don't include toplev.h.
24028         (progname): Define.  Moved from toplev.c.
24029         (seen_error): New function.
24030         * diagnostic.h: Include diagnostic-core.h.
24031         (diagnostic_t, emit_diagnostic): Don't declare here.
24032         * toplev.c (progname): Move to toplev.c.
24033         (emit_debug_global_declarations, compile_file, finalize,
24034         do_compile, toplev_main): Use seen_error.
24035         * toplev.h: Include diagnostic-core.h.
24036         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
24037         internal_error, warning, warning_at, error, error_n, error_at,
24038         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
24039         verbatim, fnotice, progname): Move to diagnostic-core.h.
24040         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
24041         (expand_builtin_expect): Use seen_error.
24042         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
24043         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
24044         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
24045         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
24046         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
24047         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
24048         errorcount for errors.
24049         * c-opts.c (c_common_finish): Use seen_error.
24050         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
24051         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
24052         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
24053         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
24054         (get_coverage_counts): Use seen_error.
24055         * dwarf2out.c (dwarf2out_finish): Use seen_error.
24056         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
24057         gimplify_body): Use seen_error.
24058         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
24059         * ipa-pure-const.c (gate_pure_const): Use seen_error.
24060         * ipa-reference.c (gate_reference): Use seen_error.
24061         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
24062         * lambda-code.c: Include diagnostic-core.h instead of
24063         diagnostic.h.
24064         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
24065         * lto-compress.c: Include diagnostic-core.h instead of
24066         diagnostic.h.
24067         * lto-section-in.c: Include diagnostic-core.h instead of
24068         diagnostic.h.
24069         * lto-streamer-out.c: Include diagnostic-core.h instead of
24070         diagnostic.h.
24071         * lto-streamer.c: Include diagnostic-core.h instead of
24072         diagnostic.h.
24073         (gate_lto_out): Use seen_error.
24074         * matrix-reorg.c: Include diagnostic-core.h instead of
24075         diagnostic.h.
24076         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
24077         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
24078         (gate_expand_omp, lower_omp_1): Use seen_error.
24079         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
24080         (rest_of_decl_compilation, rest_of_type_compilation,
24081         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
24082         * tree-cfg.c (label_to_block_fn): Use seen_error.
24083         * tree-inline.c (optimize_inline_calls): Use seen_error.
24084         * tree-mudflap.c (mudflap_finish_file): Use
24085         seen_error.
24086         * tree-optimize.c (gate_all_optimizations,
24087         gate_all_early_local_passes, gate_all_early_optimizations): Use
24088         seen_error.
24089         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
24090         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
24091         (varpool_remove_unreferenced_decls,
24092         varpool_assemble_pending_decls): Use seen_error.
24093         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
24094         (TOPLEV_H, DIAGNOSTIC_H): Update.
24095         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
24096         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
24097         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
24098         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
24099         coverage.o, lambda-code.o): Update dependencies.
24101 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
24103         PR c++/44188
24104         * c-common.c (is_typedef_decl): Move this definition ...
24105         * tree.c (is_typedef_decl): ... here.
24106         (typdef_variant_p): Move definition here from cp/tree.c.
24107         * c-common.h (is_typedef_decl): Move this declaration ...
24108         * tree.h (is_typedef_decl): ... here.
24109         (typedef_variant_p): Move declaration here from cp/cp-tree.h
24110         * dwarf2out.c (is_naming_typedef_decl): New function.
24111         (gen_tagged_type_die): Split out of ...
24112         (gen_type_die_with_usage): ... this function. When an anonymous
24113         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
24114         is emitted for the typedef.
24115         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
24116         anonymous tagged types.
24118 2010-05-27  Jason Merrill  <jason@redhat.com>
24120         * print-tree.c (debug_vec_tree): New fn.
24121         (print_vec_tree): New fn.
24122         * tree.h: Declare them.
24123         * gdbinit.in (pvt): New command.
24125         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
24127         * gdbinit.in (pdd): New command.
24129 2010-05-27  Jan Hubicka  <jh@suse.cz>
24131         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
24132         (update_caller_keys): Return early if there are no callers;
24133         only update fibheap when decresing the key.
24134         (update_callee_keys): Avoid recursion.
24135         (decide_inlining_of_small_functions): When badness does not match;
24136         re-insert into fibheap.
24138 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
24140         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
24141         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
24142         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
24143         (ALL_HOST_OBJS): Now a union of the above two.
24144         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
24145         all files in ALL_HOST_FRONTEND_OBJS.
24146         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
24148         * c-common.c: Pretend to be a backend file by undefining
24149         IN_GCC_FRONTEND (still need rtl.h here).
24151 2010-05-27  Jan Hubicka  <jh@suse.cz>
24153         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
24154         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
24156 2010-05-27  Jan Hubicka  <jh@suse.cz>
24158         * sched-ebb.c: Rename struct deps to struct deps_desc.
24159         * ddg.c: Likewise.
24160         * sel-sched-ir.c: Likewise.
24161         * sched-deps.c: Likewise.
24162         * sched-int.h: Likewise.
24163         * sched-rgn.c: Likewise.
24165 2010-05-27  Jon Beniston  <jon@beniston.com>
24167         PR 43726
24168         * config/lm32/lm32.h: Remove definition of
24169         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
24171 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
24173         PR lto/44230
24174         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
24176 2010-05-27  Richard Guenther  <rguenther@suse.de>
24178         PR tree-optimization/44284
24179         * tree-vect-stmts.c (vectorizable_assignment): Handle
24180         sign-changing conversions as simple copy.
24182 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
24184         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
24185         Bionic C library.
24186         (__gthread_active_p): Check for pthread_create if compiling against
24187         Bionic C library.
24189 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
24191         Support compilation for Android platform.  Reimplement -mandroid.
24193         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
24194         (*android*): Set ANDROID_DEFAULT.
24195         (arm*-*-linux*): Include linux-android.h.
24196         (arm*-*-eabi*): Don't include previous -mandroid implementation.
24197         * config/arm/eabi.h: Remove, move Android-specific parts ...
24198         * config/linux-android.h: ... here.  New file.
24199         * config/arm/eabi.opt: Rename to ...
24200         * config/linux-android.opt: ... this.
24201         (mandroid): Allow -mno-android option.  Initialize based on
24202         ANDROID_DEFAULT.
24203         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
24204         Move logic to corresponding LINUX_TARGET_* macros.
24205         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
24206         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
24207         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
24208         Android definitions.
24209         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
24210         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
24211         Document.
24213 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
24215         Add support for Bionic C library
24217         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
24218         macro.
24219         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
24220         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
24222         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
24223         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
24224         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
24225         to support multiple C libraries.  Handle Bionic.
24226         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
24227         (BIONIC_DYNAMIC_LINKER64): Define.
24228         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
24229         Update.
24230         (TARGET_HAS_SINCOS): Enable for Bionic.
24232         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
24233         the last option specified on command line take effect.
24234         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
24235         (mbionic): New.
24236         (mglibc, muclibc): Update.
24238         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
24239         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
24240         DEFAULT_LIBC.
24242         * doc/invoke.texi (-mglibc, -muclibc): Update.
24243         (-mbionic): Document.
24245 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24247         * c-common.h (c_register_addr_space): Add prototype.
24248         (ADDR_SPACE_KEYWORD): Remove.
24249         * c-common.c (c_register_addr_space): New function.
24250         (c_addr_space_name): Reimplement.
24251         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
24253         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
24254         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
24256         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
24257         Remove TARGET_ADDR_SPACE_KEYWORDS.
24259 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
24261         * input.c: New file.
24262         * input.h (main_input_filename): Move declaration to toplev.h.
24263         * toplev.c (input_location, line_table): Move to input.c
24264         * toplev.h (main_input_filename): Move declaration from input.h.
24265         * tree.c (expand_location): Move to input.c.
24266         * Makefile.in (OBJS-common): Add input.o.
24267         (input.o): Add dependencies.
24269 2010-05-27  Richard Guenther  <rguenther@suse.de>
24271         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
24272         for non-existant files.
24273         (fork_execute): Mark args_name file as deleted.
24275 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
24277         PR bootstrp/44287
24278         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
24279         (narrow_signed_type): Likewise.
24281 2010-05-26  Jan Hubicka  <jh@suse.cz>
24283         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
24284         edge only when checking is enabled; check using former_clone_of;
24285         check inline clones too.
24286         (cgraph_materialize_clone): Record former_clone_of pointer.
24287         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
24288         combining redirections; dump args_to_skip bitmap
24289         (cgraph_materialize_all_clones): Do no redirection here.
24290         * ipa-inline.c (inline_transform): Do redirection here.
24291         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
24292         cheking only).
24294 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24296         * config/avr/avr-c.c: Do not include regs.h.
24297         Include cpplib.h for cpp_define and tree.h for c-common.h.
24298         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
24299         * config/avr/t-avr: Fix dependencies for avr-c.o.
24301 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24303         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
24304         string instead of SYMBOL_REF rtx.
24305         * rtl.h (set_stack_check_libfunc): Move prototype from here...
24306         * libfuncs.h: ...to here.  Adjust for explow.c change.
24308 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
24310         * pretty-print.c: Don't include ggc.h.
24311         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
24312         (identifier_to_locale): Use them for allocation.
24313         * pretty-print.h (identifier_to_locale_alloc,
24314         identifier_to_locale_free): Declare.
24315         * toplev.c (alloc_for_identifier_to_locale): New.
24316         (general_init): Set identifier_to_locale_alloc and
24317         identifier_to_locale_free.
24318         * Makefile.in (pretty-print.o): Update dependencies.
24320 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
24322         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
24323         pointer types if they have different alignment or mode.
24325 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
24327         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24328         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24329         * config/sparc/sparc-protos.h (function_value): Remove declaration.
24330         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
24331         sparc_function_value_regno_p): New functions.
24332         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24333         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24334         (function_value): Rename to...
24335         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
24336         argument to 'outgoing'.
24337         (function_arg_record_value, function_arg_union_value,
24338         function_arg_vector_value): Update comment.
24340 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
24342         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
24343         (fde_needed_for_eh_p): New predicate.
24344         (output_call_frame_info): Use it throughout to decide whether FDEs
24345         are needed for EH purpose.
24346         (dwarf2out_begin_prologue): Reorder assignments.
24348 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24350         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
24351         special case loop->header.
24352         (is_predicated): New.
24353         (if_convertible_loop_p): Call it.
24355 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24357         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
24358         iterator in parameter.  Do not generate code during the analysis.
24359         (tree_if_convert_cond_stmt): Removed.
24360         (tree_if_convert_stmt): Removed.
24361         (predicate_bbs): New.
24362         (if_convertible_loop_p): Call predicate_bbs.
24363         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
24364         now contains all the analysis part.
24366 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24368         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
24369         statements in the analysis part.
24370         (tree_if_convert_stmt): Update comment.
24371         (remove_conditions_and_labels): New.
24372         (combine_blocks): Call remove_conditions_and_labels.
24373         (tree_if_conversion): Update comment.
24375 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24377         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
24378         than 2 predecessors or more than 2 successors.
24380 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24382         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
24383         of loops in which the data dependence analysis fails.
24385 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24387         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
24388         CDI_POST_DOMINATORS.
24389         (tree_if_conversion): Same.
24391 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24393         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
24395 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24397         * tree-if-conv.c: Update copyright years.  Fix comments.
24398         Fix indentation.
24400 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
24402         * builtin-types.def (BT_INT128): New primitive type.
24403         (BT_UINT128): Likewise.
24404         * c-common.c (c_common_r): Add __int128 keyword.
24405         (c_common_type_for_size): Handle __int128.
24406         (c_common_type_for_mode): Likewise.
24407         (c_common_signed_or_unsigned_type): Likewise.
24408         (c_common_nodes_and_builtins): Add builtin type
24409         if target supports 128-bit integer scalar.
24410         * c-common.h (enum rid): Add RID_INT128.
24411         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
24412         if target supports 128-bit integer scalar.
24413         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
24414         (finish_declspecs): Likewise.
24415         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
24416         (c_token_starts_declspecs): Likewise.
24417         (c_parser_declspecs): Likewise.
24418         (c_parser_attributes): Likewise.
24419         (c_parser_objc_selector): Likewise.
24420         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
24421         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
24422         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
24423         * tree.c (make_or_reuse_type): Likewise.
24424         (make_unsigned_type): Likewise.
24425         (build_common_tree_nodes_2): Likewise.
24426         * tree.h (enum integer_type_kind): Add itk_int128 and
24427         itk_unsigned_int128.
24428         (int128_integer_type_node): New define.
24429         (int128_unsigned_type_node): New define.
24430         * doc/extend.texi: Add documentation about __int128 type.
24432 2010-05-26  Richard Guenther  <rguenther@suse.de>
24434         * tree-ssa-sccvn.c (copy_nary): Adjust.
24435         (copy_phis): Rename to ...
24436         (copy_phi): ... this.  Adjust.
24437         (copy_references): Rename to ...
24438         (copy_reference): ... this.  Adjust.
24439         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
24440         result into the valid table.
24442 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24444         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
24445         insn-config.h, insn-codes.h, recog.h, and optabs.h.
24447 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24449         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
24451 2010-05-26  Richard Guenther  <rguenther@suse.de>
24453         * opts.c (common_handle_option): Handle OPT_Ofast.
24455 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
24457         * diagnostic.c: Don't include opts.h.
24458         (permissive_error_option): Define.
24459         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
24460         for classify_diagnostic.  Don't use memset for
24461         classify_diagnostic.  Initialize new and recently added fields.
24462         (diagnostic_classify_diagnostic): Use context->n_opts instead of
24463         N_OPTS.
24464         (diagnostic_report_diagnostic): Pass context parameter to
24465         diagnostic_report_warnings_p.  Use option_enabled and option_name
24466         hooks from context.
24467         (emit_diagnostic): Use permissive_error_option.
24468         (permerror): Likewise.
24469         * diagnostic.h: Don't include options.h.
24470         (struct diagnostic_context): Add n_opts, opt_permissive,
24471         inhibit_warnings, warn_system_headers, option_enabled and
24472         option_name fields.  Change classify_diagnostic to a pointer.
24473         * opts-diagnostic.h: New file.
24474         * opts.c: Include opts-diagnostic.h.
24475         (common_handle_option): Set global_dc fields for -Wfatal-errors,
24476         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
24477         (option_name): New function.
24478         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
24479         (c_common_handle_option): Set global_dc->permissive for
24480         -fpermissive.
24481         * c-common.c (c_cpp_error): Save and restore
24482         global_dc->warn_system_headers, not variable warn_system_headers.
24483         * toplev.c: Include opts-diagnostic.h.
24484         (general_init): Update call to diagnostic_initialize.  Set
24485         global_dc->show_column, global_dc->option_enabled and
24486         global_dc->option_name.
24487         (process_options): Don't set global_dc fields here.
24488         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
24489         (diagnostic.o, opts.o, toplev.o): Update dependencies.
24491 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
24493         * config/picochip/picochip.md (movsi): Split a movsi from a
24494         const after reload.
24496 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24498         * ggc-zone.c: Update copyright year.
24499         (poison_region): Mark memory for Valgrind as undefined before
24500         memset () call and inaccessible afterwards.
24501         (ggc_pch_total_size): Change type of i to int.
24503 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24505         * ggc-common.c (ggc_free_overhead): Allow empty slot.
24507 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24509         * ggc-common.c: Update copyright year.
24510         (ggc_rlimit_bound): Remove prototype.  Compile only if
24511         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
24512         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
24513         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
24514         (ggc_min_heapsize_heuristic): Likewise.
24516 2010-05-26  Richard Guenther  <rguenther@suse.de>
24518         PR rtl-optimization/44164
24519         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
24520         no-common access-path disambiguation.
24521         (indirect_ref_may_alias_decl_p): Adjust.
24522         (indirect_refs_may_alias_p): Likewise.
24523         (refs_may_alias_p_1): Likewise.
24525 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24527         * c-typeck.c: Do not include expr.h.
24529 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24531         * rtl.h (decl_default_tls_model): Move prototype from here...
24532         * output.h: ...to here.
24533         * c-decl.c: Do not include rtl.h.
24534         * c-pragma.c: Likewise.
24535         * c-parser.c: Likewise.
24536         * c-gimplify.c: Likewise.  And also not hard-reg-set.
24537         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
24538         FIXME note for it.  Add a FIXME note for expr.h.
24539         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
24540         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
24541         defined.
24543 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
24545         PR target/44199
24546         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
24547         or total_size is larger than red zone size for non-V4 ABI, emit a
24548         stack_tie resp. frame_tie insn before stack pointer restore.
24549         * config/rs6000/rs6000.md (frame_tie): New insn.
24551 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
24553         * function.h (struct function): Add can_throw_non_call_exceptions bit.
24554         * lto-streamer-in.c (input_function): Stream it in.
24555         * lto-streamer-out.c (output_function): Stream it out.
24556         * function.c (allocate_struct_function): Set it.
24557         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
24558         for flag_non_call_exceptions.
24559         * cfgbuild.c (control_flow_insn_p): Likewise.
24560         (make_edges): Likewise.
24561         * cfgexpand.c (expand_stack_alignment): Likewise.
24562         * combine.c (distribute_notes): Likewise.
24563         * cse.c (cse_extended_basic_block): Likewise.
24564         * except.c (insn_could_throw_p): Likewise.
24565         * gcse.c (simple_mem): Likewise.
24566         * ipa-pure-const.c (check_call): Likewise.
24567         (check_stmt ): Likewise.
24568         * lower-subreg.c (lower-subreg.c): Likewise.
24569         * optabs.c (emit_libcall_block): Likewise.
24570         (prepare_cmp_insn): Likewise.
24571         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
24572         * postreload.c (rest_of_handle_postreload): Likewise.
24573         * reload1.c (reload_as_needed): Likewise.
24574         (emit_input_reload_insns): Likewise.
24575         (emit_output_reload_insns): Likewise.
24576         (fixup_abnormal_edges): Likewise.
24577         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
24578         * store-motion.c (find_moveable_store): Likewise.
24579         * tree-eh.c (stmt_could_throw_p): Likewise.
24580         (tree_could_throw_p): Likewise.
24581         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24582         * config/arm/arm.c (arm_expand_prologue): Likewise.
24583         (thumb1_expand_prologue): Likewise.
24584         * config/rx/rx.md (cbranchsf4): Likewise.
24585         (cmpsf): Likewise.
24586         * config/s390/s390.c (s390_emit_prologue): Likewise.
24587         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
24588         (inline_forbidden_into_p): New predicate.
24589         (expand_call_inline): Use it to forbid inlining.
24590         (tree_can_inline_p): Likewise.
24592 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24594         * config/i386/i386-c.c: Do not include rtl.h.
24595         * config/i386/t-i386: Update dependencies.
24597 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24599         * attribs.c: Do not include rtl.h.
24600         * Makefile.in: Update dependencies.
24602 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
24604         * double-int.h (double_int_and): New.
24605         * combine.c (try_combine): Clean up, use double_int_* and
24606         immed_double_int_const functions.
24608 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24610         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
24611         stderr to /dev/null instead of grep -q.
24612         * configure: Regenerate.
24614 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24616         * Makefile.in (EXCEPT_H): Fix typo.
24618 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
24620         * ira-build.c (update_conflict_hard_reg_costs): New.
24621         (ira_build): Call update_conflict_hard_reg_costs.
24623 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
24625         PR debug/41371
24626         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
24627         ENABLE_CHECKING.
24628         (intersect_loc_chains): Walk the s2var's loc_chain together
24629         with s1node chain as long as the locations are equal, don't
24630         call find_loc_in_1pdv in that case.
24632         PR debug/42801
24633         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
24634         (copy_bind_expr): ... instead of here.
24635         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
24636         if the block hasn't been remapped.
24637         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
24638         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
24640 2010-05-25  Richard Guenther  <rguenther@suse.de>
24642         PR middle-end/44069
24643         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
24644         out-of-bounds array accesses.
24646 2010-05-25  Richard Guenther  <rguenther@suse.de>
24648         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
24649         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
24650         (run_gcc): Re-organize to make cleanup easier.
24652 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24654         * config/s390/s390.c (optimization_options): Fix and move the
24655         flag_prefetch_loop_arrays override ...
24656         (override_options): ... here.
24658 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
24660         * diagnostic.c: Don't include plugin.h.
24661         (diagnostic_report_diagnostic): Don't handle plugins specially
24662         here.  Pass context to internal_error callback.
24663         * diagnostic.h (struct diagnostic_context): Add context parameter
24664         to internal_error callback.
24665         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
24666         * plugin.h (struct diagnostic_context): Declare.
24667         (warn_if_plugins, plugins_internal_error_function): Declare.
24668         * toplev.c (general_init): Set global_dc->internal_error.
24669         * Makefile.in (diagnostic.o): Update dependencies.
24671 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
24673         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
24674         * config/rs6000/t-darwin64: New.
24675         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
24676         build crt2.
24678 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
24680         PR 44203
24681         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
24682         match the original (and intended) behaviour before r159557.  This
24683         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
24684         in two ways.
24686 2010-05-25  Richard Guenther  <rguenther@suse.de>
24688         * doc/invoke.texi: Document -Ofast.
24689         * target.h (struct gcc_target): Add handle_ofast.
24690         * target-def.h (TARGET_HANDLE_OFAST): Add.
24691         (TARGET_INITIALIZER): Adjust.
24692         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
24693         * common.opt (Ofast): Add.
24695 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
24697         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
24698         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
24700 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
24702         PR target/43610
24703         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
24704         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
24705         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
24706         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
24708 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
24710         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
24711         DW_OP_minus with negated offset instead of DW_OP_plus.
24712         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
24714 2010-05-25  Wei Guozhi  <carrot@google.com>
24716         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
24717         tst instruction and a new alternative.
24718         * config/arm/constraints.md (Pu): New constraint.
24720 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
24722         * function.c (assign_stack_local_1): Initialize variable
24723         to avoid warning when bootstrapping at -O3.
24725 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
24727         * configure.ac (all_lang_makefiles): Remove everything related to it.
24728         * configure: Regenerate.
24729         * Makefile.in: Fix reference to ada Make-lang.in.
24730         Remove support for LANG_MAKEFILES.
24732 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
24733             Sandra Loosemore  <sandra@codesourcery.com>
24735         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
24736         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
24737         description.  Add arm_neon_fp16_ok.
24738         (Add Options): Add arm_neon and arm_neon_fp16.
24740 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
24742         * diagnostic.c: Don't include flags.h.
24743         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
24744         context parameters.  Check flags in the context passed as a parameter.
24745         (diagnostic_build_prefix): Add context parameter.  Check
24746         show_column flag in context.
24747         (diagnostic_action_after_output): Check fatal_errors flag in context.
24748         (diagnostic_report_current_module): Check show_column flag in context.
24749         (default_diagnostic_starter): Update call to
24750         diagnostic_build_prefix.
24751         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
24752         (emit_diagnostic): Pass context to permissive_error_kind.
24753         (permerror): Pass context to permissive_error_kind.
24754         * diagnostic.h (struct diagnostic_context): Add show_column,
24755         pedantic_errors, permissive and fatal_errors fields.
24756         (diagnostic_build_prefix): Update prototype.
24757         * langhooks.c
24758         * toplev.c (process_options): Set flags in global_dc from
24759         flag_show_column, flag_pedantic_errors, flag_permissive,
24760         flag_fatal_errors.
24761         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
24762         to diagnostic_build_prefix.
24763         * Makefile.in (diagnostic.o): Update dependencies.
24765 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
24767         * config/i386/ia32intrin.h (__crc32q): Define only if
24768         __SSE4_2__ is defined.
24770 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
24772         PR target/44132
24773         PR middle-end/43602
24774         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
24775         DECL_VISIBILITY_SPECIFIED.
24776         (emutls_decl): Set DECL_PRESERVE_P and copy
24777         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
24778         (emutls_finalize_control_var): New callback.
24779         (emutls_finish): Finalize emutls control variables.
24780         * toplev.c (compile_file): Move the call to emutls_finish ()
24781         before varpool_assemble_pending_decls ().
24783 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
24785         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
24786         added to the preprocessor condition.
24788 2010-05-24  Paul Brook  <paul@codesourcery.com>
24790         * gengtype-lex.l: Add HARD_REG_SET.
24791         * expr.c (expand_expr_real_1): Record writes to hard registers.
24792         * function.c (rtl_data): Add asm_clobbers.
24793         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
24794         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
24795         Use crtl->asm_clobbers.
24797 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24799         * doc/makefile.texi (Makefile): Mention stages 'profile'
24800         and 'feedback' for profiledbootstrap.
24802 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
24804         PR target/44245
24805         * config/i386/i386.c (def_builtin): Properly check
24806         OPTION_MASK_ISA_64BIT.
24808 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
24810         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
24811         typedefs with different but compatible types.  Allow duplicate
24812         typedefs with the same type except for pedantic non-C1X, but give
24813         warning for variably modified types.
24814         * c-typeck.c (tagged_types_tu_compatible_p,
24815         function_types_compatible_p, type_lists_compatible_p,
24816         comptypes_internal): Add parameter different_types_p; set
24817         *different_types_p for different but compatible types.  All
24818         callers changed.
24819         (comptypes_check_different_types): New.
24820         * c-tree.h (comptypes_check_different_types): Declare.
24822 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
24824         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
24825         * jump.c: Include basic-block.h.
24826         * profile.c: Likewise.
24827         * tree-profile.c: Likewise.
24828         * coverage.c: Likewise.
24829         * basic-block.h (optimize_function_for_size_p): Move to function.h.
24830         (optimize_function_for_speed_p): Likewise.
24831         * function.h (optimize_function_for_size_p,
24832         optimize_function_for_speed_p): Moved here from basic-block.h.
24833         * Makefile.in: Update dependencies.
24835 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24837         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
24838         before calling make; allow override through $MAKE.
24839         * doc/invoke.texi (Optimize Options): Document override.
24841 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
24843         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
24844         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24845         (rs6000_mode_dependent_address_ptr): Make static.
24846         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24847         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
24848         Remove.
24850 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
24852         PR target/43869
24853         * config/i386/i386.c: Make sure that the correct regparm is passed.
24855 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
24857         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
24858         * sbitmap.c: ...to here to internalize sbitmap element access.
24859         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
24860         Explain why basic-block.h is included.
24861         * function.h: Include tm.h for CUMULATIVE_ARGS.
24862         * Makefile.in: Update dependencies.
24864 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
24866         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
24867         New core types.
24868         * sbitmap.h (struct sbitmap_def): Do not typedef here.
24869         * sbitmap.c: Include sbitmap.h.
24870         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
24871         hard-reg-set.h.  Split everything related to regsets out from here...
24872         * regset.h: ...to here.  New file.
24873         * df.h: Include regset.h and sbitmap.h.
24874         * tree-flow.h: Likewise.
24875         * cfgloop.h: Likewise.
24876         * except.h: Do not include sbitmap.h.  Include hashtab.h.
24877         * cgraph.h: Include vec.h and function.h.
24878         * reload.h (struct insn_chain): Change types of live_throughout
24879         and dead_or_set from regset_head to bitmap_head.
24880         (compute_use_by_pseudos): Be defined also if regset.h is not included.
24881         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
24882         spilled_regs from regset_head to bitmap_head to avoid dependency
24883         in regset.h.
24884         * sel-sched-ir.h: Include regset.h.
24885         * reload.c: Include df.h before reload.h.
24886         * caller-save.c: Likewise.
24887         * reload1.c: Likewise.
24888         * ira.c: Likewise.
24889         (mark_elimination): Update type of r to bitmap, consistent with
24890         DF_LR_IN.
24891         * dominance.c: Include bitmap.h.
24892         * modulo-sched.c: Include df.h.
24893         * cfganal.c: Include bitmap.h and sbitmap.h.
24894         * cfgbuild.c: Include sbitmap.h.
24895         * lcm.c: Include sbitmap.h.
24896         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
24897         * domwalk.c: Include sbitmap.h, exclude ggc.h.
24898         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
24899         * cselib.c: Include bitmap.h.
24900         * tree-optimize.c: Include regset.h.
24901         * stmt.c: Include bitmap.h.
24902         * Makefile.in: Update dependencies.
24904 2010-05-22  Jan Hubicka  <jh@suse.cz>
24906         * cgraph.h (struct varpool_node): Add same_comdat_group.
24907         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
24908         pointer.
24909         (output_varpool): Update call of lto_output_varpool_node.
24910         (input_varpool): Read same_comdat_group pointer.
24911         (input_varpool_1): Fixup same_comdat_group pointer.
24912         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
24913         group is needed, all are.
24914         * varpool.c (varpool_remove_node): Remove node from same comdat group
24915         linklist too.
24916         (varpool_analyze_pending_decls): Walk same comdat groups.
24918 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
24920         * rtl.h (union rtunion_def): Remove rt_bit member.
24921         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
24922         * print-rtl (print_rtx): Do not print the member.
24923         * gengtype.c (adjust_field_rtx_def): Do not handle it.
24924         * gengenrtl.c (type_from_format): Likewise.
24925         (accessor_from_format): Likewise.
24927 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
24929         * dbgcnt.c: Include toplev.h instead of errors.h.
24930         * ira-emit.c: Don't include errors.h.
24931         * ira.c: Include toplev.h instead of errors.h.
24932         * lto-compress.c: Include toplev.h instead of errors.h.
24933         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
24934         ira.o, dbgcnt.o): Update dependencies.
24936 2010-05-22  Richard Guenther  <rguenther@suse.de>
24938         * gimple.c (gimple_types_compatible_p): Check type qualifications
24939         before merging pointer to complete and pointer to incomplete type.
24940         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
24941         we use our own resolution algorithm.  The gold linker plugin
24942         doesn't do the job we want it to do here.
24944 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
24946         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24947         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24948         (sparc_mode_dependent_address_p): New function.
24950 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
24952         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
24954         * timevar.c: Do not include any core headers.
24955         (timevar_print): De-i18n-ize.
24956         (print_time): Likewise.
24957         * timevar.h (timevar_push, timevar_pop): Make inline functions.
24959 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
24961         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
24962         langhooks-def.h.
24963         (diagnostic_initialize): Initialize x_data not last_function.
24964         (diagnostic_report_current_function): Move to tree-diagnostic.c.
24965         (default_diagnostic_starter): Call
24966         diagnostic_report_current_module not
24967         diagnostic_report_current_function.
24968         (diagnostic_report_diagnostic): Initialize x_data not
24969         abstract_origin.
24970         (verbatim): Likewise.
24971         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
24972         x_data.
24973         (struct diagnostic_context): Change last_function to x_data.
24974         (diagnostic_auxiliary_data): Replace with
24975         diagnostic_context_auxiliary_data and
24976         diagnostic_info_auxiliary_data.
24977         (diagnostic_last_function_changed, diagnostic_set_last_function,
24978         diagnostic_report_current_function): Move to tree-diagnostic.h.
24979         (print_declaration, dump_generic_node, print_generic_stmt,
24980         print_generic_stmt_indented, print_generic_expr,
24981         print_generic_decl, debug_c_tree, dump_omp_clauses,
24982         print_call_name, debug_generic_expr, debug_generic_stmt,
24983         debug_tree_chain, default_tree_printer): Move to
24984         tree-pretty-print.h.
24985         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
24986         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
24987         gimple-pretty-print.h.
24988         * pretty-print.c: Don't include tree.h
24989         (pp_base_format): Don't handle %K here.
24990         (pp_base_tree_identifier): Move to tree-pretty-print.c.
24991         * pretty-print.h (text_info): Change abstract_origin to x_data.
24992         (pp_tree_identifier, pp_unsupported_tree,
24993         pp_base_tree_identifier): Move to tree-pretty-print.h.
24994         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
24995         tree-pretty-print.h: New files.
24996         * tree-pretty-print.c: Include tree-pretty-print.h.
24997         (percent_K_format): New.  Moved from pretty-print.c.
24998         (pp_base_tree_identifier): Move from pretty-print.c.
24999         * c-objc-common.c: Include tree-pretty-print.h.
25000         (c_tree_printer): Handle %K here.
25001         * langhooks.c: Include tree-diagnostic.h.
25002         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
25003         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
25004         (default_tree_printer): Handle %K using percent_K_format.
25005         (general_init): Use default_tree_diagnostic_starter.
25006         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
25007         (free_lang_data): Use default_tree_diagnostic_starter.
25008         * c-pretty-print.c: Include tree-pretty-print.h.
25009         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25010         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25011         * dwarf2out.c: Include tree-pretty-print.h.
25012         * except.c: Include tree-pretty-print.h.
25013         * gimple-pretty-print.c: Include tree-pretty-print.h and
25014         gimple-pretty-print.h.
25015         * gimplify.c: Include tree-pretty-print.h.
25016         * graphite-poly.c: Include tree-pretty-print.h and
25017         gimple-pretty-print.h.
25018         * ipa-cp.c: Include tree-pretty-print.h.
25019         * ipa-inline.c: Include gimple-pretty-print.h.
25020         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25021         * ipa-pure-const.c: Include gimple-pretty-print.h.
25022         * ipa-struct-reorg.c: Include tree-pretty-print.h and
25023         gimple-pretty-print.h.
25024         * ipa-type-escape.c: Include tree-pretty-print.h.
25025         * print-rtl.c: Include tree-pretty-print.h.
25026         * print-tree.c: Include gimple-pretty-print.h.
25027         * sese.c: Include tree-pretty-print.h.
25028         * tree-affine.c: Include tree-pretty-print.h.
25029         * tree-browser.c: Include tree-pretty-print.h.
25030         * tree-call-cdce.c: Include gimple-pretty-print.h.
25031         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25032         * tree-chrec.c: Include tree-pretty-print.h.
25033         * tree-data-ref.c: Include tree-pretty-print.h and
25034         gimple-pretty-print.h.
25035         * tree-dfa.c: Include tree-pretty-print.h.
25036         * tree-if-conv.c: Include tree-pretty-print.h and
25037         gimple-pretty-print.h.
25038         * tree-inline.c: Include tree-pretty-print.h.
25039         * tree-into-ssa.c: Include tree-pretty-print.h and
25040         gimple-pretty-print.h.
25041         * tree-nrv.c: Include tree-pretty-print.h.
25042         * tree-object-size.c: Include tree-pretty-print.h and
25043         gimple-pretty-print.h.
25044         * tree-outof-ssa.c: Include tree-pretty-print.h and
25045         gimple-pretty-print.h.
25046         * tree-parloops.c: Include tree-pretty-print.h and
25047         gimple-pretty-print.h.
25048         * tree-predcom.c: Include tree-pretty-print.h and
25049         gimple-pretty-print.h.
25050         * tree-scalar-evolution.c: Include tree-pretty-print.h and
25051         gimple-pretty-print.h.
25052         * tree-sra.c: Include tree-pretty-print.h.
25053         * tree-ssa-address.c: Include tree-pretty-print.h.
25054         * tree-ssa-alias.c: Include tree-pretty-print.h.
25055         * tree-ssa-ccp.c: Include tree-pretty-print.h and
25056         gimple-pretty-print.h.
25057         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
25058         * tree-ssa-copy.c: Include tree-pretty-print.h and
25059         gimple-pretty-print.h.
25060         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
25061         * tree-ssa-dce.c: Include tree-pretty-print.h and
25062         gimple-pretty-print.h.
25063         * tree-ssa-dom.c: Include tree-pretty-print.h and
25064         gimple-pretty-print.h.
25065         * tree-ssa-dse.c: Include gimple-pretty-print.h.
25066         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
25067         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
25068         * tree-ssa-live.c: Include tree-pretty-print.h and
25069         gimple-pretty-print.h.
25070         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
25071         gimple-pretty-print.h.
25072         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
25073         gimple-pretty-print.h.
25074         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
25075         gimple-pretty-print.h.
25076         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
25077         gimple-pretty-print.h.
25078         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
25079         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
25080         * tree-ssa-operands.c: Include tree-pretty-print.h and
25081         gimple-pretty-print.h.
25082         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
25083         gimple-pretty-print.h.
25084         * tree-ssa-pre.c: Include tree-pretty-print.h and
25085         gimple-pretty-print.h.
25086         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
25087         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
25088         gimple-pretty-print.h.
25089         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
25090         gimple-pretty-print.h.
25091         * tree-ssa-sink.c: Include gimple-pretty-print.h.
25092         * tree-ssa-ter.c: Include tree-pretty-print.h and
25093         gimple-pretty-print.h.
25094         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
25095         * tree-ssa.c: Include tree-pretty-print.h and
25096         gimple-pretty-print.h.
25097         * tree-stdarg.c: Include gimple-pretty-print.h.
25098         * tree-switch-conversion.c: Include gimple-pretty-print.h.
25099         * tree-tailcall.c: Include tree-pretty-print.h and
25100         gimple-pretty-print.h.
25101         * tree-vect-data-refs.c: Include tree-pretty-print.h and
25102         gimple-pretty-print.h.
25103         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
25104         gimple-pretty-print.h.
25105         * tree-vect-loop.c: Include tree-pretty-print.h and
25106         gimple-pretty-print.h.
25107         * tree-vect-patterns.c: Include gimple-pretty-print.h.
25108         * tree-vect-slp.c: Include tree-pretty-print.h and
25109         gimple-pretty-print.h.
25110         * tree-vect-stmts.c: Include tree-pretty-print.h and
25111         gimple-pretty-print.h.
25112         * tree-vectorizer.c: Include tree-pretty-print.h.
25113         * tree-vrp.c: Include tree-pretty-print.h and
25114         gimple-pretty-print.h.
25115         * value-prof.c: Include tree-pretty-print.h and
25116         gimple-pretty-print.h.
25117         * var-tracking.c: Include tree-pretty-print.h.
25118         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
25119         (tree-diagnostic.o): New dependencies.
25120         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
25121         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
25122         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
25123         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
25124         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
25125         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
25126         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
25127         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
25128         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
25129         tree-ssa-address.o, tree-ssa-loop-niter.o,
25130         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
25131         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
25132         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
25133         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
25134         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
25135         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
25136         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
25137         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
25138         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
25139         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
25140         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
25141         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
25142         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
25143         tree-switch-conversion.o, var-tracking.o, value-prof.o,
25144         cfgexpand.o, pretty-print.o): Update dependencies.
25146 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
25148         * tree-ssa-structalias.c: Remove tm_p.h from include.
25150 2010-05-21  Jeff Law  <law@redhat.com>
25152         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
25154 2010-05-21  Jason Merrill  <jason@redhat.com>
25156         * tree-eh.c (cleanup_is_dead_in): New.
25157         (lower_try_finally): Don't generate a dead cleanup region.
25158         (lower_cleanup): Likewise.
25160 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
25162         PR debug/44223
25163         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
25164         unchain each use from the cyclic next_regno_use chain first.
25166 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
25168         * real: Do not include gmp.h, mpfr.h, and mpc.h.
25169         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
25170         (real_value_negate, real_value_abs): New prototypes.
25171         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
25172         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
25173         new include file for interface between MPFR and REAL_VALUE_TYPE.
25174         * real.c: Include realmpfr.h.
25175         (real_arithmetic2): Remove legacy function.
25176         (real_value_negate): New.
25177         (real_value_abs): New.
25178         (mfpr_from_real, real_from_mpfr): Move from here...
25179         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
25180         * builtins.c: Include realmpfr.h.
25181         * fold-const.c: Include realmpfr.h.
25182         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
25183         (fold_negate_const): Likewise.
25184         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
25185         * toplev.c: Include realmpfr.h.
25186         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
25187         and real_value_negate.
25188         * fixed-value.c (check_real_for_fixed_mode): Likewise.
25189         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
25190         (vfp3_const_double_index): Likewise.
25191         (arm_print_operand): Likewise.
25192         * Makefile.in: Update dependencies.
25194 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25196         * config/s390/s390.c (override_options): Increase the default
25197         of max-completely-peel-times.
25199 2010-05-21  Julian Brown  <julian@codesourcery.com>
25200             Mark Mitchell  <mark@codesourcery.com>
25202         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
25203         sibling calls for Thumb-1.
25204         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
25205         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
25206         Thumb-2.
25207         (*call_insn, *call_value_insn): Don't use for Thumb-2.
25208         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
25209         for Thumb-2.
25210         (return): New expander.
25211         (*arm_return): New name for ARM return insn.
25212         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
25214 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
25216         * config.gcc (sparc64-*-rtems*): New target.
25218 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
25220         * tree.c (build_function_decl_skip_args): Fix grammar.
25221         (build_function_type_list_1): Fix typos, adjust formatting.
25223 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
25225         * tree.h: Include real.h and fixed-value.h as basic datatypes.
25226         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
25227         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
25228         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
25229         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
25230         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
25231         tree-pretty-print.c, tree-loop-distribution.c,
25232         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
25233         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
25234         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
25235         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
25236         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
25237         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
25238         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
25239         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
25240         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
25241         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
25242         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
25243         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
25244         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
25245         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
25246         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
25247         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
25248         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
25249         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
25250         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
25251         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
25252         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
25253         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
25254         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
25255         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
25256         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
25257         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
25258         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
25259         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
25260         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
25261         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
25262         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
25263         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
25264         config/score/score7.c, config/score/score.c, config/arm/arm.c,
25265         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
25266         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
25267         config/bfin/bfin.c: Clean up redundant includes.
25268         * Makefile.in: Update accordingly.
25270 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
25272         PR middle-end/44204
25273         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
25274         statement has no arguments.
25276 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
25278         PR/44139
25279         * varasm.c (emutls_decl): Merge attributes to new decl.
25281 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
25283         PR middle-end/44101
25284         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
25285         around the uniquized constructor if its type requires a conversion.
25287 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
25289         PR debug/44205
25290         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
25291         at -O0 goto_locus of any of the incoming edges differs from
25292         goto_locus of outgoing edge, or gimple_location of any of the
25293         labels differs.
25295 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
25297         * ira.c (ira_non_ordered_class_hard_regs): Define.
25298         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
25299         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
25300         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
25301         cost of unaligned hard regs when allocating multi-reg pseudos.
25303 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
25305         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
25306         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
25307         for TARGET_NO_FLOAT.
25308         * config/mips/mips.c (mips_file_start): Expand conditional expression
25309         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
25310         (mips_override_options): Move -mno-float override -msoft-float and
25311         -mhard-float.
25312         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
25313         Condition(TARGET_SUPPORTS_NO_FLOAT).
25314         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
25315         __mips_no_float here.
25316         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
25317         (TARGET_SUPPORTS_NO_FLOAT): Define.
25318         * config/mips/sdemtk.opt: Delete.
25320 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
25322         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
25324 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
25326         PR target/43733
25327         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
25328         * configure: Regenerate.
25329         * config.in: Regenerate.
25330         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
25331         instead of sahf only for 64bit targets.
25333 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
25335         PR debug/44178
25336         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
25337         setup_ref_regs for DEBUG_INSNs.
25339 2010-05-20  Jan Hubicka  <jh@suse.cz>
25341         PR middle-end/44197
25342         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
25344 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
25346         PR bootstrap/43870
25347         * df-scan.c (df_ref_compare): Stabilize sort.
25349 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
25351         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
25352         argument.  Don't use DW_OP_piece if offset is non-zero,
25353         put offset into second DW_OP_bit_piece argument.
25354         (dw_sra_loc_expr): Adjust callers.  For memory expressions
25355         compute offset.
25357 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
25359         PR target/44202
25360         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
25361         settings for 16-bit-constant "addo" alternative.
25363 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
25365         * config/mips/mips-dsp.md (add<DSPV:mode>3,
25366         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
25368         PR target/43764
25369         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
25370         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
25371         Use it.
25373 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
25375         * diagnostic.c (FLOAT, FFS): Don't undefine.
25376         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
25377         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
25378         include ordering.
25380 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25382         * combine.c (propagate_for_debug): Call make_compound_operation
25383         on the source value.
25384         (try_combine): When implementing a split chosen by find_split_point,
25385         either copy i2src or set it to null.  Assert that i2src is not null
25386         before substituting into CALL_INSN_FUNCTION_USAGE.
25388 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
25390         * double-int.h (double_int_ior): New function.
25391         * tree.h (build_int_cst_wide_type): Remove.
25392         * tree.c (build_int_cst_wide_type): Remove.
25393         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
25394         of build_int_cst_wide_type.
25395         * stor-layout.c (set_sizetype): (Ditto.).
25396         * dojump.c (do_jump): Use build_int_cstu instead of
25397         build_int_cst_wide_type.
25399 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
25401         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
25402         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
25403         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
25404         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
25405         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
25406         propagate the 'data' argument to copy_tree_r.
25407         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
25408         Propagate 'data' argument to walk_tree.
25409         (copy_if_shared): New function.
25410         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
25411         (unmark_visited): New function.
25412         (unshare_body): Call copy_if_shared instead of doing it manually.
25413         (unvisit_body): Call unmark_visited instead of doing it manually.
25415 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
25417         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
25418         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
25419         * hooks.c: Likewise.
25420         * target-def.h (TARGET_FOLD_BUILTIN): Define to
25421         hook_tree_tree_int_treep_bool_null.
25422         * target.h (struct gcc_target): Update signature of fold_builtin
25423         field.
25424         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
25425         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
25426         instead of the call expression.
25427         (fold_builtin_call_array): Pass n and argarray directly.
25428         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
25429         consing a list.
25430         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
25431         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
25432         `i' and use it in place of `arity'.
25433         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
25434         Dereference `args' directly.
25435         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
25437 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25439         * doc/sourcebuild.texi (Effective-Target Keywords): Document
25440         3dnow, sse3, sse2.
25441         (Directives): Document optional dg-require-effective-target
25442         selector.
25444 2010-05-19  Richard Guenther  <rguenther@suse.de>
25446         PR lto/44196
25447         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
25449 2010-05-19  Richard Guenther  <rguenther@suse.de>
25451         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
25452         * common.opt (fwhopr=): New.
25453         * opts.c (common_handle_option): Handle OPT_fwhopr.
25454         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
25455         * collect2.c (main): Match -fwhopr*.
25456         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
25457         Execute ltrans stage in parallel when jobs is bigger than 1.
25459 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25461         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
25462         pentiumpro on Solaris 8/x86 with Sun as.
25463         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
25464         hidden alias bug.
25465         (gcc_cv_as_ix86_quad): Check for .quad directive.
25466         * configure: Regenerate.
25467         * config.in: Regenerate.
25468         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
25470 2010-05-19  Martin Jambor  <mjambor@suse.cz>
25472         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
25473         also for indirect edges.  Actual printing moved...
25474         (ipa_print_node_jump_functions_for_edge): ...here.
25475         (ipa_compute_jump_functions): Renamed to
25476         ipa_compute_jump_functions_for_edge and made static.
25477         (ipa_compute_jump_functions): New function.
25478         (make_edge_direct_to_target): Check if the number of arguments on
25479         the newly direct edge is the same as the number of parametrs of
25480         the callee.
25481         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
25482         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
25483         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
25484         analysis functions unconditionally, call the new
25485         ipa_analyze_params_uses on the node instead of every edge.
25487 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
25489         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
25490         to tree.
25491         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
25492         also checks for a constant int vs.  non-constant but
25493         loop-invariant steps.
25494         (find_or_create_group): Change the sort algorithm to only consider
25495         steps that are constant ints.
25496         (idx_analyze_ref): Adopt code to handle a tree instead of a
25497         HOST_WIDE_INT for step.
25498         (gather_memory_references_ref): Handle tree instead of int and be
25499         prepared to see a NULL_TREE.
25500         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
25501         prefetches if the step cannot be calculated at compile time.
25502         (issue_prefetch_ref): Issue prefetches for non-constant but
25503         loop-invariant steps.
25505 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
25507         Revert:
25508         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
25510         * tree.h (build_call_list): Remove.
25511         * tree.c (build_call_list): Remove.
25513 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
25515         * tree.h (build_call_list): Remove.
25516         * tree.c (build_call_list): Remove.
25518 2010-05-18  Jan Hubicka  <jh@suse.cz>
25520         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
25522 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
25524         PR rtl-optimization/43332
25525         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
25527 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
25529         * tree.h (build_int_cstu): Implement as static inline.
25530         * tree.c (build_int_cstu): Remove function.
25531         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
25532         sign extended.
25534 2010-05-18  Richard Guenther  <rguenther@suse.de>
25536         PR lto/44143
25537         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
25538         (debug): Initialize from -save-temps.
25539         (collect_execute): Print command-line when verbose.
25540         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
25541         for ltrans invocation.  Produce -dumpbase flag again.
25542         (process_args): Remove.
25543         (main): Simplify.
25544         * collect2.c (maybe_run_lto_and_relink): Only pass object
25545         files to lto-wrapper.
25546         * gcc.c (LINK_COMMAND_SPEC): Likewise.
25548 2010-05-18  Jan Hubicka  <jh@suse.cz>
25550         * opts.c (decode_options): Do not disable whopr at ipa_cp.
25551         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
25553 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
25555         PR lto/44184
25556         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
25557         in a GIMPLE_ASM.
25558         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
25559         in a GIMPLE_ASM.
25561 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
25563         PR debug/41371
25564         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
25565         rtx_equal_p inline.
25567 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
25569         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
25570         lto-macho as lto_binary_reader.
25572         * darwin.c (darwin_asm_named_section): Do not add assembler comment
25573         after .section directive; just print it before the directive instead.
25575 2010-05-17  Jan Hubicka  <jh@suse.cz>
25577         * cgraph.c (cgraph_create_virtual_clone): Only check
25578         versionable_function_p when not in wpa and checking is enabled.
25579         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
25580         there are no more functions to materialize.
25582 2010-05-17  Jan Hubicka  <jh@suse.cz>
25584         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
25585         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
25586         New functions.
25587         (output_cgraph): Call output_cgraph_opt_summary.
25588         (input_cgrpah): Call input_cgraph_opt_summary.
25589         (output_cgraph_opt_summary_p, output_node_opt_summary,
25590         input_node_opt_summary, input_cgraph_opt_section): New functions.
25591         * lto-section-in.c (lto_section_name): Add cgraphopt.
25592         * tree-inline.c (tree_function_versioning): Handle parm_num.
25593         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
25594         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
25596 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
25598         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
25599         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
25600         the insn to prefetch ratio heuristic to loops with known trip count.
25602 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
25604         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
25605         (schedule_prefetches): Do not generate a prefetch if the unroll factor
25606         is far from what is required by the prefetch.
25608 2010-05-17  Jan Hubicka  <jh@suse.cz>
25610         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
25611         (ipcp_estimate_growth): Likewise.
25612         (ipcp_const_param_count): Likewise.
25613         (ipcp_insert_stage): Likewise.
25614         * ipa-prop.c (visit_load_for_mod_analysis): New function.
25615         (visit_store_addr_for_mod_analysis): Set used flag.
25616         (ipa_detect_param_modifications): Set used flag for SSE params;
25617         update use of walk_stmt_load_store_addr_ops.
25618         (ipa_print_node_params): Print used flag.
25619         (ipa_write_node_info): Stream used flag.
25620         (ipa_read_node_info): Likewise.
25621         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
25622         (ipa_is_param_used): New function.
25623         (lto_ipa_fixup_call_notes): Remove unused declaration.
25625 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25627         PR target/44074
25628         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
25629         * configure: Regenerate.
25630         * config.in: Regenerate.
25631         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
25632         !HAVE_AS_IX86_REP_LOCK_PREFIX.
25633         Don't emit whitespace.
25634         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
25635         (*rep_movsi): Likewise.
25636         (*rep_movsi_rex64): Likewise.
25637         (*rep_movqi): Likewise.
25638         (*rep_movqi_rex64): Likewise.
25639         (*rep_stosdi_rex64): Likewise.
25640         (*rep_stossi): Likewise.
25641         (*rep_stossi_rex64): Likewise.
25642         (*rep_stosqi): Likewise.
25643         (*rep_stosqi_rex64): Likewise.
25644         (*cmpstrnqi_nz_1): Use {%;} after repz.
25645         (*cmpstrnqi_nz_rex_1): Likewise.
25646         (*cmpstrnqi_1): Likewise.
25647         (*cmpstrnqi_rex_1): Likewise.
25648         (*strlenqi_1): Use {%;} after repnz.
25649         (*strlenqi_rex_1): Likewise.
25650         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
25651         (*sync_compare_and_swap<mode>): Likewise.
25652         (sync_double_compare_and_swap<mode>): Likewise.
25653         (*sync_double_compare_and_swapdi_pic): Likewise.
25654         (sync_old_add<mode>): Likewise.
25655         (sync_add<mode>): Likewise.
25656         (sync_sub<mode>): Likewise.
25657         (sync_<code><mode>): Likewise.
25659 2010-05-17  Martin Jambor  <mjambor@suse.cz>
25661         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
25662         otr_token and polymorphic.
25663         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
25664         (cgraph_clone_edge): Copy the above fields.
25665         * tree.c (get_binfo_at_offset): New function.
25666         * tree.h (get_binfo_at_offset): Declare.
25667         * ipa-prop.h (enum jump_func_type): Added known_type jump function
25668         type, reordered items, updated comments.
25669         (union jump_func_value): Added base_type field, reordered fields.
25670         (enum ipa_lattice_type): Moved down in the file.
25671         (struct ipa_param_descriptor): New field polymorphic.
25672         (ipa_is_param_polymorphic): New function.
25673         * ipa-prop.c: Include gimple.h and gimple-fold.h.
25674         (ipa_print_node_jump_functions): Print known type jump functions.
25675         (compute_complex_pass_through): Renamed to...
25676         (compute_complex_assign_jump_func): this.
25677         (compute_complex_ancestor_jump_func): New function.
25678         (compute_known_type_jump_func): Likewise.
25679         (compute_scalar_jump_functions): Create known type and complex ancestor
25680         jump functions.
25681         (ipa_note_param_call): New parameter polymorphic, set the corresponding
25682         flag in the call note accordingly.
25683         (ipa_analyze_call_uses): Renamed to...
25684         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
25685         variable var only in the block where it is used.
25686         (ipa_analyze_virtual_call_uses): New function.
25687         (ipa_analyze_call_uses): Likewise.
25688         (combine_known_type_and_ancestor_jfs): Likewise.
25689         (update_jump_functions_after_inlining): Implemented handling of a
25690         number of new jump function types combination.
25691         (print_edge_addition_message): Removed.
25692         (make_edge_direct_to_target): New function.
25693         (try_make_edge_direct_simple_call): Likewise.
25694         (try_make_edge_direct_virtual_call): Likewise.
25695         (update_call_notes_after_inlining): Renamed to...
25696         (update_indirect_edges_after_inlining): this.  Moved edge creation for
25697         indirect calls to try_make_edge_direct_simple_call, also calls
25698         try_make_edge_direct_virtual_call for virtual calls.
25699         (ipa_print_node_params): Changed the header message.
25700         (ipa_write_jump_function): Stream also known type jump functions.
25701         (ipa_read_jump_function): Likewise.
25702         (ipa_write_indirect_edge_info): Stream new fields in
25703         cgraph_indirect_call_info.
25704         (ipa_read_indirect_edge_info): Likewise.
25705         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
25706         GIMPLE_FOLD_H.
25708 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25710         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
25712 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
25714         * tree.h (CALL_EXPR_ARGS): Delete.
25715         (call_expr_arglist): Delete.
25716         * tree.c (call_expr_arglist): Delete.
25717         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
25718         targetm.fold_builtin.
25719         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
25720         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
25721         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
25722         arglist parameter.  Use CALL_EXPR_ARG.
25723         (picochip_expand_builtin_3op): Likewise.
25724         (picochip_expand_builtin_2opvoid): Likewise.
25725         (picochip_expand_array_get): Likewise.
25726         (picochip_expand_array_put): Likewise.
25727         (picochip_expand_array_testport): Likewise.
25728         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
25729         rather than arglist.
25730         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
25731         CALL_EXPR_ARGS.
25732         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
25733         than TREE_VALUE and TREE_CHAIN.
25734         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
25735         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
25736         the arglist.
25738 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
25740         PR bootstrap/42347
25741         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
25742         to have no fallthru edge.
25744         PR middle-end/44102
25745         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
25746         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
25747         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
25748         add BARRIER after previous bb if needed.
25750 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
25752         * tree.c (build_function_type_list_1): Remove bogus assert condition.
25754 2010-05-17  Alan Modra  <amodra@gmail.com>
25756         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
25757         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
25758         with copy_reg rtx param.
25759         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
25760         Correct cases where code for ABI_V4 did not initialise the reg
25761         used to access frame.  Also leave frame_reg_rtx as sp for large
25762         frames that save no regs.
25764 2010-05-17  Martin Jambor  <mjambor@suse.cz>
25766         PR middle-end/44133
25767         * tree-sra.c (create_access_replacement): New parameter rename, mark
25768         the replaement for renaming only when it is true.
25769         (get_access_replacement): Pass true in the rename parameter of
25770         create_access_replacement.
25771         (get_unrenamed_access_replacement): New function.
25772         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
25773         replacement declaration from it.
25775 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
25777         * function.c (try_fit_stack_local, add_frame_space): New static
25778         functions.
25779         (assign_stack_local_1): Use them.  Look for opportunities to use
25780         space previously wasted on alignment.
25781         * function.h (struct frame_space): New.
25782         (struct rtl_data): Add FRAME_SPACE_LIST member.
25783         * reload1.c (something_was_spilled): New static variable.
25784         (alter_reg): Set it.
25785         (reload): Test it in addition to testing if the frame size changed.
25787 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
25789         * config/s390/s390.c: Define sane prefetch settings and activate
25790         flag_prefetch_loop_arrays on -O3.
25791         * config/s390/s390.h: Declare that read can use write prefetch.
25793 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
25795         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
25796         build.
25798 2010-05-16  Jan Hubicka  <jh@suse.cz>
25800         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
25801         function body; do not check stdarg field of struct function.
25803 2010-05-16  Jan Hubicka  <jh@suse.cz>
25805         * cgraph.c (dump_cgraph_node): Dump versionable flag.
25806         * cgraph.h (cgraph_local_info): Add versionable flag.
25807         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
25808         (ipcp_versionable_function_p): Use it.
25809         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
25810         versionable flag.
25812 2010-05-16  Jan Hubicka  <jh@suse.cz>
25814         * cgraph.c (cgraph_clone_node): Take decl argument and insert
25815         clone into hash when it is different from orig.
25816         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
25817         * cgraph.h (cgraph_clone_node): Update prototype.
25818         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
25819         (lto_cgraph_encoder_delete): Delete body map.
25820         (lto_cgraph_encoder_size): Move to header.
25821         (lto_cgraph_encoder_encode_body_p,
25822         lto_set_cgraph_encoder_encode_body): New.
25823         (lto_output_node): Do not take written_decls argument; output clone_of
25824         pointer.
25825         (add_node_to): Add include_body_argument; call
25826         lto_set_cgraph_encoder_encode_body on master of the clone.
25827         (add_references): Update use of add_node_to.
25828         (compute_ltrans_boundary): Likewise.
25829         (output_cgraph): Do not create written_decls bitmap.
25830         (input_node): Take nodes argument; stream in clone_of correctly.
25831         (input_cgraph_1): Update use of input_node.
25832         * lto-streamer-out.c (lto_output): Use encoder info to decide
25833         what bodies to output.
25834         * ipa-inline.c (cgraph_clone_inlined_nodes,
25835         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
25836         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
25837         (lto_cgraph_encoder_size): Define here.
25838         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
25839         Declare.
25841 2010-05-16  Richard Guenther  <rguenther@suse.de>
25843         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
25844         -fipa-type-escape.
25845         * ipa-type-escape.c (gate_type_escape_vars): Run when
25846         -fipa-struct-reorg runs.
25847         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
25848         * common.opt (fipa-type-escape): Remove.
25850 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
25852         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
25853         (decode_options): Likewise.
25854         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
25856 2010-05-16  Jan Hubicka  <jh@suse.cz>
25858         * ipa.c (function_and_variable_visibility): Also bring local all
25859         aliases.
25861 2010-05-16  Richard Guenther  <rguenther@suse.de>
25863         * alias.c (nonoverlapping_memrefs_p): Remove use of
25864         IPA type-escape information.
25866 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
25868         * c-common.c (c_common_reswords): Add _Static_assert for C.
25869         * c-parser.c (c_token_starts_declaration,
25870         c_parser_next_token_starts_declaration,
25871         c_parser_static_assert_declaration_no_semi,
25872         c_parser_static_assert_declaration): New.
25873         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
25874         Handle static assertions if static_assert_ok.
25875         (c_parser_external_declaration, c_parser_declaration_or_fndef,
25876         c_parser_compound_statement_nostart, c_parser_label,
25877         c_parser_for_statement, c_parser_objc_methodprotolist,
25878         c_parser_omp_for_loop): All callers of
25879         c_parser_declaration_or_fndef changed.
25880         (c_parser_struct_declaration): Handle static assertions.
25881         (c_parser_compound_statement_nostart): Use
25882         c_parser_next_token_starts_declaration and
25883         c_token_starts_declaration to detect start of declarations.
25884         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
25885         Likewise.
25887 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
25889         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25890         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25891         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25892         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25893         (mmix_function_outgoing_value): Rename to...
25894         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
25895         (mmix_function_value_regno_p): Make static.
25896         (mmix_libcall_value): New function.
25897         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
25898         mmix_function_value_regno_p): Remove declaration.
25900 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
25902         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
25903         BUILT_IN_ALLOCA if stack checking is enabled.
25905 2010-05-16  Richard Guenther  <rguenther@suse.de>
25907         * var-tracking.c (vars_copy_1): Inline ...
25908         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
25909         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
25910         (variable_merge_over_cur): Adjust.  Merge asserts.
25911         (variable_merge_over_src): Likewise.
25912         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
25913         (variable_post_merge_new_vals): Merge asserts.
25914         (variable_post_merge_perm_vals): Likewise.
25915         (find_mem_expr_in_1pdv): Likewise.
25916         (dataflow_set_different_value): Remove.
25917         (onepart_variable_different_p): Merge asserts.
25918         (variable_different_p): Likewise.
25919         (dataflow_set_different_1): Inline ...
25920         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
25921         (emit_notes_for_differences_1): Merge asserts.
25923 2010-05-16  Richard Guenther  <rguenther@suse.de>
25925         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
25926         * optabs.c (libfunc_decl_hash): Likewise.
25927         * varasm.c (emutls_decl): Likewise.
25929 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
25931         * c-decl.c: Don't include gimple.h.
25932         (merge_decls): Do not copy gimple_body.
25934 2010-05-15  Jason Merrill  <jason@redhat.com>
25936         * c.opt: Add -fnothrow-opt.
25938 2010-05-15  Jan Hubicka  <jh@suse.cz>
25940         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
25941         analyzed.
25942         * passes.c (ipa_write_summaries): Write all analyzed nodes.
25944 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
25946         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
25947         * Makefile.in: Add it.
25948         Fix all other Makefile dependencies for changes below.
25949         * tree.h: Include it instead of defining VEC primitives here.
25950         * gimple.h: Likewise.
25951         * rtl.h: Likewise.
25952         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
25953         * except.h: Include vecir.h, break dependence on tree.h.
25955         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
25956         Move from here...
25957         * tree-iterator.c: ...to here.
25958         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
25960         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
25961         tm_p.h.
25962         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
25963         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
25964         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
25965         tree-mudflap.h, and target.h.
25966         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
25967         predict.h, tree-inline.h, gimple.h, and langhooks.h.
25968         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
25969         Add FIXME for why gimple.h is still included (should be unnecessary
25970         since GCC 4.5 gimplification unit-at-a-time).
25971         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
25972         * c-pragma.c: Add FIXME for why function.h needs to be included just
25973         for cfun, at front-end level.
25974         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
25975         Do not include ggc.h, but include vecprim.h for VEC(char).
25976         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
25977         Explain why target.h is included.
25978         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
25979         Explain why gimple.h is included.
25980         * c-ppoutput.c: Do not include tm.h.
25981         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
25982         * c-parses.c: Explain why rtl.h is included, and that this (and only
25983         this) is also why tm.h must be included.
25984         Do not include except.h.
25985         * c-lang.c: Do not include ggc.h.
25987 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
25989         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
25991 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
25993         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
25994         unions by default if those structs and unions have no tags.  Do
25995         not condition anonymous struct and unions handling on flag_iso.
25996         Allow anonymous structs and unions for C1X.
25997         (finish_struct): Do not diagnose lack of named fields when
25998         anonymous structs and unions present for C1X.  Accept flexible
25999         array members in structure with anonymous structs or unions but no
26000         directly named fields.
26001         * doc/extend.texi (Unnamed Fields): Update.
26003 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
26005         * gimple.h (compare_field_offset): Rename into...
26006         (gimple_compare_field_offset): ...this.
26007         * gimple.c (compare_field_offset): Rename into...
26008         (gimple_compare_field_offset): ...this.  Compare the full access if
26009         the offset is self-referential.
26010         (gimple_types_compatible_p): Adjust for above renaming.
26011         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
26012         DECL_NONADDRESSABLE_P flag of fields before merging them.
26014 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
26016         * tree.h (ctor_to_list): Delete.
26017         * tree.c (ctor_to_list): Delete.
26019 2010-05-15  Jan Hubicka  <jh@suse.cz>
26021         * ipa-reference.c: Include toplev.h
26022         (is_proper_for_analysis): Only add to all_module_statics
26023         if it is allocated.
26024         (write_node_summary_p, stream_out_bitmap,
26025         ipa_reference_write_optimization_summary,
26026         ipa_reference_read_optimization_summary): New.
26027         (struct ipa_opt_pass_d pass_ipa_reference): Add
26028         optimization summary streaming.
26029         * lto-cgraph.c (referenced_from_this_partition_p,
26030         reachable_from_this_partition_p): New functions.
26031         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
26032         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
26033         * opts.c (decode_options): Enable ipa_reference.
26034         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
26035         * lto-streamer.h (referenced_from_this_partition_p,
26036         reachable_from_this_partition_p): Declare.
26038 2010-05-15  Richard Guenther  <rguenther@suse.de>
26040         PR tree-optimization/44038
26041         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
26042         taking the address of a V_C_E of a constant.
26044 2010-05-14  Jan Hubicka  <jh@suse.cz>
26046         * tree.h (memory_identifier_string): Remove.
26047         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
26048         (ipa_reference_global_vars_info_d): Remove statics_not_read and
26049         statics_not_written.
26050         (ipa_reference_optimization_summary_d): New structure.
26051         (ipa_reference_optimization_summary_t): New type and vector.
26052         (ipa_reference_vars_info_d): Embedd structures instead of using
26053         pointers.
26054         (reference_vars_to_consider): Remove out of GGC space.
26055         (module_statics_escape): Remove.
26056         (global_info_obstack): Rename to ...
26057         (optimization_summary_obstack): ... this one.
26058         (initialization_status_t): Remove.
26059         (memory_identifier_string): Remove.
26060         (get_reference_vars_info): Fix indenting.
26061         (set_reference_vars_info): Likewise.
26062         (get_reference_optimization_summary): New.
26063         (set_reference_optimization_summary): New.
26064         (get_global_reference_vars_info): Remove.
26065         (ipa_reference_get_read_global): Remove.
26066         (ipa_reference_get_written_global): Remove.
26067         (ipa_reference_get_not_read_global): Update.
26068         (ipa_reference_get_not_written_global): Update.
26069         (is_proper_for_analysis): Outlaw addressable.
26070         (propagate_bits): Update for new datastructures.
26071         (analyze_variable): Remove.
26072         (init_function_info): Update for new datastructures.
26073         (clean_function_local_data): Remove.
26074         (clean_function): Remove.
26075         (copy_global_bitmap): Use optimizations_summary_obstack.
26076         (duplicate_node_data): Duplicate optimization summary only.
26077         (remove_node_data): Remove optimization summary only.
26078         (generate_summary): Do not analyze variables; do not compute
26079         module_statics_escape; do not prune solutions by it.
26080         (read_write_all_from_decl): Fix typos in comments.
26081         (propagate): Doscover readonly and nonaddressable first;
26082         update for new datastructures; share global bitmaps.
26083         * ipa-reference.h (ipa_reference_get_read_global,
26084         ipa_reference_get_written_global): Remove.
26085         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
26086         * Makefile.in: Remove ipa-refereference from GT files.
26088 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
26090         PR debug/44112
26091         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
26092         for all SYMBOL_REF_DECLs.
26094 2010-05-14  Jan Hubicka  <jh@suse.cz>
26096         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
26097         (varpool_all_refs_explicit_p): New inline function.
26098         * ipa-reference.c: Update comment.
26099         (module_statics_written): Remove.
26100         (get_static_decl): Remove.
26101         (ipa_init): Do not initialize module_statics_written.
26102         (analyze_function): Likewise.
26103         (generate_summary): Likewise; do not compute module_statics_readonly
26104         and do not update variable flags.
26105         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
26106         * ipa.c: Inlucde flags.h
26107         (cgraph_local_node_p): New.
26108         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
26109         promote functions to local.
26110         (ipa_discover_readonly_nonaddressable_vars): New function.
26111         (function_and_variable_visibility): Use cgraph_local_node_p.
26112         * varpool.c (varpool_finalize_decl): Set force_output for
26113         DECL_PRESERVE_P vars.
26115 2010-05-14  Jan Hubicka  <jh@suse.cz>
26117         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
26119 2010-05-14  Richard Guenther  <rguenther@suse.de>
26121         PR tree-optimization/44119
26122         * tree-ssa-pre.c (eliminate): Properly mark replacement of
26123         a PHI node necessary.
26125 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26127         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
26129 2010-05-14  Jason Merrill  <jason@redhat.com>
26131         PR c++/44127
26132         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
26133         (gimple_call_set_nothrow): New.
26134         * gimple.c (gimple_build_call_from_tree): Call it.
26135         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
26137         PR c++/44127
26138         * gimplify.c (gimplify_seq_add_stmt): No longer static.
26139         * gimple.h: Declare it.
26140         * gimple.c (gimple_build_eh_filter): No ops.
26142 2010-05-14  Jan Hubicka  <jh@suse.cz>
26144         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
26145         nodes already in queue.
26146         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
26147         re-enqueueing node.
26149 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
26151         PR debug/44136
26152         * cfgexpand.c (expand_debug_expr): If non-memory op0
26153         has BLKmode, return NULL.
26155 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
26157         * config.gcc: Add support for --with-cpu option for bdver1.
26158         * config/i386/i386.h (TARGET_BDVER1): New macro.
26159         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
26160         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
26161         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
26162         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
26163         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
26164         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
26165         (processor_type): Add PROCESSOR_BDVER1.
26166         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
26167         processor_type in config/i386/i386.h.
26168         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
26169         movaps <reg, reg> instead of movapd <reg, reg> when replacing
26170         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
26171         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
26172         to emit packed xor instead of packed double/packed integer
26173         xor for SSE and AVX when moving a zero value.
26174         * config/i386/sse.md: Add check for
26175         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
26176         movapd/movdqa for SSE and AVX.
26177         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
26178         single logical operations i.e and, or and xor instead of packed double
26179         logical operations for SSE and AVX.
26180         * config/i386/i386-c.c (ix86_target_macros_internal):
26181         Add PROCESSOR_BDVER1.
26182         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
26183         (has_fma4, has_xop): New.
26184         * config/i386/i386.c (bdver1_cost): New variable.
26185         (m_BDVER1): New macro.
26186         (m_AMD_MULTIPLE): Add m_BDVER1.
26187         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
26188         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
26189         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
26190         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
26191         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
26192         x86_tune_sse_partial_reg_dependency,
26193         x86_tune_sse_unaligned_load_optimal,
26194         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
26195         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
26196         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
26197         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
26198         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
26199         Enable/disable for bdver1.
26200         (processor_target_table): Add bdver1_cost.
26201         (cpu_names): Add bdver1.
26202         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
26203          processor_alias_table.
26204         (ix86_expand_vector_move_misalign): Change.
26205         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
26206         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
26207         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
26208         of movupd/movdqu for SSE and AVX.
26209         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
26210         (ix86_tune_adjust_cost): Add code for bdver1.
26211         (standard_sse_constant_opcode): Add check for
26212         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
26213         of packed double xor for SSE and AVX.
26215 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
26217         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
26218         result to unsigned.
26220 2010-05-14  Tristan Gingold  <gingold@adacore.com>
26222         * toplev.c (default_debug_hooks): Remove this variable.
26223         (process_options): Remove assignments to default_debug_hooks.
26225 2010-05-14  Martin Jambor  <mjambor@suse.cz>
26227         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
26228         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
26229         * langhooks.h (struct lang_hooks_for_decls): Removed field
26230         fold_obj_type_ref.
26231         * tree.c (free_lang_data): Remove assignment to
26232         lang_hooks.fold_obj_type_ref.
26233         * tree.def (OBJ_TYPE_REF): Update comment.
26235 2010-05-14  Richard Guenther  <rguenther@suse.de>
26237         PR tree-optimization/44124
26238         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
26240 2010-05-14  Alan Modra  <amodra@gmail.com>
26242         PR target/44075
26243         * config/rs6000/rs6000.c (struct machine_function): Reorder
26244         fields for better packing.  Add lr_save_state.
26245         (rs6000_ra_ever_killed): Return lr_save_state if set.
26246         (rs6000_emit_eh_reg_restore): Set lr_save_state.
26248 2010-05-13  Jan Hubicka  <jh@suse.cz>
26250         * varpool.c (decide_is_variable_needed): Drop code checking
26251         TREE_SYMBOL_REFERENCED.
26253 2010-05-13  Jan Hubicka  <jh@suse.cz>
26255         * final.c (output_addr_const): Do not call mark_decl_referenced.
26256         * cgraphunit.c (process_function_and_variable_attributes): Use
26257         mark_needed_node dirrectly.
26258         (assemble_thunk): Do not call mark_decl_referenced.
26260 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
26262         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
26264 2010-05-13  Jeff Law  <law@redhat.com>
26266         * ira-conflicts.c (print_allocno_conflicts): New function broken out
26267         from...
26268         (print_conflicts): Call print_allocno_conflicts.
26270 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
26272         PR debug/44104
26273         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
26274         if it is NULL.
26276 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
26278         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
26279         t-mingw-w64 or t-mingw-w32 for multilib configuration.
26280         * config/i386/t-mingw-w32: New.
26281         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
26283 2010-05-13  Martin Jambor  <mjambor@suse.cz>
26285         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
26286         gimple-fold.c).
26287         * gimple-fold.c (get_base_binfo_for_type): New function.
26288         (gimple_get_relevant_ref_binfo): Likewise.
26289         (gimple_fold_obj_type_ref_known_binfo): Likewise.
26290         (gimple_fold_obj_type_ref): Likewise.
26291         (fold_gimple_call): Simplify condition for folding virtual calls
26292         and call gimple_fold_obj_type_ref.
26293         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
26294         (gimple_fold_obj_type_ref_known_binfo): Likewise.
26296 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
26298         * config/rs6000/rs6000-protos.h
26299         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
26300         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
26301         (rs6000_debug_mode_dependent_address)
26302         (rs6000_mode_dependent_address_ptr): Likewise.
26304 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
26306         PR debug/43983
26307         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
26308         by SRA.
26309         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
26310         * tree-sra.c (create_access_replacement): Call unshare_expr before
26311         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
26312         * dwarf2out.c: Include tree-flow.h.
26313         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
26314         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
26315         Handle DW_OP_bit_piece.
26316         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
26317         construct_piece_list, adjust_piece_list): New functions.
26318         (add_var_loc_to_decl): Handle SRA optimized variables.
26319         Adjust for var_loc_note to loc field renaming.
26320         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
26321         in VAR_LOCATION note.
26322         (new_loc_descr_op_bit_piece): New function.
26323         (dw_sra_loc_expr): New function.
26324         (dw_loc_list): Use it.  Don't handle the last range after the
26325         loop, handle it inside of the loop.  Adjust for var_loc_note
26326         to loc field renaming.
26327         (add_location_or_const_value_attribute): Only special case
26328         single entry loc lists if loc is NOTE_P.  Adjust for
26329         var_loc_note to loc field renaming.
26330         (dwarf2out_var_location): Don't set newloc->var_loc_note
26331         and newloc->next here.
26333 2010-05-12  Jan Hubicka  <jh@suse.cz>
26335         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
26336         flag.
26337         * cgraph.h (cgraph_only_called_directly_p,
26338         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
26339         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
26340         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
26341         (assemble
26342         * ipa.c (cgraph_remove_unreachable_nodes): Use
26343         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
26344         flags.
26345         * tree-inline.c (copy_bb): Check address_taken flag.
26346         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
26347         externally_visible flag.
26349 2010-05-12  Jason Merrill  <jason@redhat.com>
26351         PR bootstrap/44048
26352         PR target/44099
26353         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
26354         * sdbout.c (plain_type_1): Likewise.
26355         * dwarf2out.c (is_base_type): Likewise.
26356         (gen_type_die_with_usage): Likewise.  Generate
26357         DW_TAG_unspecified_type for any LANG_TYPE.
26359 2010-05-12  Jan Hubicka  <jh@suse.cz>
26361         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
26362         indrect edges too.
26363         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
26364         (cgraph_clone_edge): Update.
26365         (cgraph_node_remove_callees): Remove indirect calls too.
26366         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
26367         (cgraph_create_indirect_edge): Update prototype.
26368         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
26369         is_proper_for_analysis.
26370         (add_new_function, visited_nodes, function_insertion_hook_holder,
26371         get_local_reference_vars_info, mark_address_taken, mark_address,
26372         mark_load, mark_store, check_asm_memory_clobber, check_call,
26373         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
26374         (ipa_init): Do not initialize visited_nodes;
26375         function_insertion_hook_holder.
26376         (analyze_variable): Rewrite.
26377         (analyze_function): Rewrite.
26378         (copy_local_bitmap): Remove.
26379         (duplicate_node_dat): Do not duplicate local info.
26380         (generate_summary): Simplify to only walk cgraph.
26381         (write_node_summary_p, ipa_reference_write_summary,
26382         ipa_reference_read_summary): Remove.
26383         (propagate): Do not remove function insertion;
26384         generate summary.
26385         (pass_ipa_reference): NULLify summary handling fields.
26386         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
26387         (input_edge): Input ecf_flags.
26388         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
26389         (update_indirect_edges_after_inlining): Ignore edges with unknown
26390         param.
26392 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
26394         * implicit-zee.c: New file.
26395         * tree-pass.h (pass_implicit_zee): Declare.
26396         * passes.c (init_optimization_passes): Add zee pass.
26397         * common.opt (fzee): New flag.
26398         * timevar.def (TV_ZEE): Define.
26399         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
26400         and beyond.
26401         * Makefile.in (implicit-zee.o): Add new build file.
26403 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
26404             Nathan Froyd  <froydnj@codesourcery.com>
26406         * c-common.c (sync_resolve_params): Remove write-only variable.
26408 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
26410         * target.h (struct gcc_target): Add mode_dependent_address_p field.
26411         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
26412         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
26413         * targhooks.c (default_mode_dependent_address_p): New function.
26414         * targhooks.h (default_mode_dependent_address_p): Declare function.
26415         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
26416         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
26417         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
26418         target hook. Change return type to bool.
26419         * recog.h (mode_dependent_address_p): Change return type to bool.
26421 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
26422             Nathan Froyd  <froydnj@codesourcery.com>
26424         * tree-mudflap.c (build_function_type_0, build_function_type_1,
26425         build_function_type_2, build_function_type_3): Remove.
26426         (mudflap_init): Use build_function_type_list.
26428 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
26429             Nathan Froyd  <froydnj@codesourcery.com>
26431         * coverage.c (build_fn_info_value): Call build_constructor instead of
26432         build_constructor_from_list.
26433         (build_ctr_info_value): Likewise.
26434         (build_gcov_info): Likewise.
26436 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
26438         * tree.c (build_constructor): Compute TREE_CONSTANT for the
26439         resultant constructor.
26440         (build_constructor_single): Don't set TREE_CONSTANT.
26441         (build_constructor_from_list): Don't compute TREE_CONSTANT.
26443 2010-05-12  Jan Hubicka  <jh@suse.cz>
26445         * cgraph.h (struct varpool_node): Add aux.
26446         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
26447         * varpool.c (varpool_remove_node): Do not remove initializer.
26448         (varpool_reset_queue): Export.
26449         (varpool_finalize_decl): Volatile vars are forced to be output.
26450         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
26451         replaced decl.
26452         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
26453         process_references, varpool_can_remove_if_no_refs): New functions.
26454         (cgraph_remove_unreachable_nodes): Handle variables too.
26456 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
26458         PR target/44088
26459         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
26461 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
26463         PR middle-end/44085
26464         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
26465         change value of ORT_TASK.
26466         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
26467         (omp_notice_threadprivate_variable): New function.
26468         (omp_notice_variable): Call it for threadprivate variables.
26469         If enclosing ctx is a task, print enclosing task rather than
26470         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
26471         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
26472         if task has untied clause.
26474         PR debug/42278
26475         * dwarf2out.c (base_type_die): Don't add name attribute here.
26476         (modified_type_die): Instead of sizetype use
26477         its underlying original type.  If a DW_TAG_base_type doesn't
26478         have name added, add __unknown__.
26479         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
26480         always call force_type_die instead.
26482 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
26484         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
26485         for __stack_chk_guard.
26487 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
26489         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
26490         don't call start_source_file debug hook here...
26491         (finish_options): ... but here, after outputting predefined and
26492         command line defines and undefs.
26494         PR middle-end/44071
26495         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
26496         no fallthru edge.
26497         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
26498         optimizing away empty bb with no successors, move over its
26499         footer chain to fallthru predecessor.
26500         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
26501         (rtl_split_edge): For asm goto call patch_jump_insn even if
26502         splitting fallthru edge.
26504         PR c++/44059
26505         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
26506         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
26507         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
26508         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
26509         on DW.ref.* decls.
26511         PR c++/44062
26512         * c-parser.c (c_parser_expression): Mark LHS of a comma
26513         expression as read if it is a decl, handled component or
26514         COMPOUND_EXPR with that on the RHS.
26515         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
26516         if it is a decl or handled component.
26518 2010-05-11  Jan Hubicka  <jh@suse.cz>
26520         * lto-symtab.c (lto_symtab_free): New function.
26521         * lto-streamer.h (lto_symtab_free): Declare.
26523 2010-05-11  Jan Hubicka  <jh@suse.cz>
26525         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
26526         that if function is needed it is reachable.
26527         (lto_output_node): See if it the function is reachable or referenced.
26528         (output_cgraph): Update call of lto_output_node.
26529         * lto-streamer.h (reachable_from_other_partition_p): Declare.
26531 2010-05-11  Jan Hubicka  <jh@suse.cz>
26533         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
26534         Mark as used.
26536 2010-05-11  Jan Hubicka  <jh@suse.cz>
26538         PR tree-optimize/44063
26539         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
26540         queue.
26541         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
26542         limits.
26543         (estimate_function_body_sizes): Compute sizes even when disregarding.
26545 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
26547         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
26549 2010-05-11  Jan Hubicka  <jh@suse.cz>
26551         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
26552         into every boundary.
26554 2010-05-11  Jan Hubicka  <jh@suse.cz>
26556         * matrix-reorg.c (matrix_reorg): Rebuild edges.
26558 2010-05-11  Jan Hubicka  <jh@suse.cz>
26560         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
26561         lto_streamer_cache_delete): Put nodes into heap.
26562         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
26563         heap.
26565 2010-05-11  Jan Hubicka  <jh@suse.cz>
26567         * cgraphbuild.c (cgraph_rebuild_references): New.
26568         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
26569         out extern inlines.
26570         * cgraph.h (cgraph_rebuild_references): Declare.
26571         * tree-inline.c (tree_function_versioning): Use it.
26572         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
26574 2010-05-11  Jan Hubicka  <jh@suse.cz>
26576         * cgraph.c: Include ipa-utils.h
26577         (cgraph_create_virtual_clone): Update references.
26578         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
26580 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
26582         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
26583         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
26584         cache size.
26586 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
26588         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
26590 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
26592         * gcc.c (execute): For -### don't quote arguments that
26593         contain just alphanumerics and _/-. characters.
26594         * doc/invoke.texi: Document that change for -###.
26596         PR debug/44023
26597         * df-problems.c (struct dead_debug): Add to_rescan field.
26598         (dead_debug_init): Clear to_rescan field.
26599         (dead_debug_finish): Rescan all debug insns in to_rescan
26600         bitmap and free the bitmap.
26601         (dead_debug_insert_before): Instead of rescanning debug insns
26602         immediately queue their rescanning until dead_debug_finish.
26603         (df_note_bb_compute): After dead_debug_add do continue instead
26604         of break.
26606 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
26608         PR debug/44028
26609         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
26610         clear also INSN_REG_USE_LIST.
26612 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26614         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
26616 2010-05-10  Jan Hubicka  <jh@suse.cz>
26618         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
26619         commited change.
26621 2010-05-10  Jan Hubicka  <jh@suse.cz>
26623         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
26624         Allocate encoders.
26625         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
26626         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
26627         (lto_streamer_cache_create): Init alloc pool.
26628         (lto_streamer_cache_delete): Free alloc pool.
26629         * lto-streamer.h: Include alloc pool.
26630         (lto_streamer_cache_d): Use alloc pool.
26631         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
26633 2010-05-10  Jan Hubicka  <jh@suse.cz>
26635         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
26636         * cgraphbuild.c: Include except.h
26637         (record_type_list, record_eh_tables): New function.
26638         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
26640 2010-05-10  Jan Hubicka  <jh@suse.cz>
26642         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
26643         __frame_dummy_init_array_entry, force_to_data): Attribute as used
26644         rather than unused.
26646 2010-05-10  Michael Matz  <matz@suse.de>
26648         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
26649         (can_reassociate_p): Use FLOAT_TYPE_P.
26650         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
26651         (vect_force_simple_reduction): ... this.
26652         * tree-parloops.c (gather_scalar_reductions): Use
26653         vect_force_simple_reduction.
26654         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
26655         vect_is_simple_reduction, add modify argument, if true rewrite
26656         "a-b" into "a+(-b)".
26657         (vect_is_simple_reduction, vect_force_simple_reduction): New
26658         functions.
26659         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
26661 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
26662             Vladimir Makarov  <vmakarov@redhat.com>
26664         PR rtl-optimization/44012
26665         * ira-build.c (remove_unnecessary_allocnos): Nullify
26666         regno_allocno_map of the removed allocno.
26668 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26670         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
26671         to /dev/null.
26672         * configure: Regenerate.
26674 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26676         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
26677         unused.
26678         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
26679         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
26680         support in Sun ld.
26681         * configure: Regenerate.
26683 2010-05-10  Richard Guenther  <rguenther@suse.de>
26685         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
26686         marked if the entry identifier is marked.
26688 2010-05-10  Richard Guenther  <rguenther@suse.de>
26690         * c-common.c (struct c_common_attributes): Add fnspec attribute.
26691         (handle_fnspec_attribute): New function.
26692         * gimple.h (gimple_call_return_flags): Declare.
26693         (gimple_call_arg_flags): Likewise.
26694         * gimple.c (gimple_call_arg_flags): New function.
26695         (gimple_call_return_flags): Likewise.
26696         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
26697         New argument flags.
26698         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
26699         return value flags.
26700         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
26701         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
26702         main work to ...
26703         (make_heapvar_for): ... this new function.
26704         (handle_rhs_call): Handle fnspec attribute argument specifiers.
26705         (handle_lhs_call): Likewise.
26706         (find_func_aliases): Adjust.
26708 2010-05-10  Richard Guenther  <rguenther@suse.de>
26710         PR tree-optimization/44050
26711         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
26713 2010-05-10  Wei Guozhi  <carrot@google.com>
26715         PR target/42879
26716         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
26718 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
26720         PR c/10676
26721         * c-typeck.c (lookup_field): Take a type directly.  Update
26722         recursive calls.
26723         (build_component_ref): Update call to lookup_field.
26724         (set_init_label): Use lookup_field to find initialized field.
26725         Handle returned list of fields like a sequence of designators.
26727 2010-05-09  Richard Guenther  <rguenther@suse.de>
26729         PR middle-end/44024
26730         * fold-const.c (tree_single_nonzero_warnv_p): Properly
26731         handle &FUNCTION_DECL.
26733 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
26735         PR c/4784
26736         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
26737         structures and unions recursively.
26738         (detect_field_duplicates): Move duplicate detection with a hash to
26739         detect_field_duplicates_hash.  Always use a hash if anonymous
26740         structures or unions are present.
26741         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
26742         give errors.
26744 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
26746         PR target/44046
26747         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
26748         detect Atom, Core 2 and Core i7.
26750 2010-05-09  Richard Guenther  <rguenther@suse.de>
26752         * gcc.c (store_arg): Handle temporary file deletion for
26753         joined arguments.
26755 2010-05-09  Richard Guenther  <rguenther@suse.de>
26757         PR middle-end/44043
26758         * ipa-inline.c (estimate_function_body_sizes): Return after
26759         disregarding inline limits.
26761 2010-05-09  Richard Guenther  <rguenther@suse.de>
26763         * gcc.c (store_arg): Revert last change.
26765 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
26767         PR middle-end/28685
26768         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
26769         (optimize_ops_list): Call it.
26771 2010-05-08  Richard Guenther  <rguenther@suse.de>
26773         PR tree-optimization/44030
26774         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
26775         NECESSARY flag if we propagate from a inserted expression.
26777 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
26779         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
26780         domain types as equal if they are both PLACEHOLDER_EXPRs.
26782 2010-05-08  Richard Guenther  <rguenther@suse.de>
26784         * lto-wrapper.c (run_gcc): Remove linker output from
26785         command line for LTRANS invocation.
26787 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
26789         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
26790         lto-macho as lto_binary_reader.
26791         * target.h (struct gcc_target): New hooks lto_start and lto_end.
26792         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
26793         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
26794         in lto_start and lto_end calls.
26795         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
26796         magic numbers.
26797         (scan_prog_file): Update is_elf_or_coff call.
26798         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
26800         * collect2.c (main): Fix enum comparison.
26802         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
26803         Add prototypes.
26804         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
26805         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
26806         and TARGET_ASM_LTO_END.
26807         * darwin.c: Include obstack.h and lto-streamer.h.
26808         (lto_section_names_offset, lto_section_names_obstack,
26809         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
26810         global variables.
26811         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
26812         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
26813         to a temporary file.
26814         (darwin_asm_lto_end): New function.  Restore asm_out_file.
26815         (darwin_asm_named_section): For LTO sections, replace the name with
26816         the offset of the section name in a string table, and build this
26817         table.
26818         (darwin_file_start): Initialize global vars for LTO support.
26819         (darwin_file_end): If output to asm_out_file was redirected, append it
26820         to the proper asm_out_file here.  Add the section names section.
26822 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
26824         * c-pragma.c (pending_weak_d, pending_weak): New.
26825         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
26826         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
26827         handle_pragma_weak): Update the uses of pending_weaks.
26829 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26831         PR documentation/44016
26832         * doc/standards.texi (Standards): Link to unversioned
26833         cxx0x_status.html page.
26835 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
26837         PR target/43708
26838         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
26839         in addition to TREE_USED, to avoid "set but unused" warnings.
26841 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
26843         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
26844         (is_loop_prefetching_profitable): Do not insert prefetches
26845         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
26846         times the prefetch ahead distance.
26848 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
26850         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
26851         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
26852         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
26853         the unroll_factor.
26855 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
26857         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
26858         a diagnostic info when the insn-to-mem ratio is too small.
26860 2010-05-07  Richard Guenther  <rguenther@suse.de>
26862         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
26863         the linker plugin.
26864         (store_arg): Queue temp_filename for deletion instead of
26865         the whole argument.
26867 2010-05-07  Richard Guenther  <rguenther@suse.de>
26869         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
26870         (run_gcc): Handle LTRANS phase invocation.
26871         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
26873 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
26875         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
26876         this is also meaningful on PARM_DECLs and RESULT_DECLs.
26878 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26880         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
26882 2010-05-07  Richard Guenther  <rguenther@suse.de>
26884         PR tree-optimization/44020
26885         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
26886         code when PRE is not yet initialized.
26888 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26890         * config/mips/dbxmdebug.h: Remove.
26891         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
26893 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
26895         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
26896         with null pointer and also warn about ordered comparison of zero with
26897         pointer if -Wextra.
26899 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
26901         * graphite-blocking.c
26902         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
26903         * graphite-clast-to-gimple.c
26904         (clast_to_gcc_expression): Same.
26905         (precision_for_value): Same.
26906         (precision_for_interval): Same.
26907         (gcc_type_for_interval): Same.
26908         (graphite_create_new_guard): Same.
26909         (compute_bounds_for_level): Same.
26910         (graphite_create_new_loop_guard): Same.
26911         * graphite-interchange.c
26912         (build_linearized_memory_access): Same.
26913         (pdr_stride_in_loop): Same.
26914         (memory_strides_in_loop_1): Same.
26915         (memory_strides_in_loop): Same.
26916         (extend_scattering): Same.
26917         (psct_scattering_dim_for_loop_depth): Same.
26918         (pbb_number_of_iterations): Same.
26919         * graphite-poly.h
26920         (debug_iteration_domains): Same.
26921         * graphite-ppl.c
26922         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
26923         (ppl_set_inhomogeneous_gmp): Same.
26924         (ppl_strip_loop): Same.
26925         (ppl_lexico_compare_linear_expressions): Same.
26926         (ppl_read_polyhedron_matrix): Same.
26927         (ppl_max_for_le_pointset): Same.
26928         * graphite-ppl.h
26929         (ppl_read_polyhedron_matrix): Same.
26930         (tree_int_to_gmp): Same.
26931         (gmp_cst_to_tree): Same.
26932         (ppl_set_inhomogeneous): Same.
26933         (ppl_set_inhomogeneous_tree): Same.
26934         (ppl_set_coef): Same.
26935         (ppl_set_coef_tree): Same.
26936         * graphite-sese-to-poly.c
26937         (build_pbb_scattering_polyhedrons): Same.
26938         (build_scop_scattering): Same.
26939         (scan_tree_for_params_right_scev): Same.
26940         (scan_tree_for_params): Same.
26941         (find_params_in_bb): Same.
26942         (find_scop_parameters): Same.
26943         (add_upper_bounds_from_estimated_nit): Same.
26944         (build_loop_iteration_domains): Same.
26945         (add_condition_to_domain): Same.
26946         (pdr_add_memory_accesses): Same.
26948 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
26950         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
26951         CLooG's value_* macros to their respective mpz_* counterparts.
26952         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
26953         (graphite_create_new_loop_guard): Same.
26954         * graphite-interchange.c (build_linearized_memory_access): Same.
26955         (pdr_stride_in_loop): Same.
26956         (memory_strides_in_loop_1): Same.
26957         (1st_interchange_profitable_p): Same.
26958         * graphite-poly.c (extend_scattering): Same.
26959         (psct_scattering_dim_for_loop_depth): Same.
26960         (pbb_number_of_iterations): Same.
26961         (pbb_number_of_iterations_at_time): Same.
26962         * graphite-poly.h (new_1st_loop): Same.
26963         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
26964         (oppose_constraint): Same.
26965         (insert_constraint_into_matrix): Same.
26966         (ppl_set_inhomogeneous_gmp): Same.
26967         (ppl_set_coef_gmp): Same.
26968         (ppl_strip_loop): Same.
26969         (ppl_lexico_compare_linear_expressions): Same.
26970         (ppl_max_for_le_pointset): Same.
26971         (ppl_min_for_le_pointset): Same.
26972         (ppl_build_realtion): Same.
26973         * graphite-ppl.h (gmp_cst_to_tree): Same.
26974         (ppl_set_inhomogeneous): Same.
26975         (ppl_set_inhomogeneous_tree): Same.
26976         (ppl_set_coef): Same.
26977         (ppl_set_coef_tree): Same.
26978         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
26979         (build_scop_scattering): Same.
26980         (add_value_to_dim): Same.
26981         (scan_tree_for_params_right_scev): Same.
26982         (scan_tree_for_params_int): Same.
26983         (scan_tree_for_params): Same.
26984         (find_params_in_bb): Same.
26985         (find_scop_parameters): Same.
26986         (add_upper_bounds_from_estimated_nit): Same.
26987         (build_loop_iteration_domains): Same.
26988         (create_linear_expr_from_tree): Same.
26989         (add_condition_to_domain): Same.
26990         (pdr_add_memory_accesses): Same.
26992 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
26993             Jason Merrill  <jason@redhat.com>
26995         * c-common.c (c_common_reswords): Add nullptr.
26996         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
26997         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
26998         (gen_type_die_with_usage): Likewise.
26999         * dbxout.c (dbxout_type): Likewise.
27000         * sdbout.c (plain_type_1): Likewise.
27002 2010-05-06  Jason Merrill  <jason@redhat.com>
27004         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
27005         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
27006         ret appropriately.
27007         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
27009         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
27010         stripping WITH_SIZE_EXPR.
27011         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
27012         change.
27014 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27016         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
27017         list of obsolete configurations.
27018         Disabled check for obsolete configurations.
27019         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
27020         Removed support for previous versions.
27021         * config/mips/iris.h: Removed.
27022         * config/mips/iris5.h: Removed.
27023         * config/mips/iris6.h: Merged old iris.h contents.
27024         (TARGET_IRIX): Removed.
27025         (DRIVER_SELF_SPECS): Removed mabi=32.
27026         (IDENT_ASM_OP): Removed undef.
27027         (STARTFILE_SPEC): Removed mabi=32.
27028         (ENDFILE_SPEC): Likewise.
27029         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
27030         (MACHINE_TYPE): Update for IRIX 6.5.
27031         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
27032         TARGET_IRIX by TARGET_IRIX6.
27033         (mips_file_start): Likewise.
27034         (mips_output_external): Remove IRIX 5/6 O32 support.
27035         (mips_output_function_prologue): Likewise.
27036         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
27037         TARGET_IRIX6.
27038         (TARGET_CPU_CPP_BUILTINS): Likewise.
27039         (TARGET_IRIX): Removed.
27040         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
27041         (MULTILIB_DIRNAMES): Removed 32.
27042         (MULTILIB_OSDIRNAMES): Removed ../lib.
27043         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
27044         (Specific, mips-sgi-irix5): Document removal.
27045         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
27046         Remove references to older IRIX 6 releases and the O32 ABI.
27048 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
27050         PR bootstrap/43994
27051         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
27052         instead of DF_REF_REAL_REG.
27054 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
27056         PR target/43888
27057         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
27058         handling to still return true for x64 targets.
27060 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
27062         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
27064 2010-05-06  Jan Hubicka  <jh@suse.cz>
27066         PR tree-optimization/43791
27067         * ipa-inline.c (update_caller_keys): Remove bogus
27068         disregard_inline_limits check.
27070 2010-05-06  Michael Matz  <matz@suse.de>
27072         PR tree-optimization/43984
27073         * tree-ssa-pre.c (inserted_phi_names): Remove.
27074         (inserted_exprs): Change to bitmap.
27075         (create_expression_by_pieces): Set bits, don't append to vector.
27076         (insert_into_preds_of_block): Don't handle inserted_phi_names.
27077         (eliminate): Don't look at inserted_phi_names, remove deleted
27078         insns from inserted_exprs.
27079         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
27080         (init_pre, fini_pre): Allocate and free bitmaps.
27081         (execute_pre): Insert insns on edges before elimination.
27083 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
27085         * tree.c (initializer_zerop): Handle STRING_CST.
27087 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27089         PR 40989
27090         * doc/invoke.texi (Wimplicit): Document as C only.
27091         * opts.c (common_handle_option): Add argument kind.
27092         (handle_option): Rename as read_cmdline_option. Factor out code to...
27093         (handle_option): ... here. New.
27094         (handle_options): Rename as read_cmdline_options.
27095         (decode_options): Update call.
27096         (set_option): Use option index instead of option pointer. Classify
27097         diagnostics correctly.
27098         (enable_warning_as_error): Call handle_option.
27099         * opts.h (set_option): Update declaration.
27100         (handle_option): Declare.
27101         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
27102         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
27103         * c-opts.c (set_Wimplicit): Delete.
27104         (c_family_lang_mask): New static constant.
27105         (c_common_handle_option): Add argument kind. Use handle_option
27106         instead of set_Wimplicit.
27107         (c_common_post_options): warn_implicit and warn_implicit_int
27108         are disabled by default.
27109         * c-common.c (warn_implicit): Do not define here.
27110         * c-common.h (warn_implicit): Do not declare here.
27111         (c_common_handle_option): Update declaration.
27112         * lto-opts.c (lto_reissue_options): Update call to set_option.
27114 2010-05-06  Richard Guenther  <rguenther@suse.de>
27116         PR tree-optimization/43571
27117         * domwalk.c (walk_dominator_tree): Walk the dominator
27118         sons in more optimal order.
27120 2010-05-06  Richard Guenther  <rguenther@suse.de>
27122         PR tree-optimization/43934
27123         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
27124         (stmt_cost): Likewise.
27125         (extract_true_false_args_from_phi): New helper.
27126         (determine_max_movement): For PHI nodes verify we can hoist them
27127         and compute their cost.
27128         (determine_invariantness_stmt): Handle PHI nodes.
27129         (move_computations_stmt): Likewise.  Hoist PHI nodes in
27130         if-converted form using COND_EXPRs.
27131         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
27132         (tree_ssa_lim): Likewise.
27133         * tree-flow.h (tree_ssa_lim): Adjust prototype.
27134         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
27136 2010-05-06  Richard Guenther  <rguenther@suse.de>
27138         PR tree-optimization/43987
27139         * tree-ssa-structalias.c (could_have_pointers): For possibly
27140         address-taken variables force pointers to be recorded.
27141         (create_variable_info_for_1): Likewise.
27142         (push_fields_onto_fieldstack): Pass in wheter all fields
27143         must have pointers.
27144         (find_func_aliases): Query types instead of vars whether
27145         they contain pointers where appropriate.
27147 2010-05-06  Jan Hubicka  <jh@suse.cz>
27149         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
27150         (record_reference, mark_address, mark_load, mark_store): Record
27151         references.
27152         (record_references_in_initializer): Update call of record_references.
27153         (rebuild_cgraph_edges): Remove all references before rebuiding.
27154         * cgraph.c (cgraph_create_node): Clear ref list.
27155         (cgraph_remove_node): Remove references.
27156         (dump_cgraph_node): Dump references.
27157         (cgraph_clone_node): Clone references.
27158         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
27159         (struct cgraph_node, varpool_node): Add ref_lst.
27160         * ipa-ref.c: New file.
27161         * ipa-ref.h: New file.
27162         * ipa-ref-inline.h: New file.
27163         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
27164         (referenced_from_other_partition_p): New function.
27165         (lto_output_varpool_node): Take set arugment; call
27166         referenced_from_other_partition.
27167         (lto_output_ref): New.
27168         (add_references): New.
27169         (output_refs): New.
27170         (output_cgraph): Compute boundary based on references; output refs.
27171         (output_varpool): Accept cgraph_node_set argument.
27172         (input_ref): New.
27173         (input_refs): New.
27174         (input_cgraph): Call input_refs.
27175         * lto-section-in.c (lto_section_name): Add refs.
27176         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
27177         (ipa-ref.o): New file.
27178         * varpool.c (varpool_node): Clear ipa ref list.
27179         (varpool_remove_node): Remove references.
27180         (dump_varpool_node): Dump references.
27181         (varpool_assemble_decl): Only compile finalized ones.
27182         (varpool_extra_name_alias): Initialize ref list.
27183         * lto-streamer.c (lto-get_section_name): Add .refs section.
27184         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
27185         (referenced_from_other_partition_p): Declared.
27187 2010-05-06  Ira Rosen  <irar@il.ibm.com>
27189         PR tree-optimization/43901
27190         * tree-vect-stmts.c (vectorizable_call): Assert that vector
27191         type is not NULL if it's transformation phase, and return
27192         FALSE if it's analysis.
27193         (vectorizable_conversion, vectorizable_operation,
27194         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
27196 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
27198         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
27199         Delete.
27200         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
27201         New define.
27202         * config/mips/mips-protos.h
27203         (mips_small_register_classes_for_mode_p): Delete prototype.
27205 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
27207         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
27208         * config/arm/arm.c (multiple_operation_profitable_p,
27209         compute_offset_order): New static functions.
27210         (load_multiple_sequence, store_multiple_sequence): Use them.
27211         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
27212         memory offsets, not register numbers.
27213         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
27215 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27217         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
27218         (get_pending_sizes, put_pending_size, put_pending_sizes):
27219         Update the uses of pending_sizes.
27220         * c-decl.c (store_parm_decls): Likewise.
27221         * c-tree.h (struct c_arg_info): Likewise.
27222         * tree.h: Update the prototype for get_pending_sizes and
27223         put_pending_sizes.
27225 2010-05-05  Jason Merrill  <jason@redhat.com>
27227         PR debug/43370
27228         * c-common.c (handle_aligned_attribute): Respect
27229         ATTR_FLAG_TYPE_IN_PLACE.
27231         PR testsuite/43758
27232         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
27233         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
27234         (TARGET_INITIALIZER): Use it.
27235         * c-common.c (attribute_takes_identifier_p): Call it.
27236         * c-common.h: Update prototype.
27237         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
27238         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
27240 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
27242         PR debug/43950
27243         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
27244         DW_ID_down_case for Fortran compilation units.
27246 2010-05-05  Jan Hubicka  <jh@suse.cz>
27248         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
27249         handle aliases.
27251 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
27253         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
27254         a variable-sized RESULT_DECL.
27256 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
27258         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
27260 2010-05-05  Jason Merrill  <jason@redhat.com>
27262         PR c++/43787
27263         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
27264         returns GS_OK.
27265         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
27267 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
27268             Jakub Jelinek  <jakub@redhat.com>
27270         PR debug/43478
27271         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
27272         (dead_debug_init, dead_debug_finish): New functions.
27273         (dead_debug_add, dead_debug_insert_before): Likewise.
27274         (df_note_bb_compute): Initialize a dead_debug object, add dead
27275         debug uses to it, insert debug bind insns before death insns,
27276         reset debug insns that refer to pending uses at the end.
27277         * rtl.h (make_debug_expr_from_rtl): New prototype.
27278         * varasm.c (make_debug_expr_from_rtl): New function.
27280 2010-05-05  Jan Hubicka  <jh@suse.cz>
27282         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
27283         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
27284         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
27285         lto_varpool_encoder_deref, lto_varpool_encoder_size,
27286         lto_varpool_encoder_encode_initializer_p,
27287         lto_set_varpool_encoder_encode_initializer): New functions.
27288         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
27289         call output_varpool.
27290         (input_varpool_node): Do not always set analyzed.
27291         (input_cgraph_1): Return vector of cgraph nodes.
27292         (input_varpool_1): Return vector of varpools.
27293         (input_cgraph): Free the vectors.
27294         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27295         output only initializers needed.
27296         (lto_output): Only call output_cgraph.
27297         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
27298         * lto-section-out.c (lto_new_out_decl_state): Initialize
27299         state->varpool_node_encoder.
27300         * lto-streamer.h (lto_varpool_encoder_d): New.
27301         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
27302         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
27303         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
27304         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
27305         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
27306         Declare.
27307         (output_varpool, input_varpool): Remove declarations.
27309 2010-05-05  Jan Hubicka  <jh@suse.cz>
27311         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
27312         with body can prevail.
27314 2010-05-05  Jan Hubicka  <jh@suse.cz>
27316         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
27317         size.
27319 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27321         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
27323         * gengtype.h (erro_at_line): Constify pos argument.
27325         * gengtype.c: Include hashtab.h.
27326         (enum gc_used): Document GC_MAYBE_POINTED_TO.
27327         (error_at_line): Constify pos argument.
27328         (do_typedef): Initialize p->opt field.
27329         (get_file_gtfilename): Fix comment typo.
27330         (struct walk_type_data): Constify line field.
27331         (get_output_file_for_structure): New function.
27332         (write_local_func_for_structure): Constify orig_s argument.
27333         Use get_output_file_for_structure.
27334         (write_func_for_structure): Use get_output_file_for_structure.
27335         (INDENT): New define.
27336         (dump_pair, dump_type, dump_type_list, dump_typekind)
27337         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
27338         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
27339         functions.
27340         (seen_types): New variable.
27341         (main): New variable do_dump.  Process "-d" command line option.
27342         Call dump_everything if dump requested.
27344 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
27346         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
27347         in a temporary instead of invoking the macro multiple times.
27348         (track_expr_p): Likewise.
27350 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
27352         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
27353         per new semantics.
27354         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
27355         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
27356         conditions for printing notes.
27357         * common.opt (-Wcoverage-mismatch): Allow negative, default to
27358         true, update documentation.
27359         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
27361 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
27363         PR c/43981
27364         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
27365         on dimen.
27367 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
27369         PR target/43799
27370         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
27371         (*sse_prologue_save_insn1): Likewise.
27372         (SSE prologue save splitter): Likewise.
27374 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
27376         * tree.c (free_lang_data_in_one_sizepos): New inline function.
27377         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
27378         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
27379         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
27380         all decls.  Call it on DECL_FIELD_OFFSET of fields.
27381         (find_decls_types_r): Follow DECL_VALUE_EXPR.
27382         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
27384 2010-05-04  Martin Jambor  <mjambor@suse.cz>
27386         * tree-sra.c (build_access_from_expr_1): The first parameter type
27387         changed to simple tree.
27388         (build_access_from_expr): Likewise, gsi parameter was eliminated.
27389         (scan_assign_result): Renamed to assignment_mod_result, enum elements
27390         renamed as well.
27391         (build_accesses_from_assign): Removed all parameters except for a
27392         simple gimple statement.  Now returns a simple bool.
27393         (scan_function): All non-analysis parts moved to separate functions
27394         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
27395         parameters and updated both callers.
27396         (sra_modify_expr): Removed parameter data.
27397         (sra_modify_function_body): New function.
27398         (perform_intra_sra): Call sra_modify_function_body to modify the
27399         function body.
27400         (replace_removed_params_ssa_names): Parameter data changed into
27401         adjustments vector.
27402         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
27403         changed the parameter dont_convert to convert with the opposite
27404         meaning.
27405         (sra_ipa_modify_assign): Parameter data changed into adjustments
27406         vector, return value changed to bool.
27407         (ipa_sra_modify_function_body): New function.
27408         (sra_ipa_reset_debug_stmts): Updated a comment.
27409         (modify_function): Use ipa_sra_modify_function_body to modify function
27410         body.
27412 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
27414         PR middle-end/43671
27415         * alias.c (true_dependence): Handle the same VALUE in x and mem.
27416         (canon_true_dependence): Likewise.
27417         (write_dependence_p): Likewise.
27419 2010-05-04  Jan Hubicka  <jh@suse.cz>
27421         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
27422         * cgraphbuild.c: Include ipa-utils.h
27423         (record_reference_ctx): New struct.
27424         (record_reference): Simplify to work on initializers; not statements.
27425         (mark_address, mark_load, mark_store): New.
27426         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
27427         walk PHI nodes too.
27428         (record_references_in_initializer): Update use of record_reference.
27429         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
27430         walk PHI nodes too.
27432 2010-05-04  Jan Hubicka  <jh@suse.cz>
27434         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
27435         node will be removed anyway.
27436         (lto_varpool_replace_node): Allow also unanalyzed nodes;
27437         relink aliases of node into prevailing node.
27438         * varpool.c (varpool_remove_node): Remove aliases properly;
27439         when removing node, remove all its aliases too; remove DECL_INITIAL
27440         of removed node; ggc_free the varpool node.
27442 2010-05-04  Richard Guenther  <rguenther@suse.de>
27444         PR tree-optimization/43879
27445         * tree-ssa-structalias.c (alias_get_name): Use
27446         DECL_ASSEMBLER_NAME if available.
27447         (create_function_info_for): Return the varinfo node.
27448         (ipa_pta_execute): Associate same-body aliases and extra names
27449         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
27451 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
27453         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
27455 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
27457         PR bootstrap/43964
27458         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
27459         only if HONOR_REG_ALLOC_ORDER is not defined.
27461 2010-05-04  Richard Guenther  <rguenther@suse.de>
27463         PR tree-optimization/43949
27464         * tree-vrp.c (extract_range_from_binary_expr): Only handle
27465         TRUNC_MOD_EXPR.
27467 2010-04-26  Jason Merrill  <jason@redhat.com>
27469         * c.opt (-fstrict-enums): New.
27470         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
27472 2010-05-03  David Ung  <davidu@mips.com>
27473             James E. Wilson  <wilson@codesourcery.com>
27475         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
27476         emit the trap instruction before the divide for TUNE_74K.
27478 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
27480         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
27481         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
27482         based on the above, for new target hook.
27484         * hooks.c (hook_bool_mode_true): New generic hook.
27485         * hooks.h (hook_bool_mode_true): Add prototype.
27487         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
27488         target hook.
27489         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
27490         target hook, set to hook_bool_mode_false.
27491         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
27492         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
27493         with targetm.small_register_classes_for_mode_p.
27494         (find_reusable_reload): Likewise.
27495         (combine_reloads): Likewise.
27496         * reload1.c (reload_as_needed): Likewise.
27497         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
27498         * ifcvt.c (noce_process_if_block, check_cond_move_block,
27499         dead_or_predicable): Likewise.
27500         * regmove.c (optimize_reg_copy_1): Likewise.
27501         * calls.c (prepare_call_address): Likewise.
27502         (precompute_register_parameters): Likewise.
27504         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
27505         hook definition.
27506         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
27507         implementation of the hook that considers all register classes
27508         small except for SH64.
27509         (sh_override_options): Use the new hook.
27510         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
27511         Add prototype.
27513         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
27514         hook definition.
27515         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
27516         implementation of the hook that considers all register classes
27517         small for THUMB1.
27518         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
27519         Add prototype.
27521         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
27522         hook definition.
27523         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
27524         implementation of the hook that considers all register classes
27525         small for MIPS16.
27526         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
27527         Add prototype.
27529         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
27530         hook definition.
27531         * config/m32c/m32c.h: Likewise.
27532         * config/pdp11/pdp11.h: Likewise.
27533         * config/avr/avr.h: Likewise.
27534         * config/xtensa/xtensa.h: Likewise.
27535         * config/m68hc11/m68hc11.h: Likewise.
27536         * config/mn10300/mn10300.h: Likewise.
27537         * config/mcore/mcore.h: Likewise.
27538         * config/h8300/h8300.h: Likewise.
27539         * config/bfin/bfin.h: Likewise.
27541         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
27542         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
27544 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
27546         * double-int.h (tree_to_double_int): Remove macro.
27547         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
27548         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
27549         (tree_to_double_int): New function.
27550         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
27551         Move ...
27552         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
27554 2010-05-03  Richard Guenther  <rguenther@suse.de>
27556         PR tree-optimization/43971
27557         * tree-ssa-structalias.c (get_constraint_for_1): Fix
27558         constraints in the !flag_delete_null_pointer_checks case.
27560 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
27562         PR debug/43972
27563         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
27564         result mode matches original rtl mode.
27566 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
27568         PR target/43888
27569         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
27571 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27573         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
27574         when processing flag options.
27576 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27578         * gcov-iov.c (main): Change format string placeholder
27579         from %#08x to 0x%08x.
27580         * genchecksum.c (dosum): Change format string placeholder
27581         from %#02x to 0x%02x.
27583 2010-05-02  Richard Guenther  <rguenther@suse.de>
27585         PR tree-optimization/43879
27586         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
27588 2010-05-02  Bruno Haible  <bruno@clisp.org>
27590         * doc/extend.texi (Function Attributes): Fix a typo.
27592 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27594         Revert:
27595         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
27596         placeholder from 0x%x to %#x.
27597         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
27598         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
27599         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
27600         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
27601         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
27602         * config/i386/i386.c (ix86_target_string): Ditto.
27603         * config/i386/i386.c (output_pic_addr_const): Ditto.
27604         (print_operand): Ditto.
27606 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27608         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
27609         placeholder from 0x%x to %#x.
27610         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
27611         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
27612         (ASM_OUTPUT_DEBUG_DATA): Ditto.
27613         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
27614         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
27615         * optc-gen.awk: Ditto.
27616         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
27617         (HOST_WIDE_INT_PRINT_HEX): Ditto.
27618         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
27619         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
27621 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
27623         * target.h (struct calls): Add function_value_regno_p field.
27624         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
27625         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
27626         * targhooks.c (default_function_value_regno_p): New function.
27627         * targhooks.h (default_function_value_regno_p): Declare function.
27628         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
27629         * builtins.c. (apply_result_size): (Ditto.).
27630         * combine.c. (likely_spilled_retval_p): (Ditto.).
27631         * mode-switching.c. Include 'target.h'.
27632         (create_pre_exit): Use function_value_regno_p hook.
27633         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
27634         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
27635         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
27637         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
27638         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
27639         (ix86_function_value_regno_p): Declare as static, change argument
27640         type to const unsigned int.
27641         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
27643 2010-05-01  Richard Guenther  <rguenther@suse.de>
27645         PR tree-optimization/43949
27646         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
27647         types.
27648         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
27650 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
27652         * rtl.h (CONST_DOUBLE_P): Define.
27653         (rtx_to_double_int): Declare.
27654         * emit-rtl.c (rtx_to_double_int): New function.
27655         * dwarf2out.c (insert_double): New function.
27656         (loc_descriptor, add_const_value_attribute): Clean up, use
27657         rtx_to_double_int and insert_double functions.
27659 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
27661         * doc/extend.texi (Inline): Add missing return keyword to examples.
27662         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
27663         "command-line".
27665 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
27667         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
27668         the variable part of the offset as well.  Use highest_pow2_factor for
27669         all alignment checks.
27671 2010-04-30  Richard Guenther  <rguenther@suse.de>
27673         PR tree-optimization/43879
27674         * tree-ssa-structalias.c (type_could_have_pointers): Functions
27675         can have pointers.
27677 2010-04-30  Jan Hubicka  <jh@suse.cz>
27679         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
27680         varpool.
27681         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
27683 2010-04-30  Jan Hubicka  <jh@suse.cz>
27685         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
27686         New.
27687         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
27688         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
27689         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
27690         cgraph_node_set_needs_ltrans_p): Remove.
27692 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
27694         * sdbout.c: Include vec.h, do not include varray.h.
27695         (deferred_global_decls, sdbout_global_decl,
27696         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
27697         * toplev.c: Do not include varray.h.
27698         (dump_memory_report): Do not dump VARRAY statistics.
27699         * gengtype.c (open_base_file): Ignore varray.h.
27700         * Makefile.in: Update for abovementioned changes.
27701         Remove all traces of varray.c and varray.h.
27702         * varray.c: Remove file.
27703         * varray.h: Remove file.
27705 2010-04-30  Jan Hubicka  <jh@suse.cz>
27707         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
27708         references.
27710 2010-04-30  Jan Hubicka  <jh@suse.cz>
27712         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
27713         needed.
27715 2010-04-30  Richard Guenther  <rguenther@suse.de>
27717         * tree-ssa-structalias.c (get_constraint_for_1): Generate
27718         constraints for CONSTRUCTOR.
27720 2010-04-30  Richard Guenther  <rguenther@suse.de>
27722         PR lto/43946
27723         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
27724         first after all lowering passes.
27726 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
27728         * toplev.c: Include varray.h for statistics dumping.
27729         * tree.h: Do not declare varray_head_tag.
27730         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
27731         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
27732         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
27733         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
27734         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
27735         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
27736         c-common.c, c-common.h, reg-stack.c, basic-block.h,
27737         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
27738         include varray.h.
27739         * Makefile.in: Update for abovementioned changes.
27741 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
27743         PR debug/43942
27744         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
27746 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27748         * config/picochip/picochip.c (picochip_legitimize_address): Define.
27749         Use this function to do machine-specific conversion.
27750         (picochip_legitimize_reload_address): Likewise.
27751         (picochip_legitimate_address_p): Check valid base register only if
27752         strict.
27753         (picochip_check_conditional_copy): Check for modw only if opnd is
27754         register.
27755         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
27756         to call the function in c.
27757         * config/picochip/picochip-protos.h
27758         (picochip_legitimize_reload_address): Define.
27759         * config/picochip/picochip.md (supported_compare1): Define.
27761 2010-04-30  Jan Hubicka  <jh@suse.cz>
27763         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
27764         (cgraph_global_info): Remove inlined.
27765         (LTO_cgraph_tag_names): Remove.
27766         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
27767         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
27768         simplify cgraph tags and document.
27769         (lto_output_node): Use only LTO_cgraph_unavail_node and
27770         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
27771         for_functions_valid, global info, process and output flags.
27772         (input_overwrite_node): Initialize estimated stack size and
27773         estimated growth.  Do not read flags we no longer store.
27774         (input_node): Likewise do not read info no longer stored.
27775         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
27776         flag.
27778 2010-04-30  Richard Guenther  <rguenther@suse.de>
27780         PR tree-optimization/43879
27781         * tree-ssa-structalias.c (get_constraint_for_1): Properly
27782         handle non-zero initializers.
27784 2010-04-30  Richard Guenther  <rguenther@suse.de>
27786         * builtins.c (fold_builtin_1): Delete free (0).
27788 2010-04-29  Jan Hubicka  <jh@suse.cz>
27790         * gengtype.c (open_base_files): Add lto-streamer.h
27791         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
27792         (pass_ipa_cp): GGC collect.
27793         * toplev. (compile_file): Do not output symbols.
27794         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
27795         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
27796         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
27797         * lto-section-in.c: Include ggc.h
27798         (lto_new_in_decl_state): Alloc in GGC.
27799         (lto_delete_in_decl_state): Likewise.
27800         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
27801         Collect.
27803 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
27805         PR target/42895
27806         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
27807         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
27808         (HONOR_REG_ALLOC_ORDER): Describe new macro.
27809         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
27810         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
27811         account only if HONOR_REG_ALLOC_ORDER is not defined.
27812         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
27813         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
27815 2010-04-29  Jon Grant  <04@jguk.org>
27817         * collect2.c (vflag): Change type from int to bool.
27818         (debug): Likewise.
27819         (helpflag): New global bool.
27820         (main): Set vflag and debug with boolean, not integer truth values.
27821         Accept new "--help" option and output usage text if found.
27822         * collect2.h (vflag): Update prototype.
27823         (debug): Likewise.
27825 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
27827         PR bootstrap/43936
27828         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
27830 2010-04-29  Richard Guenther  <rguenther@suse.de>
27832         PR bootstrap/43935
27833         * plugin.h (invoke_plugin_callbacks): Annotate arguments
27834         with ATTRIBUTE_UNUSED.
27836 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
27838         PR target/43921
27839         * config/i386/i386.c (get_some_local_dynamic_name): Replace
27840         INSN_P with NONDEBUG_INSN_P.
27841         (distance_non_agu_define): Likewise.
27842         (distance_agu_use): Likewise.
27844 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
27846         From Dominique d'Humieres  <dominiq@lps.ens.fr>
27847         PR bootstrap/43858
27848         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
27849         test_set.
27851 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
27853         * plugin.h (invoke_plugin_callbacks): New inline function.
27854         * plugin.c (flag_plugin_added): New global flag.
27855         (add_new_plugin): Initialize above flag.
27856         (invoke_plugin_callbacks): Rename to ...
27857         (invoke_plugin_callbacks_full): ... this.
27859 2010-04-28  Jan Hubicka  <jh@suse.cz>
27861         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
27862         (lto_varpool_replace_node): New.
27863         (lto_symtab_resolve_symbols): Resolve varpool nodes.
27864         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
27865         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
27866         * cgraph.h (varpool_node_ptr): New type.
27867         (varpool_node_ptr): New vector.
27868         (varpool_node_set_def): New structure.
27869         (varpool_node_set): New type.
27870         (varpool_node_set): New vector.
27871         (varpool_node_set_element_def): New structure.
27872         (varpool_node_set_element, const_varpool_node_set_element): New types.
27873         (varpool_node_set_iterator): New type.
27874         (varpool_node): Add prev pointers, add used_from_other_partition,
27875         in_other_partition.
27876         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
27877         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
27878         varpool_get_node, varpool_remove_node): Declare.
27879         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
27880         varpool_node_set_size): New inlines.
27881         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
27882         * tree-pass.h (varpool_node_set_def): Forward declare.
27883         (ipa_opt_pass_d): Summary writting takes vnode sets too.
27884         (ipa_write_optimization_summaries): Update prototype.
27885         * ipa-cp.c (ipcp_write_summary): Update.
27886         * ipa-reference.c (ipa_reference_write_summary): Update.
27887         * lto-cgraph.c (lto_output_varpool_node): New static function.
27888         (output_varpool): New function.
27889         (input_varpool_node): New static function.
27890         (input_varpool_1): New function.
27891         (input_cgraph): Input varpool.
27892         * ipa-pure-const.c (pure_const_write_summary): Update.
27893         * lto-streamer-out.c (lto_output): Update, output varpool too.
27894         (write_global_stream): Kill WPA hack.
27895         (produce_asm_for_decls): Update.
27896         (output_alias_pair_p): Handle variables.
27897         (output_unreferenced_globals): Output only needed partition of varpool.
27898         * ipa-inline.c (inline_write_summary): Update.
27899         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
27900         cgraph.
27901         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
27902         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
27903         varpool_node_set_new, varpool_node_set_add,
27904         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
27905         debug_varpool_node_set): New functions.
27906         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
27907         (execute_one_pass): Process new decls too.
27908         (ipa_write_summaries_2): Pass around vsets.
27909         (ipa_write_summaries_1): Likewise.
27910         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
27911         to add.
27912         (ipa_write_optimization_summaries_1): Pass around vsets.
27913         (ipa_write_optimization_summaries): Likewise.
27914         * varpool.c (varpool_get_node): New.
27915         (varpool_node): Update doubly linked lists.
27916         (varpool_remove_node): New.
27917         (dump_varpool_node): More dumping.
27918         (varpool_enqueue_needed_node): Update doubly linked lists.
27919         (decide_is_variable_needed): Kill ltrans hack.
27920         (varpool_finalize_decl): Kill lto hack.
27921         (varpool_assemble_decl): Skip decls in other partitions.
27922         (varpool_assemble_pending_decls): Update doubly linkes lists.
27923         (varpool_empty_needed_queue): Likewise.
27924         (varpool_extra_name_alias): Likewise.
27925         * lto-streamer.c (lto_get_section_name): Add vars section.
27926         * lto-streamer.h (lto_section_type): Update.
27927         (output_varpool, input_varpool): Declare.
27929 2010-04-28  Mike Stump  <mikestump@comcast.net>
27931         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
27933 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27935         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
27936         record or union type with RECORD_OR_UNION_TYPE_P predicate.
27937         (lto_input_ts_type_tree_pointers): Likewise.
27938         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
27939         (lto_output_ts_type_tree_pointers): Likewise.
27941 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27943         Uniquization of constants at the Tree level
27944         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
27945         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
27946         bit to the end.
27947         (tree_output_constant_def): Declare.
27948         * gimplify.c (gimplify_init_constructor): When using block copy, first
27949         uniquize the constant constructor on the RHS.
27950         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
27951         DECL_IN_CONSTANT_POOL flag.
27952         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
27953         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
27954         constant pool.
27955         (assemble_variable): Deal with symbols belonging to the tree constant
27956         pool.
27957         (get_constant_section): Add ALIGN parameter and simplify.
27958         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
27959         (assemble_constant_contents): Use the expression of the VAR_DECL.
27960         (output_constant_def_contents): Use the alignment of the VAR_DECL.
27961         (tree_output_constant_def): New global function.
27962         (mark_constant): Use the expression of the VAR_DECL.
27963         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
27964         its expression.
27965         (output_object_block): Likewise and assemble the expression.
27967 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27969         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
27970         hash_tree, eq_tree): New tree hash table.
27971         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
27972         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
27973         lto_orig_address_remove): Reimplement.
27975 2010-04-28  Xinliang David Li  <davidxl@google.com>
27977         PR c/42643
27978         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
27979         (compute_uninit_opnds_pos): New function.
27980         (is_non_loop_exit_postdominating): New function.
27981         (compute_control_dep_chain): New function.
27982         (find_pdom): New function.
27983         (convert_control_dep_chain_into_preds): New function.
27984         (find_predicates): New function.
27985         (find_control_equiv_block): New function.
27986         (collect_phi_def_edges): New function.
27987         (find_def_preds): New function.
27988         (find_dom): New function.
27989         (dump_predicates): New function.
27990         (get_cmp_code): New function.
27991         (is_value_included_in): New function.
27992         (find_matching_predicate_in_rest_chains): New function.
27993         (use_pred_not_overlap_with_undef_path_pred): New function.
27994         (is_use_properly_guarded): New function.
27995         (normalize_cond_1): New function.
27996         (is_and_or_or): New function.
27997         (normalize_cond): New function.
27998         (is_gcond_subset_of): New function.
27999         (is_subset_of_any): New function.
28000         (is_or_set_subset_of): New function.
28001         (is_and_set_subset_of): New function.
28002         (is_norm_cond_subset_of): New function.
28003         (is_pred_expr_subset_of): New function.
28004         (is_pred_chain_subset_of): New function.
28005         (is_included_in): New function.
28006         (is_superset_of): New function.
28007         (find_uninit_use): New function.
28008         (warn_uninitialized_phi): New function.
28009         (compute_possibly_undefined_names): New function.
28010         (ssa_undefined_value_p): New function.
28011         (execute_late_warn_uninitialized): New function.
28012         * tree-ssa.c (ssa_undefined_value_p): Removed.
28013         (warn_uninit): Changed to extern.
28014         (warn_uninitialized_phi): Removed.
28015         (warn_uninitialized_vars): Changed to extern.
28016         (execute_late_warn_uninitialized): Removed
28017         * tree-flow.h: Add new prototypes.
28018         * timevar.def: Add new time variable.
28019         * Makefile.in: Add new build file.
28021 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
28023         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
28024         type if available.
28026 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28028         PR target/22224
28029         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
28031 2010-04-28  Martin Jambor  <mjambor@suse.cz>
28033         * cgraph.h (struct cgraph_node): New field indirect_calls.
28034         (struct cgraph_indirect_call_info): New type.
28035         (struct cgraph_edge): Removed field indirect_call. New fields
28036         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
28037         (cgraph_create_indirect_edge): Declare.
28038         (cgraph_make_edge_direct): Likewise.
28039         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
28040         * ipa-prop.h (struct ipa_param_call_note): Removed.
28041         (struct ipa_node_params): Removed field param_calls.
28042         (ipa_create_all_structures_for_iinln): Declare.
28043         * cgraph.c: Described indirect edges and uids in initial comment.
28044         (cgraph_add_edge_to_call_site_hash): New function.
28045         (cgraph_edge): Search also among the indirect edges, use
28046         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
28047         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
28048         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
28049         site hash.
28050         (initialize_inline_failed): Assign a reason to indirect edges.
28051         (cgraph_create_edge_1): New function.
28052         (cgraph_create_edge): Moved some functionality to
28053         cgraph_create_edge_1.
28054         (cgraph_create_indirect_edge): New function.
28055         (cgraph_edge_remove_callee): Add an assert checking for
28056         non-indirectness.
28057         (cgraph_edge_remove_caller): Special-case indirect edges.
28058         (cgraph_remove_edge): Likewise.
28059         (cgraph_set_edge_callee): New function.
28060         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
28061         (cgraph_make_edge_direct): New function.
28062         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
28063         the declaration of the call statement matches.
28064         (cgraph_node_remove_callees): Special-case indirect edges.
28065         (cgraph_clone_edge): Likewise.
28066         (cgraph_clone_node): Clone also the indirect edges.
28067         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
28068         indirect_call, dump count of indirect_calls edges.
28069         * ipa-prop.c (iinlining_processed_edges): New variable.
28070         (ipa_note_param_call): Create indirect edges instead of
28071         creating notes.  New parameter node.
28072         (ipa_analyze_call_uses): New parameter node, pass it on to
28073         ipa_note_param_call.
28074         (ipa_analyze_stmt_uses): Likewise.
28075         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
28076         (print_edge_addition_message): Work on edges rather than on notes.
28077         (update_call_notes_after_inlining): Likewise, renamed to
28078         update_indirect_edges_after_inlining.
28079         (ipa_create_all_structures_for_iinln): New function.
28080         (ipa_free_node_params_substructures): Do not free notes.
28081         (ipa_edge_duplication_hook): Propagate bits within
28082         iinlining_processed_edges bitmap.
28083         (ipa_node_duplication_hook): Do not duplicate notes.
28084         (free_all_ipa_structures_after_ipa_cp): Renamed to
28085         ipa_free_all_structures_after_ipa_cp.
28086         (free_all_ipa_structures_after_iinln): Renamed to
28087         ipa_free_all_structures_after_iinln.
28088         (ipa_write_param_call_note): Removed.
28089         (ipa_read_param_call_note): Removed.
28090         (ipa_write_indirect_edge_info): New function.
28091         (ipa_read_indirect_edge_info): Likewise.
28092         (ipa_write_node_info): Do not stream notes, do stream information
28093         in indirect edges.
28094         (ipa_read_node_info): Likewise.
28095         (lto_ipa_fixup_call_notes): Removed.
28096         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
28097         * ipa-inline.c (pass_ipa_inline): Likewise.
28098         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
28099         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
28100         * tree-inline.c (copy_bb): Removed an unnecessary double check for
28101         is_gimple_call.
28102         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
28103         edges.
28104         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
28105         (output_cgraph): Stream also indirect edges.
28106         (lto_output_edge): Added capability to stream indirect edges.
28107         (input_edge): Likewise.
28108         (input_cgraph_1): Likewise.
28109         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
28110         of indirect edges.
28112 2010-04-28  Richard Guenther  <rguenther@suse.de>
28114         PR tree-optimization/43879
28115         PR tree-optimization/43909
28116         * tree-ssa-structalias.c (struct variable_info): Add
28117         only_restrict_pointers flag.
28118         (new_var_info): Initialize it.  Increment stats.total_vars here.
28119         (create_function_info_for): Do not increment stats.total_vars here.
28120         (get_function_part_constraint): Fix build with C++.
28121         (insert_into_field_list): Remove.
28122         (push_fields_onto_fieldstack): Properly merge fields.
28123         (create_variable_info_for): Split and simplify.
28124         (create_variable_info_for_1): New piece.
28125         (intra_create_variable_infos): Properly make restrict constraints
28126         from parameters.
28128 2010-04-28  Richard Guenther  <rguenther@suse.de>
28130         PR c++/43880
28131         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
28133 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28134             Jan Hubicka  <hubicka@ucw.cz>
28136         * doc/invoke.texi (-Wsuggest-attribute=const,
28137         -Wsuggest-attribute=pure): Document.
28138         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
28139         (function_always_visible_to_compiler_p,
28140         suggest_attribute, warn_function_pure, warn_function_const):
28141         New functions.
28142         (check_call): Improve debug info.
28143         (analyze_function): Do not check availability.
28144         (add_new_function): Check availability.
28145         (propagate): Output warnings.
28146         (skip_function_for_local_pure_const): New function.
28147         (local_pure_const): Use it; output warnings.
28148         * common.opt (Wsuggest-attribute=const,
28149         Wsuggest-attribute=pure): New.
28151 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
28153         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
28154         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
28155         or DW_CFA_def_cfa_offset{,_sf}.
28157 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28159         * tree.h: Fix truncated long macros.
28161 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
28163         * collect2.c (TARGET_64BIT): Redefine to target's default.
28164         * tlink.c: Likewise.
28165         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
28166         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
28167         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
28168         for underscoring __USER_LABEL_PREFIX__.
28169         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
28170         (SUB_LINK_ENTRY32): New.
28171         (SUB_LINK_ENTRY64): New.
28172         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
28173         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
28174         (SUB_LINK_ENTRY64): New.
28175         (SUB_LINK_ENTRY): New.
28176         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
28177         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
28178         x64 target is choosen.
28179         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
28180         * configure: Regenerated.
28181         * configure.ac (leading-mingw64-underscores): Option added.
28183 2010-04-27  Jan Hubicka  <jh@suse.cz>
28185         * doc/invoke.texi (-fipa-profile): Document.
28186         * opts.c (decode_options): Enable ipa-profile at -O1.
28187         * timevar.def (TV_IPA_PROFILE): Define.
28188         * common.opt (fipa-profile): Add.
28189         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
28190         flag for clones.
28191         (cgraph_propagate_frequency): Handle only local ones.
28192         * tree-pass.h (pass_ipa_profile): Declare.
28193         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
28194         (pass_ipa_profile): Use TV_IPA_PROFILE.
28195         * ipa.c (ipa_profile): New function.
28196         (gate_ipa_profile): Likewise.
28197         (pass_ipa_profile): New global variable.
28198         * passes.c (pass_ipa_profile): New.
28200 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
28202         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
28204 2010-04-27  Martin Jambor  <mjambor@suse.cz>
28206         PR middle-end/43812
28207         * ipa.c (dissolve_same_comdat_group_list): New function.
28208         (function_and_variable_visibility): Call
28209         dissolve_same_comdat_group_list when comdat group contains external or
28210         newly local nodes.
28211         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
28212         lists are circular and that they contain only DECL_ONE_ONLY nodes.
28214 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28216         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
28217         (const_hash_1) <VECTOR_CST>: New case.
28218         (compare_constant) <VECTOR_CST>: Likewise.
28219         <ADDR_EXPR>: Deal with LABEL_REFs.
28220         (copy_constant) <VECTOR_CST>: New case.
28222 2010-04-27  Jan Hubicka  <jh@suse.cz>
28224         * cgraph.c (cgraph_propagate_frequency): New function.
28225         * cgraph.h (cgraph_propagate_frequency): Declare.
28226         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
28227         cgraph_propagate_frequency.
28229 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
28231         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
28233 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
28235         PR target/40657
28236         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
28237         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
28238         here to determine which regs to push and how much stack to reserve.
28240 2010-04-27  Jie Zhang  <jie@codesourcery.com>
28242         * doc/gimple.texi (gimple_statement_with_ops): Remove
28243         addresses_taken field.
28244         (gimple_statement_with_memory_ops): Likewise.
28246 2010-04-27  Jan Hubicka  <jh@suse.cz>
28248         * tree-inline.c (eni_inlining_weights): Remove.
28249         (estimate_num_insns): Special case more builtins.
28251 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
28253         PR c/32207
28254         * c-typeck.c (build_binary_op): Move forward check for comparison
28255         pointer with null pointer constant and adjust the diagnostic message.
28257 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
28259         PR lto/42776
28260         * configure.ac (gcc_cv_as_section_has_align): Set if installed
28261         binutils supports extended .section directive needed by LTO, or
28262         warn if older binutils found.
28263         (LTO_BINARY_READER): New AC_SUBST'd variable.
28264         (LTO_USE_LIBELF): Likewise.
28265         * config.gcc (lto_binary_reader): New target-specific configure
28266         variable.
28267         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
28268         (LTO_USE_LIBELF): Likewise.
28269         * configure: Regenerate.
28271         * collect2.c (is_elf): Rename from this ...
28272         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
28273          object files in addition to ELF-formatted ones.
28274         (scan_prog_file): Caller updated.  Also allow for LTO info marker
28275         symbol to be prefixed or not by an extra underscore.
28277         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
28278         * config/i386/winnt.c: Also #include lto-streamer.h
28279         (i386_pe_asm_named_section): Specify 1-byte section alignment for
28280         LTO named sections.
28281         (i386_pe_asm_output_aligned_decl_common): Add comment.
28282         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
28284 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
28286         PR target/43889
28287         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
28288         Add missing earlyclobber for second alternative.
28290 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
28292         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
28293         bits for artificial defs at the top of the block.
28294         * fwprop.c (single_def_use_enter_block): Don't call it.
28296 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
28298         PR 43715
28299         * configure.ac: Use "$gcc_cv_nm -g" on darwin
28300         instead of "$gcc_cv_objdump -T".
28301         Use "-undefined dynamic_lookup" on darwin.
28302         * configure: Regenerate.
28304 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
28306         PR c/43893
28307         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
28309 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
28311         * c-parser.c (struct c_token): Move location field up.
28312         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
28313         (struct c_declspecs): Convert typespec_word, storage_class, and
28314         default_int_p into bitfields.
28315         (struct c_declarator): Move loc field up.
28317 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
28319         * cfgloop.h (struct loop): Move can_be_parallel field up.
28320         * ipa-prop.h (struct ip_node_params): Move bitfields up.
28321         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
28322         down.
28323         (struct iv_cand): Convert pos field into a bitfield.
28324         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
28325         field up.
28326         (struct _stmt_vec_info): Shuffle fields for better packing.
28328 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
28330         * varasm.c (IN_NAMED_SECTION): Remove guard.
28331         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
28332         (IN_NAMED_SECTION_P): ...this.
28333         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
28334         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
28336 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
28338         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
28339         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
28340         of shadowing it.  Fix comments.
28342 2010-04-26  Jan Hubicka  <jh@suse.cz>
28344         * cgraph.c (cgraph_create_node): Set node frequency to normal.
28345         (cgraph_clone_node): Copy function frequency.
28346         * cgraph.h (node_frequency): New enum
28347         (struct cgraph_node): Add.
28348         * final.c (rest_of_clean_state): Update.
28349         * lto-cgraph.c (lto_output_node): Output node frequency.
28350         (input_overwrite_node): Input node frequency.
28351         * tre-ssa-loop-ivopts (computation_cost): Update.
28352         * lto-streamer-out.c (output_function): Do not output function
28353         frequency.
28354         * predict.c (maybe_hot_frequency_p): Update and handle functions
28355         executed once.
28356         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
28357         attribute lookup.
28358         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
28359         (compute_function_frequency): Set noreturn functions to be executed
28360         once.
28361         (choose_function_section): Update.
28362         * lto-streamer-in.c (input_function): Do not input function frequency.
28363         * function.c (allocate_struct_function): Do not initialize function
28364         frequency.
28365         * function.h (function_frequency): Remove.
28366         (struct function): Remove function frequency.
28367         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
28368         (try_update): Update.
28369         * tree-inline.c (initialize_cfun): Do not update function frequency.
28370         * passes.c (pass_init_dump_file): Update.
28371         * i386.c (ix86_compute_frame_layout): Update.
28372         (ix86_pad_returns): Update.
28374 2010-04-26  Jie Zhang  <jie@codesourcery.com>
28376         PR tree-optimization/43833
28377         * tree-vrp.c (range_int_cst_p): New.
28378         (range_int_cst_singleton_p): New.
28379         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
28380         when both operands are constants.  Use range_int_cst_p in
28381         BIT_IOR_EXPR case.
28383 2010-04-26  Jan Hubicka  <jh@suse.cz>
28385         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
28387 2010-04-26  Richard Guenther  <rguenther@suse.de>
28389         PR lto/43080
28390         * gimple.c (gimple_decl_printable_name): Deal gracefully
28391         with a NULL DECL_NAME.
28393 2010-04-26  Richard Guenther  <rguenther@suse.de>
28395         PR lto/42425
28396         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
28397         if emitting debug information and it is either a function
28398         or a namespace decl.
28400 2010-04-26  Ira Rosen  <irar@il.ibm.com>
28402         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
28403         determine if the statement is vectorizable, and a macro to access it.
28404         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28405         Skip statements that can't be vectorized. If the analysis fails,
28406         mark the statement as unvectorizable if vectorizing basic block.
28407         (vect_compute_data_refs_alignment): Likewise.
28408         (vect_verify_datarefs_alignment): Skip statements marked as
28409         unvectorizable. Add print.
28410         (vect_analyze_group_access): Skip statements that can't be
28411         vectorized. If the analysis fails, mark the statement as
28412         unvectorizable if vectorizing basic block.
28413         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
28414         * tree-vect-stmts.c (vectorizable_store): Fix the number of
28415         generated stmts for SLP.
28416         (new_stmt_vec_info): Initialize the new field.
28417         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
28418         statements marked as unvectorizable.
28420 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
28422         * c-common.c (flag_isoc1x): New.
28423         (flag_isoc99): Update comment.
28424         * c-common.h (flag_isoc1x): New.
28425         (flag_isoc99): Update comment.
28426         * c-cppbuiltin.c (builtin_define_float_constants): Also define
28427         __<type>_DECIMAL_DIG__.
28428         * c-opts.c (set_std_c1x): New.
28429         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
28430         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
28431         * c.opt (-std=c1x, -std=gnu1x): New options.
28432         * doc/cpp.texi: Mention -std=c1x.
28433         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
28434         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
28435         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
28436         * doc/standards.texi: Mention C1X.
28437         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
28438         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
28439         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
28440         Define for C1X.
28442 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
28444         * config/i386/gmon-sol2.c (_mcleanup): Change format string
28445         placeholder from 0x%x to %#x.
28446         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
28447         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
28448         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
28449         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
28450         * config/i386/i386.c (ix86_target_string): Ditto.
28451         (output_pic_addr_const): Ditto.
28452         (print_operand): Ditto.
28454 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
28456         * combine.c (find_split_point): Add third argument.  Use it
28457         to find nested multiply-accumulate instructions.  Adjust calls.
28458         (try_combine): Adjust call to find_split_point.
28460 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
28462         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
28464 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
28466         PR tree-optimization/41442
28467         * fold-const.c (merge_truthop_with_opposite_arm): New function.
28468         (fold_binary_loc): Call it.
28470 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28472         * toplev.c (general_init): Set default for fdiagnostics-show-option.
28473         * opts.c (common_handle_option): Allow disabling it.
28474         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
28476 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
28478         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
28479         between modes if both types are integral.
28481 2010-04-23  Richard Guenther  <rguenther@suse.de>
28483         PR tree-optimization/43572
28484         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
28486 2010-04-23  Richard Guenther  <rguenther@suse.de>
28488         PR lto/43455
28489         * tree-inline.c (tree_can_inline_p): Also check compatibility
28490         of return types.
28492 2010-04-23  Martin Jambor  <mjambor@suse.cz>
28494         PR tree-optimization/43846
28495         * tree-sra.c (struct access): New flag grp_assignment_read.
28496         (build_accesses_from_assign): Set grp_assignment_read.
28497         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
28498         (enum mark_read_status): New type.
28499         (analyze_access_subtree): Propagate grp_assignment_read, create
28500         accesses also if both direct_read and root->grp_assignment_read.
28502 2010-04-23  Martin Jambor  <mjambor@suse.cz>
28504         PR middle-end/43835
28505         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
28506         function does not have type attributes.
28508 2010-04-23  Richard Guenther  <rguenther@suse.de>
28510         PR lto/42653
28511         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
28512         of FUNCTION_DECLs.
28514 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28516         * sese.h (create_if_region_on_edge): Remove.
28518         * sese.c (create_if_region_on_edge): Make static.
28520         * tree-inline.c: Do not include ggc.h.
28522         * expr.c: Do not include ggc.h.
28524         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
28525         dependencies.
28527 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
28529         PR target/43744
28530         * config/sh/sh.c (find_barrier): Don't emit a constant pool
28531         in the middle of insns for casesi_worker_2.
28533 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
28535         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
28537 2010-04-22  Ira Rosen  <irar@il.ibm.com>
28539         PR tree-optimization/43842
28540         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
28541         loop unrolling in update of exit phis. Fix comment.
28542         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
28543         least two reduction statements in the loop before starting SLP
28544         analysis.
28546 2010-04-22  Nick Clifton  <nickc@redhat.com>
28548         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
28550 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
28552         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
28553         to simplify a + ~a.
28555 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28557         * tree-parloops.c (loop_parallel_p): New argument
28558         parloop_obstack.  Pass it down.
28559         (parallelize_loops): New variable parloop_obstack.  Initialize it,
28560         pass it down, free it.
28562         * tree-loop-linear.c (linear_transform_loops): Pass down
28563         lambda_obstack.
28565         * tree-data-ref.h (lambda_compute_access_matrices): New argument
28566         of type struct obstack *.
28568         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
28569         scratch_obstack.  Initialize it, pass down, free it.
28571         * lambda.h (lambda_loop_new): Remove.
28572         (lambda_matrix_new, lambda_matrix_inverse)
28573         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
28574         argument of type struct obstack *.
28576         * lambda-trans.c (lambda_trans_matrix_new): New argument
28577         lambda_obstack.  Pass it down, use obstack allocation for ret.
28578         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
28579         it down.
28581         * lambda-mat.c (lambda_matrix_get_column)
28582         (lambda_matrix_project_to_null): Remove.
28583         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
28584         allocation for mat.
28585         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
28586         lambda_obstack.
28588         * lambda-code.c (lambda_loop_new): New function.
28589         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
28590         (lambda_compute_auxillary_space, lambda_compute_target_space)
28591         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
28592         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
28593         (build_access_matrix): New argument lambda_obstack.  Use obstack
28594         allocation for am.
28595         (lambda_compute_step_signs, lambda_compute_access_matrices): New
28596         argument lambda_obstack.  Pass it down.
28598 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
28600         * optabs.h (expand_widening_mult): Declare.
28602 2010-04-22  Richard Guenther  <rguenther@suse.de>
28604         PR tree-optimization/43845
28605         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
28606         lookup the CALL_EXPR function and arguments.
28608 2010-04-22  Nick Clifton  <nickc@redhat.com>
28610         * config/stormy16/stormy16.c
28611         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
28612         * config/stormy16/stormy16.h: Tidy up formatting.
28613         (DONT_USE_BUILTIN_SETJMP): Remove definition.
28614         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
28615         (ineqbranchsi): Delete pattern.
28616         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
28617         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
28618         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
28619         stormy16-lib2-ucmpsi2.c.
28621 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
28623         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
28624         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
28625         extra set merge_set_noclobber, and use it to relax the final test
28626         slightly.
28627         * df.h (df_simulate_find_noclobber_defs): Declare.
28628         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
28629         conditional defs.
28630         (df_simulate_find_noclobber_defs): New function.
28632 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
28634         * config/i386/i386.md: Use {} around multi-line preparation statements.
28636 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28638         * c-tree.h (push_init_level, pop_init_level, set_init_index)
28639         (process_init_element): New argument of type struct obstack *.
28641         * c-typeck.c (push_init_level, pop_init_level, set_designator)
28642         (set_init_index, set_init_label, set_nonincremental_init)
28643         (set_nonincremental_init_from_string, find_init_member)
28644         (output_init_element, output_pending_init_elements)
28645         (process_init_element): New argument braced_init_obstack.  Pass it
28646         down.
28647         (push_range_stack, add_pending_init): New argument
28648         braced_init_obstack.  Use obstack allocation.
28650         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
28651         braced_init_obstack.  Pass it down.
28652         (c_parser_braced_init): New variables ret, braced_init_obstack.
28653         Initialize obstack, pass it down and finally free it.
28655 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
28657         PR middle-end/29274
28658         * tree-pass.h (pass_optimize_widening_mul): Declare.
28659         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
28660         gate_optimize_widening_mul): New static functions.
28661         (pass_optimize_widening_mul): New.
28662         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
28663         <case MULT_EXPR>: Remove support for widening multiplies.
28664         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
28665         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
28666         simplify_gen_unary rather than directly building extensions.
28667         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
28668         WIDEN_MULT_EXPR.
28669         * expmed.c (expand_widening_mult): New function.
28670         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
28672 2010-04-21  Jan Hubicka  <jh@suse.cz>
28674         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
28675         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
28676         * lto-wpa-fixup.c: Remove.
28677         * Makefile.in (lto-wpa-fixup.o): Remove.
28678         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
28679         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
28680         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
28682 2010-04-21  Jan Hubicka  <jh@suse.cz>
28684         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
28685         add write_optimization_summary, read_optimization_summary.
28686         (ipa_write_summaries_of_cgraph_node_set): Remove.
28687         (ipa_write_optimization_summaries): Declare.
28688         (ipa_read_optimization_summaries): Declare.
28689         * ipa-cp.c (pass_ipa_cp): Update.
28690         * ipa-reference.c (pass_ipa_reference): Update.
28691         * ipa-pure-const.c (pass_ipa_pure_const): Update.
28692         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
28693         Update.
28694         * ipa-inline.c (pass_ipa_inline): Update.
28695         * ipa.c (pass_ipa_whole_program): Update.
28696         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
28697         * passes.c (ipa_write_summaries_1): Do not test wpa.
28698         (ipa_write_optimization_summaries_1): New.
28699         (ipa_write_optimization_summaries): New.
28700         (ipa_read_summaries): Do not test ltrans.
28701         (ipa_read_optimization_summaries_1): New.
28702         (ipa_read_optimization_summaries): New.
28704 2010-04-21  Jan Hubicka  <jh@suse.cz>
28706         * lto-cgraph.c (lto_output_node): Do not output comdat groups
28707         for boundary nodes.
28708         (output_cgraph): Do not arrange comdat groups for boundary nodes.
28710 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
28712         PR debug/40040
28713         * dwarf2out.c (add_name_and_src_coords_attributes): Add
28714         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
28716 2010-04-21  Jan Hubicka  <jh@suse.cz>
28718         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
28720 2010-04-21  Jan Hubicka  <jh@suse.cz>
28722         * varpool.c (decide_is_variable_needed): Variable is always needed
28723         during ltrans.
28725 2010-04-21  Jan Hubicka  <jh@suse.cz>
28727         * opts.c (decode_options): Enable pure-const pass for whopr.
28729 2010-04-21  Jan Hubicka  <jh@suse.cz>
28731         * cgraph.c (dump_cgraph_node): Dump also assembler name.
28732         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
28733         at WPA dumping.
28734         (cgraph_decide_inlining): Do not expect callee to be removed in all
28735         cases.
28737 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
28739         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
28741 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
28743         * config/i386/i386.md (x86_shrd): Add athlon_decode and
28744         amdfam10_decode attributes.
28746 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
28748         PR middle-end/43570
28749         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
28750         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
28751         (lower_copyprivate_clauses): Use private var in outer
28752         context instead of original var.  Make sure the types
28753         are correct for VLAs.
28755 2010-04-21  Richard Guenther  <rguenther@suse.de>
28757         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
28758         to non-pointer objects.
28760 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
28762         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
28763         last chain entry if it starts with the still current label.
28764         (add_location_or_const_value_attribute): Check that
28765         loc_list->first->next is NULL instead of comparing ->first with ->last.
28766         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
28767         to add_var_loc_to_decl.
28769         * dwarf2out.c (output_call_frame_info): For dw_cie_version
28770         >= 4 add also address size and segment size fields into CIE header.
28772         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
28773         long as address size is the same as sizeof (void *) and
28774         segment size is 0.
28775         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
28776         address size or segment size is unexpected, return DW_EH_PE_omit.
28777         (classify_object_over_fdes): If get_cie_encoding returned
28778         DW_EH_PE_omit, return -1.
28779         (init_object): If classify_object_over_fdes returned -1,
28780         pretend there were no FDEs at all.
28782 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
28784         * config/i386/i386.md (bswap<mode>2): Macroize expander from
28785         bswap{si,di}2 using SWI48 mode iterator.
28786         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
28787         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
28788         set modrm attribute of bswap insn to 0 and remove length attribute.
28789         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
28790         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
28791         set mode attribute to <MODE> and remove length attribute.
28793 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
28795         PR rtl-optimization/43520
28796         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
28797         zero available registers.
28799 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28801         * builtins.c (fold_builtin_cproj): Fold more cases.
28803 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28805         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
28806         (fold_builtin_1): Fold builtin cproj.
28807         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
28808         Use ATTR_CONST_NOTHROW_LIST.
28810 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
28812         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
28813         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
28814         ffsi2_no_cmove for !TARGET_CMOVE.
28815         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
28816         (ffssi2): Remove expander.
28817         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
28818         mode iterator.
28819         (ctz<mode>2): Ditto from ctz{si,di}2.
28820         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
28821         mode iterator.
28822         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
28823         mode iterator.
28825 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
28827         * dwarf2out.c (AT_linkage_name): Define.
28828         (clone_as_declaration): Handle DW_AT_linkage_name.
28829         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
28830         of DW_AT_MIPS_linkage_name.
28831         (move_linkage_attr): Likewise.
28832         (dwarf2out_finish): Likewise.
28834 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
28836         PR middle-end/41952
28837         * fold-const.c (fold_comparison): New folding rule.
28839 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
28841         * double-int.h (double_int_setbit): Declare.
28842         * double-int.c (double_int_setbit): New function.
28843         * rtl.h (immed_double_int_const): Declare.
28844         * emit-rtl.c (immed_double_int_const): New function.
28845         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
28846         and immed_double_int_const functions.
28847         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
28848         expand_copysign_bit): (Ditto.).
28849         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
28850         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
28851         * dojump.c (prefer_and_bit_test): (Ditto.).
28852         * expr.c (convert_modes, reduce_to_bit_field_precision,
28853         const_vector_from_tree): (Ditto.).
28854         * expmed.c (mask_rtx, lshift_value): (Ditto.).
28856 2010-04-20  Jan Hubicka  <jh@suse.cz>
28858         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
28859         (dump_cgraph_node): Dump new flags.
28860         * cgraph.h (struct cgraph_node): Add flags
28861         reachable_from_other_partition and in_other_partition.
28862         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
28863         other partition can not be removed.
28864         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
28865         the other partition must be output; silence sanity checking on
28866         leaking functions bodies from other paritition.
28867         * lto-cgraph.c (reachable_from_other_partition_p): New function.
28868         (lto_output_node): Output new flags; do not sanity check that inline
28869         clones are output; drop lto_forced_extern_inline_p code; do not mock
28870         visibility flags at partition boundaries.
28871         (add_node_to): New function.
28872         (output_cgraph): Use it to sort functions so masters appear before
28873         clones.
28874         (input_overwrite_node): Input new flags.
28875         * passes.c (ipa_write_summaries): Do not call
28876         lto_new_extern_inline_states.
28877         * lto-section-out.c (forced_extern_inline,
28878         lto_new_extern_inline_states lto_delete_extern_inline_states,
28879         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
28880         * lto-streamer.h (lto_new_extern_inline_states,
28881         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
28882         lto_forced_extern_inline_p): Kill.
28884 2010-04-20  Richard Guenther  <rguenther@suse.de>
28886         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
28887         from vars that can have pointers.
28888         (process_constraint): Dump useless constraints.
28890 2010-04-20  Richard Guenther  <rguenther@suse.de>
28892         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
28893         (dump_sa_points_to_info): Remove asserts.
28894         (init_base_vars): nothing_id isn't an escape point nor does it
28895         have pointers.
28897 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
28899         * tree.h (TYPE_REF_IS_RVALUE): Define.
28900         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
28901         should_move_die_to_comdat, prune_unused_types_walk): Handle
28902         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
28903         (modified_type_die, gen_reference_type_die): Emit
28904         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
28905         if TYPE_REF_IS_RVALUE and -gdwarf-4.
28907 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28909         PR target/43635
28910         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
28911         calls for -fpic -m31 if they have been sibcall optimized.
28913 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
28915         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
28916         ar.lc fixed and call-used.
28918         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
28920 2010-04-19  Jan Hubicka  <jh@suse.cz>
28922         * opts.c (decode_options): Disable whpr incompatible passes.
28923         * lto/lto.c (lto_1_to_1_map): Skip clones.
28924         (read_cgraph_and_symbols): Do not mark everything as needed.
28925         (do_whole_program_analysis): Do map only after optimizing;
28926         set proper cgraph_state; use passmanager.
28928 2010-04-19  DJ Delorie  <dj@redhat.com>
28930         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
28931         POINTER_PLUS_EXPR and fix them.
28933 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
28935         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
28936         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
28937         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
28938         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
28939         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
28940         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
28941         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
28942         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
28943         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
28944         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
28945         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
28947 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
28949         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
28950         (check_cond_move_block): Likewise.
28951         (cond_move_process_if_block): Likewise.
28952         (noce_find_if_block): Improve formatting.
28953         (find_if_header): Pass 0 to memset and tweak conditions.
28954         (cond_exec_find_if_block): Fix long lines and tweak conditions.
28956 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
28958         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
28959         for -gdwarf-4.
28961         PR middle-end/43337
28962         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
28963         with non-local decl doesn't need chain.
28965 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28967         * ira-color.c (allocno_reload_assign): Avoid accumulating
28968         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
28970 2010-04-19  Martin Jambor  <mjambor@suse.cz>
28972         * gimple.h (create_tmp_reg): Declare.
28973         * gimplify.c (create_tmp_reg): New function.
28974         (gimplify_return_expr): Use create_tmp_reg.
28975         (gimplify_omp_atomic): Likewise.
28976         (gimple_regimplify_operands): Likewise.
28977         * tree-dfa.c (make_rename_temp): Likewise.
28978         * tree-predcom.c (predcom_tmp_var): Likewise.
28979         (reassociate_to_the_same_stmt): Likewise.
28980         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
28981         (get_replaced_param_substitute): Likewise.
28982         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
28983         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
28984         * tree-ssa-pre.c (get_representative_for): Likewise.
28985         (create_expression_by_pieces): Likewise.
28986         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
28987         (create_tailcall_accumulator): Likewise.
28989 2010-04-19  Martin Jambor  <mjambor@suse.cz>
28991         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
28992         new_stmt.
28993         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
28995 2010-04-19  Richard Guenther  <rguenther@suse.de>
28997         PR tree-optimization/43796
28998         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
28999         from SCEV in the lattice.
29000         (vrp_visit_phi_node): Dump change.
29002 2010-04-19  Richard Guenther  <rguenther@suse.de>
29004         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
29005         * configure: Re-generated.
29007 2010-04-19  Richard Guenther  <rguenther@suse.de>
29009         PR tree-optimization/43783
29010         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
29011         constant ARRAY_REF operands two and three if possible.
29013 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
29015         PR target/43766
29016         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
29018 2010-04-19  Jie Zhang  <jie@codesourcery.com>
29020         PR target/43662
29021         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
29023 2010-04-19  Ira Rosen  <irar@il.ibm.com>
29025         PR tree-optimization/37027
29026         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
29027         and macro to access it.
29028         (vectorizable_reduction): Add argument.
29029         (vect_get_slp_defs): Likewise.
29030         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
29031         statements for possible use in SLP.
29032         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
29033         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
29034         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
29035         add new argument.
29036         (vectorizable_reduction): Likewise.
29037         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
29038         vect_get_slp_defs.
29039         (vectorizable_type_demotion, vectorizable_type_promotion,
29040         vectorizable_store): Likewise.
29041         (vect_analyze_stmt): Update call to vectorizable_reduction.
29042         (vect_transform_stmt): Likewise.
29043         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
29044         (vect_build_slp_tree): Fix indentation. Check that there are no loads
29045         from different interleaving chains in same node.
29046         (vect_slp_rearrange_stmts): New function.
29047         (vect_supported_load_permutation_p): Allow load permutations for
29048         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
29049         inside SLP nodes if necessary.
29050         (vect_analyze_slp_instance): Handle reductions.
29051         (vect_analyze_slp): Try to build SLP instances originating from groups
29052         of reductions.
29053         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
29054         (vect_get_constant_vectors): Create initial vectors for reductions
29055         according to reduction code. Add new argument.
29056         (vect_get_slp_defs): Add new argument, pass it to
29057         vect_get_constant_vectors.
29058         (vect_schedule_slp_instance): Remove SLP tree root statements.
29060 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
29062         * tree.h (ENUM_IS_SCOPED): Define.
29063         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
29064         for ENUM_IS_SCOPED enums.
29066 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
29068         * fold-const.c (fold_comparison): Use ssizetype.
29069         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
29070         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
29071         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
29072         * tree-object-size.c (compute_object_sizes): Use size_type_node.
29074         * tree.h (initialize_sizetypes): Remove parameter.
29075         (build_common_tree_nodes): Remove second parameter.
29076         * stor-layout.c (initialize_sizetypes): Remove parameter.
29077         Always create an unsigned type.
29078         (set_sizetype): Assert that the passed type is unsigned and simplify.
29079         * tree.c (build_common_tree_nodes): Remove second parameter.
29080         Adjust call to initialize_sizetypes.
29081         * c-decl.c (c_init_decl_processing): Remove second argument in call to
29082         build_common_tree_nodes.
29084 2010-04-18  Matthias Klose  <doko@ubuntu.com>
29086         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
29088 2010-04-18  Ira Rosen  <irar@il.ibm.com>
29090         PR tree-optimization/43771
29091         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
29092         load permutation doesn't have gaps.
29094 2010-04-18  Jan Hubicka  <jh@suse.cz>
29096         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
29097         (sse_prologue_save_insn expander): Use new pattern.
29098         (sse_prologue_save_insn1): New pattern and splitter.
29099         (sse_prologue_save_insn): Update to deal also with 64bit aligned
29100         blocks.
29101         * i386.c (setup_incoming_varargs_64): Do not compute jump
29102         destination here.
29103         (ix86_gimplify_va_arg): Update alignment needed.
29104         (ix86_local_alignment): Do not align all local arrays to 128bit.
29106 2010-04-17  Jan Hubicka  <jh@suse.cz>
29108         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
29110 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
29112         * arm.md (negdi2): Remove redundant code to force values into a
29113         register.
29115 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
29117         * arm/bpabi.S: Add EABI alignment attributes to objects.
29118         * arm/bpabi-v6m.S: Likewise.
29119         * arm/crti.asm: Likewise.
29120         * arm/crtn.asm: Likewise.
29121         * arm/lib1funcs.asm: Likewise.
29122         * arm/libunwind.S: Likewise.
29124 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
29126         * arm-protos.h (tune_params): New structure.
29127         * arm.c (current_tune): New variable.
29128         (arm_constant_limit): Delete.
29129         (struct processors): Add pointer to the tune parameters.
29130         (arm_slowmul_tune): New tuning option.
29131         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
29132         (all_cores): Adjust to pick up the tuning model.
29133         (arm_constant_limit): New function.
29134         (arm_override_options): Select the appropriate tuning model.  Delete
29135         initialization of arm_const_limit.
29136         (arm_split_constant): Use the new constant-limit model.
29137         (arm_rtx_costs): Pick up the current tuning model.
29138         * arm.md (is_strongarm, is_xscale): Delete.
29139         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
29140         for Xscale variant architectures.
29141         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
29143 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29145         * config/arm/arm.c (arm_gen_constant): Remove unused variable
29146         can_shift.
29147         (arm_rtx_costs_1): Remove unused variable extra_cost.
29148         (arm_unwind_emit_set): Use variable offset.
29149         (thumb1_output_casesi): Remove unused variable flags.
29151 2010-04-16  Jeff Law  <law@redhat.com>
29153         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
29154         needing assignment rather than doing a two-phase assignment.  Remove
29155         unused variable 'm'.
29157 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
29159         PR bootstrap/43767
29160         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
29162 2010-04-16  Doug Kwan  <dougkwan@google.com>
29164         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
29165         (next_operand_entry_id): New static variable.
29166         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
29167         (add_to_ops_vec): Assigned unique ID to operand entry.
29168         (struct oecount_s): New field ID.
29169         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
29170         (undistribute_ops_list): Assign unique IDs to oecounts.
29171         (init_reassoc): reset next_operand_entry_id.
29173 2010-04-16  Doug Kwan  <dougkwan@google.com>
29175         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
29176         missing left parenthesis.
29178 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
29180         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
29181         *btdi_rex64 using SWI48 mode iterator.
29182         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
29183         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
29184         *jcc_btdi_mask_rex64.
29186 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
29188         * double-int.h (tree_to_double_int): Convert to macro.
29189         * double-int.c (tree_to_double_int): Remove.
29191 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
29193         PR debug/43762
29194         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
29195         with want_address 2 and in case a single element list might be
29196         possible, call it again with want_address 0.
29198 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
29200         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
29201         case 'W' print operands for HI mode.
29202         * config/h8300/h8300.h (Y0, Y2) : New constraints.
29203         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
29204         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
29205         * config/h8300/predicate.md (bit_register_indirect_operand): New.
29207         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
29209         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
29210         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
29211         #xx:3 and #xx:4 mode.
29213         * config/h8300/h8300.md (inverted load with HImode dest): Add
29214         support for H8300SX.
29216         * config/h8300/predicate.md (bit_operand): Allow immediate values that
29217         satisfy 'U' constraint.
29219 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29221         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
29222         * configure: Regenerate.
29223         * config.in: Regenerate.
29224         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
29225         works.
29227 2010-04-16  Richard Guenther  <rguenther@suse.de>
29229         * tree.h (struct tree_decl_minimal): Move pt_uid ...
29230         (struct tree_decl_common): ... here.
29231         (DECL_PT_UID): Adjust.
29232         (SET_DECL_PT_UID): Likewise.
29233         (DECL_PT_UID_SET_P): Likewise.
29235 2010-04-16  Richard Guenther  <rguenther@suse.de>
29237         PR tree-optimization/43572
29238         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
29239         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
29240         * tree-flow.h (is_call_clobbered): Remove.
29241         * tree-flow-inline.h (is_call_clobbered): Likewise.
29242         * tree-dfa.c (dump_variable): Do not dump call clobber state.
29243         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
29244         (execute_return_slot_opt): Adjust.
29245         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
29246         check for call clobbered vars here.
29247         (find_tail_calls): Move tailcall verification to the
29248         proper place.
29250 2010-04-16  Diego Novillo  <dnovillo@google.com>
29252         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
29254 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
29256         PR target/40603
29257         * config/arm/arm.md (cbranchqi4): New pattern.
29258         * config/arm/predicates.md (const0_operand,
29259         cbranchqi4_comparison_operator): New predicates.
29261 2010-04-16  Richard Guenther  <rguenther@suse.de>
29263         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
29264         (dump_gimple_stmt): Likewise.
29266 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
29268         * recog.h (struct recog_data): New field is_operator.
29269         (struct insn_operand_data): New field is_operator.
29270         * recog.c (extract_insn): Set recog_data.is_operator.
29271         * genoutput.c (output_operand_data): Emit code to set the
29272         is_operator field.
29273         * reload.c (find_reloads): Use it rather than testing for an
29274         empty constraint string.
29276         PR target/41514
29277         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
29278         If the previous insn is a cbranchsi4_insn with the same arguments,
29279         omit the compare instruction.
29281         * config/arm/arm.md (addsi3_cbranch): If destination is a high
29282         register, inputs must be low registers and we need a low register
29283         scratch.  Handle alternative 2 like alternative 3.
29285 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
29287         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
29288         don't call get_addr on both.  If one expression is a VALUE and
29289         the other a REG, check VALUE's locs if the REG isn't among them.
29291 2010-04-16  Christian Bruel  <christian.bruel@st.com>
29293         * config/sh/sh.h (sh_frame_pointer_required): New function.
29294         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
29295         (flag_omit_frame_pointer) Set.
29296         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
29297         (rounded_frame_size): Adjust size with outgoing_args_size.
29298         (sh_set_return_address): Must return from stack pointer.
29299         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
29300         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
29301         (ACCUMULATE_OUTGOING_ARGS): Define.
29302         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
29303         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
29305 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
29307         PR target/43471
29308         * config/sh/sh.c (sh_legitimize_reload_address): Use
29309         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
29310         Remove a unneeded check for offset_base.
29312 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
29314         * configure: Regenerated.
29316 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29318         * config/s390/s390.c (s390_call_save_register_used): Switch back
29319         to HARD_REGNO_NREGS.
29321 2010-04-15  Richard Guenther  <rguenther@suse.de>
29323         * alias.c (alias_set_subset_of): Handle alias-set zero
29324         child properly.
29326 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
29327             Julian Brown  <julian@codesourcery.com>
29329         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
29330         alternatives according to use of high and low regs.
29331         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
29332         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
29333         optimizing for size on Thumb-2.
29335 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
29337         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
29339 2010-04-15  Richard Guenther  <rguenther@suse.de>
29341         * tree-ssa-structalias.c (struct variable_info): Add
29342         is_fn_info flag.
29343         (new_var_info): Initialize it.
29344         (dump_constraints): Support printing last added constraints.
29345         (debug_constraints): Adjust.
29346         (dump_constraint_graph): Likewise.
29347         (make_heapvar_for): Check for NULL cfun.
29348         (get_function_part_constraint): New function.
29349         (get_fi_for_callee): Likewise.
29350         (find_func_aliases): Properly implement IPA PTA constraints.
29351         (process_ipa_clobber): New function.
29352         (find_func_clobbers): Likewise.
29353         (insert_into_field_list_sorted): Remove.
29354         (create_function_info_for): Properly allocate vars for IPA mode.
29355         Do not use insert_into_field_list_sorted.
29356         (create_variable_info_for): Properly generate constraints for
29357         global vars in IPA mode.
29358         (dump_solution_for_var): Always dump the solution.
29359         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
29360         (find_what_var_points_to): Adjust.
29361         (pt_solution_set): Change.
29362         (pt_solution_ior_into): New function.
29363         (pt_solution_empty_p): Export.
29364         (pt_solution_includes_global): Adjust.
29365         (pt_solution_includes_1): Likewise.
29366         (pt_solutions_intersect_1): Likewise.
29367         (dump_sa_points_to_info): Check some invariants.
29368         (solve_constraints): Move constraint dumping ...
29369         (compute_points_to_sets): ... here.
29370         (ipa_pta_execute): ... and here.
29371         (compute_may_aliases): Do not re-compute points-to info
29372         locally if IPA info is available.
29373         (ipa_escaped_pt): New global var.
29374         (ipa_pta_execute): Properly implement IPA PTA.
29375         * tree-into-ssa.c (dump_decl_set): Support dumping
29376         decls not in referenced-vars.
29377         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
29378         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
29379         (dump_points_to_solution): Likewise.
29380         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
29381         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
29382         (remap_gimple_stmt): Reset call clobber/use information if necessary.
29383         (copy_decl_to_var): Copy DECL_PT_UID.
29384         (copy_result_decl_to_var): Likewise.
29385         * tree.c (make_node_stat): Initialize DECL_PT_UID.
29386         (copy_node_stat): Copy it.
29387         * tree.h (DECL_PT_UID): New macro.
29388         (SET_DECL_PT_UID): Likewise.
29389         (DECL_PT_UID_SET_P): Likewise.
29390         (struct tree_decl_minimal): Add pt_uid member.
29391         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
29392         (pt_solution_empty_p): Declare.
29393         (pt_solution_set): Adjust.
29394         (ipa_escaped_pt): Declare.
29395         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
29396         * gimple-pretty-print.c (pp_points_to_solution): New function.
29397         (dump_gimple_call): Dump call clobber/use information.
29398         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
29399         * tree-pass.h (TDF_ALIAS): New dump option.
29400         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
29401         * doc/invoke.texi (-fipa-pta): Update documentation.
29403 2010-04-15  Richard Guenther  <rguenther@suse.de>
29405         * Makefile.in (OBJS-common): Add gimple-fold.o.
29406         (gimple-fold.o): New rule.
29407         * tree.h (maybe_fold_offset_to_reference,
29408         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
29409         prototypes ...
29410         * gimple.h: ... here.
29411         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
29412         may_propagate_address_into_dereference): Move prototypes ...
29413         * gimple.h: ... here.
29414         * tree-ssa-ccp.c (get_symbol_constant_value,
29415         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
29416         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
29417         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
29418         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
29419         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
29420         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
29421         gimplify_and_update_call_from_tree): Move ...
29422         * gimple-fold.c: ... here.  New file.
29423         (ccp_fold_builtin): Rename to ...
29424         (gimple_fold_builtin): ... this.
29425         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
29427 2010-04-15  Richard Guenther  <rguenther@suse.de>
29429         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
29430         fit_double_type, force_fit_type_double, add_double_with_sign,
29431         neg_double, mul_double_with_sign, lshift_double, rshift_double,
29432         lrotate_double, rrotate_double, div_and_round_double): Move ...
29433         * double-int.c: ... here.
29434         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
29435         add_double, neg_double, mul_double_with_sign, mul_double,
29436         lshift_double, rshift_double, lrotate_double, rrotate_double,
29437         div_and_round_double): Move prototypes ...
29438         * double-int.h: ... here.
29440 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
29442         PR target/43742
29443         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
29444         matching constraints to ensure inputs match the output.
29446 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
29448         PR target/43742
29449         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
29450         in an input-only operand.
29452 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
29454         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
29455         (double_int_not, double_int_lshift, double_int_rshift): Declare.
29456         (double_int_negative_p): Convert to static inline function.
29457         * double-int.c (double_int_lshift, double_int_lshift): New functions.
29458         (double_int_negative_p): Remove.
29459         * tree.h (lshift_double, rshift_double):
29460         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
29461         * fold-const.c (fold_convert_const_int_from_real,
29462         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
29463         (lshift_double): Change type of arith argument to bool.
29464         (rshift_double): Change type of arith argument to bool. Correct
29465         comment.
29466         * expmed.c (mask_rtx, lshift_value): (Ditto.).
29468 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
29470         PR target/21803
29471         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
29472         at the start and end of the then/else blocks, and omit them from the
29473         conversion.
29474         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
29475         argument; all callers changed.  Pass zero to old_insns_match_p instead.
29476         (flow_find_head_matching_sequence): New function.
29477         (old_insns_match_p): Check REG_EH_REGION notes for calls.
29478         * basic-block.h (flow_find_cross_jump,
29479         flow_find_head_matching_sequence): Declare functions.
29481 2010-04-14  Jason Merrill  <jason@redhat.com>
29483         PR c++/36625
29484         * c-common.c (attribute_takes_identifier_p): New fn.
29485         * c-common.h: Declare it.
29487 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29489         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
29490         splitter condition.
29491         (*udivmod<mode>4): Ditto.
29493 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29495         * config/i386/i386.md (maxmin_int): Rename code attribute from
29496         maxminiprefix and update all users.
29497         (maxmin_float): Ditto from maxminfprefix.
29498         (logic): Ditto from logicprefix.
29499         (absneg_mnemonic): Ditto from absnegprefix.
29500         * config/i386/mmx.md: Update all users of maxminiprefix,
29501         maxminfprefix and logicprefix for rename.
29502         * config/i386/sse.md: Ditto.
29503         * config/i386/sync.md (sync_<code><mode>): Update for
29504         logicprefix rename.
29506 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29508         PR 42966
29509         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
29510         warnings converted to errors.
29512 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29514         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
29515         used insn_type variable.
29516         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
29517         to avoid set-but-not-used warning.
29519 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29521         * df-core.c (df_ref_debug): Change format string placeholder
29522         from 0x%x to %#x.
29523         * dwarf2asm.c (dw2_asm_output_data_raw,
29524         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
29525         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
29526         * dwarf2out.c (output_cfi, output_cfi_directive,
29527         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
29528         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
29529         Ditto.
29530         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
29531         * print-rtl.c (print_rtx): Ditto.
29533 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
29535         PR middle-end/42694
29536         * builtins.c (expand_builtin_pow_root): New function to expand pow
29537         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
29538         series of sqrt and cbrt calls under -ffast-math.
29539         (expand_builtin_pow): Call it.
29541 2010-04-14  Michael Matz  <matz@suse.de>
29543         PR tree-optimization/42963
29544         * tree-cfg.c (touched_switch_bbs): New static variable.
29545         (group_case_labels_stmt): New function broken out from ...
29546         (group_case_labels): ... here, use the above.
29547         (start_recording_case_labels): Allocate touched_switch_bbs.
29548         (end_recording_case_labels): Deallocate it, call
29549         group_case_labels_stmt.
29550         (gimple_redirect_edge_and_branch): Remember index of affected BB.
29552 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29554         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
29555         from insn template.
29557 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29559         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
29561 2010-04-13  Jan Hubicka  <jh@suse.cz>
29563         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
29564         of optimized out static functions.
29565         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
29566         cost computation.  Also sanity check for overflows.
29567         (update_caller_keys): Update cgraph_edge_badness call; properly
29568         update fibheap and sanity check that it is up to date.
29569         (add_new_edges_to_heap): Update cgraph_edge_badness.
29570         (cgraph_decide_inlining_of_small_function): Likewise;
29571         add sanity checking that badness in heap is up to date;
29572         improve dumping of reason; Update badness of calls to the
29573         offline copy of function currently inlined; dump badness
29574         of functions not inlined because of unit growth limits.
29576 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
29578         PR middle-end/32628
29579         * c-common.c (pointer_int_sum): Disregard overflow that occured only
29580         because of sign-extension change when converting to sizetype here...
29581         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
29583         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
29584         the folding to constants.  Remove redundant final conversion.
29585         (fold_binary) <associate>: Do not associate if the re-association of
29586         constants alone overflows.
29587         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
29588         to the end of the list.
29589         (multiple_of_p) <COND_EXPR>: New case.
29591 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29593         * opt-functions.awk (opt_sanitized_name): New.
29594         (opt_enum): New.
29595         * optc-gen.awk: Use it
29596         * opth-gen.awk: Use it.
29598 2010-04-13  Martin Jambor  <mjambor@suse.cz>
29600         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
29601         (sra_modify_assign): Delete stmts loading dead data even if racc has no
29602         children.  Call replace_uses_with_default_def_ssa_name to handle
29603         SSA_NAES on lhs.
29605 2010-04-13  Michael Matz  <matz@suse.de>
29607         PR middle-end/43730
29608         * builtins.c (expand_builtin_interclass_mathfn): Also create
29609         a register if the predicate doesn't match.
29611 2010-04-13  Diego Novillo  <dnovillo@google.com>
29613         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
29614         * c-pch.c: Include timevar.h.
29615         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
29616         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
29617         * ggc-common.c: Include timevar.h.
29618         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
29619         * timevar.def (TV_PCH_SAVE): Define.
29620         (TV_PCH_CPP_SAVE): Define.
29621         (TV_PCH_PTR_REALLOC): Define.
29622         (TV_PCH_PTR_SORT): Define.
29623         (TV_PCH_RESTORE): Define.
29624         (TV_PCH_CPP_RESTORE): Define.
29626 2010-04-13  Michael Matz  <matz@suse.de>
29628         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
29629         into MINUS_EXPRs.
29630         (can_reassociate_p): New function.
29631         (break_up_subtract_bb, reassociate_bb): Use it.
29633 2010-04-13  Richard Guenther  <rguenther@suse.de>
29635         PR bootstrap/43737
29636         * builtins.c (c_readstr): Fix assert.
29638 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
29640         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
29641         when generating cltd insn.
29643         (*ashl<mode>3_1): Remove special handling for register operand 2.
29644         (*ashlsi3_1_zext): Ditto.
29645         (*ashlhi3_1): Ditto.
29646         (*ashlhi3_1_lea): Ditto.
29647         (*ashlqi3_1): Ditto.
29648         (*ashlqi3_1_lea): Ditto.
29649         (*<shiftrt_insn><mode>3_1): Ditto.
29650         (*<shiftrt_insn>si3_1_zext): Ditto.
29651         (*<shiftrt_insn>qi3_1_slp): Ditto.
29652         (*<rotate_insn><mode>3_1): Ditto.
29653         (*<rotate_insn>si3_1_zext): Ditto.
29654         (*<rotate_insn>qi3_1_slp): Ditto.
29656 2010-04-13  Richard Guenther  <rguenther@suse.de>
29658         * tree-ssa-structalias.c (callused_id): Remove.
29659         (call_stmt_vars): New.
29660         (get_call_vi): Likewise.
29661         (lookup_call_use_vi): Likewise.
29662         (lookup_call_clobber_vi): Likewise.
29663         (get_call_use_vi): Likewise.
29664         (get_call_clobber_vi): Likewise.
29665         (make_transitive_closure_constraints): Likewise.
29666         (handle_const_call): Adjust to do per-call call-used handling.
29667         (handle_pure_call): Likewise.
29668         (find_what_var_points_to): Remove general callused handling.
29669         (init_base_vars): Likewise.
29670         (init_alias_vars): Initialize call_stmt_vars.
29671         (compute_points_to_sets): Process call-used and call-clobbered
29672         vars for call statements.
29673         (delete_points_to_sets): Free call_stmt_vars.
29675 2010-04-13  Richard Guenther  <rguenther@suse.de>
29677         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29678         Only add RW dependence for dependence distance zero.
29679         Adjust maximal vectorization factor according to dependences.
29680         Move alignment handling ...
29681         (vect_find_same_alignment_drs): ... here.  New function.
29682         (vect_analyze_data_ref_dependences): Adjust.
29683         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
29684         (vect_analyze_data_refs): Adjust minimal vectorization factor
29685         according to data references.
29686         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
29687         dependences before determining the vectorization factor.
29688         Analyze alignment after determining the vectorization factor.
29689         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
29690         dependences before alignment.
29691         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
29692         Adjust prototype.
29693         (vect_analyze_data_refs): Likewise.
29694         (MAX_VECTORIZATION_FACTOR): New define.
29696 2010-04-13  Duncan Sands  <baldrick@free.fr>
29698         * except.h (lang_eh_type_covers): Remove.
29699         * except.c (lang_eh_type_covers): Likewise.
29701 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29702             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29704         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
29705         * config/s390/s390.c: Replace UNTIS_PER_WORD with
29706         UNITS_PER_LONG where it is ABI relevant.
29707         (s390_return_addr_rtx): Likewise.
29708         (s390_back_chain_rtx): Likewise.
29709         (s390_frame_area): Likewise.
29710         (s390_frame_info): Likewise.
29711         (s390_initial_elimination_offset): Likewise.
29712         (save_gprs): Likewise.
29713         (s390_emit_prologue): Likewise.
29714         (s390_emit_epilogue): Likewise.
29715         (s390_function_arg_advance): Likewise.
29716         (s390_function_arg): Likewise.
29717         (s390_va_start): Likewise.
29718         (s390_gimplify_va_arg): Likewise.
29719         (s390_function_profiler): Likewise.
29720         (s390_optimize_prologue): Likewise.
29721         (s390_rtx_costs): Likewise.
29722         (s390_secondary_reload): Likewise.
29723         (s390_promote_function_mode): Likewise.
29724         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
29725         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
29726         registers available.
29727         (s390_unwind_word_mode): New function.
29728         (s390_function_value): Split 64 bit values into register pair if
29729         used as return value.
29730         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
29731         function call parameters.  Handle parallels.
29732         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
29733         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
29734         (DWARF_CIE_DATA_ALIGNMENT): New macro.
29735         (s390_expand_setmem): Remove unused variable src_addr.
29736         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
29737         deal with 64 bit registers.
29738         * config/s390/s390.h: Define __zarch__ predefined macro.
29739         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
29740         (UNITS_PER_LONG): New macro.
29741         * libjava/include/s390-signal.h: Define extended ucontext
29742         structure containing the upper halfs of the 64 bit registers.
29744 2010-04-13  Simon Baldwin  <simonb@google.com>
29746         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
29748 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
29750         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
29751         rvalue on the RHS if the LHS is of a non-renamable type.
29752         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
29754 2010-04-13  Matthias Klose  <doko@ubuntu.com>
29756         * gcc.c (cc1_options): Handle -iplugindir before processing
29757         the cc1 spec. Only add -iplugindir once.
29758         (cpp_unique_options): Add -iplugindir option if -fplugin* options
29759         found.
29760         * common.opt (iplugindir): Remove `Separate' property, initialize.
29761         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
29762         option.
29763         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
29764         (distclean): Remove plugin dir.
29765         * doc/invoke.texi: Document -iplugindir.
29767 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
29769         * doc/plugins.texi (Loading Plugins): Document short
29770         -fplugin=foo option.
29771         (Plugin API): Mention default_plugin_dir_name function.
29773         * gcc.c (find_file_spec_function): Add new declaration.
29774         (static_spec_func): Use it for "find-file".
29775         (find_file_spec_function): Add new function.
29776         (cc1_options): Add -iplugindir option if -fplugin* options found.
29778         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
29780         * plugin.c (add_new_plugin): Updated comment, and handle short
29781         plugin name.
29782         (default_plugin_dir_name): Added new function.
29784         * common.opt (iplugindir): New option to set the plugin directory.
29786 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
29788         * config/i386/i386.md (any_rotate): New code iterator.
29789         (rotate_insn): New code attribute.
29790         (rotate): Ditto.
29791         (SWIM124): New mode iterator.
29792         (<rotate_insn>ti3): New expander.
29793         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
29794         any_rotate code iterator.
29795         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
29796         using any_rotate code iterator and SWIM124 mode iterator.
29797         (ix86_rotlti3): New insn_and_split pattern.
29798         (ix86_rotrti3): Ditto.
29799         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
29800         ix86_rotl{di,ti}3 patterns.
29801         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
29802         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
29803         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
29804         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
29805         code iterator and SWI mode iterator.
29806         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
29807         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
29808         code iterator.
29809         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
29810         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
29811         (bswap rotatert splitter): Add splitter.
29812         (bswap splitter): Macroize splitter using any_rotate code iterator.
29813         Add insn predicate to split only for TARGET_USE_XCHGB or when
29814         optimizing function for size.
29816 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
29818         * config/pa/pa.c (emit_move_sequence): Remove use of
29819         deleted variable flag_argument_noalias.
29821 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29823         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
29824         configurations.
29825         Add to unsupported targets list.
29826         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
29827         sparc*-sun-solaris2.[567]* from target lists.
29828         * configure: Regenerate.
29829         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
29830         removal.
29831         Remove Solaris 7 patch references.
29832         (Specific, sparc-sun-solaris2.7): Removed.
29833         (sparc-sun-solaris2*): Update Solaris 7 example.
29834         (sparc64-*-solaris2*): Likewise.
29836 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29838         * config.build (alpha*-dec-osf4*): Remove.
29839         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
29840         of obsolete configurations.
29841         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
29842         support.
29843         * config/alpha/t-osf4: Renamed to ...
29844         * config/alpha/t-osf5: ... this.
29845         * config/alpha/osf.h: Renamed to ...
29846         * config/alpha/osf5.h: ... this.
29847         Merged old osf5.h contents.
29848         Update comments.
29849         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
29850         (EXTRA_SPECS): Removed.
29851         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
29852         reflect removal of Tru64 UNIX V4.0/V5.0 support.
29853         Document that.
29855 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29857         * doc/contrib.texi (Contributors, Rainer Orth): Update.
29859 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
29861         PR/43702
29862         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
29863         __thiscall convention.
29865 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
29867         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
29868         orig_base.
29869         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
29871 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
29873         * function.c (assign_parms_initialize_all): Add unused attribute
29874         to fntype.
29876 2010-04-12  Richard Guenther  <rguenther@suse.de>
29878         * gsstruct.def (GSS_CALL): New.
29879         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
29880         * gimple.h: Include tree-ssa-alias.h.
29881         (struct gimple_statement_call): New.
29882         (union gimple_statement_struct_d): Add gimple_call member.
29883         (gimple_call_reset_alias_info): Declare.
29884         (gimple_call_use_set): New function.
29885         (gimple_call_clobber_set): Likewise.
29886         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
29887         * gimple.c (gimple_call_reset_alias_info): New function.
29888         (gimple_build_call_1): Call it.
29889         * lto-streamer-in.c (input_gimple_stmt): Likewise.
29890         * tree-inline.c (remap_gimple_stmt): Likewise.
29891         (expand_call_inline): Remove callused handling.
29892         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
29893         * tree-dfa.c (dump_variable): Likewise.
29894         * tree-parloops.c (parallelize_loops): Likewise.
29895         * tree-ssa.c (init_tree_ssa): Likewise.
29896         (delete_tree_ssa): Likewise.
29897         * tree-flow-inline.h (is_call_used): Remove.
29898         * tree-flow.h (struct gimple_df): Remove callused member.
29899         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
29900         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
29901         (ref_maybe_used_by_call_p_1): Simplify.
29902         (call_may_clobber_ref_p_1): Likewise.
29903         * tree-ssa-structalias.c (compute_points_to_sets): Set
29904         the call stmt used and clobbered sets.
29905         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
29906         (find_tail_calls): Verify the tail call.
29908 2010-04-12  Richard Guenther  <rguenther@suse.de>
29910         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
29911         single-iteration always-inline inlining.
29912         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
29913         (cgraph_decide_inlining): Do not handle always-inline specially.
29914         (try_inline): Remove always-inline cycle detection special case.
29915         Do not recurse on always-inlines.
29916         (cgraph_early_inlining): Do not iterate if not optimizing.
29917         (cgraph_gate_early_inlining): remove.
29918         (pass_early_inline): Run unconditionally.
29919         (gate_cgraph_decide_inlining): New function.
29920         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
29921         not inlining or optimizing.
29922         (cgraph_decide_inlining_of_small_functions): Also consider
29923         always-inline functions.
29924         (cgraph_default_inline_p): Return true for nodes which should
29925         disregard inline limits.
29926         (estimate_function_body_sizes): Assume zero size and time for
29927         nodes which are marked as disregarding inline limits.
29928         (cgraph_decide_recursive_inlining): Do not perform recursive
29929         inlining on always-inline nodes.
29931 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
29933         PR bootstrap/43699
29934         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
29935         for exprs satisfying handled_component_p.
29937 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
29939         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
29940         non-constant aggregate elements.
29942         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
29943         is a real initialization.
29945 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
29947         PR c/36774
29948         * c-decl.c (start_function): Move forward check for nested function.
29950 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
29952         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
29953         * config/sh/sh.c: Include reload.h.
29954         (sh_legitimize_reload_address): New.
29955         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
29956         sh_legitimize_reload_address.
29958 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
29960         * config/sh/sh.md (*movqi_pop): New insn pattern.
29961         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
29963 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
29965         * config/i386/i386.md (any_shiftrt): New code iterator.
29966         (shiftrt_insn): New code attribute.
29967         (shiftrt): Ditto.
29968         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
29969         using any_shiftrt code iterator.
29970         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
29971         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
29972         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
29973         pattern from corresponding peephole2 patterns.
29974         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
29975         using any_shiftrt code iterator.
29976         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
29977         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
29978         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
29979         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
29980         *{ashr,lshr}<mode>3_cmp_zext.
29981         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
29983 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
29985         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
29986         scratch register.
29987         (*lshr<mode>3_cconly): Ditto.
29989 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
29991         * config/i386/i386.md (lshr<mode>3): Macroize expander from
29992         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
29993         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
29994         pattern from *lshr{di,ti}3_1 and corresponding splitters using
29995         DWI mode iterator.
29996         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
29997         from corresponding peephole2 patterns.
29998         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
29999         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
30000         and *lshrdi3_1_rex64 using SWI mode iterator.
30001         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
30002         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
30003         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
30004         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
30005         and *lshrdi3_cmp_rex64 using SWI mode iterator.
30006         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
30007         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
30008         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
30009         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
30010         SWI mode iterator.
30012 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
30014         * config/i386/i386.md (ashr<mode>3): Macroize expander from
30015         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
30016         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
30017         pattern from *ashr{di,ti}3_1 and corresponding splitters using
30018         DWI mode iterator.
30019         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
30020         from corresponding peephole2 patterns.
30021         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
30022         (ashrsi3_cvt): Rename from ashrsi3_31.
30023         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
30024         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
30025         and x86_64_shift_adj_3 using SWI48 mode iterator.
30026         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
30027         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
30028         and *ashrdi3_1_rex64 using SWI mode iterator.
30029         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
30030         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
30031         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
30032         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
30033         and *ashrdi3_cmp_rex64 using SWI mode iterator.
30034         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
30035         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
30036         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
30037         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
30038         SWI mode iterator.
30039         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
30040         * config/i386/i386.c (ix86_split_ashr): Update for renamed
30041         x86_shift<mode>_adj_3 expanders.
30043 2010-04-10  Wei Guozhi  <carrot@google.com>
30045         PR target/42601
30046         * config/arm/arm.c (arm_pic_static_addr): New function.
30047         (legitimize_pic_address): Call arm_pic_static_addr when it detects
30048         a static symbol.
30049         (arm_output_addr_const_extra): Output expression for new pattern.
30050         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
30052 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
30054         * ira-costs.c (record_reg_classes): Ignore alternatives that are
30055         not enabled.
30057         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
30058         * web.c: Include "insn-config.h" and "recog.h".
30059         (union_match_dups): New function.
30060         (web_main): Call it.
30061         (union_defs): Don't try to recognize match_dups.
30063         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
30064         if doing so would replace the entire pattern.
30066 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
30068         PR target/43707
30069         PR target/43709
30070         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
30071         and splitter pattern.  Change splitter operand 1 predicate to
30072         nonmemory_operand.
30074 2010-04-09  Martin Jambor  <mjambor@suse.cz>
30076         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
30077         lattices are addresses of CONST_DECLs with the same initial value.
30078         (ipcp_print_all_lattices): Print values of CONST_DECLs.
30079         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
30081 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
30082             Bernd Schmidt  <bernds@codesourcery.com>
30084         * loop-invariant.c (replace_uses): New static function.
30085         (move_invariant_reg): Use it to ensure we can replace the uses.
30087 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
30089         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
30090         function template.
30091         (picochip_override_options): Enable section anchors only above -O1.
30092         (picochip_reorg): Fixed a couple of build warnings.
30094 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30096         * configure.ac (plugin -rdynamic test): Log result.
30097         * configure: Regenerate.
30098         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
30099         (RDYNAMIC_SPEC): Define.
30100         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
30102 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30104         * configure.ac: Determine Sun ld version numbers.
30105         (comdat_group): Restrict GNU ld version checks to gld.
30106         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
30107         (enable_comdat): Support --enable-comdat.
30108         * configure: Regenerate.
30109         * doc/install.texi (Configuration): Document --enable-comdat.
30111 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30113         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
30114         * config/sol2-gld.h: ... here.
30115         * config.gcc (sparc*-*-solaris2*): Reflect this.
30116         (i[34567]86-*-solaris2*): Use it.
30118 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
30120         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
30121         setup_clocks_p.
30122         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
30124 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30126         PR 42965
30127         * diagnostic.c (diagnostic_initialize): Initialize
30128         some_warnings_are_errors.
30129         (diagnostic_finish): New.
30130         (diagnostic_action_after_output): Call it before exiting.
30131         (diagnostic_report_diagnostic): Do not print message here. Set
30132         some_warnings_are_errors.
30133         * diagnostic.h (diagnostic_context): Delete
30134         issue_warnings_are_errors_message. Add some_warnings_are_errors.
30135         (diagnostic_finish): Declare.
30136         * toplev.c (toplev_main): Call it before exit.
30138 2010-04-09  Jason Merrill  <jason@redhat.com>
30140         PR c++/42623
30141         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
30142         for incomplete type.
30144         PR c++/41788
30145         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
30146         based on a warning flag.
30148 2010-04-09  Richard Guenther  <rguenther@suse.de>
30150         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
30152 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
30154         PR bootstrap/43684
30155         * varasm.c (default_assemble_visibility): Wrap vars that are
30156         set, but unused, by targets without GAS.
30157         * config/rs6000/rs6000.c (paired_emit_vector_compare):
30158         Remove set, but unused, vars.
30159         (rs6000_legitimize_tls_address): Likewise.
30160         (altivec_expand_dst_builtin): Likewise.
30161         * config/darwin.c (machopic_classify_symbol): Likewise.
30162         (machopic_indirection_name): Likewise.
30164 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
30166         * config/i386/i386.md (DWI): New mode iterator.
30167         (S): New mode attribute.
30168         (shift_operand): Ditto.
30169         (shift_immediate_operand): Ditto.
30170         (ashl_input_operand): Ditto.
30171         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
30172         using SDWIM mode iterator.
30173         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
30174         pattern from *ashl{di,ti}3_1 and corresponding splitters using
30175         DWI mode iterator.
30176         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
30177         from corresponding peephole2 patterns.
30178         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
30179         and x86_64_shift_adj_1 using SWI48 mode iterator.
30180         (x86_shift<mode>_adj_2): Ditto.
30181         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
30182         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
30183         using SWI48 mode iterator.
30184         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
30185         *ashldi3_cmp_rex64 using SWI mode iterator.
30186         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
30187         *ashldi3_cconly_rex64 using SWI mode iterator.
30188         * config/i386/i386.c (ix86_split_ashl): Update for renamed
30189         x86_shift<mode>_adj_{1,2}.
30190         (ix86_split_ashr): Ditto.
30191         (ix86_split_lshr): Ditto.
30193 2010-04-09  Richard Guenther  <rguenther@suse.de>
30195         * target.h (builtin_conversion): Pass in input and output types.
30196         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
30197         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
30198         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
30199         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
30201         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
30202         Handle AVX modes.
30203         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
30205 2010-04-09  Richard Guenther  <rguenther@suse.de>
30207         PR target/43152
30208         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
30210 2010-04-09  Richard Guenther  <rguenther@suse.de>
30212         * tree-vectorizer.h (struct _stmt_vec_info): Document
30213         that vectype is the type of the LHS.
30214         (supportable_widening_operation, supportable_narrowing_operation):
30215         Get both input and output vector types as arguments.
30216         (vect_is_simple_use_1): Declare.
30217         (get_same_sized_vectype): Likewise.
30218         * tree-vect-loop.c (vect_determine_vectorization_factor):
30219         Set STMT_VINFO_VECTYPE to the vector type of the def.
30220         (vectorizable_reduction): Adjust.
30221         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
30222         Adjust.  Specify the output vector type.
30223         (vect_pattern_recog_1): Adjust.
30224         * tree-vect-stmts.c (get_same_sized_vectype): New function.
30225         (vectorizable_call): Adjust.
30226         (vectorizable_conversion): Likewise.
30227         (vectorizable_operation): Likewise.
30228         (vectorizable_type_demotion): Likewise.
30229         (vectorizable_type_promotion): Likewise.
30230         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
30231         the def.
30232         (vect_is_simple_use_1): New function.
30233         (supportable_widening_operation): Get both input and output
30234         vector types.
30235         (supportable_narrowing_operation): Likewise.
30236         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
30238 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
30240         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
30241         __thiscall and _thiscall as predefined macros.
30242         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
30243         thiscall attribute handling.
30244         (ix86_comp_type_attributes): Likewise.
30245         (ix86_function_regparm): Likewise.
30246         (ix86_return_pops_args): Likewise.
30247         (init_cumulative_args): Likewise.
30248         (find_drap_reg): Likewise.
30249         (ix86_static_chain): Likewise.
30250         (x86_this_parameter): Likewise.
30251         (x86_output_mi_thunk): Likewise.
30252         (ix86_attribute_table): Add description for thiscall attribute.
30253         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
30254         * doc/extend.texi: Add documentation for thiscall.
30256 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30258         PR c++/28584
30259         * c.opt (Wint-to-pointer-cast): Available in C++.
30260         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
30262 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
30264         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
30265         * calls.c (expand_call): Pass the function type to aggregate_value_p.
30266         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
30267         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
30268         function type instead.  Reorder and simplify checks.
30270         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
30272 2010-04-08  Jing Yu  <jingyu@google.com>
30273             Zdenek Dvorak  <ook@ucw.cz>
30275         PR tree-optimization/42720
30276         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
30277         loop unswitch conditions here from ...
30278         (tree_unswitch_single_loop): ... here.
30280 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
30282         * tree-if-conv.c: Fix comments and simplify logic.
30284 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
30286         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
30287         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
30288         (main_tree_if_conversion): Update call to tree_if_conversion.
30290 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30292         PR 42485
30293         * doc/invoke.texi (-b,-V): Delete.
30294         * doc/tm.texi: Do not mention -b.
30295         * gcc.c (display_help): Delete -b and -V.
30296         (process_command): Delete -b and -V.
30297         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
30299 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
30300             Wolfgang Gellerich  <gellerich@de.ibm.com>
30302         Implement target hook for loop unrolling
30303         * target.h (loop_unroll_adjust): Add a new target hook function.
30304         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
30305         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
30306         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
30307         (s390_loop_unroll_adjust): Implement the new target hook for s390.
30308         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
30309         target hook.
30310         (decide_unroll_stupid): Likewise.
30312 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30314         PR target/43643
30315         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
30317 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30319         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
30320         (Specific, *-*-solaris2*): Likewise.
30321         Don't prefer Sun as over GNU as.
30323 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
30325         * config/s390/s390.c (override_options): Adjust the z10 defaults
30326         for max-unroll-times, max-completely-peeled-insns
30327         and max-completely-peel-times.
30329 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30331         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
30332         instructions for z10.
30333         (s390_expand_setmem): Likewise.
30334         (s390_expand_cmpmem): Likewise.
30336 2010-04-08  Richard Guenther  <rguenther@suse.de>
30338         PR tree-optimization/43679
30339         * tree-ssa-pre.c (eliminate): Only propagate copies.
30341 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
30343         PR bootstrap/43681
30344         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
30345         set but not used variable warning.
30347 2010-04-08  Wei Guozhi  <carrot@google.com>
30349         PR target/41653
30350         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
30351         (arm_size_rtx_costs): Call the new function when optimized for size.
30353 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
30355         PR debug/43670
30356         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
30357         op0 is not a MEM, just return NULL instead of assertion
30358         failure.
30359         (discover_nonconstant_array_refs): Don't walk debug stmts.
30361 2010-04-08  Doug Kwan  <dougkwan@google.com>
30363         * configure.ac: Recognize gold and do not use its version number
30364         to test ld features.
30365         * configure: Regenerate.
30367 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
30369         PR middle-end/40815
30370         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
30371         (negate_value): Move code to push elements to broken_up_substracts ...
30372         (eliminate_plus_minus_pair): ... here.  Push operands that have no
30373         negative pair to plus_negates.
30374         (repropagate_negates, init_reassoc, fini_reassoc): Update.
30376 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30378         * doc/install.texi (Configuration): Move description of
30379         --enable-lto, --with-libelf*, --enable-gold from Java section to
30380         general section.
30382         * doc/generic.texi (Working with declarations)
30383         (Function Properties, C and C++ Trees): Fix typos.
30384         * doc/sourcebuild.texi (Top Level): Likewise.
30386 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
30388         PR c/18624
30389         * tree.h (DECL_READ_P): Define.
30390         (struct tree_decl_common): Add decl_read_flag.
30391         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
30392         a set but not used warning.
30393         (merge_decls): Merge DECL_READ_P flag.
30394         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
30395         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
30396         * c-common.c (handle_used_attribute, handle_unused_attribute):
30397         Likewise.
30398         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
30399         New prototypes.
30400         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
30401         New functions.
30402         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
30403         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
30404         c_parser_binary_expression, c_parser_cast_expression,
30405         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
30406         Call default_function_array_read_conversion instead of
30407         default_function_array_conversion where needed.
30408         (c_parser_unary_expression, c_parser_conditional_expression,
30409         c_parser_postfix_expression_after_primary, c_parser_initelt):
30410         Likewise.  Call mark_exp_read where needed.
30411         (c_parser_statement_after_labels, c_parser_asm_operands,
30412         c_parser_typeof_specifier, c_parser_sizeof_expression,
30413         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
30414         where needed.
30415         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
30416         New.
30417         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
30418         (warn_unused_but_set_parameter): Default to warn_unused
30419         && extra_warnings.
30420         * doc/invoke.texi: Document -Wunused-but-set-variable and
30421         -Wunused-but-set-parameter.
30423         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
30424         used count variable.
30425         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
30426         when operandN variables aren't used in the body of the expander
30427         or splitter.
30428         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
30429         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
30430         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
30431         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
30432         FOR_EACH_IMM_USE_ON_STMT): Likewise.
30433         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
30434         * tree.c (PROCESS_ARG): Likewise.
30436 2010-04-07  Simon Baldwin  <simonb@google.com>
30438         * diagnostic.h (diagnostic_override_option_index): New macro to
30439         set a diagnostic's option_index.
30440         * c-tree.h (c_cpp_error): Add warning reason argument.
30441         * opts.c (_warning_as_error_callback): New.
30442         (register_warning_as_error_callback): Store callback for
30443         warnings enabled via enable_warning_as_error.
30444         (enable_warning_as_error): Call callback, minor code tidy.
30445         * opts.h (register_warning_as_error_callback): Declare.
30446         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
30447         response to -Werror=.
30448         (c_common_init_options): Register warning_as_error_callback in opts.c.
30449         * common.opt: Add -Wno-cpp option.
30450         * c-common.c (struct reason_option_codes_t): Map cpp warning
30451         reason codes to gcc option indexes.
30452         * (c_option_controlling_cpp_error): New function, lookup the gcc
30453         option index for a cpp warning reason code.
30454         * (c_cpp_error): Add warning reason argument, call
30455         c_option_controlling_cpp_error for diagnostic_override_option_index.
30456         * doc/invoke.texi: Document -Wno-cpp.
30458 2010-04-07  Richard Guenther  <rguenther@suse.de>
30460         * ipa-reference.c (mark_load): Use get_base_address.
30461         (mark_store): Likewise.
30463         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
30464         inserting GIMPLE_NOPs into the IL.
30465         * tree-ssa-structalias.c (get_constraint_for_component_ref):
30466         Explicitly strip handled components and indirect references.
30468         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
30469         folding address expressions.
30470         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
30471         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
30472         operand_equal_p to compare decls.
30473         (ptr_deref_may_alias_decl_p): Likewise.
30474         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
30475         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
30476         Handle reversed comparison ops.
30477         * tree-sra.c (asm_visit_addr): Use get_base_address.
30478         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
30479         * ipa-reference.c (mark_address): Use get_base_address.
30481 2010-04-07  Richard Guenther  <rguenther@suse.de>
30483         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
30484         Propagate constants everywhere.
30486 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
30488         PR debug/43516
30489         * tree.c (MAX_INT_CACHED_PREC): Define.
30490         (nonstandard_integer_type_cache): New array.
30491         (build_nonstandard_integer_type): Cache results for precision
30492         <= MAX_INT_CACHED_PREC.
30494 2010-04-07  Richard Guenther  <rguenther@suse.de>
30496         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
30497         -fargument-noalias-global, -fargument-noalias-anything): Remove.
30498         * common.opt: Likewise.
30499         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
30500         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
30501         (nonoverlapping_memrefs_p): Likewise.
30502         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
30503         * opts.c (common_handle_option): Handle OPT_fargument_alias,
30504         OPT_fargument_noalias, OPT_fargument_noalias_anything and
30505         OPT_fargument_noalias_global for backward compatibility.
30507 2010-04-07  Richard Guenther  <rguenther@suse.de>
30509         PR tree-optimization/43270
30510         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
30511         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
30512         * tree-ssa-pre.c (phi_translate_1): Adjust.
30513         (fully_constant_expression): Split out vn_reference handling to ...
30514         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
30515         Fold reads from constant strings.
30516         (vn_reference_lookup): Handle fully constant references.
30517         (vn_reference_lookup_pieces): Likewise.
30518         * Makefile.in (expmed.o-warn): Add -Wno-error.
30520 2010-04-07  Martin Jambor  <mjambor@suse.cz>
30522         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
30524 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
30526         PR driver/41594
30527         * gcc.c: Add -static-libstdc++ to list of recognized options.
30529 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30531         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
30533 2010-04-07  Richard Guenther  <rguenther@suse.de>
30535         PR middle-end/42617
30536         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
30537         bases build simple mem attributes to retain points-to information.
30539 2010-04-07  Richard Guenther  <rguenther@suse.de>
30541         PR middle-end/42617
30542         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
30543         preserve points-to related information.
30545 2010-04-07  Richard Guenther  <rguenther@suse.de>
30547         PR middle-end/42617
30548         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
30549         discard plain indirect references.
30550         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
30551         * tree.c (tree_nop_conversion): Likewise.
30553 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
30555         PR debug/43628
30556         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
30558 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
30560         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
30561         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
30563 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
30565         * tree-if-conv.c: Fix indentation and comments.
30567 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
30569         * tree-if-conv.c: Sort static functions in topological order.
30571 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
30573         * tree-if-conv.c: Fix indentation and comments.
30575 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30577         PR middle-end/43519
30578         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
30579         lang_hooks.types.type_for_size instead of
30580         build_nonstandard_integer_type.
30581         When converting an unsigned type to signed, double its precision.
30582         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
30583         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
30584         (graphite_create_new_loop_guard): When ub + 1 wraps around,
30585         use lb <= ub.
30587 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30589         PR middle-end/43519
30590         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
30591         POINTER_PLUS_EXPR for pointer types.
30593 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30595         PR middle-end/43519
30596         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
30597         * graphite-clast-to-gimple.c: Include langhooks.h.
30598         (max_signed_precision_type): New.
30599         (max_precision_type): Takes two types as arguments.
30600         (precision_for_value): New.
30601         (precision_for_interval): New.
30602         (gcc_type_for_interval): New.
30603         (gcc_type_for_value): New.
30604         (gcc_type_for_clast_term): New.
30605         (gcc_type_for_clast_red): New.
30606         (gcc_type_for_clast_bin): New.
30607         (gcc_type_for_clast_expr): Split up into several functions.
30608         (gcc_type_for_clast_eq): Rewritten.
30609         (compute_bounds_for_level): New.
30610         (compute_type_for_level_1): New.
30611         (compute_type_for_level): New.
30612         (gcc_type_for_cloog_iv): Removed.
30613         (gcc_type_for_iv_of_clast_loop): Rewritten.
30614         (graphite_create_new_loop): Compute the lower and upper bound types
30615         with gcc_type_for_clast_expr.
30616         (graphite_create_new_loop_guard): Same.
30617         (find_cloog_iv_in_expr): Removed.
30618         (compute_cloog_iv_types_1): Removed.
30619         (compute_cloog_iv_types): Removed.
30620         (gloog): Do not call compute_cloog_iv_types.
30621         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
30622         GBB_CLOOG_IV_TYPES.
30623         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
30624         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
30625         (GBB_CLOOG_IV_TYPES): Removed.
30627 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30629         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
30630         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
30631         (detect_commutative_reduction): Same.
30633 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30635         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
30636         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
30637         argument.
30638         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
30639         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
30640         (rewrite_commutative_reductions_out_of_ssa): Same.
30641         * passes.c (execute_function_todo): Call verify_ssa for every pass
30642         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
30643         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
30644         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
30645         with an extra argument.
30646         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
30647         verify_ssa only when the extra argument is true.
30648         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
30649         with an extra argument.
30650         (tree_transform_and_unroll_loop): Same.
30652 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30654         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
30655         for all the passes of the LNO having LOOP_CLOSED_SSA.
30656         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
30657         * tree-loop-distribution.c (pass_loop_distribution): Same.
30658         * tree-pass.h (TODO_verify_loops): Removed.
30659         * tree-ssa-loop.c (pass_tree_loop_init): Same.
30660         (pass_lim): Same.
30661         (pass_tree_unswitch): Same.
30662         (pass_predcom): Same.
30663         (pass_vectorize): Same.
30664         (pass_linear_transform): Same.
30665         (pass_graphite_transforms): Same.
30666         (pass_iv_canon): Same.
30667         (pass_complete_unroll): Same.
30668         (pass_complete_unrolli): Same.
30669         (pass_parallelize_loops): Same.
30670         (pass_loop_prefetch): Same.
30671         (pass_iv_optimize): Same.
30673 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
30675         PR middle-end/32824
30676         * passes.c (init_optimization_passes): Move pass_lim before
30677         pass_copy_prop and pass_dce_loop.
30679 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
30681         PR target/43667
30682         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
30683         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
30684         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
30685         MULTI_* defines for 4 argument vpermil2p* builtins.
30687 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
30689         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
30690         * config/i386/i386.c (x86_maybe_negate_const_int): New.
30691         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
30692         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
30693         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
30694         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
30695         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
30696         Use x86_maybe_negate_const_int to output insn mnemonic.
30697         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
30698         check from instruction predicate.  Update comments.
30699         * config/i386/sync.md (sync_add<mode>): Use
30700         x86_maybe_negate_const_int to output insn mnemonic.
30702 2010-04-06  Jan Hubicka  <jh@suse.cz>
30704         PR tree-optimization/42906
30705         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
30706         IGNORE_SELF argument.  Set visited_control_parents for fully
30707         processed BBs.
30708         (find_obviously_necessary_stmts): Update call of
30709         mark_control_dependent_edges_necessary.
30710         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
30712 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
30714         * config/i386/i386.md: Remove comment about 'e' and 'E'
30715         operand modifier.
30717 2010-04-06  Richard Guenther  <rguenther@suse.de>
30719         PR tree-optimization/43627
30720         * tree-vrp.c (extract_range_from_unary_expr): Widenings
30721         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
30722         not varying.
30724 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
30726         * BASE-VER: Change to 4.6.0.
30728         PR target/43638
30729         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
30730         handling.
30732 2010-04-06  Richard Guenther  <rguenther@suse.de>
30734         PR middle-end/43661
30735         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
30737 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30739         * doc/invoke.texi (Optimize Options): Document that LTO
30740         won't remove object access purely due to incompatible
30741         declarations.
30743 2010-04-04  Matthias Klose  <doko@ubuntu.com>
30745         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
30746         Initialize variable.
30748 2010-04-03  Richard Guenther  <rguenther@suse.de>
30750         PR middle-end/42509
30751         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
30752         require a non-NULL MEM_OFFSET.
30754 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
30756         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
30757         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
30758         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
30759         config/alpha/predicates.md, config/arm/arm.md,
30760         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
30761         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
30762         config/darwin9.h, config/darwin.c, config/darwin.h,
30763         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
30764         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
30765         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
30766         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
30767         config/mips/mips.md, config/mn10300/mn10300.c,
30768         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
30769         config/rs6000/aix.h, config/rs6000/dfp.md,
30770         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
30771         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
30772         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
30773         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
30774         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
30775         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
30776         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
30777         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
30778         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
30779         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
30780         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
30781         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
30782         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
30783         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
30784         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
30785         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
30786         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
30787         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
30788         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
30789         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
30790         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
30791         opt-functions.awk, opth-gen.awk, params.def, passes.c,
30792         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
30793         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
30794         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
30795         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
30796         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
30797         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
30798         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
30799         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
30800         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
30801         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
30802         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
30803         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
30804         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
30805         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
30807 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30809         PR other/43620
30810         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
30811         * aclocal.m4: Regenerate.
30813 2010-04-02  Richard Guenther  <rguenther@suse.de>
30815         PR tree-optimization/43629
30816         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
30817         if we have seen a constant value.
30819 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
30821         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
30823 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
30825         PR target/43469
30826         * arm.c (legitimize_tls_address): Adjust call to
30827         gen_tls_load_dot_plus_four.
30828         (arm_note_pic_base): New function.
30829         (arm_cannot_copy_insn_p): Use it.
30830         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
30831         constraint.
30833 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30835         PR bootstrap/43531
30837         Revert:
30838         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30840         * Makefile.in ($(out_object_file)): Depend on
30841         gt-$(basename $(notdir $(out_file))).h.
30843 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
30845         * config.gcc (lm32-*-rtems*): Add t-lm32.
30847 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
30849         * config.gcc: Add lm32-*-rtems*.
30850         * config/lm32/rtems.h: New file.
30852 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
30854         PR target/42609
30855         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
30857 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
30859         * dwarf2out.c (output_compilation_unit_header): For
30860         -gdwarf-4 use version 4 instead of version 3.
30861         (output_line_info): For version 4 and above emit additional
30862         maximum ops per insn header field.
30863         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
30865         * dwarf2out.c (is_c_family, is_java): Remove.
30866         (lower_bound_default): New function.
30867         (add_bound_info, gen_descr_array_type_die): Use it.
30869 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
30871         PR debug/43325
30872         * dwarf2out.c (gen_variable_die): Allow debug info for variable
30873         re-declaration when it happens in a function.
30875 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
30877         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
30878         (cgraph_remove_function_insertion_hook): Same.
30879         (cgraph_call_function_insertion_hooks): Same.
30881 2010-04-01  Richard Guenther  <rguenther@suse.de>
30883         PR middle-end/43614
30884         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
30885         and TREE_THIS_VOLATILE.
30886         (copy_ref_info): Likewise.
30887         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
30888         * tree.c (build6_stat): Ignore side-effects of all but arg5
30889         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
30890         TARGET_MEM_REF.
30892 2010-04-01  Richard Guenther  <rguenther@suse.de>
30894         PR tree-optimization/43607
30895         * ipa-type-escape.c (check_call): Do not access non-existing
30896         arguments.
30898 2010-04-01  Richard Guenther  <rguenther@suse.de>
30900         PR middle-end/43602
30901         Revert
30902         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
30903                     Jack Howarth  <howarth@bromo.med.uc.edu>
30905         * tree-profile.c (tree_init_ic_make_global_vars): Make static
30906         variables TLS.
30908 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30910         * doc/install.texi (Prerequisites): Document libelf usability on
30911         IRIX 5/6 and Solaris 2.
30912         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
30913         Update GNU as, GNU ld requirements.
30914         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
30915         Document Sun Studio compiler download.
30916         Update and simplify as, ld recommendations.
30917         (Specific, *-*-solaris2.7): Note obsoletion, removal.
30919 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30921         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
30922         with_tune_32 to pentium4.
30924 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
30926         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
30928 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30930         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
30931         obsoletion, removal.
30932         Update IDO URL.
30933         Document GNU as requirement.
30934         Update configure requirements.
30935         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
30936         Recomment IRIX 6.5.18+.
30937         Document IDF/IDL requirement.
30938         Document GNU as requirement.
30939         Document GNU ld bootstrap failure.
30940         Remove freeware.sgi.com reference.
30942 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30944         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
30945         UNIX V4.0, V5.0 obsoletion, removal.
30946         Remove --with-gc=simple reference.
30947         Update VM requirements during bootstrap.
30948         Remove -oldas bootstrap description.
30949         Update binutils reference.
30950         Remove comparison failure note.
30952 2010-03-31  Richard Guenther  <rguenther@suse.de>
30953             Zdenek Dvorak  <ook@ucw.cz>
30954             Sebastian Pop  <sebastian.pop@amd.com>
30956         PR middle-end/43464
30957         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
30958         with multiple arguments.
30959         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
30961 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
30963         * graphite-dependences.c (print_pddr): Call print_pdr with an
30964         extra argument.
30965         * graphite-poly.c (debug_pdr): Add an extra argument for the
30966         verbosity level.
30967         (print_pdr): Same.
30968         (print_pbb_domain): Same.
30969         (print_pbb): Same.
30970         (print_scop_context): Same.
30971         (print_scop): Same.
30972         (print_cloog): Same.
30973         (debug_pbb_domain): Same.
30974         (debug_pbb): Same.
30975         (print_pdrs): Same.
30976         (debug_pdrs): Same.
30977         (debug_scop_context): Same.
30978         (debug_scop): Same.
30979         (debug_cloog): Same.
30980         (print_scop_params): Same.
30981         (debug_scop_params): Same.
30982         (print_iteration_domain): Same.
30983         (print_iteration_domains): Same.
30984         (debug_iteration_domain): Same.
30985         (debug_iteration_domains): Same.
30986         (print_scattering_function): Same.
30987         (print_scattering_functions): Same.
30988         (debug_scattering_function): Same.
30989         (debug_scattering_functions): Same.
30990         * graphite-poly.h (debug_pdr): Update declaration.
30991         (print_pdr): Same.
30992         (print_pbb_domain): Same.
30993         (print_pbb): Same.
30994         (print_scop_context): Same.
30995         (print_scop): Same.
30996         (print_cloog): Same.
30997         (debug_pbb_domain): Same.
30998         (debug_pbb): Same.
30999         (print_pdrs): Same.
31000         (debug_pdrs): Same.
31001         (debug_scop_context): Same.
31002         (debug_scop): Same.
31003         (debug_cloog): Same.
31004         (print_scop_params): Same.
31005         (debug_scop_params): Same.
31006         (print_iteration_domain): Same.
31007         (print_iteration_domains): Same.
31008         (debug_iteration_domain): Same.
31009         (debug_iteration_domains): Same.
31010         (print_scattering_function): Same.
31011         (print_scattering_functions): Same.
31012         (debug_scattering_function): Same.
31013         (debug_scattering_functions): Same.
31015 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31017         * graphite-poly.c (print_scattering_function_1): New.
31018         (print_scattering_function): Call it.
31019         (print_scop_params): Remove spaces at the end of lines.
31020         (print_cloog): New.
31021         (debug_cloog): New.
31022         * graphite-poly.h (print_cloog): Declared.
31023         (debug_cloog): Declared.
31025 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31027         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
31028         in loop->header.
31029         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
31030         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
31031         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
31032         to switch between adding the IV bump in loop->latch or in loop->header.
31034 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31036         * graphite-poly.c (print_scattering_function): Pretty print following
31037         the scoplib format.
31038         (print_pdr): Same.
31039         (print_pbb_domain): Same.
31040         (dump_gbb_cases): Same.
31041         (dump_gbb_conditions): Same.
31042         (print_pdrs): Same.
31043         (print_pbb): Same.
31044         (print_scop_params): Same.
31045         (print_scop_context): Same.
31046         (print_scop): Same.
31047         (print_pbb_body): New.
31048         (lst_indent_to): New.
31049         (print_lst): Start new lines with a #.
31050         * graphite-poly.h (pbb_bb): New.
31051         (pbb_index): Use pbb_bb.
31052         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
31053         disjuncts.
31054         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
31056 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
31058         * dwarf2out.c (size_of_die): For -gdwarf-4 use
31059         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
31060         and 0 instead of 1 for dw_val_class_flag.
31061         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
31062         dw_val_class_range_list, dw_val_class_loc_list,
31063         dw_val_class_lineptr and dw_val_class_macptr, use
31064         DW_FORM_flag_present for dw_val_class_flag and
31065         DW_FORM_exprloc for dw_val_class_loc.
31066         (output_die): For -gdwarf-4 print dw_val_class_loc
31067         size as uleb128 instead of 1 or 2 bytes and don't print
31068         anything for dw_val_class_flag.
31070         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
31071         instead of cselib_lookup following by tweaking locs->setting_insn.
31073         PR bootstrap/43596
31074         * cselib.c (cselib_process_insn): Clear cselib_current_insn
31075         even before returning from label, setjmp call or volatile asm
31076         handling.
31078 2010-03-31  Richard Guenther  <rguenther@suse.de>
31080         PR middle-end/43600
31081         * cgraphunit.c (cgraph_output_in_order): Do not allocate
31082         temporary data on stack.
31084 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31086         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
31087         (PUSHSECTION_ASM_OP): Remove.
31088         (POPSECTION_ASM_OP): Remove.
31089         (PUSHSECTION_FORMAT): Remove.
31090         * config/sol2.h (PUSHSECTION_FORMAT): Define.
31091         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
31092         * config/sol2.c (solaris_output_init_fini): Use it.
31094 2010-03-31  Jie Zhang  <jie@codesourcery.com>
31096         PR 43574
31097         * opt-functions.awk (var_type_struct): Use signed char type
31098         for simple variables.
31100 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31102         * config/sol2.c: Include output.h.
31103         (solaris_assemble_visibility): New function.
31104         * config/t-sol2 (sol2.o): Add output.h dependency.
31105         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
31106         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
31107         Redefine.
31109 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
31111         PR target/43580
31112         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
31113         V2SImode or XFmode on PRE_DEC.
31115         PR debug/43557
31116         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
31117         BLKmode.
31119 2010-03-31  Jie Zhang  <jie@codesourcery.com>
31121         PR 43562
31122         * reload.h (caller_save_initialized_p): Declare.
31123         * toplev.c (backend_init_target): Don't call
31124         init_caller_save but set caller_save_initialized_p to false.
31125         * caller-save.c (caller_save_initialized_p): Define.
31126         (init_caller_save): Check caller_save_initialized_p.
31127         * ira.c (ira): Call init_caller_save if flag_caller_saves.
31129 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31131         PR target/39048
31132         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
31133         and soft-fp/t-softfp to tmake_file.
31134         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
31135         (LIBGCC2_TF_CEXT): Define.
31136         (TF_SIZE): Define.
31138 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
31140         PR debug/42977
31141         * cselib.c (n_useless_values): Document handling of debug locs.
31142         (n_useless_debug_values, n_debug_values): New variables.
31143         (new_elt_loc_list): Don't add to debug values, keep count.
31144         (promote_debug_loc): New.
31145         (cselib_reset_table): Zero new variables.
31146         (entry_and_rtx_equal_p): Promote debug locs.
31147         (discard_useless_locs): Increment n_useless_debug_values for
31148         debug values.
31149         (remove_useless_values): Adjust n_useless_values and n_debug_values
31150         with n_useless_debug_values.
31151         (add_mem_for_addr): Promote debug locs.
31152         (cselib_lookup_mem): Likewise.
31153         (cselib_lookup_addr): Renamed to...
31154         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
31155         (cselib_log_lookup): ... this.  Turn into...
31156         (cselib_lookup_addr): ... new wrapper.
31157         (cselib_lookup_from_insn): New.
31158         (cselib_invalidate_regno): Increment n_useless_debug_values for
31159         debug values.
31160         (cselib_invalidate_mem): Likewise.
31161         (cselib_process_insn): Take n_deleted and n_debug_values into
31162         account to guard remove_useless_value call.
31163         (cselib_finish): Zero n_useless_debug_values.
31164         * cselib.h (cselib_lookup_from_insn): Declare.
31165         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
31166         (sched_analyze_2): Likewise.
31168 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
31170         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
31171         functions.
31172         (adjust_mems): Replace narrowing SUBREG of expression containing
31173         just PLUS, MINUS, MULT and ASHIFT of registers and constants
31174         with operations in the narrower mode.
31176         PR debug/43593
31177         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
31178         regs_invalidated_by_call instead all call_used_reg_set registers.
31180 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
31182         PR middle-end/43430
31183         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
31184         pointer comparisons with types_compatible_p.
31185         * tree-vect-stmts.c (vectorizable_call): Same.
31186         (vectorizable_condition): Same.
31188 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31190         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
31191         stack check if the mask would be zero.
31193 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
31194             Jack Howarth  <howarth@bromo.med.uc.edu>
31196         * tree-profile.c (tree_init_ic_make_global_vars): Make static
31197         variables TLS.
31199 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
31201         PR other/25232
31202         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
31203         and __unordtf2.
31204         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
31205         Include ___unordxf2 and ___unordtf2.
31206         * config/i386/libgcc-glibc.ver: Do not define inheritance from
31207         GCC_4.4.0 here.
31209 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
31211         * config/lm32/t-lm32: New file.
31212         * config.gcc: Use the above file when targetting lm32.
31214 2010-03-28  Duncan Sands  <baldrick@free.fr>
31216         * Makefile.in (PLUGIN_HEADERS): Add except.h.
31218 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
31220         PR middle-end/43431
31221         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
31222         Improve vectorization cost model diagnostic.
31224 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
31226         PR middle-end/43436
31227         * tree-vect-data-refs.c (vect_analyze_data_refs): When
31228         compute_data_dependences_for_loop returns false, early exit
31229         and output an extra diagnostic for the failed data reference
31230         analysis.
31232 2010-03-29  Richard Guenther  <rguenther@suse.de>
31234         PR tree-optimization/43560
31235         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
31236         (can_sm_ref_p): Treat stores to readonly locations as trapping.
31238 2010-03-29  Jie Zhang  <jie@codesourcery.com>
31240         PR 43564
31241         * toplev.c (process_options): Set optimization_default_node
31242         and optimization_current_node.
31243         * opts.c (decode_options): Don't set optimization_default_node
31244         and optimization_current_node.
31246 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
31248         * config/rtems.h: Abandon -qrtems_debug.
31250 2010-03-28  Jan Hubicka  <jh@suse.cz>
31252         PR tree-optimization/43505
31253         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
31254         map should not be copied.
31256 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31258         PR middle-end/41674
31259         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
31260         cdtors, set DECL_PRESERVE_P.
31261         * ipa.c (cgraph_externally_visible_p): Return true if declaration
31262         should be preseved.
31264 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
31266         PR tree-optimization/43528
31267         * stor-layout.c (place_field): Check that constant fits into
31268         unsigned HWI when skipping calculation of MS bitfield layout.
31270 2010-03-27  Jan Hubicka  <jh@suse.cz>
31272         PR middle-end/43391
31273         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
31274         notice_global_symbol work.
31276 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
31278         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
31279         instead of dwarf2out_decl.
31280         (struct var_loc_node): Remove section_label field.
31281         (dwarf2out_function_decl): New function.
31282         (dwarf2out_var_location): Don't set section_label field.
31283         (dwarf2out_begin_function): Don't empty decl_loc_table here.
31285 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
31287         PR tree-optimization/43544
31288         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31289         First argument for builtin vectorized function hook is now a
31290         tree to be able to distinguish between machine specific and
31291         standard builtins.
31292         * targhooks.c (default_builtin_vectorized_function): Ditto.
31293         * targhooks.h (default_builtin_vectorized_function): Ditto.
31294         * target.h (struct gcc_target): Ditto.
31295         * tree-vect-stmts.c (vectorizable_function): Ditto.
31296         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
31297         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
31298         Ditto.
31300 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
31302         PR c/43381
31303         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
31304         nested binding iff it is a FUNCTION_DECL.
31305         (store_parm_decls_newstyle): Pass nested=true to bind for
31306         FUNCTION_DECLs amongst parameters.
31308 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
31310         * var-tracking.c (vt_expand_loc_callback): Don't run
31311         cselib_expand_value_rtx_cb in dummy mode if
31312         cselib_dummy_expand_value_rtx_cb returned false.
31314         * var-tracking.c (emit_note_insn_var_location): For one part
31315         notes with offset 0, don't add EXPR_LIST around the location.
31316         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
31317         add_location_or_const_value_attribute): Adjust for that change.
31319         PR debug/43540
31320         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
31321         into first operand and location into second.
31322         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
31323         dw_cfi_oprnd_loc for DW_CFA_expression.
31324         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
31325         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
31326         assume first argument is regnum and second argument is location.
31328 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
31330         PR target/42113
31331         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
31332         of scratch register to DImode.  Split to DImode comparison operator.
31333         Use SImode subreg of scratch register in the multiplication.
31334         (*cmp_sadd_sidi): Ditto.
31335         (*cmp_ssub_si): Ditto.
31336         (*cmp_ssub_sidi): Ditto.
31338 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
31340         PR target/43524
31341         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
31342         Remove invalid assert and wrong comment.
31344 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
31346         PR debug/43516
31347         * flags.h (final_insns_dump_p): New extern.
31348         * final.c (final_insns_dump_p): New variable.
31349         (rest_of_clean_state): Set it before -fdump-final-insns=
31350         dumping, clear afterwards.
31351         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
31352         MEM_ALIAS_SET on MEMs.
31354 2010-03-26  David S. Miller  <davem@davemloft.net>
31356         * configure.ac: Fix sparc GOTDATA_OP bug check.
31357         * configure: Rebuild.
31359 2010-03-26  Alan Modra  <amodra@gmail.com>
31361         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
31363 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31365         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
31366         TLS_SECTION_ASM_FLAG.
31368 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
31370         PR bootstrap/43511
31371         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
31372         Clear first_function_block_is_cold.
31374         PR c/43385
31375         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
31376         argument if the argument is truth_value_p.
31378 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
31380         * config/rs6000/constraints.md: Update copyright year for my changes.
31382         PR target/43484
31383         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
31384         used in reg+reg addressing, swap registers.
31386 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
31388         PR debug/43293
31389         * target.h (struct gcc_target): Add code_end hook.
31390         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
31391         if not yet defined.
31392         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
31393         * toplev.c (compile_file): Call targetm.asm_out.code_end
31394         hook before unwind info/debug info output.
31395         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
31396         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
31397         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
31398         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
31399         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
31400         * config/i386/i386.c (ix86_file_end): Renamed to...
31401         (ix86_code_end): ... this.  Make static.  Don't call
31402         file_end_indicate_exec_stack.  Emit unwind info using
31403         final_start_function/final_end_function.
31404         (darwin_x86_file_end): Remove.
31405         (TARGET_ASM_CODE_END): Define.
31406         * config/i386/i386.h (TARGET_ASM_FILE_END,
31407         NEED_INDICATE_EXEC_STACK): Don't define.
31408         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
31409         (TARGET_ASM_FILE_END): Define to darwin_file_end.
31410         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
31411         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
31413         PR target/43498
31414         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
31415         at the beginning and final_end_function at the end.
31416         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
31418 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31420         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
31421         and Sun as TLS syntax.
31422         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
31423         * configure: Regenerate.
31424         * config.in: Regenerate.
31425         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
31426         (default_elf_asm_named_section): Use it.
31427         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
31428         (i386_output_dwarf_dtprel): Likewise.
31429         (output_addr_const_extra): Likewise.
31430         (output_pic_addr_const): Lowercase @GOTTPOFF.
31431         (output_addr_const_extra): Likewise.
31432         (output_pic_addr_const): Lowercase @GOTNTPOFF.
31433         (output_addr_const_extra): Likewise.
31434         (output_pic_addr_const): Lowercase @INDNTPOFF.
31435         (output_addr_const_extra): Likewise.
31436         (output_pic_addr_const): Lowercase @NTPOFF.
31437         (output_addr_const_extra): Likewise.
31438         (output_pic_addr_const): Lowercase @TPOFF.
31439         (output_addr_const_extra): Likewise.
31440         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
31441         (*tls_global_dynamic_64): Likewise.
31442         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
31443         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
31445         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
31446         (ASM_OUTPUT_TLS_COMMON): Use it.
31447         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
31449         PR target/38118
31450         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
31451         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
31452         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
31453         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
31454         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
31455         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
31457 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31459         * config/i386/i386.c (override_options): Don't accept
31460         -mtls-dialect=sun any longer.
31461         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
31462         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
31463         (*tls_local_dynamic_base_32_sun): Likewise.
31464         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
31466 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
31468         PR debug/43508
31469         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
31470         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
31472         PR debug/43479
31473         * ira.c (adjust_cleared_regs): New function.
31474         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
31476         PR debug/19192
31477         PR debug/43479
31478         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
31479         from gimple_block.
31480         * expr.c (expand_expr_real): Restore previous
31481         curr_insn_source_location and curr_insn_block after
31482         expand_expr_real_1 call.
31483         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
31484         instead of expand_expr_real_1.
31486 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
31488         PR rtl-optimization/43413
31489         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
31490         hard regs too.
31492 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
31494         PR target/43348
31495         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
31496         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
31498 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
31500         * config/i386/i386.c (ix86_target_string): Add -mfma.
31501         Fix a typo in comment.
31503 2010-03-22  Mike Stump  <mikestump@comcast.net>
31505         PR target/23071
31506         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
31507         Don't overly align based upon packed packed fields.
31509 2010-03-22  Jason Merrill  <jason@redhat.com>
31511         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
31512         Use () rather than [], and move before the element type.
31514 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31516         * doc/configfiles.texi (Configuration Files): Removed
31517         fixinc/Makefile*, intl/Makefile.*.
31518         * doc/makefile.texi: Fixed markup. Abstract from version
31519         control system used.
31520         (Makefile): Removed obsolete java/parse.y example.
31521         * doc/sourcebuild.texi: Likewise.
31522         (Top Level): Added config, gnattools, libdecnumber, libgcc,
31523         libgomp, libssp.  Removed fastjar.
31524         (Miscellaneous Docs): Clarify location.
31525         Added COPYING3, COPYING3.LIB.
31526         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
31528 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31530         PR target/38085
31531         * config/i386/i386.c (x86_function_profiler)
31532         [!NO_PROFILE_COUNTERS]: Fix typo.
31533         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
31534         instead of callq.
31536 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
31537             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31539         * doc/sourcebuild.texi (Test Directives): Split into six
31540         subsections, with most of the current text in new subsections
31541         Directives, Selectors, and Final Actions.
31542         (Directives): Split list of test directives into multiple
31543         subsubsections.
31544         (Selectors): Describe use and syntax of selectors.
31545         (Effective-Target Keywords): Describe all existing keywords.
31546         (Add Options): Describe features for dg-add-options.
31547         (Require Support): Describe variants of dg-require-support.
31548         (Final Actions): Describe commands to use in dg-final.
31550 2010-03-22  Michael Matz  <matz@suse.de>
31552         PR middle-end/43475
31553         * recog.c (validate_replace_rtx_group): Replace also in
31554         REG_EQUAL and REG_EQUIV notes.
31556 2010-03-22  Richard Guenther  <rguenther@suse.de>
31558         PR tree-optimization/43390
31559         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
31560         sure vector extracts are type correct.
31562 2010-03-22  Richard Guenther  <rguenther@suse.de>
31564         PR middle-end/40106
31565         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
31566         x * sqrt (x) even when optimizing for size if the target
31567         has native support for sqrt.
31569 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
31571         * varasm.c (make_decl_rtl_for_debug): Also clear
31572         flag_mudflap for the duration of make_decl_rtl call.
31574         PR debug/43443
31575         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
31576         locs from preserved VALUEs.
31578 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31580         PR middle-end/42718
31581         * pa.md (movmemsi): Set align to one if zero.
31582         (movmemdi): Likewise.
31584 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
31586         PR target/42321
31587         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
31588         with their corresponding prologue pushes.
31590 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
31592         PR target/43156
31593         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
31594         at the begining or end.
31595         (spu_expand_epilogue): Likewise.
31597 2010-03-20  Richard Guenther  <rguenther@suse.de>
31599         PR rtl-optimization/43438
31600         * combine.c (make_extraction): Properly zero-/sign-extend an
31601         extraction of the low part of a CONST_INT.  Also handle
31602         CONST_DOUBLE.
31604 2010-03-19  Mike Stump  <mikestump@comcast.net>
31606         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
31607         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
31608         (override_options): Use SUBTARGET32_DEFAULT_CPU.
31610 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
31612         PR c/43211
31613         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
31614         an error.
31616 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
31618         PR rtl-optimization/42258
31619         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
31620         use that may match DEF.
31622         PR target/40697
31623         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
31624         the cost of loading the constant rather than assuming
31625         COSTS_N_INSNS (1).
31626         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
31627         outer code is AND, do the same tests as the andsi3 expander and
31628         return COSTS_N_INSNS (1) if and is cheap.
31630         * optabs.c (avoid_expensive_constant): Fix formatting.
31632 2010-03-19  Michael Matz  <matz@suse.de>
31634         PR c++/43116
31635         * attribs.c (decl_attributes): When rebuilding a function pointer
31636         type use the same qualifiers as the original pointer type.
31638 2010-03-19  Martin Jambor  <mjambor@suse.cz>
31640         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
31641         and is_gimple_ip_invariant_address.
31643 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31645         Revert
31646         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31648         * config/arm/arm.c (arm_override_options): Turn off
31649         flag_dwarf2_cfi_asm for AAPCS variants.
31651 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31653         PR target/43399
31654         * config/arm/arm.c (emit_multi_reg_push): Update comments.
31655         Use PRE_MODIFY instead of PRE_DEC.
31656         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
31657         (vfp_emit_fstmd): Likewise.
31659 2010-03-19  Michael Matz  <matz@suse.de>
31661         PR target/43305
31662         * builtins.c (expand_builtin_interclass_mathfn,
31663         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
31664         if that fails.
31666 2010-03-19  Richard Guenther  <rguenther@suse.de>
31668         PR tree-optimization/43415
31669         * tree-ssa-pre.c (phi_translate): Split out worker to ...
31670         (phi_translate_1): ... this.
31671         (phi_translate): Move all caching here.  Cache all NARY
31672         and REFERENCE translations.
31674 2010-03-19  David S. Miller  <davem@davemloft.net>
31676         With help from Eric Botcazou.
31677         * config/sparc/sparc.c: Include dwarf2out.h.
31678         (emit_pic_helper): Delete.
31679         (pic_helper_symbol_name): Delete.
31680         (pic_helper_emitted_p): Delete.
31681         (pic_helper_needed): New.
31682         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
31683         (get_pc_thunk_name): New.
31684         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
31685         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
31686         Set pic_helper_needed to true.  Don't call emit_pic_helper.
31687         (sparc_expand_prologue): Update load_pic_register call.
31688         (sparc_output_mi_thunk): Likewise.
31689         (sparc_file_end): Emit a hidden comdat symbol for the PIC
31690         thunk if possible.  Output CFI information as needed.
31692 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
31693             Jack Howarth  <howarth@bromo.med.uc.edu>
31695         PR target/36399
31696         * config/i386/i386.h: Fix ABI on darwin x86-32.
31698 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
31700         * tree.h: Declare make_decl_rtl_for_debug.
31701         * varasm.c (make_decl_rtl_for_debug): New.
31702         * dwarf2out.c (rtl_for_decl_location): Call it.
31703         * cfgexpand.c (expand_debug_expr): Call it.
31705 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
31707         PR bootstrap/43399
31708         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
31709         mem_mode.
31711         PR bootstrap/43403
31712         * var-tracking.c (vt_init_cfa_base): Do nothing if
31713         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
31715 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
31717         PR debug/42873
31718         * var-tracking.c (canonicalize_vars_star): New.
31719         (dataflow_post_merge_adjust): Use it.
31721 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
31723         PR debug/43058
31724         * var-tracking.c (non_suitable_const): New function.
31725         (add_uses): For DEBUG_INSNs with constants, don't record any
31726         value, instead just the constant value itself.
31727         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
31728         is not VAR_LOC_UNKNOWN_P, set var to the constant.
31729         (emit_notes_in_bb): Likewise.
31730         (emit_note_insn_var_location): For onepart variables if
31731         cur_loc is a VOIDmode constant, use DECL_MODE.
31733 2010-03-18  Martin Jambor  <mjambor@suse.cz>
31735         PR middle-end/42450
31736         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
31737         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
31738         all non-clones.  Moved call redirection...
31739         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
31740         (cgraph_materialize_all_clones): Dispose of all
31741         combined_args_to_skip bitmaps.
31742         (verify_cgraph_node): Do not check for edges pointing to wrong
31743         nodes in inline clones.
31744         * tree-inline.c (copy_bb): Call
31745         cgraph_redirect_edge_call_stmt_to_callee.
31746         * ipa.c (cgraph_remove_unreachable_nodes): Call
31747         cgraph_node_remove_callees even when there are used clones.
31749 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
31751         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
31753 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
31755         PR target/43383
31756         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
31757         for 32bit.
31759 2010-03-18  Michael Matz  <matz@suse.de>
31761         PR middle-end/43419
31762         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
31763         into sqrt(x) if we need to preserve signed zeros.
31765 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
31766             Eric Botcazou  <ebotcazou@adacore.com>
31768         PR rtl-optimization/43360
31769         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
31770         note if we don't know its invariant status.
31772 2010-03-18  Michael Matz  <matz@suse.de>
31774         PR tree-optimization/43402
31775         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
31776         PHI chains of ssa names registered for update.
31778 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
31780         PR target/42427
31781         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
31782         non-offsettable and pre_modify update addressing.
31783         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
31784         and "2" alternatives "#".
31785         (*movdd_softfloat32): Make all alternatives "#";
31786         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
31787         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
31788         (*movdf_softfloat32): Make all alternatives "#";
31789         (movdi): Use the new DIFD mode iterator to create a common splitter
31790         for movdi, movdf and movdd patterns.
31792 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
31794         * common.opt (dumpdir): Remove redundant tab.
31796 2010-03-17  Martin Jambor  <mjambor@suse.cz>
31798         PR tree-optimization/43347
31799         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
31800         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
31802 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
31804         PR rtl-optimization/42216
31805         * regrename.c (create_new_chain): New function, broken out from...
31806         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
31807         appending a use to an empty chain.
31808         (build_def_use): Remove previous changes that convert OP_INOUT to
31809         OP_OUT operands; instead detect the case where an OP_INOUT operand
31810         uses a previously untracked register and create an empty chain for it.
31812 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31814         * doc/extend.texi (Function Attributes): Rewrite unfinished
31815         sentence in ms_abi documentation.
31817 2010-03-17  Alan Modra  <amodra@gmail.com>
31819         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
31820         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
31821         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
31822         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
31824 2010-03-16  Richard Henderson  <rth@redhat.com>
31826         PR middle-end/43365
31827         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
31828         (lower_try_finally): Save and restore eh_seq around the expansion
31829         of the try-finally.
31831 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
31833         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
31834         statements before splitting block.
31836 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31838         * doc/sourcebuild.texi (Testsuites): Fix markup.
31839         Use pathnames relative to gcc/testsuite.
31840         (Test Directives): Move description of how timeout is determined.
31841         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
31842         (C Tests): Correct gcc.misc-tests directory.
31843         Framework tests now live in gcc.test-framework.
31845 2010-03-16  Richard Guenther  <rguenther@suse.de>
31847         PR middle-end/43379
31848         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
31849         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
31851 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
31852             Alexandre Oliva  <aoliva@redhat.com>
31854         PR tree-optimization/42917
31855         * lambda-code.c (remove_iv): Skip debug statements.
31856         (lambda_loopnest_to_gcc_loopnest): Likewise.
31857         (not_interesting_stmt): Debug statements are not interesting.
31859 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
31861         PR debug/43051
31862         PR debug/43092
31863         * cselib.c (cselib_preserve_constants,
31864         cfa_base_preserved_val): New static variables.
31865         (preserve_only_constants): New function.
31866         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
31867         clear its REG_VALUES.  If cselib_preserve_constants, don't
31868         empty the whole hash table, but preserve there VALUEs with constants,
31869         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
31870         (cselib_preserve_cfa_base_value): New function.
31871         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
31872         (cselib_init): Change argument to int bitfield.  Set
31873         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
31874         is in it.
31875         (cselib_finish): Clear cselib_preserve_constants and
31876         cfa_base_preserved_val.
31877         * cselib.h (enum cselib_record_what): New enum.
31878         (cselib_init): Change argument to int.
31879         (cselib_preserve_cfa_base_value): New prototype.
31880         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
31881         * dse.c (dse_step1): Likewise.
31882         * cfgcleanup.c (thread_jump): Likewise.
31883         * sched-deps.c (sched_analyze): Likewise.
31884         * gcse.c (local_cprop_pass): Likewise.
31885         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
31886         If FN is non-NULL, call the callback always and whenever it returns
31887         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
31888         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
31889         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
31890         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
31891         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
31892         * var-tracking.c: Include recog.h.
31893         (bb_stack_adjust_offset): Remove.
31894         (vt_stack_adjustments): Don't call it, instead just gather the
31895         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
31896         (adjust_stack_reference): Remove.
31897         (compute_cfa_pointer): New function.
31898         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
31899         (struct adjust_mem_data): New type.
31900         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
31901         functions.
31902         (get_address_mode): New function.
31903         (replace_expr_with_values): Use it.
31904         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
31905         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
31906         (adjust_sets): Remove.
31907         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
31908         Use get_address_mode.
31909         (get_adjusted_src): Remove.
31910         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
31911         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
31912         (add_with_sets): Don't call adjust_sets.
31913         (fp_setter, vt_init_cfa_base): New functions.
31914         (vt_initialize): Change return type to bool.  Move most of pool etc.
31915         initialization to the beginning of the function from end.  Pass
31916         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
31917         If !frame_pointer_needed, call vt_stack_adjustment before mos
31918         vector is filled, call vt_init_cfa_base if argp/framep has been
31919         eliminated to sp.  If frame_pointer_needed and argp/framep has
31920         been eliminated to hard frame pointer, set
31921         hard_frame_pointer_adjustment and call vt_init_cfa_base after
31922         encountering fp setter in the prologue.  For MO_ADJUST, call
31923         log_op_type before pusing the op into mos vector, not afterwards.
31924         Call adjust_insn before cselib_process_insn/add_with_sets,
31925         call cancel_changes (0) afterwards.
31926         (variable_tracking_main_1): Adjust for vt_initialize calling
31927         vt_stack_adjustments and returning whether it succeeded or not.
31929 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
31931         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
31932         debug statements.
31934 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
31936         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
31937         has been set.
31938         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
31939         drap_reg has not been set.
31941 2010-03-15  Michael Matz  <matz@suse.de>
31943         PR middle-end/43300
31944         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
31945         use it to expand block copies.
31946         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
31947         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
31948         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
31950 2010-03-15  Richard Guenther  <rguenther@suse.de>
31952         PR tree-optimization/43367
31953         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
31954         elimination check.
31956 2010-03-15  Richard Guenther  <rguenther@suse.de>
31958         PR tree-optimization/43317
31959         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
31961 2010-03-15  Martin Jambor  <mjambor@suse.cz>
31963         PR tree-optimization/43141
31964         * tree-sra.c (create_abstract_origin): New function.
31965         (modify_function): Call create_abstract_origin.
31967 2010-03-15  Chris Demetriou  <cgd@google.com>
31969         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
31970         wasn't copied.
31972 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31974         PR middle-end/43354
31975         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
31976         call insert_out_of_ssa_copy for default definitions.
31978 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31980         * graphite-clast-to-gimple.c (my_long_long): Defined.
31981         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
31982         * graphite-sese-to-poly.c (my_long_long): Defined.
31983         (scop_ivs_can_be_represented): Use it.
31985 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31987         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
31988         graphite-max-bbs-per-function, and loop-block-tile-size.
31989         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
31990         with "maximum".
31991         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
31993 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31995         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
31996         forward declaration.
31997         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
31998         (add_upper_bounds_from_estimated_nit): New.
31999         (build_loop_iteration_domains): Use it.
32001 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32003         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
32005 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32007         PR middle-end/43306
32008         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
32009         should be an INTEGER_CST.  Also handle CASE_CONVERT.
32011 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32013         * graphite.c (graphite_initialize): To bound the number of bbs per
32014         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
32015         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
32016         * doc/invoke.texi: Document it.
32018 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32020         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
32021         * graphite-sese-to-poly.h (build_poly_scop): Same.
32023 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32025         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
32026         the number of parameters in the scop.  Use as an upper bound
32027         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
32028         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
32029         * doc/invoke.texi: Document it.
32031 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
32033         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
32034         * doc/c-tree.texi: Remove.
32035         * doc/generic.texi: Merge c-tree.texi here.
32036         * doc/gccint.texi (Trees): Remove menu entry.
32037         (c-tree.texi): Remove @include.
32038         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
32039         * doc/languages.texi (Reading RTL): Ditto.
32041 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
32043         PR target/42869
32044         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
32046 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
32048         PR middle-end/42431
32049         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
32050         code added to work around reload clobbering CONST insns.
32052 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
32054         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
32055         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
32056         (cselib_preserve_only_values): Remove retain argument, don't
32057         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
32058         * cselib.h (cselib_preserve_only_values): Remove retain argument.
32059         * var-tracking.c (micro_operation): Move insn field before union.
32060         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
32061         (struct variable_tracking_info_def): Remove n_mos field, change
32062         mos into a vector of micro_operations.
32063         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
32064         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
32065         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
32066         changing into a vector.
32067         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
32068         come before all other uops generated by add_stores.
32069         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
32070         argument removal.
32071         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
32072         a vector.  Run just one pass over the bbs instead of separate counting
32073         and computation phase.
32074         (vt_finalize): Free VTI (bb)->mos vector instead of array.
32076         PR debug/43329
32077         * tree-inline.c (remap_decls): Put old_var rather than origin_var
32078         into *nonlocalized_list vector.
32079         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
32080         even if origin is non-NULL.
32081         (gen_variable_die): Likewise.
32082         (process_scope_var): Don't change origin.
32083         (gen_decl_die): Likewise.
32084         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
32085         before adding new edges instead of after it, fix moving over
32086         debug stmts.
32088 2010-03-11  David S. Miller  <davem@davemloft.net>
32090         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
32091         of four.
32092         * configure: Rebuild.
32094 2010-03-11  Martin Jambor  <mjambor@suse.cz>
32096         PR tree-optimization/43257
32097         * tree.c (assign_assembler_name_if_neeeded): New function.
32098         (free_lang_data_in_cgraph): Assembler name assignment moved to the
32099         above new function.
32100         * tree.h (assign_assembler_name_if_neeeded): Declare.
32101         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
32102         the function if needed.
32104 2010-03-11  Chris Demetriou  <cgd@google.com>
32106         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
32107         include/stdint-gcc.h, and include/stdint.h world-readable.
32109 2010-03-11  Richard Guenther  <rguenther@suse.de>
32111         PR tree-optimization/43255
32112         * tree-vrp.c (process_assert_insertions_for): Do not insert
32113         asserts for trivial conditions.
32115 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32117         PR tree-optimization/43280
32118         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
32119         generation.  Move calculation of size out of the if branch.
32120         (find_bswap): Modify compare number generation.
32122 2010-03-11  Richard Guenther  <rguenther@suse.de>
32124         PR lto/43200
32125         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
32126         (input_gimple_stmt): Fixup handled component types during
32127         operand read.  Also fix up decls in ADDR_EXPRs.
32129 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
32131         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
32132         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
32134 2010-03-10  Jan Hubicka  <jh@suse.cz>
32136         PR c/43288
32137         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
32138         * varasm.c (get_variable_section): Don't do that here...
32139         (make_decl_rtl): ... and here.
32140         (do_assemble_alias): Produce decl RTL.
32141         (assemble_alias): Likewise.
32143 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
32145         PR debug/43290
32146         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
32147         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
32148         of fde->vdrap_reg.
32149         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
32150         (based_loc_descr): Only express drap or vdrap regno based expressions
32151         using DW_OP_fbreg when not optimizing.
32152         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
32153         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
32154         REG_CFA_SET_VDRAP note.
32156 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
32158         PR tree-optimization/43236
32159         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
32160         error in calculation of base address in reverse iteration case.
32161         (generate_builtin): Take number of latch executions if the statement
32162         is in the latch.
32164 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
32166         PR middle-end/42859
32167         * tree-eh.c: Include pointer-set.h.
32168         (lower_eh_dispatch): Filter out duplicate case labels and
32169         remove the unneeded edge when the label is unused.  Return
32170         true when some edges are removed.
32171         (execute_lower_eh_dispatch): When any lowering resulted in
32172         removing an edge, also delete unreachable blocks.
32174 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
32176         PR bootstrap/43287
32177         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
32178         UNSPEC_MACHOPIC_OFFSET.
32180 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
32182         PR target/43294
32183         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
32184         (m68k_delegitimize_address): New function.
32186 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
32188         PR debug/43299
32189         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
32191         PR debug/43299
32192         * var-tracking.c (adjust_sets): New function.
32193         (count_with_sets, add_with_sets): Use it.
32194         (get_adjusted_src): New inline function.
32195         (add_stores): Use it.
32197         PR debug/43304
32198         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
32199         call cselib_dummy_expand_value_rtx_cb instead of
32200         cselib_expand_value_rtx_cb.
32202         PR debug/43293
32203         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
32204         * config/i386/i386.c: Include debug.h and dwarf2out.h.
32205         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
32206         and .cfi_endproc around the pic thunks.
32207         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
32208         all queued unwind info register saves are saved before the call.
32209         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
32210         considered as sp-=4 for unwind info and the pop as sp+=4 which
32211         also clobbers dest, but doesn't actually restore it.
32213         PR debug/43290
32214         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
32215         RTX_FRAME_RELATED_P.
32217 2010-03-09  Jie Zhang  <jie@codesourcery.com>
32219         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
32220         whitespaces in output template.
32222 2010-03-09  Jie Zhang  <jie@codesourcery.com>
32224         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
32225         out array boundary.
32227 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
32229         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
32230         builtins.exp in a separate job.
32232 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32234         * graphite-sese-to-poly.c (add_param_constraints): Use
32235         lower_bound_in_type and upper_bound_in_type.
32237 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32239         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
32240         instead of unsigned_type_node.
32242 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32243             Reza Yazdani  <reza.yazdani@amd.com>
32245         PR middle-end/43065
32246         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
32247         on pointer type parameters.
32249 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
32251         PR middle-end/42644
32252         PR middle-end/42130
32253         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
32254         handle conversions from pointer to integers.
32255         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
32256         induction variable, to be able to work with code generated by CLooG.
32257         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
32258         (build_poly_scop): Bail out if we cannot codegen a loop.
32260 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
32262         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
32263         code generation with gloog_error.
32265 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32267         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
32268         Call fold_convert on all the returned values.
32269         (expand_scalar_variables_expr): Pass to
32270         expand_scalar_variables_ssa_name the type of the resulting expression.
32272 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32274         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
32275         ppl_min_for_le_pointset.
32276         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
32277         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
32279 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32281         * graphite-dependences.c (map_into_dep_poly): Removed.
32282         (dependence_polyhedron_1): Use combine_context_id_scat.
32284 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32286         * graphite-poly.h (struct poly_scattering): Add layout documentation.
32287         (struct poly_bb): Same.
32288         (combine_context_id_scat): New.
32290 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32292         PR middle-end/42326
32293         * sese.c (name_defined_in_loop_p): Return false for default
32294         definitions.
32296 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32298         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
32299         and clean up the logic.
32301 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32303         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
32304         early return.
32306 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
32308         * var-tracking.c (remove_cselib_value_chains): Define only for
32309         ENABLE_CHECKING.
32310         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
32311         delete_slot_part, emit_notes_for_differences_1): Don't call
32312         remove_cselib_value_chains here.
32313         (set_slot_part, emit_notes_for_differences_2): Don't call
32314         add_cselib_value_chains here.
32315         (preserved_values): New vector.
32316         (preserve_value): New function.
32317         (add_uses, add_stores, vt_add_function_parameters): Use it
32318         instead of cselib_preserve_value.
32319         (changed_values_stack): New vector.
32320         (check_changed_vars_0): New function.
32321         (check_changed_vars_1, check_changed_vars_2): Use it.
32322         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
32323         changed_values_stack VALUEs.
32324         (vt_emit_notes): For all preserved_values call
32325         add_cselib_value_chains.  If ENABLE_CHECKING call
32326         remove_cselib_value_chains before verifying value_chains is empty.
32327         Initialize and free changed_values_stack.
32328         (vt_initialize): Initialize preserved_values.
32329         (vt_finalize): Free preserved_values.
32331 2010-03-08  Richard Guenther  <rguenther@suse.de>
32333         PR tree-optimization/43269
32334         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
32335         region detection.
32337 2010-03-08  Martin Jambor  <mjambor@suse.cz>
32339         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
32340         (ipa_is_param_called): Removed.
32341         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
32342         (ipa_print_node_params): Do not print the called flag.
32343         (ipa_write_node_info): Do not stream the called flag.
32344         (ipa_read_node_info): Likewise.
32346 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
32348         PR debug/43176
32349         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
32350         * cselib.c (struct expand_value_data): Add dummy field.
32351         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
32352         dummy to false.
32353         (cselib_dummy_expand_value_rtx_cb): New function.
32354         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
32355         any rtl.
32356         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
32357         * var-tracking.c: Include pointer-set.h.
32358         (variable): Change n_var_parts to char from int.  Add
32359         cur_loc_changed and in_changed_variables fields.
32360         (variable_canonicalize): Remove.
32361         (shared_var_p): New inline function.
32362         (unshare_variable): Maintain cur_loc_changed and
32363         in_changed_variables fields.  If var was in changed_variables,
32364         replace it there with new_var.  Just copy cur_loc instead of
32365         resetting it to something else.
32366         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
32367         (dataflow_set_union): Don't call variable_canonicalize.
32368         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
32369         of their DEBUG_EXPR_TREE_DECLs.
32370         (canonicalize_loc_order_check): Verify that cur_loc is NULL
32371         and in_changed_variables and cur_loc_changed is false.
32372         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
32373         and cur_loc_changed.  Don't update cur_loc here.
32374         (variable_merge_over_src): Don't call variable_canonicalize.
32375         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
32376         removing loc that is equal to cur_loc, clear cur_loc,
32377         set cur_loc_changed and ensure variable_was_changed is called.
32378         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
32379         compare pointers in cur_loc check, if it is equal to loc,
32380         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
32381         (variable_different_p): Remove compare_current_location argument,
32382         don't compare cur_loc.
32383         (dataflow_set_different_1): Adjust variable_different_p caller.
32384         (variable_was_changed): If dv had some var in changed_variables
32385         already, reset in_changed_variables flag for it and propagate
32386         cur_loc_changed over to the new variable.  On empty var
32387         always set cur_loc_changed.  Set in_changed_variables on whatever
32388         var is added to changed_variables.
32389         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
32390         Use shared_var_p.  When removing loc that is equal to cur_loc,
32391         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
32392         end, don't set it to something else, just call variable_was_changed.
32393         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
32394         loc being removed, clear cur_loc and set cur_loc_changed.
32395         Set cur_loc_changed if all locations have been removed.
32396         (struct expand_loc_callback_data): New type.
32397         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
32398         allocated.  Always create SUBREGs if simplify_subreg failed.
32399         Prefer to use cur_loc, when that fails and still in
32400         changed_variables (and seen first time) recompute it.  Set
32401         cur_loc_changed of variables which had to change cur_loc and
32402         compute elcd->cur_loc_changed if any of the subexpressions used
32403         had to change cur_loc.
32404         (vt_expand_loc): Adjust to pass arguments in
32405         expand_loc_callback_data structure.
32406         (vt_expand_loc_dummy): New function.
32407         (emitted_notes): New variable.
32408         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
32409         that weren't used for any other decl in current
32410         emit_notes_for_changes call call vt_expand_loc_dummy to update
32411         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
32412         first loc_chain location if NULL before.  Always use just
32413         cur_loc instead of first loc_chain location.  When cur_loc_changed
32414         is false, when not --enable-checking=rtl just don't emit any note.
32415         When rtl checking, compute the note and assert it is the same
32416         as previous note.  Clear cur_loc_changed and in_changed_variables
32417         at the end before removing from changed_variables.
32418         (check_changed_vars_3): New function.
32419         (emit_notes_for_changes): Traverse changed_vars to call
32420         check_changed_vars_3 on each changed var.
32421         (emit_notes_for_differences_1): Clear cur_loc_changed and
32422         in_changed_variables.  Recompute cur_loc of new_var.
32423         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
32424         (vt_emit_notes): Initialize and destroy emitted_notes.
32426 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
32428         PR rtl-optimization/42220
32429         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
32430         Use verify_reg_tracked to determine if we should use OP_OUT rather
32431         than OP_INOUT.
32432         (build_def_use): If we see an in-out operand for a register that we
32433         know nothing about, treat is an output if possible, fail the block if
32434         not.
32436 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
32438         PR debug/42897
32439         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
32440         permanently.
32442 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
32444         PR debug/42897
32445         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
32446         uses of relevant DEFs that are dead outside the loop too.
32448 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
32450         * var-tracking.c (dataflow_set_merge): Swap src and src2.
32451         Reverted:
32452         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
32453         PR debug/41371
32454         * var-tracking.c (values_to_unmark): New variable.
32455         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
32456         values_to_unmark vector.  Moved body to...
32457         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
32458         instead queue it into values_to_unmark vector.
32459         (vt_find_locations): Free values_to_unmark vector.
32461 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
32463         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
32464         (site.exp): Export them when plugins are enabled.
32466 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
32468         PR middle-end/42326
32469         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
32470         that contain scevs.
32471         (chrec_fold_multiply): Same.
32473 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
32475         PR c/43248
32476         * c-decl.c (build_compound_literal): Return early if init is
32477         an error_mark_node.
32479 2010-03-04  Martin Jambor  <mjambor@suse.cz>
32481         PR tree-optimization/43164
32482         PR tree-optimization/43191
32483         * tree-sra.c (type_consists_of_records_p): Reject records with
32484         zero-size bit-fields at the end.
32486 2010-03-04  Mike Stump  <mikestump@comcast.net>
32488         * Makefile.in (TAGS): Remove *.y.
32490 2010-03-04  Richard Guenther  <rguenther@suse.de>
32492         PR tree-optimization/40761
32493         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
32494         in reverse order.
32495         (my_rev_post_order_compute): New function.
32496         (init_pre): Call it.
32498 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
32500         PR middle-end/43209
32501         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
32502         decrease the cost of an IV candidate when the cost is infinite.
32504 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32506         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
32507         Use '3DNow!' for the extension of that name, ensure normal space
32508         after the string.
32509         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
32511 2010-03-03  Jeff Law  <law@redhat.com>
32513         * PR middle-end/32693
32514         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
32515         than gen_rtx_SUBREG.
32516         (extract_bit_field_1): Likewise.
32518 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
32520         * doc/sourcebuild.texi (Test directives): Document that arguments
32521         include-opts and exclude-opts are now optional for dg-skip-if,
32522         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
32524 2010-03-03  Jason Merrill  <jason@redhat.com>
32526         PR c++/12909
32527         * cgraph.h (varpool_node): Add extra_name field.
32528         * varpool.c (varpool_extra_name_alias): New.
32529         (varpool_assemble_decl): Emit extra name aliases.
32530         (varpool_mark_needed_node): Look past an extra name alias.
32531         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
32532         * lto-streamer-in.c (lto_input_tree): Read it.
32533         * lto-streamer-out.c (output_unreferenced_globals): Write it.
32535 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
32537         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
32538         (sparc*-*-solaris2*): ...this.
32540 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
32542         PR debug/43229
32543         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
32544         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
32545         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
32546         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
32548         PR debug/43237
32549         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
32550         fallthrough to default handling, just with want_address 0 instead of 2.
32551         For single element lists, add_AT_loc directly, otherwise create an
32552         artificial variable DIE and stick location list to it.
32554         PR debug/43177
32555         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
32556         (VAL_EXPR_HAS_REVERSE): Define.
32557         (reverse_op): New function.
32558         (add_stores): For reversible operations add an extra MO_VAL_USE.
32560 2010-03-02  Jason Merrill  <jason@redhat.com>
32562         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
32564 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
32566         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
32567         (sparc64-*-linux*): Likewise.
32568         (sparc64-*-solaris2*): Include assembler files before linker ones.
32569         (sparc-*-solaris2*): Simplify and reorder to match previous case.
32570         * config/sparc/gas.h: Delete.
32571         * config/sparc/sol2-64.h: Add copyright notice.
32572         * config/sparc/sol2-gas-bi.h: Likewise.
32573         * config/sparc/sol2-gld.h: Likewise.
32574         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
32575         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
32576         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
32577         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
32578         (sparc_elf_asm_named_section): Rename into...
32579         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
32581 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
32583         * config/alpha/alpha.c (override_options): Fix -mtune error message.
32585 2010-03-02  Jeff Law  <law@redhat.com>
32587         PR middle-end/42431
32588         * reload1.c (rtx_p, substitute_stack): Declare.
32589         (substitute): Record addresses of changed rtxs.
32590         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
32591         Restore the original rtx when complete.
32592         (reload): Free subsitute_stack when complete.
32594 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
32596         * doc/gccint.texi (menu): Add Testsuites as a chapter.
32597         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
32598         new chapter.
32599         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
32600         LTO Testing, gcov Testing, profopt Testing, compat Testing,
32601         Torture Tests): Change from subsection to section.
32603 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
32604             Steven Bosscher  <steven@gcc.gnu.org>
32606         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
32607         instead of bb.
32609 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
32611         PR middle-end/42640
32612         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
32613         the assignment from the new induction variable to the assignment
32614         of the value from the original loop PHI function.
32616 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
32617             Daniel Jacobowitz  <dan@codesourcery.com>
32619         * doc/sourcebuild.texi (Test directives): Clarify options to
32620         dg-skip-if.
32622 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32624         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
32625         Disable cfi directives unless GCC and gas agree on using read-only
32626         .eh_frame sections for 64-bit.
32627         * configure: Regenerate.
32629 2010-03-01  Richard Guenther  <rguenther@suse.de>
32631         PR tree-optimization/43220
32632         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
32633         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
32635 2010-03-01  Richard Guenther  <rguenther@suse.de>
32636             Martin Jambor  <mjambor@suse.cz>
32638         PR middle-end/41250
32639         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
32640         gimplified parameters.
32642 2010-03-01  Christian Bruel  <christian.bruel@st.com>
32644         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
32646 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
32648         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
32650 2010-03-01  Richard Guenther  <rguenther@suse.de>
32652         PR middle-end/43213
32653         * expr.c (expand_assignment): Use the alias-oracle to tell
32654         if the rhs aliases the result decl.
32656 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32658         PR pch/14940
32659         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
32660         to sol_gt_pch_get_address.
32661         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
32662         64-bit, SPARC and x86.
32663         (sol_gt_pch_get_address): New function.
32665 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
32667         * toplev.h (inform_n, error_n): Declare.
32668         * diagnostic.c (inform_n, error_n): New function.
32670 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
32672         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
32673         has no rtl yet when processing local_decls, queue it and recheck
32674         if deferred stack allocation hasn't assigned it rtl.
32676 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
32678         * config/sh/sh.c (unspec_bbr_uid): New.
32679         (gen_block_redirect): Use it instead of INSN_UID.
32680         (gen_far_branch): Likewise.
32682 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
32684         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
32685         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
32687 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32689         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
32690         (Warning Options): -Wno-conversion-null is valid for
32691         Objective-C++ as well.
32692         * doc/tm.texi (Named Address Spaces): Likewise.
32693         * doc/plugins.texi (Plugins): Replace TABs with spaces.
32694         * doc/tree-ssa.texi (Tree SSA): Likewise.
32696 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32698         PR bootstrap/43202
32699         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
32700         by default.  Don't set the default arch for
32701         i[34567]86-*-darwin*|x86_64-*-darwin*.
32703 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32705         PR bootstrap/43202
32706         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
32707         default.  Set the default 32bit/64bit archs with $with_arch
32708         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
32710 2010-02-27  Richard Guenther  <rguenther@suse.de>
32712         PR tree-optimization/43186
32713         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
32714         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
32715         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
32716         unroller iterations.
32718 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32720         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
32721         required and i[34567]86-*-* targets don't support 64bit ISA.
32723 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
32725         PR ada/43096
32726         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
32727         the same alias set.
32729 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
32731         * config.gcc: Set the default arch at least to Prescott for
32732         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
32733         if SSE math is enabled.
32735 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32737         * diagnostic.c (diagnostic_initialize): Update.
32738         (diagnostic_report_diagnostic): Test inhibit_notes_p for
32739         informative notes.
32740         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
32741         (diagnostic_inhibit_notes): New.
32742         * toplev.c (process_options): inhibit notes with -fcompare-debug.
32744 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32746         PR c/20631
32747         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
32748         * doc/standards.texi: Likewise.
32749         * doc/extend.texi: Likewise.
32750         * doc/trouble.texi: Likewise.
32751         * doc/cppopts.texi: Likewise.
32752         * doc/install.texi: Likewise.
32753         * c.opt (std=c90,std=gnu90): New options.
32754         * c-opts.c (c_common_handle_option): Handle them.
32756 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32758         PR c/24577
32759         * c-decl.c (undeclared_variable): Use an informative note.
32761 2010-02-26  Richard Guenther  <rguenther@suse.de>
32763         PR tree-optimization/43186
32764         * gimple.h (gimple_fold): Remove.
32765         * gimple.c (gimple_fold): Remove.  Inline into single user ...
32766         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
32767         Try harder for conditions.
32769 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
32771         PR debug/43190
32772         * function.c (used_types_insert): Don't skip through named pointer
32773         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
32774         and it is different from the main variant's type.
32776 2010-02-26  Nick Clifton  <nickc@redhat.com>
32778         * config/rx/rx.md (sminsi3): Remove bogus alternative.
32780 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
32782         * config.gcc: Support --with-fpmath=sse for x86.
32784         * config/i386/ssemath.h: New.
32786         * doc/install.texi (--with-fpmath=sse): Documented.
32788 2010-02-26  Richard Guenther  <rguenther@suse.de>
32790         PR tree-optimization/43188
32791         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
32792         vector types of over-aligned element type.
32794 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
32796         PR target/43175
32797         * config/i386/i386.c (expand_vec_perm_blend): Use correct
32798         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
32800 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
32802         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
32804 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
32806         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
32807         * var-tracking.c: Include diagnostic.h.
32808         (debug_dv): New function.
32809         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
32811         PR debug/43160
32812         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
32813         (add_value_chain, add_value_chains, remove_value_chain,
32814         remove_value_chains): Handle DEBUG_EXPRs.
32815         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
32817         PR debug/43161
32818         * regcprop.c (struct queued_debug_insn_change): New type.
32819         (struct value_data_entry): Add debug_insn_changes field.
32820         (struct value_data): Add n_debug_insn_changes field.
32821         (debug_insn_changes_pool): New variable.
32822         (free_debug_insn_changes, apply_debug_insn_changes,
32823         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
32824         (kill_value_one_regno): Call free_debug_insn_changes if needed.
32825         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
32826         fields.
32827         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
32828         changes for them.
32829         (copyprop_hardreg_forward_1): Don't call apply_change_group for
32830         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
32831         changes, call cprop_find_used_regs via note_stores.
32832         (copyprop_hardreg_forward): When copying vd from predecessor
32833         which has any queued DEBUG_INSN changes, make sure the pointers are
32834         cleared.  At the end call df_analyze and then if there are any
32835         DEBUG_INSN changes queued at the end of some basic block for still
32836         live registers, apply them.
32837         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
32839 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
32841         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
32842         (arm*-*-*): Ditto.
32844 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
32846         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
32847         targets.  Set the default with_cpu/with_arch from arch/cpu.
32848         Allow x86-64 and native for with_cpu/with_arch.
32850 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
32852         * ebitmap.c: Change calls to verify_popcount with calls to
32853         sbitmap_verify_popcount.
32854         (ebitmap_clear_bit): Fixed map->cacheindex test and
32855         map>cache update when bit clearing results in an empty
32856         element.
32858 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
32860         PR target/43154
32861         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
32862         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
32863         and support both V2DF and V2DI modes.
32864         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
32865         support both V2DF and V2DI modes.
32866         (general): Delete trailing whitespace from a few patterns.
32868         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
32869         V2DF/V2DI interleave high/low builtins.
32871         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
32872         new VSX builtins.
32874         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
32875         interleave high/low functions.
32877 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
32879         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
32880         #pragma extern_prefix.
32882 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
32884         PR debug/43166
32885         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
32886         BLKmode, assert op0 is a MEM and just adjust its mode.
32888         PR debug/43165
32889         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
32890         if bitpos isn't multiple of mode's bitsize.
32892 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32894         * c.opt (-ftemplate-depth=): New.
32895         (-ftemplate-depth-): Deprecate.
32896         * optc-gen.awk: Handle -ftemplate-depth=.
32897         * opth-gen.awk: Likewise.
32898         * c-opts.c (c_common_handle_option): Likewise.
32899         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
32901 2010-02-24  Jason Merrill  <jason@redhat.com>
32903         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
32905 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32907         * cfg.c (alloc_aux_for_block): Remove inline.
32908         (alloc_aux_for_edge): Likewise.
32910 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32912         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
32914 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32916         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
32917         * config/i386/sol2-gas.h: New file.
32918         * config.gcc (i[34567]86-*-solaris2*): Use it.
32920 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32922         PR c/43128
32923         * c-typeck.c (ep_convert_and_check): New.
32924         (build_conditional_expr): Use it.
32925         (build_binary_op): Likewise.
32927 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
32929         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
32931         PR debug/43150
32932         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
32933         bounds even for -O+.
32934         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
32935         expr needs to have DECL_NAME set.
32937 2010-02-24  Nick Clifton  <nickc@redhat.com>
32939         * config/mep/mep.c: Include gimple.h.
32940         (mep_function_uses_sp): Delete unused function.
32941         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
32942         parameters.  Use unsigned integers to count args.  Return a
32943         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
32945 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
32947         PR target/43107
32948         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
32949         greater or equal to nelt instead of 2 * nelt.
32950         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
32951         with nelt - 1.
32953 2010-02-23  Jason Merrill  <jason@redhat.com>
32955         PR debug/42800
32956         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
32957         in cfun->local_decls even if they have register types.
32959         PR c++/42837
32960         * stor-layout.c (place_field): Don't warn about unnecessary
32961         DECL_PACKED if the type is packed.
32963 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
32965         PR target/43139
32966         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
32967         GOTOFF relocs, even when the base reg isn't pic pointer.
32969 2010-02-23  Michael Matz  <matz@suse.de>
32971         PR debug/43077
32972         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
32973         (expand_gimple_basic_block): Generate and use debug temps if there
32974         are debug uses left after the last real use of TERed ssa names.
32975         Unlink debug immediate uses when they are expanded.
32977 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32979         PR 43123
32980         * config/i386/i386.c (override_options): Reorganise to provide
32981         better error messages.
32983 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
32985         PR middle-end/43083
32986         * graphite-scop-detection.c (create_single_exit_edge): Move
32987         the call to find_single_exit_edge to....
32988         (create_sese_edges): ...here.  Don't handle multiple edges
32989         exiting the function.
32990         (build_graphite_scops): Don't handle multiple edges
32991         exiting the function.
32993 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
32995         PR middle-end/43097
32996         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
32997         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
32999 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
33001         PR middle-end/43026
33002         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
33004 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33006         PR c++/43126
33007         * c-typeck.c (convert_arguments): Print declaration location.
33008         * c-common.c (validate_nargs): Rename as
33009         builtin_function_validate_nargs.
33010         (check_builtin_function_arguments): Update.
33012 2010-02-22  Richard Guenther  <rguenther@suse.de>
33014         PR lto/43045
33015         * tree-inline.c (declare_return_variable): Use the type of
33016         the call stmt lhs if available.
33018 2010-02-22  Duncan Sands  <baldrick@free.fr>
33020         * passes.c (register_pass): Always consider all pass lists when
33021         ref_pass_instance_number is zero.
33023 2010-02-22  Richard Guenther  <rguenther@suse.de>
33025         PR tree-optimization/42749
33026         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
33027         parameter.  Do arithmetic in the original type.
33028         (update_accumulator_with_ops): Likewise.
33029         (adjust_accumulator_values): Adjust.
33031 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33033         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
33034         (QI to BLKmode splitter): New splitter.
33036 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
33038         * config/i386/i386.c (initial_ix86_tune_features): Turn on
33039         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
33041 2010-02-22  Richard Guenther  <rguenther@suse.de>
33043         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
33045 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
33047         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
33048         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
33049         ($(T)crti.o, $(T)crtn.o): Remove rules.
33051 2010-02-21  Tobias Burnus  <burnus@net-b.de>
33053         PR fortran/35259
33054         * doc/invoke.texi (-fassociative-math): Document that this
33055         option is automatically enabled for Fortran.
33057 2010-02-20  David S. Miller  <davem@davemloft.net>
33059         * configure.ac: Test if linker and assembler properly support
33060         GOTDATA_OP relocations.
33061         * configure: Rebuild.
33062         * config.in: Likewise.
33063         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
33064         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
33065         (movsi_high_pic): Likewise.
33066         (movdi_lo_sum_pic): Likewise.
33067         (movdi_high_pic): Likewise.
33068         (movsi_pic_gotdata_op): New pattern.
33069         (movdi_pic_gotdata_op): Likewise.
33070         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
33071         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
33073 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
33075         PR target/43067
33076         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
33077         attribute to ssemul.
33078         (xop_mulv2div2di3_high): Ditto.
33080 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33082         PR c++/35669
33083         * c.opt (Wconversion-null): New option.
33084         * doc/invoke.texi (Wconversion-null): Document.
33086 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33088         * common.opt (Wlarger-than-): Add Undocumented.
33090 2010-02-19  Mike Stump  <mikestump@comcast.net>
33092         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
33094 2010-02-19  Jason Merrill  <jason@redhat.com>
33096         PR target/40332
33097         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
33098         * configure: Likewise.
33100 2010-02-20  Alan Modra  <amodra@gmail.com>
33102         PR middle-end/42344
33103         * cgraph.h (cgraph_make_decl_local): Declare.
33104         * cgraph.c (cgraph_make_decl_local): New function.
33105         (cgraph_make_node_local): Use it.
33106         * cgraphunit.c (cgraph_function_versioning): Likewise.
33107         * ipa.c (function_and_variable_visibility): Likewise.
33109 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33111         PR bootstrap/43121
33112         * except.c (sjlj_emit_function_enter): Don't call
33113         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
33114         directly.
33115         * rtl.h (add_reg_br_prob_note): Remove prototype.
33117 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33119         PR 41779
33120         * c-common.c (conversion_warning): Remove widening conversions
33121         before checking the conversion of integers to reals.
33123 2010-02-19  Mike Stump  <mikestump@comcast.net>
33125         PR middle-end/43125
33126         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
33128         PR objc/43061
33129         * cgraphunit.c (process_function_and_variable_attributes): Check
33130         DECL_PRESERVE_P instead of looking up attribute "used".
33131         * ipa-pure-const.c (check_decl): Likewise.
33132         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
33133         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
33134         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
33135         instead of attribute "used".
33136         * config/sol2-c.c (solaris_pragma_init): Likewise.
33137         (solaris_pragma_fini): Likewise.
33139 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33141         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
33142         Use XCNEW instead of xcalloc.
33143         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
33144         XNEW instead of xmalloc.
33145         (get_fields): Use XNEWVEC instead of xmalloc.
33147         PR debug/43084
33148         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
33149         populate vars array.
33150         (create_new_general_access): For debug stmts just reset value.
33151         (get_stmt_accesses): For accesses within debug stmts just record them
33152         using add_access_to_acc_sites instead of preventing the peeling or
33153         counting them as accesses.
33155         PR middle-end/42233
33156         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
33158 2010-02-19  Richard Guenther  <rguenther@suse.de>
33160         PR tree-optimization/42916
33161         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
33162         instructions.
33164 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
33166         * configure.ac: Replace all uses of changequote in macro arguments
33167         with proper quoting.
33169 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33171         PR middle-end/42233
33172         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
33174 2010-02-19  Richard Guenther  <rguenther@suse.de>
33176         PR tree-optimization/42944
33177         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
33178         test for aliasing with errno.
33180 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33182         PR middle-end/42233
33183         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
33184         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
33185         * dojump.c: Include output.h.
33186         (inv): New inline function.
33187         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
33188         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
33189         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
33190         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
33191         argument, pass it down to other calls.
33192         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
33193         add REG_BR_PROB note to the conditional jump.
33194         * cfgexpand.c (add_reg_br_prob_note): Removed.
33195         (expand_gimple_cond): Don't call it, add the probability
33196         as last argument to jumpif_1/jumpifnot_1.
33197         * Makefile.in (dojump.o): Depend on output.h.
33198         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
33199         callers.
33200         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
33201         * stmt.c (do_jump_if_equal): Likewise.
33202         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
33203         * loop-unswitch.c (compare_and_jump_seq): Likewise.
33204         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
33205         Likewise.
33206         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
33207         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
33208         jumpifnot_1 callers.
33209         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
33210         callers.
33211         (store_expr): Adjust jumpifnot caller.
33212         (store_constructor): Adjust jumpif caller.
33214         PR middle-end/42233
33215         * gimplify.c (gimple_boolify): For __builtin_expect call
33216         gimple_boolify also on its first argument.
33218 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
33220         * configure.ac (gnu-unique-object): Wrap regexps using [] in
33221         changequote block.
33222         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
33223         * configure: Regenerated.
33225 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33227         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
33228         lang_hooks.types_compatible_p instead of comptypes.
33230 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33232         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
33233         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
33234         if __prefer_thumb__ is defined.
33236 2010-02-18  Martin Jambor  <mjambor@suse.cz>
33238         PR tree-optimization/43066
33239         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
33240         array with zero-sized element type.
33242 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
33244         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
33245         rtx, allocate struct var_loc_node here and return it to the
33246         caller, and only if it is actually needed.
33247         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
33248         move it earlier and return immediately if it returns NULL.
33250 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
33252         * config/sparc/gas.h: New file.  Restore
33253         TARGET_ASM_NAMED_SECTION to its ELF default.
33254         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
33255         check !HAVE_GNU_AS.
33256         * config/sparc/sparc.c (sparc_elf_asm_named_section):
33257         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
33258         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
33259         after sparc/sysv4.h.
33261 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
33263         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
33265 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
33267         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
33268         patterns from predicated pattern.
33270 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
33272         PR target/43103
33273         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
33274         for insn mnemonic suffix.
33276 2010-02-17  Richard Guenther  <rguenther@suse.de>
33278         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
33279         to loop PHI nodes.
33281 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
33283         PR debug/42918
33284         * caller-save.c (save_call_clobbered_regs): If BB ends with
33285         a DEBUG_INSN, move any notes in between last real insn and the last
33286         DEBUG_INSN after the last DEBUG_INSN.
33288 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
33290         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
33291         Fix return type.  Fix argument type.  Explain meaning of return value.
33293 2010-02-16  Richard Guenther  <rguenther@suse.de>
33295         PR tree-optimization/41043
33296         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
33297         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
33298         statements ...
33299         (vrp_visit_phi_node): ... but only for loop PHI nodes.
33301 2010-02-16  Ira Rosen  <irar@il.ibm.com>
33303         PR tree-optimization/43074
33304         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
33305         * tree-vect-loop.c (vect_analyze_loop_operations): Add
33306         vectorizable cycles in hybrid SLP check.
33307         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
33309 2010-02-16  Richard Guenther  <rguenther@suse.de>
33311         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
33312         (true_dependence): If memrefs_conflict_p computes must-alias
33313         trust it.  Move TBAA check after offset-based disambiguation.
33314         (canon_true_dependence): Likewise.
33316 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
33318         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
33319         * doc/invoke.texi: Document it.
33320         * var-tracking.c: Include toplev.h and params.h.
33321         (vt_find_locations): Return bool indicating success.  Compute
33322         hash sizes unconditionally.  Check new parameter, report.
33323         (variable_tracking_main_1): Check vt_find_locations results and
33324         retry.  Renamed from...
33325         (variable_tracking_main): ... this.  New wrapper to preserve
33326         flag_var_tracking_assignments.
33327         * Makefile.in (var-tracking.o): Adjust dependencies.
33329 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
33330             Jakub Jelinek  <jakub@redhat.com>
33332         PR target/42854
33333         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
33334         if weak_import attribute is present.
33335         * config/darwin.c (machopic_select_section): Likewise.
33337 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
33339         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
33340         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
33341         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
33342         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
33344         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
33345         types.
33347         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
33348         Fix argument types.
33350         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
33351         Rewrite text to refer to the names.
33353 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
33355         * config/i386/i386-builtin-types.def
33356         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
33357         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
33358         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
33359         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
33360         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
33361         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
33362         IX86_BUILTIN_VPERMIL2PS256.
33363         (MULTI_ARG_4_DF2_DI_I): Defined.
33364         (MULTI_ARG_4_DF2_DI_I1): Defined.
33365         (MULTI_ARG_4_SF2_SI_I): Defined.
33366         (MULTI_ARG_4_SF2_SI_I1): Defined.
33367         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
33368         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
33369         __builtin_ia32_vpermil2ps256.
33370         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
33371         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
33372         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
33373         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
33374         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
33375         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
33376         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
33377         CODE_FOR_xop_vpermil2v8sf3.
33378         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
33379         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
33380         * config/i386/xopintrin.h (_mm_permute2_pd): New.
33381         (_mm256_permute2_pd): New.
33382         (_mm_permute2_ps): New.
33383         (_mm256_permute2_ps): New.
33385 2010-02-15  Nick Clifton  <nickc@redhat.com>
33387         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
33388         boolean parameters.  Use emit_jump_insn when emitting a pop
33389         instruction containing a return insn.
33390         (push): Use 'true' rather than '1' as second parameter to F.
33391         (h8300_expand_prologue): Likewise.
33392         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
33393         (h8300_expand_epilogue): Likewise.
33395 2010-02-15  Richard Guenther  <rguenther@suse.de>
33397         PR middle-end/43068
33398         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
33399         if that is zero.
33401 2010-02-15  Nick Clifton  <nickc@redhat.com>
33403         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
33404         delta.
33406 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
33408         * intl.c (fake_ngettext): New function.
33409         * intl.h (fake_ngettext): Declare.
33410         (ngettext): Define macro.
33411         * collect2.c (notice_translated): New function.
33412         (main): Use notice_translated and ngettext.
33413         * collect2.h (notice_translated): Declare.
33415 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
33417         * reorg.c (delete_computation): Comment fixes.
33418         * caller-save.c (setup_save_areas): Idem.
33419         * sel-sched-dump.c (dump_lv_set): Idem.
33420         * rtl.def: Idem.
33422 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33424         * config/s390/s390.c (s390_sched_init): New function.
33425         (TARGET_SCHED_INIT): Target hook defined.
33427 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
33428             Jack Howarth  <howarth@bromo.med.uc.edu>
33429             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
33431         PR target/42982
33432         Partial revert of unintended change in fix for PR41605.
33433         * config/darwin.h: Fix typo.
33434         * config/darwin9.h: Same.
33436 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
33438         * c-pch.c (pch_init): Clear v.
33440 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33442         PR middle-end/42930
33443         * graphite-scop-detection.c (graphite_can_represent_scev): Call
33444         graphite_can_represent_init for MULT_EXPR.
33446 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33448         PR middle-end/42914
33449         PR middle-end/42530
33450         * graphite-sese-to-poly.c (remove_phi): New.
33451         (translate_scalar_reduction_to_array): Call remove_phi.
33453 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33455         PR middle-end/42771
33456         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
33457         * graphite-clast-to-gimple.h (gloog): Update declaration.
33458         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
33459         * graphite-poly.h (struct poly_bb): Add missing comments.
33460         (struct scop): Add poly_scop_p field.
33461         (POLY_SCOP_P): New.
33462         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
33463         * graphite.c (graphite_transform_loops): Build the polyhedral
33464         representation for each scop before code generation.
33465         * sese.c (rename_variables_in_operand): Removed.
33466         (rename_variables_in_expr): Return the renamed expression.
33467         (rename_sese_parameters): New.
33468         * sese.h (rename_sese_parameters): Declared.
33470 2010-02-11  Richard Guenther  <rguenther@suse.de>
33472         PR tree-optimization/42998
33473         * tree-ssa-pre.c (create_expression_by_pieces): Treat
33474         POINTER_PLUS_EXPR properly.
33476 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33477             Changpeng Fang  <changpeng.fang@amd.com>
33479         PR middle-end/40886
33480         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
33481         the cost of an IV candidate when the IV is used in a test against zero.
33483         * gcc.dg/tree-ssa/ivopts-3.c: New.
33485 2010-02-11  Richard Guenther  <rguenther@suse.de>
33487         PR lto/41664
33488         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
33489         pointer-vs-decl case by swapping refs.  Handle some cases
33490         of pointer-vs-decl disambiguations more conservatively.
33491         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
33492         to false after expanding.
33494 2010-02-11  Richard Guenther  <rguenther@suse.de>
33496         PR driver/43021
33497         * gcc.c (process_command): Handle LTO file@offset case more
33498         appropriately.
33500 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
33502         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
33503         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
33504         of DEBUG_INSNs.
33505         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
33507         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
33508         if MEM's mode size isn't DWARF2_ADDR_SIZE.
33509         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
33510         Optimize eq/ne comparisons when both arguments are known to be
33511         zero-extended.
33512         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
33513         Don't mask operands unnecessarily if they are known to be already
33514         zero-extended.
33516 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
33518         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
33519         instead of loop.
33521 2010-02-10  Richard Guenther  <rguenther@suse.de>
33523         PR tree-optimization/43017
33524         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
33525         for wrapping signed arithmetic.
33527 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
33529         PR debug/43010
33530         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
33531         if no debug info should be emitted for it.
33533 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
33535         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
33536         note when flag_exceptions is set.
33538 2010-02-10  Duncan Sands  <baldrick@free.fr>
33540         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
33542 2010-02-10  Richard Guenther  <rguenther@suse.de>
33544         PR c/43007
33545         * tree.c (get_unwidened): Handle constants.
33546         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
33548 2010-02-10  Martin Jambor  <mjambor@suse.cz>
33550         PR lto/42985
33551         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
33552         check for variable argument counts independently.
33554 2010-02-10  Christian Bruel  <christian.bruel@st.com>
33556         PR target/42841
33557         * config/sh/sh.c (find_barrier): Increase length for non delayed
33558         conditional branches.
33560 2010-02-10  Christian Bruel  <christian.bruel@st.com>
33562         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
33564 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
33566         * builtins.c (set_builtin_user_assembler_name): Also handle
33567         ffs if int is smaller than word.
33569 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
33571         PR middle-end/42973
33572         * ira-conflicts.c (get_dup): Remove.
33573         (process_reg_shuffles): Add new parameter.  Use it as an
33574         additional guard for copy generation.
33575         (add_insn_allocno_copies): Rewrite.
33577 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
33579         * common.opt (fsched2-use-traces): Preserved for backward
33580         compatibility.
33581         * doc/invoke.texi: Remove the documentation about option
33582         -fsched2-use-traces.
33583         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
33584         flag_sched2_use_traces.
33585         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
33586         the backward compatibility flag section.
33588 2010-02-09  Richard Guenther  <rguenther@suse.de>
33590         PR tree-optimization/43008
33591         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
33592         make HEAP variables initialized from global memory if they
33593         are not known builtin functions.
33594         (find_func_aliases): Adjust.
33596 2010-02-09  Richard Guenther  <rguenther@suse.de>
33598         PR tree-optimization/43000
33599         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
33600         arithmetic manually.
33602 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
33604         PR tree-optimization/42931
33605         * tree-loop-linear.c (try_interchange_loops): Don't call
33606         double_int_mul if estimated_loop_iterations failed.
33608 2010-02-08  Martin Jambor  <mjambor@suse.cz>
33610         PR middle-end/42898
33611         * tree-sra.c (build_accesses_from_assign): Do not mark in
33612         should_scalarize_away_bitmap if stmt has volatile ops.
33613         (sra_modify_assign): Do not process assigns piecemeal if if stmt
33614         has volatile ops.
33616 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
33618         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
33620 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
33622         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
33623         before the pattern.
33625 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
33627         PR middle-end/42946
33628         * df-core.c (df_finish_pass): Change type of saved_flags to int.
33630 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
33632         PR middle-end/42988
33633         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
33634         to unknown_dependence.
33635         (graphite_legal_transform_dr): Handle the unknown_dependence.
33636         (graphite_carried_dependence_level_k): Same.
33638 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
33640         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
33642 2010-02-07  Richard Guenther  <rguenther@suse.de>
33644         PR middle-end/42991
33645         * expr.c (get_inner_reference): Always initialize *pbitsize.
33647 2010-02-07  Richard Guenther  <rguenther@suse.de>
33649         PR middle-end/42956
33650         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
33651         new ARRAY_REFs on variable size element or minimal index arrays.
33652         Complete.
33653         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
33654         gimple_fold_indirect_ref.
33656 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
33658         PR target/42957
33659         * arm.c (arm_override_options): Just return if the user has specified
33660         an invalid fpu name.
33662 2010-02-03  Jason Merrill  <jason@redhat.com>
33664         PR c++/42870
33665         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
33666         i386_pe_maybe_record_exported_symbol.
33668 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
33670         PR target/42924
33671         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
33672         (pa_delegitimize_address): New function.
33674 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
33676         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
33677         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
33679 2010-02-05  Richard Guenther  <rguenther@suse.de>
33681         PR lto/42762
33682         * lto-streamer-in.c (get_resolution): Deal with references
33683         to undefined functions.
33685 2010-02-05  Richard Guenther  <rguenther@suse.de>
33687         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
33688         (fold_const_aggregate_ref): Likewise.
33689         (ccp_fold_stmt): Substitute loads.
33690         (maybe_fold_reference): Verify types before substituting.
33691         Unshare properly.
33692         (fold_gimple_assign): Unshare properly.
33693         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
33695 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
33697         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
33698         for rs6000_gen_cell_microcode.
33700 2010-02-04  Richard Guenther  <rguenther@suse.de>
33702         PR rtl-optimization/42952
33703         * dse.c (const_or_frame_p): Remove MEM handling.
33705 2010-02-04  Nick Clifton  <nickc@redhat.com>
33707         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
33708         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33709         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
33710         (mn10300_asm_output_mi_thunk): New function.
33711         (mn10300_can_output_mu_thunk): New function.
33712         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
33713         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
33714         (FUNCTION_ARG): Delete incorrect comment.
33716 2010-02-03  Jason Merrill  <jason@redhat.com>
33718         PR c++/40138
33719         * fold-const.c (operand_equal_p): Handle erroneous types.
33721 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
33723         * config/h8300/h8300.md (can_delay): Fix attibute condition.
33725 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
33727         PR rtl-optimization/42941
33728         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
33729         of xmalloc.
33731 2010-02-03  Jason Merrill  <jason@redhat.com>
33733         PR c++/35652
33734         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
33736 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
33738         PR debug/42896
33739         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
33740         (cselib_reset_table): Renamed from...
33741         (cselib_reset_table_with_next_value): ... this.
33742         (cselib_get_next_uid): Renamed from...
33743         (cselib_get_next_unknown_value): ... this.
33744         * cselib.c (next_uid): Renamed from...
33745         (next_unknown_value): ... this.
33746         (cselib_clear_table): Adjust.
33747         (cselib_reset_table): Adjust.  Renamed from...
33748         (cselib_reset_table_with_next_value): ... this.
33749         (cselib_get_next_uid): Adjust.  Renamed from...
33750         (cselib_get_next_unknown_value): ... this.
33751         (get_value_hash): Use hash.
33752         (cselib_hash_rtx): Likewise.
33753         (new_cselib_val): Adjust.  Set and dump uid.
33754         (cselib_lookup_mem): Pass next_uid as hash.
33755         (cselib_subst_to_values): Likewise.
33756         (cselib_log_lookup): Dump uid.
33757         (cselib_lookup): Pass next_uid as hash.  Adjust.
33758         (cselib_process_insn): Adjust.
33759         (cselib_init): Initialize next_uid.
33760         (cselib_finish): Adjust.
33761         (dump_cselib_table): Likewise.
33762         * dse.c (canon_address): Dump value uid.
33763         * print-rtl.c (print_rtx): Print value uid.
33764         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
33765         (dvuid): New type.
33766         (dv_uid): New function, sort of renamed from...
33767         (dv_htab_hash): ... this, reimplemented in terms of it and...
33768         (dv_uid2hash): ... this.  New.
33769         (variable_htab_eq): Drop excess assertions.
33770         (tie_break_pointers): Removed.
33771         (canon_value_cmp): Compare uids.
33772         (variable_post_merge_New_vals): Print uids.
33773         (vt_add_function_parameters): Adjust.
33774         (vt_initialize): Reset table.  Adjust.
33776 2010-02-03  Richard Guenther  <rguenther@suse.de>
33778         PR tree-optimization/42944
33779         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
33780         (call_may_clobber_ref_p_1): Likewise.  Properly handle
33781         malloc and calloc clobbering errno.
33783 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
33785         * doc/invoke.texi: Fix name of sched1 dump.
33787         * opts.c (decode_options): Set flag_tree_switch_conversion
33788         only conditionally on optimize >= 2.
33790         * gcse.c: Assorted comment fixes in pass description.
33792 2010-02-03  Anthony Green  <green@moxielogic.com>
33794         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
33795         nop padding in order to maintain alignment of storage location of
33796         target function address.
33797         (moxie_trampoline_init): Store target function address at newly
33798         aligned location.
33799         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
33800         to 32.
33801         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
33803 2010-02-03  Richard Guenther  <rguenther@suse.de>
33805         PR middle-end/42927
33806         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
33808 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33810         * config.gcc: Reenable check for obsolete targets.
33811         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
33812         mips-sgi-irix6.[0-4]*.
33814 2010-02-02  Nick Clifton  <nickc@redhat.com>
33816         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
33817         constant size of 4 as being the same as 0.
33818         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
33819         can take values in the range 0..4.
33821 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
33823         PR java/41991
33824         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
33825         as _darwin10_Unwind_FindEnclosingFunction().
33826         * libgcc-libsystem.ver: New.
33828 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
33830         PR target/41399
33831         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
33832         implicitly set registers.
33834 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
33836         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
33837         (arm_override_options): Allow automatic selection of the thread
33838         pointer register if thumb2.
33839         (legitimize_pic_address): Improve code sequences for Thumb2.
33840         (arm_call_tls_get_addr): Likewise.
33841         (legitimize_tls_address): Likewise.
33842         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
33843         (pic_load_addr_32bit): ... this.  New named pattern.
33844         * thumb2.md (pic_load_addr_thumb2): Delete.
33845         (pic_load_dot_plus_four): Delete.
33846         (tls_load_dot_plus_four): New named pattern.
33848 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33850         PR libgomp/29986
33851         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
33852         Document fix for TLS bug.
33854 2010-01-31  Richard Guenther  <rguenther@suse.de>
33856         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
33857         conservatively correct.
33859 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33861         PR target/42850
33862         Revert:
33863         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33865         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
33867 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33869         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
33871 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
33873         * config.gcc: Adjust order of makefile fragments for mingw targets.
33875 2010-01-31  Richard Guenther  <rguenther@suse.de>
33877         PR middle-end/42898
33878         * gimplify.c (gimplify_init_constructor): For volatile LHS
33879         initialize a temporary.
33881 2010-01-31  Matthias Klose  <doko@ubuntu.com>
33883         * configure.ac: Fix __stack_chk_fail check for cross builds configured
33884         --with-headers
33885         * configure: Regenerate.
33887 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
33889         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
33890         the same alias set and their sizes different constantness.
33891         (aliasing_component_refs_p): Revert 2009-10-24 change.
33893 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33895         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
33896         unused.
33898 2010-01-29  Richard Guenther  <rguenther@suse.de>
33900         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
33901         Assert we successfully updated the call.
33903 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
33905         PR rtl-optimization/42889
33906         * df.h (df_set_bb_dirty_nonlr): New prototype.
33907         * df-core.c (df_set_bb_dirty_nonlr): New function.
33908         * df-scan.c (df_insn_rescan): Call it instead of
33909         df_set_bb_dirty for DEBUG_INSNs.
33911 2010-01-29  Richard Guenther  <rguenther@suse.de>
33913         PR middle-end/37448
33914         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
33915         quadratic behavior in most cases.
33917 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
33919         PR target/42891
33920         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
33921         in the call to gen_x86_movsicc_0_m1.
33923 2010-01-28  Richard Guenther  <rguenther@suse.de>
33925         PR tree-optimization/42871
33926         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
33928 2010-01-28  Richard Guenther  <rguenther@suse.de>
33930         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
33931         into call arguments.
33933 2010-01-28  Richard Guenther  <rguenther@suse.de>
33935         PR middle-end/42883
33936         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
33937         the forwarder if the destination is an EH landing pad.
33939 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
33941         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
33942         block list passed to gimple_duplicate_sese_tail.
33943         (parallelize_loops): Avoid parallelization when the function
33944         has_nonlocal_label.
33945         Avoid parallelization when the preheader is IRREDUCIBLE.
33946         Try to optimize when estimated_loop_iterations_int is unresolved.
33947         Add the loop's location to the dump file.
33948         * tree-cfg.c (add_phi_args_after_redirect): Remove.
33949         (gimple_duplicate_sese_tail): Remove the check for the latch.
33950         Redirect nexits to the exit block.
33951         Remove handling of the incoming edges to the latch.
33952         Redirect the backedge from the copied latch to the exit bb.
33954 2010-01-28  Michael Matz  <matz@suse.de>
33956         PR target/42881
33957         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
33958         Wrap force_reg into a sequence, emit it before user.
33960 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
33962         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
33963         (arm_rev): New.
33964         (arm_legacy_rev): Likewise.
33965         (thumb_legacy_rev): Likewise.
33967 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
33969         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
33970         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
33971         on MEM's address failed, try avoid_constant_pool_reference and
33972         recurse if it returned something different.
33973         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
33974         address, try avoid_constant_pool_reference and recurse if it
33975         returned something different.
33976         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
33977         address and avoid_constant_pool_reference returned something
33978         different, don't set have_address.
33980 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
33982         PR debug/42861
33983         * var-tracking.c (val_store): Add modified argument, obey it.
33984         Adjust callers.
33985         (count_uses): Move down logging of main.
33986         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
33987         don't need resolution.
33988         (emit_notes_in_bb): Likewise.
33990 2010-01-27  Richard Guenther  <rguenther@suse.de>
33992         PR middle-end/42878
33993         * tree-inline.c (remap_decl): Delay remapping of SSA name
33994         default definitions until we need them.
33996 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
33998         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
33999         (rs6000_delegitimize_address): New function.
34001         * config/s390/s390.c (s390_delegitimize_address): Call
34002         delegitimize_mem_from_attrs.
34004         PR middle-end/42874
34005         * tree-inline.c (cannot_copy_type_1): Removed.
34006         (copy_forbidden): Don't forbid copying of functions containing
34007         records/unions with variable length fields.
34009 2010-01-27  Christian Bruel  <christian.bruel@st.com>
34011         Revert:
34012         PR target/42841
34013         * config/sh/sh.c (find_barrier): Increase length for non delayed
34014         conditional branches.
34016 2010-01-27  Matthias Klose  <doko@ubuntu.com>
34018         * configure.ac (gnu-unique-object): Fix ldd version check.
34019         * configure: Regenerate.
34021 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34023         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
34024         HAVE_GNU_AS value.
34025         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
34026         Test for HAVE_GNU_AS value.
34028 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34030         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
34031         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
34032         INT64_TYPE): Define.
34033         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
34034         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
34035         INT_LEAST64_TYPE): Define.
34036         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
34037         UINT_LEAST64_TYPE): Define.
34038         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
34039         INT_FAST64_TYPE): Define.
34040         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
34041         UINT_FAST64_TYPE): Define.
34042         (INTMAX_TYPE, UINTMAX_TYPE): Define.
34043         (INTPTR_TYPE, UINTPTR_TYPE): Define.
34044         (SIG_ATOMIC_TYPE): Define.
34046 2010-01-26  Richard Guenther  <rguenther@suse.de>
34048         * df-scan.c (df_scan_set_bb_info): Remove assert.
34049         (df_insn_rescan_debug_internal): Merge asserts.
34050         (df_install_ref): Likewise.
34051         (df_mark_reg): Use bitmap_set_range.
34052         (df_hard_reg_used_p): Remove assert.
34053         (df_hard_reg_used_count): Likewise.
34055 2010-01-26  Richard Guenther  <rguenther@suse.de>
34057         PR rtl-optimization/42685
34058         * web.c (web_main): Ignore DEBUG_INSNs.
34060 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
34062         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
34064         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
34065         Fix types of fndecl and arglist parameters.
34067 2010-01-26  Richard Guenther  <rguenther@suse.de>
34069         PR middle-end/42806
34070         * tree-eh.c (unsplit_eh): Skip debug insns.
34072 2010-01-26  Richard Guenther  <rguenther@suse.de>
34074         PR tree-optimization/42250
34075         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
34077 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
34079         PR fortran/42866
34080         * omp-low.c (expand_omp_sections): Only use single_pred if
34081         l2_bb is single_pred_p.
34083 2010-01-25  Christian Bruel  <christian.bruel@st.com>
34085         PR target/42841
34086         * config/sh/sh.c (find_barrier): Increase length for non delayed
34087         conditional branches.
34088         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
34090 2010-01-24  David S. Miller  <davem@davemloft.net>
34092         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
34093         define if not using GAS.
34094         * config/sparc/sparc.c (sparc_elf_asm_named_section):
34095         Likewise.  Delete SECTION_MERGE code, which is only applicable
34096         when using GAS.
34098 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
34100         PR c++/42748
34101         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
34102         mangling of va_list in system headers.
34104 2010-01-23  Toon Moene  <toon@moene.org>
34106         * tree-predcom.c (combine_chains): Return NULL, not false.
34108 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
34110         * tree-loop-distribution.c (distribute_loop): Fix declaration and
34111         initialization of variable res to agree with return type.
34113 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
34115         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
34116         * tree-sra.c: Add include of expr.h.
34118 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
34120         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
34121         insert the debug stmt on the single non-EH edge from the stmt.
34123 2010-01-22  Richard Henderson  <rth@redhat.com>
34125         PR tree-opt/42833
34126         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
34127         the RHS until after generate_subtree_copies has insertted its
34128         code before the current statement.
34130 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
34132         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
34134         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
34136 2010-01-21  Martin Jambor  <mjambor@suse.cz>
34138         PR tree-optimization/42585
34139         * tree-sra.c (struct access): New field grp_total_scalarization.
34140         (dump_access): Dump the new field.
34141         (should_scalarize_away_bitmap): New variable.
34142         (cannot_scalarize_away_bitmap): Likewise.
34143         (sra_initialize): Allocate new bitmaps.
34144         (sra_deinitialize): Free new bitmaps.
34145         (create_access_1): New function.
34146         (create_access): Parts moved to create_access_1.
34147         (type_consists_of_records_p): New function.
34148         (completely_scalarize_record): Likewise.
34149         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
34150         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
34151         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
34152         access.
34153         (analyze_all_variable_accesses): Completely scalarize small eligible
34154         records.
34156 2010-01-21  Martin Jambor  <mjambor@suse.cz>
34158         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
34160 2010-01-21  Andrew Haley  <aph@redhat.com>
34162         * gcc.c (process_command): Move lang_specific_driver before
34163         setting cc_libexec_prefix.
34165 2010-01-21  Richard Guenther  <rguenther@suse.de>
34167         PR middle-end/19988
34168         * fold-const.c (negate_expr_p): Pretend only negative
34169         real constants are easily negatable.
34171 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
34172             Jason Merrill  <jason@redhat.com>
34174         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
34175         (TYPE_TRANSPARENT_AGGR): this, for union and record.
34176         * calls.c (initialize argument_information): Handle it.
34177         * c-common.c (handle_transparent_union_attribute): Use new name.
34178         * c-decl.c (finish_struct): Ditto.
34179         * c-typeck.c (type_lists_compatible_p): Ditto.
34180         (convert_for_assignment): Use new name and also handle record.
34181         * function.c (aggregate_value_p): Handle it.
34182         (pass_by_reference): Ditto.
34183         (assign_parm_data_types): Ditto.
34184         * print-tree.c (print_node): Ditto.
34185         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
34186         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
34187         * tree.c (first_field): New fn.
34189 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
34191         PR target/42818
34192         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
34193         even when linking statically, for now.
34195 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
34197         PR debug/42715
34198         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
34199         without a cselib val.
34200         (count_uses): Accept MO_VAL_SET with no val on stores.
34201         (add_stores): Likewise.
34203 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34205         * var-tracking.c (check_value_val): Add a compile time assertion.
34206         (dv_is_decl_p): Simplify.
34207         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
34208         gcc_assert if ENABLE_CHECKING.
34210 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
34212         PR debug/42782
34213         * var-tracking.c: Include tree-flow.h.
34214         (mem_dies_at_call): New.
34215         (dataflow_set_preserve_mem_locs): Use it.
34216         (dataflow_set_remove_mem_locs): Likewise.
34217         (dump_var): Renamed from dump_variable.  Adjust all callers.
34218         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
34219         * Makefile.in (var-tracking.o): Adjust deps.
34221 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
34223         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
34225 2010-01-20  Richard Guenther  <rguenther@suse.de>
34227         PR tree-optimization/42717
34228         * tree-ssa-dce.c (get_live_post_dom): Remove.
34229         (forward_edge_to_pdom): Take an arbitrary edge to copy
34230         degenerate PHI args from.
34231         (remove_dead_stmt): Use the first post-dominator even if it
34232         does not contain live statements as redirection destination.
34234 2010-01-20  Richard Guenther  <rguenther@suse.de>
34236         * tree-inline.c (estimate_num_insns): Handle EH builtins.
34238 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34240         * sel-sched.c (create_speculation_check): Remove set but not used
34241         variable twin.
34242         (try_transformation_cache): Remove set but not used variable ds.
34243         (calculate_privileged_insns): Remove set but not used variables
34244         cur_insn and min_spec_insn.
34245         (find_best_expr): Remove set but not used variable avail_n.
34246         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
34247         variable e.
34248         * cgraphunit.c (assemble_thunk): Remove set but not used variable
34249         false_label.
34250         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
34251         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
34252         new_scop_exit_edge.
34254 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
34256         PR bootstrap/42786
34257         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
34258         cpu types.  Add support for *-sse3 cpu types.
34259         (x86_64-*-*): Ditto.
34261 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34263         PR middle-end/42803
34264         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
34265         argument, call initializer_constant_valid_p_1 instead of
34266         initializer_constant_valid_p, pass CACHE to it, return NULL
34267         immediately if first call returns NULL.
34268         (initializer_constant_valid_p_1): New function.
34269         (initializer_constant_valid_p): Use it.
34271 2010-01-20  Thomas Quinot  <quinot@adacore.com>
34273         * tree.def (PLACEHOLDER_EXPR): Fix comment.
34275 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34277         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
34278         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
34279         (loc_list_from_tree): Don't handle unsigned division.  Handle
34280         signed modulo using DW_OP_{over,over,div,mul,minus}.
34281         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
34282         modulo instead of signed.
34284 2010-01-20  DJ Delorie  <dj@redhat.com>
34286         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
34287         (Fpa): Pass it
34288         (h8300_emit_stack_adjustment): Propogate it.
34289         (push): Pass it.
34290         (h8300_expand_prologue): Likewise.
34291         (h8300_expand_epilogue): Likewise.
34293 2010-01-19  Michael Matz  <matz@suse.de>
34295         PR tree-optimization/41783
34296         * tree-data-ref.c (toplevel): Include flags.h.
34297         (dump_data_dependence_relation):  Also dump the inputs if the
34298         result will be unknown.
34299         (split_constant_offset_1): Look through some conversions.
34300         * tree-predcom.c (determine_roots_comp): Restart a new chain if
34301         the offset from last element is too large.
34302         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
34303         (reassociate_to_the_same_stmt): Handle vector registers.
34304         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
34305         (e.g. conversions).
34306         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
34307         wide_prolog_niters argument, emit widening instructions.
34308         (vect_do_peeling_for_alignment): Adjust caller, use widened
34309         variant of the iteration cound.
34310         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
34312 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34314         PR target/38697
34315         * config/arm/neon-testgen.m (emit_automatics): New parameter
34316         features. Adjust for Fixed_return_reg feature.
34317         (test_intrinsic): Call emit_automatics with new feature.
34318         * config/arm/neon.ml: Update copyright years.
34319         (features): New Fixed_return_reg feature.
34320         (ops): Update feature for Vget_low.
34322 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
34324         PR tree-optimization/42719
34325         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
34326         stmt uses.
34328         PR debug/42728
34329         * fwprop.c (all_uses_available_at): Return false if def_set dest
34330         is a REG that is used in def_insn.
34332 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
34334         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
34336         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
34337         Add argument names.
34339         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
34341         * target.h (struct gcc_target) <secondary_reload>: Change type
34342         of last argument to secondary_reload_info *.
34344 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
34346         PR target/42774
34347         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
34348         memory references with unaligned offsets.  Remove CQImode handling.
34349         (unaligned_memory_operand): Return 1 for memory references with
34350         unaligned offsets.  Remove CQImode handling.
34352 2010-01-18  Richard Guenther  <rguenther@suse.de>
34354         PR middle-end/39954
34355         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
34356         builtin calls.
34358 2010-01-18  Richard Guenther  <rguenther@suse.de>
34360         PR tree-optimization/42781
34361         * tree-ssa-structalias.c (find_what_var_points_to): Skip
34362         restrict processing only if the original variable was artificial.
34364 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
34366         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
34367         find number of popped argument bytes.
34369         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
34370         Fix the text that describes the return value for invalid insns.
34372         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
34374         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
34375         Clarify what 'cost of the -dependence' is.  Fix quoting.
34377         * toplev.c (default_get_pch_validity): Rename argument to "sz".
34378         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
34380 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
34382         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
34383         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
34385 2010-01-17  Richard Guenther  <rguenther@suse.de>
34387         PR middle-end/42248
34388         * function.c (split_complex_args): Take a VEC to modify.
34389         (assign_parms_augmented_arg_list): Build a VEC instead of
34390         a chain of PARM_DECLs.
34391         (assign_parms_unsplit_complex): Take a VEC of arguments.
34392         Do not fixup unmodified parms.
34393         (assign_parms): Deal with the VEC.
34394         (gimplify_parameters): Likewise.
34396 2010-01-17  Richard Guenther  <rguenther@suse.de>
34398         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
34399         node existence check.
34400         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
34401         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
34402         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
34403         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
34404         (gimple_execute_on_growing_pred): Likewise.
34406 2010-01-17  Richard Guenther  <rguenther@suse.de>
34408         PR tree-optimization/42773
34409         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
34410         (compute_antic_aux): Likewise.
34411         (compute_partial_antic_aux): Likewise.
34413 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
34415         PR debug/42767
34416         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
34417         and US_TRUNCATE.
34419 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
34421         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
34422         appearance.
34424         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
34425         Fix markup for strict argument.
34427         (TARGET_SCHED_REORDER2): Fix argument types.
34429         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
34430         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
34432         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
34433         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
34435         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
34436         Add argument name.
34438         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
34439         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
34440         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
34441         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
34442         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
34444         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
34446         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
34448         (TARGET_ASM_RELOC_RW_MASK): Add return type.
34449         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
34451         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
34453         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
34454         Use prototype.
34456         (TARGET_ASM_NAMED_SECTION): Fix argument list.
34458         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
34459         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
34461         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
34463         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
34465         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
34466         referring to it.  Fix language.
34468         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
34470         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
34472         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
34474         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
34476         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
34477         '@var{stream}.  Remove stray 'and'.
34479         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
34481         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
34483         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
34485         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
34486         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
34488         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
34489         Fix description of return value.
34490         Rename argument "sz" to "len."
34492         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
34493         Clarify meaning of 'true' return value.
34495         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
34497         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
34498         rep_mode versus mode_rep.
34500         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
34502         (TARGET_BUILTIN_DECL): Fix name.
34504         (TARGET_COMMUTATIVE_P): Fix type of first argument.
34506         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
34508         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
34510         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
34512         (TARGET_RELAXED_ORDERING): Use @deftypevr.
34514         (TARGET_GET_DRAP_RTX): Note that this is a hook.
34515         Clarify language.
34517         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
34518         Rename argument tm_fn to md_fn.
34520         (TARGET_OPTION_PRINT): Fix argument list.
34522 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
34524         PR target/42664
34525         * config/i386/i386.c (ix86_fixup_binary_operands):
34526         Revert FMA4 fixup of operands.
34528 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34530         PR other/42525
34531         * Makefile.in (write_entries_to_file, install-plugin):
34532         Use \012 instead of \n with tr.
34534 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
34536         * configure.ac (HAVE_AS_REF): New C macro.
34537         * configure: Regenerate.
34538         * config.in: Likewise.
34539         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
34540         if HAVE_AS_REF.
34541         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
34542         if HAVE_AS_REF.
34544 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
34546         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
34548         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
34550         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
34552         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
34554         (TARGET_IN_SMALL_DATA_P): Fix argument type.
34556         (TARGET_BINDS_LOCAL_P): Fix argument type.
34558         (TARGET_ASM_FILE_END): Use prototype.
34560         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
34562         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
34564         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
34566         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
34568         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
34569         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
34571         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
34572         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
34574         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
34575         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
34576         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
34577         (TARGET_ADDR_SPACE_CONVERT): Likewise.
34579         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
34581         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
34583         (TARGET_INIT_BUILTINS): Use prototype.
34585         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
34586         Put 'const char *' in braces.  Fix parameter types.
34587         (TARGET_INVALID_CONVERSION): Fix parameter types.
34588         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
34589         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
34591         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
34592         Fix argument type.
34594         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
34596         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
34598 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
34600         * doc/tm.texi (TARGET_HELP): Fix return type.
34602         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
34603         in braces.  Fix argument types.
34605         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
34607         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
34609         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
34611         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
34612         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
34614         (TARGET_MANGLE_TYPE): Fix argument types.
34616         (TARGET_IRA_COVER_CLASSES): Use prototype.
34618         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
34620         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
34622         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
34624         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
34626         (TARGET_CALLEE_COPIES): Fix argument types.
34628         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
34630         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
34632         (TARGET_FUNCTION_VALUE): Fix argument types.
34634         (TARGET_RETURN_IN_MSB): Fix argument type.
34636         (TARGET_RETURN_IN_MEMORY): Fix argument types.
34638         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
34640         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
34642         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
34643         agree with return type.
34645         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
34647 2010-01-15  Jing Yu  <jingyu@google.com>
34649         PR rtl-optimization/42691
34650         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
34651         a pseudo to a constant and are merged, and adjust comments.
34653 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
34655         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
34657 2010-01-15  Richard Guenther  <rguenther@suse.de>
34659         PR middle-end/42739
34660         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
34661         labels of computed or non-local gotos to the destination.
34662         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
34663         landing pad label is the first label.
34665 2010-01-15  Richard Guenther  <rguenther@suse.de>
34667         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
34669 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
34671         PR target/42747
34672         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
34673         to allow generation of the xssqrtdp instruction on power7.
34674         (sqrtdf2_fpr): Ditto.
34676 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
34678         PR middle-end/42674
34679         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
34680         functions with noreturn attribute.
34682         PR c++/42608
34683         * varasm.c (declare_weak): Add weak attribute to decl if it
34684         doesn't have one already.
34685         (assemble_external): Only add decls to weak_decls if they also
34686         have weak attribute.
34688 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
34690         * var-tracking.c (var_reg_delete): Don't delete the association
34691         between REGs and values or one-part variables if the register
34692         isn't clobbered.
34694 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
34696         PR debug/42657
34697         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
34698         because its first operand is a non-localized variable.
34700 2010-01-14  Martin Jambor  <mjambor@suse.cz>
34702         PR tree-optimization/42706
34703         * tree-sra.c (encountered_recursive_call): New variable.
34704         (encountered_unchangable_recursive_call): Likewise.
34705         (sra_initialize): Initialize both new variables.
34706         (callsite_has_enough_arguments_p): New function.
34707         (scan_function): Call decl and flags check only for IPA-SRA, check
34708         whether there is a recursive call and whether it has enough arguments.
34709         (all_callers_have_enough_arguments_p): New function.
34710         (convert_callers): Look for recursive calls only when
34711         encountered_recursive_call is set.
34712         (ipa_early_sra): Bail out either if
34713         !all_callers_have_enough_arguments_p or
34714         encountered_unchangable_recursive_call.
34716 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34718         * sel-sched.c: Add 2010 to copyright years.
34719         * sel-sched-ir.c: Likewise.
34720         * sel-sched-ir.h: Likewise.
34722 2010-01-14  Martin Jambor  <mjambor@suse.cz>
34724         PR tree-optimization/42714
34725         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
34726         constructors specially.
34728 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34730         * config/i386/drivers-i386.c (detect_caches_intel):
34731         Add l2sizekb parameter and fill in.
34732         (host_detect_local_cpu): Add l2sizekb, fill in.
34733         Add Atom small cache heuristic.
34735 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34737         * config/i386/drivers-i386.c (detect_caches_cpuid4):
34738         Add level3 parameter and fill in.
34739         (detect_caches_intel): Handle level3 cache.
34741 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34743         * config/i386/drivers-i386.c (host_detect_local_cpu):
34744         Fix core duo detection.
34746 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34748         * config/i386/drivers-i386.c (host_detect_local_cpu):
34749         Fix Atom detection.
34751 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34753         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
34754         (rs6000_variable_issue_1): this.  Use...
34755         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
34757 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34759         * sel-sched-ir.c (sel_restore_other_notes): Rename to
34760         sel_restore_notes.  Update all callers.  Call reemit_notes
34761         for all insns.
34763 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34765         PR rtl-optimization/42246
34766         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
34767         loops.
34769 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34771         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
34772         all successors is the same as number of successors in current region.
34774 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34776         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
34777         to rename is not separable.  Otherwise check that its LHS is not NULL.
34779 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34781         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
34783 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34785         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
34786         available registers when failed to discover LHS register class.
34787         Fix indentation.  Update comment.
34789 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34790             Alexander Monakov  <amonakov@ispras.ru>
34792         PR rtl-optimization/42389
34793         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
34794         to can_issue_more.
34795         (advance_state_on_fence): Likewise.
34796         (sel_target_adjust_priority): Print debug output only when
34797         sched_verbose >= 4, not 2.
34798         (get_expr_cost): Do not issue all unique insns on the next cycle.
34799         (fill_insns): Initialize can_issue_more from the value saved
34800         with the fence.
34801         * sel-sched-ir.c (flist_add): New parameter issue_more.
34802         Init FENCE_ISSUE_MORE with it.
34803         (merge_fences): Likewise.
34804         (init_fences): Update call to flist_add.
34805         (add_to_fences, add_clean_fence_to_fences)
34806         (add_dirty_fence_to_fences): Likewise.
34807         (move_fence_to_fences): Update call to merge_fences.
34808         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
34809         sched groups.
34810         * sel-sched-ir.h (struct _fence): New field issue_more.
34811         (FENCE_ISSUE_MORE): New accessor macro.
34813 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34815         PR rtl-optimization/42388
34816         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
34817         that have no predecessors nor successors.  Do not call move_bb_info
34818         for empty blocks outside of current region.
34820 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34822         PR rtl-optimization/42294
34823         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
34824         * sel-sched.c (move_exprs_to_boundary): Transitively add all
34825         originators' originators.
34827 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34829         PR rtl-optimization/39453
34830         PR rtl-optimization/42246
34831         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
34832         for pipelining_p.
34833         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
34835 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34836             Alexander Monakov  <amonakov@ispras.ru>
34838         PR middle-end/42245
34839         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
34840         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
34841         argument.  Update all callers.
34842         (tidy_control_flow): ... and here.  Recompute topological order
34843         of basic blocks in region if necessary.
34844         (sel_redirect_edge_and_branch): Change return type.  Return true
34845         if topological order might have been invalidated.
34846         (purge_empty_blocks): Export and move from...
34847         * sel-sched.c (purge_empty_blocks): ... here.
34848         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
34849         (maybe_tidy_empty_bb): Delete prototype.
34850         (purge_empty_blocks): Declare.
34852 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34854         PR rtl-optimization/42249
34855         * sel-sched.c (try_replace_dest_reg): When chosen register
34856         and original register is the same, do not bail out early, but
34857         still check all original insns for validity of replacing destination
34858         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
34859         in this case.
34861 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
34863         PR c/42721
34864         Port from no-undefined-overflow branch:
34865         2009-03-09  Richard Guenther  <rguenther@suse.de>
34867         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
34869 2010-01-14  Richard Guenther  <rguenther@suse.de>
34871         PR lto/42665
34872         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
34874 2010-01-14  Ira Rosen  <irar@il.ibm.com>
34876         PR tree-optimization/42709
34877         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
34878         as scalar type in creation of constant vector operand.
34880 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34882         PR testsuite/42414
34883         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
34884         (check-parallel-%): Match `testsuite' directory component only
34885         at the end.
34887 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
34889         PR translation/39521
34890         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
34891         strings with _().
34893 2010-01-13  Richard Guenther  <rguenther@suse.de>
34895         PR tree-optimization/42730
34896         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
34897         offset zero.
34899 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
34901         PR target/pr42542
34902         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
34903         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
34904         them signed.
34906 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
34908         * config/bfin/libgcc-bfin.ver: Regenerate based on current
34909         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
34910         ___umulsi3_highpart.
34912         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
34913         rather than schedule_insns if the pass is enabled.
34915 2010-01-13  Martin Jambor  <mjambor@suse.cz>
34917         PR tree-optimization/42704
34918         * tree-sra.c (sra_modify_assign): Do not delete assignments to
34919         SSA_NAMEs.
34921 2010-01-13  Martin Jambor  <mjambor@suse.cz>
34923         PR tree-optimization/42703
34924         * tree-sra.c (analyze_access_subtree): Check that we can build a
34925         reference to the original data within the aggregate.
34927 2010-01-13  Richard Guenther  <rguenther@suse.de>
34929         PR tree-optimization/42705
34930         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
34932 2010-01-13  Richard Guenther  <rguenther@suse.de>
34934         PR middle-end/42716
34935         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
34937 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
34939         PR debug/41371
34940         * var-tracking.c (values_to_unmark): New variable.
34941         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
34942         values_to_unmark vector.  Moved body to...
34943         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
34944         instead queue it into values_to_unmark vector.
34945         (vt_find_locations): Free values_to_unmark vector.
34947 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
34949         * config/s390/s390.c (override_options): Set
34950         default of max-pending-list-length to 256
34952 2010-01-13  Richard Guenther  <rguenther@suse.de>
34954         PR lto/42678
34955         * tree-pass.h (PROP_gimple_lcx): New.
34956         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
34957         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
34958         before the final cleanup_eh.
34959         (dump_properties): Dump PROP_gimple_lcx.
34960         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
34961         (tree_lower_complex_O0): Remove.
34962         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
34963         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
34964         tree_lower_complex, schedule TODO_update_ssa.
34965         * lto-streamer-out.c (output_function): Stream the functions
34966         properties.
34967         * lto-streamer-in.c (input_function): Likewise.
34968         (lto_read_body): Do not override them here.
34970 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
34972         PR c/42708
34973         * c-typeck.c (build_c_cast): Fold value cast to union type before
34974         wrapping it in a CONSTRUCTOR.
34976 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
34978         PR rtl-optimization/42699
34979         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
34980         involved.
34982 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34984         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
34985         SUBTARGET_WARN_UNUSED_SPEC): Move ...
34986         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
34987         SUBTARGET_WARN_UNUSED_SPEC): ... here
34988         * config/mips/iris5.h (LIBGCC_SPEC): Define.
34990 2010-01-12  Julian Brown  <julian@codesourcery.com>
34992         * config/arm/neon-schedgen.ml (Utils): Don't try to
34993         open missing module.
34994         (find_with_result): New.
34996 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
34998         PR debug/42662
34999         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
35000         sharing when canonicalizing ({lt,ge}u (plus a b) b).
35002         PR tree-optimization/42645
35003         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
35004         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
35005         decl_map, set processing_debug_stmt to -1 and return name without
35006         any remapping.
35008 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
35010         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
35011         binutils version, and reword target configuration description.
35013 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
35015         * config/avr/avr.h (LINKER_NAME): Remove.
35017 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
35019         PR target/42416
35020         * config/rs6000/rs6000.c (rs6000_override_options): On targets
35021         that support VSX, warn for -mno-altivec if vsx is not disabled,
35022         and disable vsx.
35024 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
35025             Shujing Zhao  <pearly.zhao@oracle.com>
35027         PR translation/42469
35028         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
35029         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
35030         character between option name and help text.
35031         * c.opt (imultilib): Likewise.
35033 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
35035         * lto-streamer-out.c (output_unreferenced_globals): Output static
35036         variables.
35038 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
35040         PR rtl-optimization/42621
35041         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
35042         optimizing for size.
35043         (duplicate_computed_gotos): Remove now-redundant check.
35045 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
35047         PR target/37454
35048         * configure.ac: Save and restore LDFLAGS and LIBS
35049         * configure: Regenerate.
35051 2010-01-10  Richard Guenther  <rguenther@suse.de>
35053         PR middle-end/42667
35054         * builtins.c (fold_builtin_strlen): Add type argument and
35055         convert the resulting length to it.
35056         (fold_builtin_1): Adjust.
35058 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
35060         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
35061         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
35062         1 insn.
35063         (num_insns_constant_wide): Adjust for that change.
35065 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35067         PR debug/42631
35068         * web.c (union_defs): Add used argument, to combine uses of
35069         uninitialized regs.
35070         (entry_register): Adjust type and tests of used argument.
35071         (web_main): Widen used for new use.  Pass it to union_defs.
35072         * df.h (union_defs): Adjust prototype.
35074 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35076         PR debug/42630
35077         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
35078         uses in new incoming argument.  Free body.
35079         (reset_debug_uses_in_loop): New.
35080         (analyze_insn_to_expand_var): Call the latter if the former found
35081         anything.  Fix whitespace.  Reject invalid dest overlaps before
35082         going through all insns in the loop.
35084 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35086         PR debug/42629
35087         * haifa-sched.c (dying_use_p): Debug insns don't count.
35089 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35091         PR middle-end/42363
35092         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
35093         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
35094         (verify_gimple_call): Reject LHS in noreturn calls.
35096 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35098         PR debug/42604
35099         PR debug/42395
35100         * tree-vect-loop-manip.c (adjust_info): New type.
35101         (adjust_vec): New pointer to vector.
35102         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
35103         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
35104         (slpeel_update_phis_for_duplicate_loop): Use them.
35105         (slpeel_update_phi_nodes_for_guard1): Likewise.
35106         (slpeel_update_phi_nodes_for_guard2): Likewise.
35107         (slpeel_tree_peel_loop_to_edge): Likewise.
35108         (vect_update_ivs_after_vectorizer): Likewise.
35110 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35112         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
35113         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
35115 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35117         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
35118         bogus uninitialized warning.
35120 2010-01-09  Richard Guenther  <rguenther@suse.de>
35122         PR middle-end/42512
35123         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
35124         the evolution is compatible with the initial condition.
35126 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
35128         * gcc.c (process_command): Update copyright notice dates.
35129         * gcov.c (print_version): Likewise.
35130         * gcov-dump.c (print_version): Likewise.
35131         * mips-tfile.c (main): Likewise.
35132         * mips-tdump.c (main): Likewise.
35134 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
35136         PR target/41885
35137         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
35138         (rotlhi3): Delete.
35139         (rotlhi3_8): Delete.
35140         (rotlsi3): Delete.
35141         (rotlsi3_8): Delete.
35142         (rotlsi3_16): Delete.
35143         (rotlsi3_24): Delete.
35144         (rotl<mode>3): New.
35145         (*rotw<mode>3): New.
35146         (*rotb<mode>3): New.
35147         * config/avr/avr.c (avr_rotate_bytes): New function.
35148         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
35150 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
35152         PR target/37454
35153         * configure.ac: Modify -rdynamic check.
35154         * configure: Regenerate.
35156 2010-01-08  DJ Delorie  <dj@redhat.com>
35158         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
35159         register popping order.
35161 2010-01-08  Richard Guenther  <rguenther@suse.de>
35163         PR lto/42528
35164         * c.opt (fsigned-char): Also let LTO handle this option.
35165         (funsigned-char): Likewise.
35167 2010-01-07  Richard Guenther  <rguenther@suse.de>
35169         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
35170         (gimple_op): Likewise.
35171         (gimple_op_ptr): Likewise.
35172         (gimple_assign_set_lhs): Remove gcc_assert.
35173         (gimple_assign_set_rhs1): Likewise.
35174         (gimple_assign_set_rhs2): Likewise.
35175         (gimple_call_set_lhs): Likewise.
35176         (gimple_call_set_fn): Likewise.
35177         (gimple_call_set_fndecl): Likewise.
35178         (gimple_call_fndecl): Likewise.
35179         (gimple_call_return_type): Likewise.
35180         (gimple_call_set_chain): Likewise.
35181         (gimple_call_num_args): Likewise.
35182         (gimple_call_set_arg): Likewise.
35183         (gimple_cond_set_code): Likewise.
35184         (gimple_cond_set_lhs): Likewise.
35185         (gimple_cond_set_rhs): Likewise.
35186         (gimple_cond_set_true_label): Likewise.
35187         (gimple_cond_set_false_label): Likewise.
35188         (gimple_label_set_label): Likewise.
35189         (gimple_goto_set_dest): Likewise.
35190         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
35191         (gimple_debug_bind_get_value): Likewise.
35192         (gimple_debug_bind_get_value_ptr): Likewise.
35193         (gimple_debug_bind_set_var): Likewise.
35194         (gimple_debug_bind_set_value): Likewise.
35195         (gimple_debug_bind_reset_value): Likewise.
35196         (gimple_debug_bind_has_value_p): Likewise.
35197         (gimple_return_retval_ptr): Remove gcc_assert.
35198         (gimple_return_retval): Likewise.
35199         (gimple_return_set_retval): Likewise.
35200         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
35201         (safe_referenced_var_iterator): Remove.
35202         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
35203         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
35204         (fill_referenced_var_vec): Remove.
35205         (first_readonly_imm_use): Remove redundant gcc_assert.
35206         (phi_arg_index_from_use): Combine gcc_asserts.
35207         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
35208         (first_imm_use_stmt): Remove redundant gcc_assert.
35209         * tree-cfg.c (verify_gimple_call): Verify function and chain
35210         operands.  Verify arguments.
35211         (verify_types_in_gimple_stmt): Verify condition code and labels.
35213 2010-01-07  Richard Guenther  <rguenther@suse.de>
35215         PR tree-optimization/42641
35216         * sese.c (rename_map_elt_info): Use the SSA name version, do
35217         not hash pointers.
35219 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
35221         PR tree-optimization/42625
35222         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
35223         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
35225 2010-01-07  Duncan Sands  <baldrick@free.fr>
35227         * Makefile.in (PLUGIN_HEADERS): Add version.h.
35229 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
35231         PR target/42511
35232         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
35233         note itself is not function_invariant_p.
35235 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
35237         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
35238         Do not add the DF_NOTE problem.
35239         * store-motion.c (execute_rtl_store_motion): Likewise.
35241 2010-01-07  Martin Jambor  <mjambor@suse.cz>
35243         PR tree-optimization/42157
35244         * tree-sra.c (compare_access_positions): Stabilize sort if both
35245         accesses have integer types, return zero immediately if they are the
35246         same.
35248 2010-01-06  Richard Henderson  <rth@redhat.com>
35250         PR middle-end/41883
35251         * haifa-sched.c (add_to_note_list): Merge into ...
35252         (concat_note_lists): ... here, and ...
35253         (unlink_other_notes, rm_other_notes): Merge into...
35254         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
35255         NOTE_INSN_EPILOGUE_BEG.
35257 2010-01-06  Richard Guenther  <rguenther@suse.de>
35259         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
35260         not inline regular functions into always-inline functions.
35262 2010-01-06  Nick Clifton  <nickc@redhat.com>
35264         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
35265         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
35266         used together.
35267         (OVERRIDE_OPTIONS): Delete.
35268         (OPTIMIZATION_OPTIONS): Define.
35269         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
35270         * config/rx/rx.c (rx_handle_option): Issue an error message if
35271         -mcpu=rx200 and -fpu are used together.
35272         (rx_set_optimization_options): New function.  Issue an error
35273         message if an optimization attribute attempts to reset the FPU/
35274         math optimization pairing.
35275         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
35276         * config/rx/rx.opt: Set the default to 32-bit doubles.
35277         * config/rx/t-rx: Add multilibs for -nofpu option.
35278         * doc/invoke.texi: Update documentation of RX options.
35280 2010-01-06  Richard Guenther  <rguenther@suse.de>
35282         * tree-ssa-pre.c (name_to_id): New global.
35283         (alloc_expression_id): Simplify SSA name handling.
35284         (lookup_expression_id): Likewise.
35285         (init_pre): Zero name_to_id.
35286         (fini_pre): Free it.
35288 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
35290         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
35292 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
35294         PR target/42542
35295         * config/i386/sse.md (smaxv2di3): New.
35296         (umaxv2di3): Likewise.
35297         (sminv2di3): Likewise.
35298         (uminv2di3): Likewise.
35300 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
35302         PR target/42564
35303         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
35304         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
35305         (legitimize_tls_address): Likewise.
35306         (sparc_tls_referenced_p): Likewise.
35307         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
35308         and adjust calls to legitimize_pic_address.
35309         (legitimate_constant_p) Use sparc_tls_referenced_p.
35310         (legitimate_pic_operand_p): Likewise.
35311         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
35312         (sparc_tls_symbol_ref_1): Delete.
35313         (sparc_tls_referenced_p): Make static, recognize specific patterns.
35314         (legitimize_tls_address): Make static, handle CONST patterns.
35315         (legitimize_pic_address): Make static, remove unused parameter and
35316         adjust recursive calls.
35317         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
35318         and adjust call to legitimize_pic_address.
35319         (sparc_output_mi_thunk): Likewise.
35321 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
35322             H.J. Lu  <hongjiu.lu@intel.com>
35324         PR target/42542
35325         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
35326         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
35327         operands to make them signed.
35329         Revert:
35330         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
35332         PR target/42542
35333         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
35334         GTU to GT for V4SI and V2DI.
35336         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
35337         (umin<mode>3): Removed.
35338         (uminv8hi3): New.
35339         (uminv4si3): Likewise.
35341 2010-01-05  Martin Jambor  <mjambor@suse.cz>
35343         PR tree-optimization/42462
35344         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
35345         current_function_decl to helper functions and macros.
35347 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35349         PR bootstrap/41771
35350         * flags.h: Don't include real.h.
35351         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
35352         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
35353         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
35354         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
35355         * dominance.c: Update copyright.
35356         * gimple.c (walk_gimple_op): Remove inline.
35357         * tree-ssa-reassoc.c: Include real.h.
35358         * Makefile.in (FLAGS_H): Remove $(REAL_H).
35359         (tree-ssa-reassoc.o): Depend on $(REAL_H).
35361 2010-01-05  Nick Clifton  <nickc@redhat.com>
35363         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
35364         register to push into the stack frame when the accumulator has to
35365         be saved during interrupts.
35367 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
35369         * doc/invoke.texi: Remove the documentation about option
35370         -Wunreachable-code.
35371         * common.opt (Wunreachable-code):  Preserved for backward
35372         compatibility.
35373         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
35374         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
35375         the backward compatibility flag section.
35377 2010-01-05  Richard Guenther  <rguenther@suse.de>
35379         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
35381 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
35383         PR other/42611
35384         * cfgexpand.c (expand_one_var): Diagnose too large variables.
35386         PR tree-optimization/42508
35387         * tree-sra.c (convert_callers): Check for recursive call
35388         by comparing cgraph nodes instead of decls.
35389         (modify_function): Call ipa_modify_formal_parameters also
35390         on all same_body aliases.
35392         * cgraphunit.c (cgraph_materialize_all_clones): Compare
35393         cgraph nodes when checking for same_body aliases.
35395 2010-01-05  Richard Guenther  <rguenther@suse.de>
35397         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
35398         allocation and lookup.
35399         (get_or_alloc_expr_for_constant): Likewise.
35400         (phi_translate): Sink allocation.
35402 2010-01-04  Richard Guenther  <rguenther@suse.de>
35404         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
35405         a new entry only if needed.
35406         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
35407         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
35408         hashtable lookup.
35409         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
35410         the result array.
35411         (phi_translate): Handle CONSTANTs early.
35413 2010-01-04  Martin Jambor  <mjambor@suse.cz>
35415         PR tree-optimization/42398
35416         * tree-sra.c (struct access): Removed flag grp_different_types.
35417         (dump_access): Do not dump the removed flag.
35418         (sort_and_splice_var_accesses): Do not set the removed flag.
35419         (sra_modify_expr): Check for type compatibility directly.
35421 2010-01-04  Martin Jambor  <mjambor@suse.cz>
35423         PR tree-optimization/42366
35424         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
35425         edges with variable number of parameters.
35426         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
35427         flag instead of asserting it.
35428         (ipa_read_node_info): Read uses_analysis_done flag.
35430 2010-01-04  Richard Guenther  <rguenther@suse.de>
35432         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
35433         iterative_hash_* as intended.
35434         (vn_reference_compute_hash): Likewise.  Simplify hashing
35435         SSA names.
35436         (vn_reference_lookup_2): Likewise.
35437         (vn_nary_op_compute_hash): Likewise.
35438         (vn_phi_compute_hash): Likewise.
35439         (expressions_equal_p): Remove strange code.
35440         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
35441         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
35442         (bitmap_insert_into_set_1): Take value-id as parameter.
35443         (add_to_value): Pass it.
35444         (bitmap_insert_into_set): Likewise.
35445         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
35447 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
35449         PR driver/42442
35450         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
35451         (do_self_spec): For switches with SWITCH_IGNORE set set also
35452         SWITCH_IGNORE_PERMANENTLY.
35453         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
35454         of SWITCH_IGNORE.
35456 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
35458         * lto-streamer-out.c (output_unreferenced_globals): Output the full
35459         tree of an unreferenced global var.
35461 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
35463         PR target/42542
35464         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
35465         GTU to GT for V4SI and V2DI.
35467         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
35468         (umin<mode>3): Removed.
35469         (uminv8hi3): New.
35470         (uminv4si3): Likewise.
35472 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
35474         PR lto/42581
35475         * collect2.c (main): Turn on trace in collect2 if -v is passed
35476         to gcc with LTO.
35478 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
35480         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
35481         description of expression operand.
35483 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
35485         * configure.ac: Add install-html to target_list for Make-hooks.
35486         * configure: Regenerate.
35487         * fortran/Make-lang.in (F95_HTMLFILES): New.
35488         (fortran.html): Use it.
35489         (fortran.install-html): New.
35490         * Makefile.in (install-html): Add lang.install-html.
35491         * java/Make-lang.in (JAVA_HTMLFILES): New.
35492         (java.html): Use it.
35493         (java.install-html): New.
35494         * objc/Make-lang.in (objc.install-html): New.
35495         * objcp/Make-lang.in (obj-c++.install-html): New.
35496         * cp/Make-lang.in (c++.install-html): New.
35497         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
35498         * lto/Make-lang.in (lto.install-html): New.
35500 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
35502         PR lto/42520
35503         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
35505 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
35507         PR rtl-optimization/41862
35508         * store-motion.c (store_killed_in_insn, compute_store_table,
35509         remove_reachable_equiv_notes, replace_store_insn,
35510         build_store_vectors): Ignore all DEBUG_INSNs.
35512 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
35514         PR lto/41564
35515         * common.opt: Add dumpdir.
35517         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
35518         isn't specified.
35519         (option_map): Add --dumpdir.
35521         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
35523         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
35525         * opts.c (decode_options): Try dump_dir_name first if
35526         dump_base_name isn't an absolute path.
35527         (common_handle_option): Handle OPT_dumpdir.
35529         * toplev.c (dump_dir_name): New.
35530         (print_switch_values): Also ignore -dumpdir.
35532         * toplev.h (dump_dir_name): New.
35534 2010-01-03  Richard Guenther  <rguenther@suse.de>
35536         PR tree-optimization/42589
35537         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
35538         double-word expansion of bswap32.
35540 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
35542         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
35543         with BLOCK_FOR_INSN.
35544         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
35545         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
35546         noce_process_if_block): Likewise.
35547         * gcse.c (compute_local_properties, insert_expr_in_table,
35548         insert_set_in_table, canon_list_insert, find_avail_set,
35549         pre_insert_copy_insn): Likewise.
35551         * basic-block.h (BLOCK_NUM): Move from here...
35552         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
35554 2010-01-03  Richard Guenther  <rguenther@suse.de>
35556         PR tree-optimization/42438
35557         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
35558         contains_may_not_return_call flag.
35559         (BB_MAY_NOTRETURN): New.
35560         (valid_in_sets): Trapping nary operations are not valid
35561         in blocks that may not return.
35562         (insert_into_preds_of_block): Remove check for trapping expressions.
35563         (compute_avail): Compute also BB_MAY_NOTRETURN.
35565 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
35567         * doc/invoke.texi: Add 2010 to copyright years.
35569 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
35571         * config/sparc/sparc.c: Fix formatting nits.
35573 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
35574             Alexander Monakov  <amonakov@ispras.ru>
35576         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
35578 2010-01-02  Richard Guenther  <rguenther@suse.de>
35580         PR middle-end/42577
35581         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
35582         (simplify_switch_using_ranges): Mark to be removed edges
35583         as non-executable.
35585 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35587         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
35589         * collect2.c (scan_libraries): Add missing argument in call to
35590         scan_prog_file.
35592 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
35594         PR target/42448
35595         * config/alpha/predicates.md (aligned_memory_operand): Return false
35596         for CQImode.
35597         (unaligned_memory_operand): Return true for CQImode.
35598         * config/alpha/alpha.c (get_aligned_mem): Assert that location
35599         doesn not cross aligned SImode word boundary.
35601 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
35603         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
35604         Remove.
35605         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
35606         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
35608 2010-01-02  Richard Guenther  <rguenther@suse.de>
35610         PR lto/41597
35611         * toplev.c (compile_file): Emit LTO marker properly.  Change
35612         it to __gnu_lto_v1.
35613         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
35615 2010-01-01  Richard Guenther  <rguenther@suse.de>
35617         PR debug/42455
35618         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
35620 2010-01-01  Richard Guenther  <rguenther@suse.de>
35622         PR c/42570
35623         * c-decl.c (grokdeclarator): For zero-size arrays force
35624         structural equality checks as layout_type does.
35626 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
35628         * builtins.c: Update copyright to 2010.
35630 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
35632         PR lto/42531
35633         * lto-streamer-out.c (produce_asm): Revert the last change.
35634         (copy_function): Likewise.
35636         * lto-streamer.c (lto_get_section_name): Skip any leading
35637         asterisk in name.
35639 2010-01-01  Richard Guenther  <rguenther@suse.de>
35641         PR middle-end/42559
35642         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
35643         for LABEL_DECLs.
35646 Copyright (C) 2010 Free Software Foundation, Inc.
35648 Copying and distribution of this file, with or without modification,
35649 are permitted in any medium without royalty provided the copyright
35650 notice and this notice are preserved.