OSDN Git Service

* config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2
3         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8         mcfv4e): Use Alias.
9         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10         ColdFire options to -mcpu= options.
11
12 2011-04-05  Jeff Law  <law@redhat.com>
13
14         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
15         check if BB is a successor of LOOP->header and return
16         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
17
18 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19
20         * cprop.c (struct reg_use): Remove.
21         (reg_use_table): Make an array of RTX.
22         (find_used_regs, constprop_register, local_cprop_pass,
23         bypass_block): Simplify users of reg_use_table.
24         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
25         on one of the uses found by find_used_regs.
26
27 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28
29         PR bootstrap/48469
30         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
31         declaration.
32
33 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
34
35         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
36         as an rtx.
37         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
38
39 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
40
41         PR middle-end/48441
42         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
43
44 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
45
46         * combine.c: Include obstack.h.
47         (struct insn_link): Define.
48         (uid_log_links): Adjust type.
49         (FOR_EACH_LOG_LINK): New macro.
50         (insn_link_obstack): Declare.
51         (alloc_insn_link): Define.
52         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
53         type of link variables.
54         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
55         (try_combine, record_promoted_values, distribute_notes): Likewise.
56         (distribute_links): Likewise.  Tweak prototype.
57         (clear_log_links): Delete.
58         (adjust_for_new_dest): Call alloc_insn_link.
59         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
60
61 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
62
63         * gcse.c (modify_mem_list): Convert to an array of VECs.
64         (canon_modify_mem_list, compute_transp): Tweak formatting.
65         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
66         (load_killed_in_block_p): Likewise.
67         (record_last_mem_set_info): Likewise.
68         (clear_modify_mem_tables): Likewise.
69
70 2011-04-05  Tom de Vries  <tom@codesourcery.com>
71
72         PR middle-end/48461
73         * function.c (emit_use_return_register_into_block): Only define if
74         HAVE_return.
75
76 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
77
78         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
79
80 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
81
82         * config/rx/rx-opts.h: New.
83         * config/rx/rx.c (rx_cpu_type): Remove.
84         (rx_handle_option): Don't assert that global structures are in
85         use.  Access variables via opts pointer.  Defer most handling of
86         OPT_mint_register_.  Use error_at.
87         (rx_option_override): Handle deferred OPT_mint_register_ here.
88         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
89         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
90         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
91         (rx_cpu_types): New Enum and EnumValue entries.
92         (mint-register=): Use Defer and use Var accordingly.
93
94 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
95
96         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
97         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
98         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
99         Move these...
100         (debug_free_queue, debug_nesting, symbol_queue_index):
101         ...and these...
102         * dbxout.c: ...to here.  Make static.
103
104 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
105
106         * gcse.c (modify_pair): Define.  Define a VEC of it.
107         (canon_modify_mem_list): Convert to an array of VECs.
108         (free_insn_expr_list_list): Delete.
109         (clear_modify_mem_tables): Call VEC_free instead.
110         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
111         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
112         (canon_list_insert, compute_transp): Likewise.
113
114 2011-04-05  Tom de Vries  <tom@codesourcery.com>
115
116         PR target/43920
117         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
118         for size.
119
120 2011-04-05  Tom de Vries  <tom@codesourcery.com>
121
122         PR target/43920
123         * function.c (emit_use_return_register_into_block): New function.
124         (thread_prologue_and_epilogue_insns): Use
125         emit_use_return_register_into_block.
126
127 2011-04-05  Tom de Vries  <tom@codesourcery.com>
128
129         PR target/43920
130         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
131         insn.
132
133 2011-04-05  Tom de Vries  <tom@codesourcery.com>
134
135         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
136
137 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
138
139         * config/arm/arm.md (define_constants for unspec): Replace with
140         define_c_enum.
141         (define_constants for unspecv): Replace with define_c_enum.
142         * config/arm/neon.md (define_constants for unspec): Replace with
143         define_c_enum.
144
145 2011-04-04  Richard Henderson  <rth@redhat.com>
146
147         PR bootstrap/48400
148         * dwarf2out.c (output_line_info): Always emit line info from
149         at least one section.
150         (dwarf2out_init): Create text_section_line_info here ...
151         (set_cur_line_info_table): ... not here.
152
153 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
154
155         PR target/48380
156         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
157         not called.
158
159         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
160
161 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
162
163         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
164         (expr_equiv_p): Remove.
165         (insert_set_in_table): Look at <dest, src> pair instead of expr.
166         (hash_scan_set): Update call to insert_set_in_table.
167         (dump_hash_table): Dump <dest, src> pair.
168         (lookup_set): Simplify.  Lookup <dest, src> pair.
169         (compute_transp): Remove, fold heavily simplified code into...
170         (compute_local_properties): ...here.  Expect COMP and TRANSP
171         unconditionally.
172         (find_avail_set): Take set directly from struct expr.
173         (find_bypass-set): Likewise.
174         (bypass_block): Likewise.
175         (cprop_insn): Likewise.  Remove redundant INSN_P test.
176
177         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
178         checks on form of COND from find_implicit_sets to here.
179         (find_implicit_sets): Cleanup control flow. Split critical edges
180         if it exposes implicit sets.  Allocate/resize implicit_sets as
181         necessary.
182         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
183         changed something.  Run df_analyze after find_implicit_sets if any
184         edges were split.  Do not allocate implicit_sets here.
185
186         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
187         (gcse_obstack): Renamed to cprop_obstack.
188         (GNEW, GNEWVEC, GNEWVAR): Remove.
189         (gmalloc): Remove.
190         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
191         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
192         (gcse_alloc): Likewise, and rename to cprop_alloc.
193         (alloc_gcse_men, free_gcse_mem): Remove.
194         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
195         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
196         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
197
198         * cprop.c (oprs_not_set_p): Remove.
199         (mark_set, mark_clobber): Remove.
200         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
201         (reg_not_set_p): New function.
202         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
203         (cprop_insn): Likewise.
204         (cprop_jump): Use FOR_EACH_EDGE.
205
206 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
207
208         PR bootstrap/48403
209         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
210         (rank_for_schedule): Use scheduled_insns vector instead of
211         last_scheduled_insn.
212         (ok_for_early_queue_removal): Likewise.
213         (queue_to_ready): Search forward in nonscheduled_insns_begin if
214         we have a dbg_cnt.
215         (choose_ready): Likewise.
216         (commit_schedule): Use VEC_iterate.
217         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
218         a dbg_cnt, use it and ensure the first insn is in the ready list.
219         (haifa_sched_init): Allocate scheduled_insns.
220         (sched_extend_ready_list): Don't allocate it; reserve space.
221         (haifa_sched_finish): Free it.
222
223 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
224
225         * optc-gen.awk: Always remove type from Variable entry before
226         recording in var_seen.
227
228 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
229
230         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
231         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
232         call to tidy_fallthru_edges.
233
234 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
235
236         * doc/options.texi (ToLower): Document.
237         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower
238         field.
239         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
240         * opts.h (cl_option): Add cl_tolower field.
241         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
242         arguments with lowercase strings.
243         * config/rx/rx.opt (mcpu=): Add ToLower.
244         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
245         argument.
246
247 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
248
249         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
250
251 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
252
253         * config/vax/vax.c: Include reload.h.
254
255 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
256
257         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
258         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
259         (sparc_preferred_reload_class): New function.
260
261 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
262
263         PR debug/48401
264         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
265         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
266
267 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
268
269         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
270         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
271
272 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
273
274         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
275         (ASM_OUTPUT_ALIGNED_BSS): Define.
276
277 2011-04-03  Michael Matz  <matz@suse.de>
278
279         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
280         and next_slot members.
281         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
282         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
283         (lto_streamer_cache_append): Declare.
284         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
285         unsigned index, remove offset parameter, ensure that we append
286         or update existing entries.
287         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
288         parameter, update next_slot for append.
289         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
290         parameter.
291         (lto_streamer_cache_insert_at): Likewise.
292         (lto_streamer_cache_append): New function.
293         (lto_streamer_cache_lookup): Use unsigned index.
294         (lto_streamer_cache_get): Likewise.
295         (lto_record_common_node): Don't test tree_node_can_be_shared.
296         (preload_common_node): Adjust call to lto_streamer_cache_insert.
297         (lto_streamer_cache_delete): Don't free offsets member.
298         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
299         (lto_output_string_with_length): Use lto_output_data_stream.
300         (lto_output_tree_header): Remove ix parameter, don't write it.
301         (lto_output_builtin_tree): Likewise.
302         (lto_write_tree): Adjust callers to above, don't track and write
303         offset, write unsigned index.
304         (output_unreferenced_globals): Don't emit all global vars.
305         (write_global_references): Use unsigned indices.
306         (lto_output_decl_state_refs): Likewise.
307         (write_symbol): Likewise.
308         * lto-streamer-in.c (lto_input_chain): Move earlier.
309         (input_function): Use unsigned index.
310         (input_alias_pairs): Don't read and then ignore all global vars.
311         (lto_materialize_tree): Remove ix_p parameter, don't read index,
312         don't pass it back, use lto_streamer_cache_append.
313         (lto_register_var_decl_in_symtab): Use unsigned index.
314         (lto_register_function_decl_in_symtab): Likewise.
315         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
316         index.
317         (lto_get_builtin_tree): Don't read index, use
318         lto_streamer_cache_append.
319         (lto_read_tree): Adjust call to lto_materialize_tree.
320
321         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
322         don't use function calls in arguments to MIN.
323
324         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
325         twice.
326
327         * gimple.c (gimple_type_leader_entry): Mark deletable.
328
329 2011-04-03  Alan Modra  <amodra@gmail.com>
330
331         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
332
333 2011-04-03  Michael Matz  <matz@suse.de>
334
335         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
336         an integer.
337         * tree.h (tree_decl_non_common.vindex): Adjust comment.
338
339 2011-04-03  Michael Matz  <matz@suse.de>
340
341         * cgraphbuild.c (record_reference): Canonicalize constructor values.
342         * gimple-fold.c (canonicalize_constructor_val): Accept being called
343         without function context.
344         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
345         current_function_decl and cfun.
346
347 2011-04-03  Michael Matz  <matz@suse.de>
348
349         * tree.c (decl_init_priority_insert): Don't create entry for
350         default priority.
351         (decl_fini_priority_insert): Ditto.
352         (fields_compatible_p, find_compatible_field): Remove.
353         * tree.h (fields_compatible_p, find_compatible_field): Remove.
354         * gimple.c (gimple_compare_field_offset): Adjust block comment.
355
356 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
357
358         * combine.c (try_combine): Remove useless local variable.
359
360 2011-04-03  Richard Guenther  <rguenther@suse.de>
361             Ira Rosen  <ira.rosen@linaro.org>
362
363         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
364         non-variable offsets and compare the remaining bases of the two
365         accesses instead of looking for exact same data-ref.
366
367 2011-04-02  Kai Tietz  <ktietz@redhat.com>
368
369         PR target/48416
370         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
371
372         * i386.c (ix86_is_msabi_thiscall): New helper function.
373         (ix86_is_type_thiscall): New helper function.
374         (ix86_comp_type_attributes): Handle thiscall for method-functions
375         special.
376         (init_cumulative_args): Likewise.
377         (find_drap_reg): Likewise.
378         (ix86_static_chain): Likewise.
379         (x86_this_parameter): Likewise.
380         (x86_output_mi_thunk): Likewise.
381
382 2011-04-01  Olivier Hainque  <hainque@adacore.com>
383             Nicolas Setton  <setton@adacore.com>
384             Eric Botcazou  <ebotcazou@adacore.com>
385
386         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
387         (add_gnat_descriptive_type_attribute): New function.
388         (gen_array_type_die): Call it.
389         (gen_enumeration_type_die): Likewise.
390         (gen_struct_or_union_type_die): Likewise.
391         (modified_type_die): Likewise.
392         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
393         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
394         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
395
396 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
397
398         PR bootstrap/48148
399         * dwarf2out.c (resolve_addr): Don't call force_decl_die
400         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
401
402         Revert:
403         2011-03-17  Richard Guenther  <rguenther@suse.de>
404
405         PR bootstrap/48148
406         * lto-cgraph.c (input_overwrite_node): Clear the abstract
407         origin for decls in other ltrans units.
408         (input_varpool_node): Likewise.
409
410 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
411
412         PR middle-end/48335
413         * expr.c (expand_assignment): Handle all possibilities
414         if TO_RTX is CONCAT.
415         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
416         (store_split_bit_field): If SUBREG_REG (op0) or
417         op0 itself has smaller mode than word, return it
418         for offset 0 and const0_rtx for out-of-bounds stores.
419         If word is const0_rtx, skip it.
420
421 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
422
423         * config/h8300/h8300.c (print_operand_address): Rename to...
424         (h8300_print_operand_address): ...this. Make static. Adjust comments.
425         Call h8300_print_operand and h8300_print_operand_address instead of
426         print_operand and print_operand_address. Declare.
427         (print_operand): Renake to...
428         (h8300_print_operand): ...this. Make static. Adjust comments.
429         Call h8300_print_operand instead of print_operand. Declare.
430         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
431         (h8300_register_move_cost): Likewise.
432         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
433         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
434         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
435         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
436         * config/h8300/h8300-protos.h (print_operand): Delete.
437         (print_operand_address): Delete.
438
439 2011-04-01  Richard Henderson  <rth@redhat.com>
440
441         PR 48400
442         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
443         in strict mode before dwarf4.  Re-order tests to early out
444         before switching sections.
445
446 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
447
448         * config/h8300/constraints.md: New file.
449         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
450         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
451         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
452         * config/h8300/predicates.md (bit_operand): Likewise.
453         (incdec_operand): Use satisfies_constraint_M and
454         satisfies_constraint_O.  Don't use C code block.
455         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
456         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
457         (compute_mov_length): Use satisfies_constraint_G.
458         (fix_bit_operand): Use satisfies_constraint_U.
459         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
460         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
461         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
462         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
463         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
464         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
465         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
466         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
467         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
468         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
469         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
470         (EXTRA_MEMORY_CONSTRAINT): Delete.
471
472 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
473             Michael Meissner  <meissner@linux.vnet.ibm.com>
474
475         PR target/48262
476         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
477         operands, as per the specifications.
478
479         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
480         (vec_extract_evenv4sf): Ditto.
481         (vec_extract_evenv8hi): Ditto.
482         (vec_extract_evenv16qi): Ditto.
483         (vec_extract_oddv4si): Ditto.
484
485 2011-03-31  Mark Wielaard  <mjw@redhat.com>
486
487         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
488         high_pc attribute if the CU has no associated code. Only output
489         DW_AT_entry_pc for CU if not generating strict dwarf and
490         dwarf_version < 4.
491
492 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
493
494         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
495         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
496         out of ...
497         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
498         * final.c (final_start_function): Call the new function rather
499         than using a NULL argument for dwarf2out_frame_debug.
500
501         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
502         that contains the prologue.
503
504         * haifa-sched.c (queue_insn): New arg REASON.  All callers
505         changed.  Print it in debugging output.
506
507         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
508
509         * sched-ebb.c (begin_schedule_ready): Remove second argument.
510         Split most of the code into...
511         (begin_move_insn): ... here.  New function.
512         (ebb_sched_info): Add a pointer to it.
513         * haifa-sched.c (scheduled_insns): New static variable.
514         (sched_extend_ready_list): Allocate it.
515         (schedule_block): Use it to record the order of scheduled insns.
516         Perform RTL changes to move insns only after all scheduling
517         decisions have been made.
518         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
519         begin_move_insn field.
520         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
521         * sched-int.h (struct haifa_sched_info): Remove second argument
522         from begin_schedule_ready hook.  Add new member begin_move_insn.
523         * sched-rgn.c (begin_schedule_ready): Remove second argument.
524         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
525
526         * haifa-sched.c (prune_ready_list): New function, broken out of
527         schedule_block.
528         (schedule_block): Use it.
529
530 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
531
532         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
533
534 2011-04-01  Kai Tietz  <ktietz@redhat.com>
535
536         * config.gcc (*-*-mingw*): Allow as option the
537         posix threading model.
538         * config/i386/mingw32.h ( SPEC_PTHREAD1,  SPEC_PTHREAD2):
539         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
540         definition.
541         (CPP_SPEC): Add pthread/no-pthread handling.
542         (LIB_SPEC): Likewise.
543         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
544         (LIB_SPEC): Likewise.
545         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
546         flag to pass -pthread option for shared libgcc build.
547         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
548         for shared libgcc build.
549         * config/i386/t-mingw-pthread: New file.
550         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
551         New define to enable use of library pthread by default.
552         * config/i386/mingw.opt (pthread): New driver option.
553         (no-pthread): New driver option.
554         * config/i386/cygming.opt: Make sure trailing empty line is retained.
555         * config/i386/mingw-w64.opt: Likewise.
556
557 2011-04-01  Gary Funck <gary@intrepid.com>
558
559         * c-decl.c (grokdeclarator): Fix formatting.
560
561 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
562
563         * expr.c (emit_block_move_via_movmem): Use n_generator_args
564         instead of n_operands.
565         (set_storage_via_setmem): Likewise.
566         * optabs.c (maybe_gen_insn): Likewise.
567         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
568         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
569         (mips_expand_builtin_direct): Likewise.
570         * config/spu/spu.c (expand_builtin_args): Likewise.
571
572 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
573
574         * recog.h (insn_data_d): Add n_generator_args.
575         * genoutput.c (data): Likewise.
576         (output_insn_data): Print it.
577         (max_opno, num_dups): Delete.
578         (scan_operands): Just fill in "d->operand[...]".
579         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
580
581 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
582
583         * gensupport.h (pattern_stats): New structure.
584         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
585         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
586         (max_operand_1, max_operand_vec): Delete.
587         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
588
589 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
590
591         * emit-rtl.c (emit_pattern_after_setloc): New function.
592         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
593         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
594         (emit_pattern_after): New function.
595         (emit_insn_after, emit_jump_insn_after): Call it.
596         (emit_call_insn_after, emit_debug_insn_after): Likewise.
597         (emit_pattern_before_setloc): New function.
598         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
599         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
600         Likewise.
601         (emit_pattern_before): New function.
602         (emit_insn_before, emit_jump_insn_before): Call it.
603         (emit_call_insn_before, emit_debug_insn_before): Likewise.
604
605 2011-03-31  Richard Henderson  <rth@redhat.com>
606
607         * dwarf2out.c (dw_separate_line_info_ref): Remove.
608         (dw_separate_line_info_entry): Remove.
609         (enum dw_line_info_opcode): New.
610         (dw_line_info_entry): Use it.
611         (dw_line_info_table, dw_line_info_table_p): New.
612         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
613         (line_info_table, line_info_label_num): Remove.
614         (line_info_table_in_use): Remove.
615         (separate_line_info_table): Remove.
616         (separate_line_info_table_allocated): Remove.
617         (separate_line_info_table_in_use): Remove.
618         (LINE_INFO_TABLE_INCREMENT): Remove.
619         (line_info_label_num): New.
620         (cur_line_info_table): New.
621         (text_section_line_info, cold_text_section_line_info): New.
622         (separate_line_info): New.
623         (SEPARATE_LINE_CODE_LABEL): Remove.
624         (print_dwarf_line_table): Remove.
625         (debug_dwarf): Don't dump it.
626         (output_one_line_info_table): New.
627         (output_line_info): Use it.
628         (new_line_info_table): New.
629         (set_cur_line_info_table): New.
630         (dwarf2out_switch_text_section): Use it.
631         (dwarf2out_begin_function): Likewise.
632         (push_dw_line_info_entry): New.
633         (dwarf2out_source_line): Rewrite for new line info tables.
634         (dwarf2out_init): Remove dead initailizations.
635
636 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
637
638         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
639         various flags.
640         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
641         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
642         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
643         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
644         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
645         * opt-functions.awk (flag_init, switch_bit_fields): New.
646         (switch_flags): Don't handle flags moved to bit-fields.  Don't
647         generate CL_MISSING_OK or CL_SAVE.
648         * optc-gen.awk: Update to generate bit-field output as well as
649         flags field.
650         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
651         bit-field instead of CL_REJECT_DRIVER flag.
652         * opts-common.c (generate_canonical_option,
653         decode_cmdline_option): Use bit-fields instead of CL_* flags.
654         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
655         instead of CL_REJECT_NEGATIVE flag.
656         * toplev.c (print_switch_values): Use cl_report bit-field instead
657         of CL_REPORT flag.
658
659 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
660
661         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
662         a zero minimum index only if it is redundant.
663
664 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
665
666         PR rtl-optimization/48381
667         * ira-color.c (assign_hard_reg): Use hard reg set intersection
668         instead of ira_class_hard_reg_index for calculating conflicting
669         hard registers.
670
671 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
672
673         * cprop.c: Clean up hash table building.
674         (reg_avail_info): Remove.
675         (oprs_available_p): Remove.
676         (record_last_reg_set_info): Remove.
677         (record_last_set_info): Remove.
678         (reg_available_p): New function.
679         (gcse_constant_p): Do not treat unfolded conditions as constants.
680         (make_set_regs_unavailable): New function.
681         (hash_scan_set): Simplify with new reg_available_p.
682         (compute_hash_table_work): Traverse insns stream only once.
683         Do not compute reg_avail_info. Traverse insns in reverse order.
684         Record implicit sets after recording explicit sets from the block.
685
686 2011-03-31  Michael Matz  <matz@suse.de>
687
688         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
689
690 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
691
692         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
693         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
694         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
695         (h8300_mode_dependent_address_p): New function.
696         (h8300_get_index): Make static.
697
698 2011-03-31  Jeff Law  <law@redhat.com>
699
700         * reload1.c (elimination_effects): Fix typo in recent change.
701
702         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
703         typo potentially leading to null pointer dereference.
704
705         * caller-save.c (new_saved_hard_reg): Eliminate return value.
706         (setup_save_areas): Corresponding changes to avoid useless
707         assignments.
708
709         * jump.c (reversed_comparison_code_parts): Avoid successive return
710         statements when REVERSE_CONDITION is defined.
711
712         * expr.c (expand_assignment): Avoid useless assignments.
713         (expand_expr_real_1): Likewise.
714         (expand_expr_real_2): Avoid useless statements.
715
716         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
717
718         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
719
720         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
721         statements.
722
723         * stmt.c (expand_expr_stmt): Avoid useless assignment.
724
725 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
726
727         PR target/47109
728         * doc/tm.texi.in (TARGET_VERSION): Remove.
729         * doc/tm.texi: Regenerate.
730         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
731         * collect2.c (main): Don't use TARGET_VERSION.
732         * mips-tdump.c (main): Don't use TARGET_VERSION.
733         * mips-tfile.c (main): Don't use TARGET_VERSION.
734         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
735         * config/rs6000/vxworksae.h: Remove.
736         * config/alpha/alpha.h (TARGET_VERSION): Remove.
737         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
738         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
739         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
740         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
741         * config/arm/arm.h (TARGET_VERSION): Remove.
742         * config/arm/coff.h (TARGET_VERSION): Remove.
743         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
744         * config/arm/elf.h (TARGET_VERSION): Remove.
745         * config/arm/freebsd.h (TARGET_VERSION): Remove.
746         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
747         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
748         * config/arm/pe.h (TARGET_VERSION): Remove.
749         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
750         * config/arm/semi.h (TARGET_VERSION): Remove.
751         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
752         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
753         * config/arm/vxworks.h (TARGET_VERSION): Remove.
754         * config/avr/avr.h (TARGET_VERSION): Remove.
755         * config/bfin/bfin.h (TARGET_VERSION): Remove.
756         * config/fr30/fr30.h (TARGET_VERSION): Remove.
757         * config/frv/frv.h (TARGET_VERSION): Remove.
758         * config/h8300/h8300.h (TARGET_VERSION): Remove.
759         * config/i386/cygwin.h (TARGET_VERSION): Remove.
760         * config/i386/darwin.h (TARGET_VERSION): Remove.
761         * config/i386/darwin64.h (TARGET_VERSION): Remove.
762         * config/i386/djgpp.h (TARGET_VERSION): Remove.
763         * config/i386/freebsd.h (TARGET_VERSION): Remove.
764         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
765         * config/i386/gnu.h (TARGET_VERSION): Remove.
766         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
767         * config/i386/i386elf.h (TARGET_VERSION): Remove.
768         * config/i386/linux.h (TARGET_VERSION): Remove.
769         * config/i386/linux64.h (TARGET_VERSION): Remove.
770         * config/i386/lynx.h (TARGET_VERSION): Remove.
771         * config/i386/mingw32.h (TARGET_VERSION): Remove.
772         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
773         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
774         * config/i386/netware.h (TARGET_VERSION): Remove.
775         * config/i386/nto.h (TARGET_VERSION): Remove.
776         * config/i386/openbsd.h (TARGET_VERSION): Remove.
777         * config/i386/vxworks.h (TARGET_VERSION): Remove.
778         * config/ia64/elf.h (TARGET_VERSION): Remove.
779         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
780         * config/ia64/hpux.h (TARGET_VERSION): Remove.
781         * config/ia64/linux.h (TARGET_VERSION): Remove.
782         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
783         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
784         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
785         * config/lm32/lm32.h (TARGET_VERSION): Remove.
786         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
787         * config/m32c/m32c.h (TARGET_VERSION): Remove.
788         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
789         * config/m32r/m32r.h (TARGET_VERSION): Remove.
790         * config/m68k/linux.h (TARGET_VERSION): Remove.
791         * config/m68k/m68k.h (TARGET_VERSION): Remove.
792         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
793         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
794         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
795         * config/mep/mep.h (TARGET_VERSION): Remove.
796         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
797         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
798         * config/mips/iris6.h (MACHINE_TYPE): Remove.
799         * config/mips/linux.h (TARGET_VERSION): Remove.
800         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
801         * config/mips/vxworks.h (TARGET_VERSION): Remove.
802         * config/mmix/mmix.h (TARGET_VERSION): Remove.
803         * config/mn10300/linux.h (TARGET_VERSION): Remove.
804         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
805         * config/pa/pa.h (TARGET_VERSION): Remove.
806         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
807         * config/picochip/picochip.h (TARGET_VERSION): Remove.
808         * config/rs6000/aix.h (TARGET_VERSION): Remove.
809         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
810         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
811         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
812         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
813         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
814         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
815         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
816         * config/rs6000/linux.h (TARGET_VERSION): Remove.
817         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
818         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
819         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
820         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
821         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
822         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
823         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
824         * config/s390/linux.h (TARGET_VERSION): Remove.
825         * config/s390/s390.h (TARGET_VERSION): Remove.
826         * config/s390/tpf.h (TARGET_VERSION): Remove.
827         * config/score/score.h (TARGET_VERSION): Remove.
828         * config/sh/linux.h (TARGET_VERSION): Remove.
829         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
830         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
831         * config/sh/sh.h (TARGET_VERSION): Remove.
832         * config/sh/sh64.h (TARGET_VERSION): Remove.
833         * config/sh/superh.h (TARGET_VERSION): Remove.
834         * config/sh/vxworks.h (TARGET_VERSION): Remove.
835         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
836         * config/sparc/linux.h (TARGET_VERSION): Remove.
837         * config/sparc/linux64.h (TARGET_VERSION): Remove.
838         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
839         TARGET_NAME32, TARGET_NAME): Remove.
840         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
841         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
842         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
843         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
844         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
845         * config/spu/spu.h (TARGET_VERSION): Remove.
846         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
847         * config/v850/v850.h (TARGET_VERSION): Remove.
848         * config/vax/linux.h (TARGET_VERSION): Remove.
849         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
850         * config/xtensa/elf.h (TARGET_VERSION): Remove.
851         * config/xtensa/linux.h (TARGET_VERSION): Remove.
852
853 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
854
855         PR target/48142
856         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
857         frame-related from frame-unrelated adjustments to the stack pointer.
858
859 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
860
861         * common.opt (fdebug-types-section): Move earlier.
862         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
863
864 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
865
866         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
867         var.
868
869 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
870
871         * tree.h (CASE_CHAIN): Define.
872         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
873         (gimple_redirect_edge_and_branch): Likewise.
874
875 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
876
877         PR middle-end/48367
878         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
879         calculation.
880
881 2011-03-30  Jeff Law  <law@redhat.com>
882
883         * PR bootstrap/48371
884         * reload1.c (reload): Fix botch in last change.
885
886         * reload.h (struct reload): Fix typo introduced in last change.
887
888 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
889
890         * config/arm/arm.opt (mhard-float, msoft-float): Mark
891         Undocumented.  Remove help text.
892         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
893         -mhard-float.
894
895 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
896
897         * doc/options.texi (NegativeAlias): Document.
898         (Alias): Mention NegativeAlias.
899         * opt-functions.awk: Handle NegativeAlias.
900         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
901         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
902         * opts.h (CL_NEGATIVE_ALIAS): Define.
903         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
904         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
905         OPT_mspe_.
906         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
907         Alias entries.
908         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
909         mno-spe and mno-isel instead of mspe=no and -misel=no.
910
911 2011-03-29  Mark Wielaard  <mjw@redhat.com>
912
913         * common.opt (fdebug-types-section): New flag.
914         * doc/invoke.texi: Document new -fno-debug-types-section flag.
915         * dwarf2out.c (use_debug_types): New define.
916         (struct die_struct): Mark die_id with GTY desc use_debug_types.
917         (print_die): Guard output of type unit signatures using
918         use_debug_types.
919         (build_abbrev_table): Replace assert of dwarf_version >= 4
920         with assert on use_debug_types.
921         (size_of_die): Likewise.
922         (unmark_dies): Likewise.
923         (value_format): Decide AT_ref_external form on use_debug_types.
924         (output_die): Replace dwarf_version version check guard with
925         use_debug_types where appropriate.
926         (modified_type_die): Likewise.
927         (gen_reference_type_die): Likewise.
928         (dwarf2out_start_source_file): Likewise.
929         (dwarf2out_end_source_file): Likewise.
930         (prune_unused_types_walk_attribs): Likewise.
931         (dwarf2out_finish): Likewise.
932
933 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
934
935         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
936
937 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
938
939         PR rtl-optimization/48332
940         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
941         mode of input operand N and modeN to its actual mode.
942
943 2011-03-30  Jeff Law  <law@redhat.com>
944
945         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
946         define accessor macro.
947         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
948         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
949         (reg_equiv_init): Likewise.
950         (reg_equivs_size): New variable.
951         (reg_equiv_init_size): Remove.
952         (allocate_initial_values): Move prototype to here from....
953         * integrate.h (allocate_initial_values): Remove prototype.
954         * integrate.c: Include reload.h.
955         (allocate_initial_values): Corresponding changes.
956         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
957         (fix_reg_equiv_init, no_equiv): Corresponding changes.
958         (update_equiv_regs): Corresponding changes.
959         (ira): Corresponding changes.
960         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
961         (push_secondary_reload): Corresponding changes.
962         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
963         (make_memloc, find_reloads_address): Corresponding changes.
964         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
965         (find_reloads_address_1): Corresponding changes.
966         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
967         (refers_to_regno_for_reload_p): Corresponding changes.
968         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
969         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
970         * reload1.c: Include ggc.h.
971         (grow_reg_equivs): New function.
972         (replace_pseudos_in, reload): Corresponding changes.
973         (calculate_needs_all_insns, alter_regs): Corresponding changes.
974         (eliminate_regs_1, elimination_effects): Corresponding changes.
975         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
976         (delete_output_reload): Likewise.
977         * caller-save.c (mark_referenced_regs): Corresponding changes.
978         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
979         * frv/predicates.md (frv_load_operand): Corresponding changes.
980         * microblaze/microblaze.c (double_memory_operand): Corresponding
981         changes.
982         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
983         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
984         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
985         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
986         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
987         changes.
988         * pa/pa.c (emit_move_sequence): Corresponding changes.
989         * vax/vax.c (nonindexed_address_p): Corresponding changes.
990
991 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
992
993         PR target/47551
994         * config/arm/arm.c (coproc_secondary_reload_class): Handle
995         structure modes.  Don't check neon_vector_mem_operand for
996         vector or structure modes.
997
998 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
999             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1000
1001         PR target/43590
1002         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
1003         operand 1 and reshuffle the operands to match.
1004         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
1005
1006 2011-03-30  Christian Schüler  <cschueler@gmx.de>
1007
1008         PR driver/48208
1009         * config/c.opt (F): Added 'Driver' to -F option.
1010
1011         PR driver/48260
1012         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
1013           handler function.
1014         * config/darwin.opt: Added '-arch' option.
1015
1016 2011-03-30  Nick Clifton  <nickc@redhat.com>
1017
1018         * config/rx/rx.md: Add peepholes and patterns to combine
1019         extending loads and simple arithmetic instructions.
1020         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
1021         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
1022         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
1023         modes to use pre-decrement and post-increment addressing.
1024         (rx_is_restricted_memory_address): Add range checking of REG+INT
1025         addresses.
1026         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
1027         (rx_memory_move_cost): Adjust cost of stores.
1028         (rx_adjust_insn_length): New function.
1029
1030 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
1031
1032         PR c/48305
1033         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
1034         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
1035         matching arg00/arg01 types.
1036
1037 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
1038
1039         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
1040         last_location to UNKNOWN_LOCATION.
1041
1042 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
1043
1044         PR target/48349
1045         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
1046         FLOAT_SSE_REGS.
1047
1048 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
1049             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1050
1051         PR bootstrap/48337
1052         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
1053         Init(PROCESSOR_V7).
1054         (sparc_cpu): Likewise.
1055         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
1056         PROCESSOR_V7.
1057
1058 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
1059
1060         PR target/48336
1061         PR middle-end/48342
1062         PR rtl-optimization/48345
1063         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
1064         hard regs for given mode from profitable regs when doing secondary
1065         allocation.
1066
1067 2011-03-29  Jeff Law  <law@redhat.com>
1068
1069         PR bootstrap/48327
1070         * tree-ssa-threadupdate.c (struct redirection_data): Remove
1071         do_not_duplicate field.
1072         (lookup_redirection_data): Corresponding changes.
1073         (create_duplicates): Always create a template block.
1074         (redirect_edges): Remove code which reused the original block
1075         when it was going to become unreachable code.
1076         (thread_block): Don't set do_not_duplicate field.
1077
1078 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
1079
1080         * lto-opts.c (register_user_option_p, lto_register_user_option):
1081         Make type argument unsigned.
1082         * lto-streamer.h (lto_register_user_option): Make type argument
1083         unsigned.
1084         * opth-gen.awk: Make CL_* macros unsigned.
1085         * opts-common.c (find_opt): Make lang_mask argument unsigned.
1086         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1087         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
1088         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
1089         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
1090         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
1091         (find_opt): Make lang_mask argument unsigned.
1092
1093 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
1094
1095         PR rtl-optimization/48331
1096         PR rtl-optimization/48334
1097         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
1098         for any used algorithm.
1099
1100 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
1101
1102         * ira-conflicts.c (build_object_conflicts): Add unused attribute
1103         to parent_max.
1104
1105 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
1106
1107         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
1108         (alpha_option_override): Don't set alpha_sr_alias_set.
1109         (emit_frame_store_1): Use gen_frame_mem rather than calling
1110         set_mem_alias_set.
1111         (alpha_expand_epilogue): Ditto.
1112
1113 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
1114
1115         PR tree-optimization/48290
1116         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
1117         vectorization, check that relevant phis in the basic block after
1118         the inner loop are really inner loop's exit phis.
1119
1120 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
1121
1122         PR debug/48190
1123         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
1124         (cached_dw_loc_list_def): New structure.
1125         (cached_dw_loc_list): New typedef.
1126         (cached_dw_loc_list_table): New variable.
1127         (cached_dw_loc_list_table_hash): New function.
1128         (cached_dw_loc_list_table_eq): Likewise.
1129         (add_location_or_const_value_attribute): Take a bool cache_p.
1130         Cache the list when the parameter is true.
1131         (gen_formal_parameter_die): Update caller.
1132         (gen_variable_die): Likewise.
1133         (dwarf2out_finish): Likewise.
1134         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
1135         while generating debug info for the decl.
1136         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
1137         (dwarf2out_init): Initialize cached_dw_loc_list_table.
1138         (resolve_addr): Cache the result of resolving a chain of
1139         location lists.
1140
1141 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
1142
1143         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
1144         conflict object hard regset nodes have intersecting hard reg sets.
1145
1146         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
1147         after regstat_init_n_sets_and_refs.
1148
1149         * ira.c: Add more comments at the top.
1150         (setup_stack_reg_pressure_class, setup_pressure_classes):
1151         Add comments how we compute the register pressure classes.
1152         (setup_allocno_and_important_classes): Add more comments.
1153         (setup_class_translate_array, reorder_important_classes)
1154         (setup_reg_class_relations): Add comments.
1155
1156         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
1157         start of the file.
1158
1159         * ira-color.c: Add 2011 to the Copyright line.
1160         (assign_hard_reg):  Add more comments.
1161         (improve_allocation): Ditto.
1162
1163         * ira-costs.c: Add 2011 to the Copyright line.
1164         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
1165         comments.
1166         (setup_regno_cost_classes_by_mode): Ditto.
1167
1168         Initial patches from ira-improv branch:
1169
1170         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
1171
1172         * ira-build.c: (ira_create_object): Remove initialization of
1173         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
1174         (ira_create_allocno): Remove initialization of
1175         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
1176         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
1177         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1178         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
1179         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
1180         Initialize ALLOCNO_ADD_DATA.
1181         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
1182         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
1183         ALLOCNO_REG.
1184         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
1185         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
1186
1187         * ira.c (ira_reallocate): Remove.
1188         (setup_pressure_classes): Call
1189         ira_init_register_move_cost_if_necessary.  Use
1190         ira_register_move_cost instead of ira_get_register_move_cost.
1191         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
1192         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
1193
1194         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
1195         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1196         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
1197         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
1198         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
1199         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
1200         Fix formatting.
1201         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1202         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1203         (struct allocno_color_data): New.
1204         (allocno_color_data_t): New typedef.
1205         (allocno_color_data): New definition.
1206         (ALLOCNO_COLOR_DATA): New macro.
1207         (struct object_color_data): New.
1208         (object_color_data_t): New typedef.
1209         (object_color_data): New definition.
1210         (OBJECT_COLOR_DATA): New macro.
1211         (update_copy_costs, calculate_allocno_spill_cost): Call
1212         ira_init_register_move_cost_if_necessary.  Use
1213         ira_register_move_cost instead of ira_get_register_move_cost.
1214         (move_spill_restore, update_curr_costs): Ditto.
1215         (allocno_spill_priority): Make it inline.
1216         (color_pass): Allocate and free allocno_color_dat and object_color_data.
1217         (struct coalesce_data, coalesce_data_t): New.
1218         (allocno_coalesce_data): New definition.
1219         (ALLOCNO_COALESCE_DATA): New macro.
1220         (merge_allocnos, coalesced_allocno_conflict_p): Use
1221         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
1222         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
1223         (coalesce_allocnos): Ditto.
1224         (setup_coalesced_allocno_costs_and_nums): Ditto.
1225         (collect_spilled_coalesced_allocnos): Ditto.
1226         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
1227         (setup_slot_coalesced_allocno_live_ranges): Ditto.
1228         (coalesce_spill_slots): Ditto.
1229         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
1230         free allocno_coalesce_data.
1231
1232         * ira-conflicts.c: Fix formatting.
1233         (process_regs_for_copy): Call
1234         ira_init_register_move_cost_if_necessary.  Use
1235         ira_register_move_cost instead of ira_get_register_move_cost.
1236         (build_object_conflicts): Optimize.
1237
1238         * ira-costs.c (record_reg_classes): Optimize.  Call
1239         ira_init_register_move_cost_if_necessary.  Use
1240         ira_register_move_cost, ira_may_move_in_cost, and
1241         ira_may_move_out_cost instead of ira_get_register_move_cost and
1242         ira_get_may_move_cost.
1243         (record_address_regs): Ditto.
1244         (scan_one_insn): Optimize.
1245         (find_costs_and_classes): Optimize.
1246         (process_bb_node_for_hard_reg_moves): Call
1247         ira_init_register_move_cost_if_necessary.  Use
1248         ira_register_move_cost instead of ira_get_register_move_cost.
1249
1250         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
1251         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
1252         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
1253         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
1254         definitions.
1255         (ira_initiate_emit_data, ira_finish_emit_data)
1256         (create_new_allocno): New functions.
1257         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1258         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
1259         Use ira_register_move_cost instead of ira_get_register_move_cost.
1260
1261         * ira-int.h: Fix some comments.
1262         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
1263         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1264         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
1265         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
1266         add_data.
1267         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
1268         bitfield after mode.  Make hard_regno a short int.  Make
1269         hard_regno short.  Remove first_coalesced_allocno and
1270         next_coalesced_allocno.  Move mem_optimized_dest_p,
1271         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
1272         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
1273         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
1274         temp, colorable_p.  Add new member add_data.
1275         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
1276         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
1277         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
1278         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
1279         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
1280         (ALLOCNO_ADD_DATA): New macro.
1281         (ira_emit_data_t): New typedef.
1282         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
1283         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
1284         from struct ira_allocno.
1285         (ALLOCNO_EMIT_DATA): New macro.
1286         (ira_allocno_emit_data, allocno_emit_reg): New.
1287         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
1288         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1289         (OBJECT_ADD_DATA): New macro.
1290         (ira_reallocate): Remove.
1291         (ira_initiate_emit_data, ira_finish_emit_data): New.
1292         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
1293         (ira_init_register_move_cost_if_necessary): New.
1294         (ira_object_conflict_iter_next): Merge into
1295         ira_object_conflict_iter_cond.
1296         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1297
1298         * ira-live.c: (process_single_reg_class_operands): Call
1299         ira_init_register_move_cost_if_necessary.  Use
1300         ira_register_move_cost instead of ira_get_register_move_cost.
1301
1302         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
1303
1304         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
1305
1306         * ira-costs.c: Fix formatting.
1307         (cost_classes, cost_classes_num): Remove.
1308         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
1309         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
1310         (cost_classes_del, cost_classes_htab): New.
1311         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
1312         (initiate_regno_cost_classes, setup_cost_classes): New.
1313         (setup_regno_cost_classes_by_aclass): New.
1314         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1315         (record_reg_classes): Use regno_cost_classes instead of
1316         cost_classes.  Move checking opposite operand up.
1317         (record_address_regs): Use regno_cost_classes
1318         instead of cost_classes.
1319         (scan_one_insn): Ditto.  Use always general register.
1320         (print_allocno_costs): Use regno_cost_classes instead of
1321         cost_classes.
1322         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
1323         (find_costs_and_classes): Set up cost classes for each registers.
1324         Use also their mode for this.  Use regno_cost_classes instead of
1325         cost_classes.
1326         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
1327         cost_classes.
1328         (free_ira_costs, ira_init_costs): Don't use cost_classes.
1329         (ira_costs, ira_set_pseudo_classes): Call
1330         initiate_regno_cost_classes and finish_regno_cost_classes.
1331
1332         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
1333
1334         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
1335
1336         * target.def (ira_cover_classes): Remove.
1337
1338         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1339
1340         * doc/tm.texi.in: Ditto.
1341
1342         * ira-conflicts.c: Remove mentioning cover classes from the file.
1343         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
1344         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
1345
1346         * targhooks.c (default_ira_cover_classes): Remove.
1347
1348         * targhooks.h (default_ira_cover_classes): Ditto.
1349
1350         * haifa-sched.c: Remove mentioning cover classes from the file.
1351         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
1352         ira_pressure_classes and ira_pressure_classes_num instead of
1353         ira_reg_class_cover_size and ira_reg_class_cover.  Use
1354         sched_regno_pressure_class instead of sched_regno_cover_class.
1355         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
1356         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1357
1358         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
1359         classes from the file.
1360         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
1361         (struct object_hard_regs, struct object_hard_regs_node): New.
1362         (struct ira_object): New members profitable_hard_regs,
1363         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
1364         (struct ira_allocno): Rename cover_class to aclass.  Rename
1365         cover_class_cost and updated_cover_class_cost to class_cost and
1366         updated_class_cost.  Remove splay_removed_p and
1367         left_conflict_size.  Add new members colorable_p.
1368         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
1369         (ALLOCNO_COLORABLE_P): New macro.
1370         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
1371         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
1372         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
1373         (OBJECT_...): Rename parameter C to O.
1374         (OBJECT_PROFITABLE_HARD_REGS): New macro.
1375         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
1376         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
1377         (struct target_ira_int): New members x_ira_max_memory_move_cost,
1378         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
1379         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
1380         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
1381         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
1382         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
1383         x_ira_reg_class_subunion.
1384         (ira_max_memory_move_cost, ira_max_register_move_cost)
1385         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
1386         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
1387         (ira_important_class_nums, ira_reg_class_superunion): New macros.
1388         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1389         (ira_reg_class_union): Rename to ira_reg_class_subunion.
1390         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1391         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1392         (ira_tune_allocno_costs_and_cover_classes): Rename to
1393         ira_tune_allocno_costs.
1394         (ira_debug_hard_regs_forest): New.
1395         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
1396         (ira_object_conflict_iter_next): Fix comments.
1397         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1398         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
1399         cover_class to aclass.
1400         (ira_allocate_and_accumulate_costs): Ditto.
1401         (ira_allocate_and_set_or_copy_costs): Ditto.
1402
1403         * opts.c (decode_options): Remove ira_cover_class check.
1404
1405         * ira-color.c: Remove mentioning cover classes from the file.  Use
1406         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
1407         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
1408         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
1409         (splay-tree.h): Remove include.
1410         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
1411         before copy_freq_compare_func.
1412         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
1413         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
1414         New definitions.
1415         (hard_regs_roots, hard_regs_node_vec): Ditto.
1416         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
1417         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
1418         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
1419         (create_new_object_hard_regs_node): Ditto.
1420         (add_new_object_hard_regs_node_to_forest): Ditto.
1421         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1422         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
1423         Ditto.
1424         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
1425         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
1426         (remove_unused_object_hard_regs_nodes): Ditto.
1427         (enumerate_object_hard_regs_nodes): Ditto.
1428         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
1429         (object_hard_regs_subnode_t): Ditto.
1430         (struct object_hard_regs_subnode): Ditto.
1431         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
1432         (setup_object_hard_regs_subnode_index): Ditto.
1433         (get_object_hard_regs_subnodes_num): Ditto.
1434         (form_object_hard_regs_nodes_forest): Ditto.
1435         (finish_object_hard_regs_nodes_tree): Ditto.
1436         (finish_object_hard_regs_nodes_forest): Ditto.
1437         (allocnos_have_intersected_live_ranges_p): Rename to
1438         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
1439         (pseudos_have_intersected_live_ranges_p): Rename to
1440         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
1441         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
1442         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
1443         (update_copy_costs): Remove assert.  Skip cost update if the hard
1444         reg does not belong the class.
1445         (assign_hard_reg): Process only profitable hard regs.
1446         (uncolorable_allocnos_num): Make it scalar.
1447         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1448         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
1449         and ira_reg_class_max_nregs.
1450         (bucket_allocno_compare_func): Check frequency first.
1451         (sort_bucket): Add compare function as a parameter.
1452         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
1453         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
1454         (push_allocno_to_stack): Rewrite for checking new allocno
1455         colorability.
1456         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
1457         (push_only_colorable): Pass new parameter to sort_bucket.
1458         (push_allocno_to_spill): Remove.
1459         (allocno_spill_priority_compare): Make it inline and rewrite.
1460         (splay_tree_allocate, splay_tree_free): Remove.
1461         (allocno_spill_sort_compare): New function.
1462         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
1463         build and use splay tree.  Choose first allocno in uncolorable
1464         allocno bucket to spill.  Remove setting spill cost.
1465         (all_conflicting_hard_regs): Remove.
1466         (setup_allocno_available_regs_num): Check only profitable hard
1467         regs.  Print info about hard regs nodes.
1468         (setup_allocno_left_conflicts_size): Remove.
1469         (put_allocno_into_bucket): Don't call
1470         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
1471         (improve_allocation): New.
1472         (color_allocnos): Call setup_profitable_hard_regs,
1473         form_object_hard_regs_nodes_forest, improve_allocation,
1474         finish_object_hard_regs_nodes_forest.  Setup spill cost.
1475         (print_loop_title): Use pressure classes.
1476         (color_allocnso): Ditto.
1477         (do_coloring): Remove allocation and freeing splay_tree_node_pool
1478         and allocnos_for_spilling.
1479         (ira_sort_regnos_for_alter_reg): Don't setup members
1480         {first,next}_coalesced_allocno.
1481         (color): Remove allocating and freeing removed_splay_allocno_vec.
1482         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
1483         prohibited_class_mode_regs.
1484
1485         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
1486         formatting.
1487         (update_allocno_pressure_excess_length): Use pressure classes.
1488         (inc_register_pressure, dec_register_pressure): Check for pressure
1489         class.
1490         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
1491         pressure class.  Use ira_reg_class_nregs instead of
1492         ira_reg_class_max_nregs.
1493         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
1494         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
1495         (single_reg_class): Use ira_reg_class_nregs instead of
1496         ira_reg_class_max_nregs.
1497         (process_bb_node_lives): Use pressure classes.
1498
1499         * ira-emit.c: Remove mentioning cover classes from the file.  Use
1500         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
1501         (change_loop): Use pressure classes.
1502         (modify_move_list): Call ira_set_allocno_class instead of
1503         ira_set_allocno_cover_class.
1504
1505         * ira-build.c: Remove mentioning cover classes from the file.  Use
1506         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
1507         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
1508         ALLOCNO_UPDATED_CLASS_COST instead of
1509         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
1510         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
1511         (ira_create_allocno): Remove initialization of
1512         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
1513         ALLOCNO_COLORABLE_P.
1514         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1515         Update conflict regs for the objects.
1516         (create_cap_allocno): Remove assert.  Don't propagate
1517         ALLOCNO_AVAILABLE_REGS_NUM.
1518         (ira_free_allocno_costs): New function.
1519         (finish_allocno): Change a part of code into call of
1520         ira_free_allocno_costs.
1521         (low_pressure_loop_node_p): Use pressure classes.
1522         (object_range_compare_func): Don't compare classes.
1523         (setup_min_max_conflict_allocno_ids): Ditto.
1524
1525         * loop-invariant.c: Remove mentioning cover classes from the file.
1526         Use ira_pressure_classes and ira_pressure_classes_num instead of
1527         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
1528         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
1529         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1530         Use reg_allocno_class instead of reg_cover_class.
1531         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
1532         STACK_REG_COVER_CLASS.
1533         (get_regno_cover_class): Rename to get_regno_pressure_class.
1534         (move_loop_invariants): Initialize and finalize regstat.
1535
1536         * ira.c: Remove mentioning cover classes from the file.  Add
1537         comments about coloring without cover classes.  Use ALLOCNO_CLASS
1538         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
1539         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
1540         setup_class_subset_and_memory_move_costs.
1541         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
1542         (setup_cover_and_important_classes): Rename to
1543         setup_allocno_and_important_classes.
1544         (setup_class_translate_array): New.
1545         (setup_class_translate): Call it for allocno and pressure classes.
1546         (cover_class_order): Rename to allocno_class_order.
1547         (comp_reg_classes_func): Use ira_allocno_class_translate instead
1548         of ira_class_translate.
1549         (reorder_important_classes): Set up ira_important_class_nums.
1550         (setup_reg_class_relations): Set up ira_reg_class_superunion.
1551         (print_class_cover): Rename to print_classes.  Add parameter.
1552         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1553         Print pressure classes too.
1554         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
1555         setup_reg_subclasses.
1556         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1557         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1558         (setup_prohibited_class_mode_regs): Use
1559         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1560         (clarify_prohibited_class_mode_regs): New function.
1561         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
1562         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
1563         (ira_init_once): Initialize them.
1564         (free_register_move_costs): Process them.
1565         (ira_init): Move calls of find_reg_classes and
1566         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
1567         Call clarify_prohibited_class_mode_regs.
1568         (ira_no_alloc_reg): Remove.
1569         (too_high_register_pressure_p): Use pressure classes.
1570
1571         * sched-deps.c: Remove mentioning cover classes from the file.
1572         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
1573         ira_pressure_classes and ira_pressure_classes_num instead of
1574         ira_reg_class_cover_size and ira_reg_class_cover.
1575         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
1576         sched_regno_pressure_class instead of sched_regno_cover_class.
1577         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
1578         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1579
1580         * ira.h: Add 2010 to Copyright.
1581         (ira_no_alloc_reg): Remove external.
1582         (struct target_ira): Rename x_ira_hard_regno_cover_class,
1583         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
1584         x_ira_class_translate to x_ira_hard_regno_allocno_class,
1585         x_ira_allocno_classes_num, x_ira_allocno_classes, and
1586         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
1587         x_ira_pressure_classes, x_ira_pressure_class_translate, and
1588         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
1589         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
1590         x_ira_no_alloc_regs.
1591         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1592         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
1593         ira_allocno_classes_num and ira_allocno_classes.
1594         (ira_class_translate): Rename to ira_allocno_class_translate.
1595         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
1596         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
1597         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1598         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
1599         (ira_no_alloc_regs): New.
1600
1601         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
1602         classes from the file.  Use ALLOCNO_CLASS instead of
1603         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
1604         ALLOCNO_COVER_CLASS_COST.
1605         (regno_cover_class): Rename to regno_aclass.
1606         (record_reg_classes): Use ira_reg_class_subunion instead of
1607         ira_reg_class_union.
1608         (record_address_regs): Check overflow.
1609         (scan_one_insn): Ditto.
1610         (print_allocno_costs): Print total mem cost fore regional allocation.
1611         (print_pseudo_costs): Use REG_N_REFS.
1612         (find_costs_and_classes): Use classes intersected with them on the
1613         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
1614         ira_reg_class_union.  Use ira_allocno_class_translate and
1615         regno_aclass instead of ira_class_translate and regno_cover_class.
1616         Modify code for finding regno_aclass.  Setup preferred classes for
1617         the next pass.
1618         (setup_allocno_cover_class_and_costs): Rename to
1619         setup_allocno_class_and_costs.  Use regno_aclass instead of
1620         regno_cover_class.  Use ira_set_allocno_class instead of
1621         ira_set_allocno_cover_class.
1622         (init_costs, finish_costs): Use regno_aclass instead of
1623         regno_cover_class.
1624         (ira_costs): Use setup_allocno_class_and_costs instead of
1625         setup_allocno_cover_class_and_costs.
1626         (ira_tune_allocno_costs_and_cover_classes): Rename to
1627         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
1628         by processing objects.  Use ira_reg_class_max_nregs instead of
1629         ira_reg_class_nregs.
1630
1631         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
1632
1633         * sched-int.h: Remove mentioning cover classes from the file.
1634         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
1635
1636         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
1637         classes from the file.
1638         (struct reg_pref): Rename coverclass into allocnoclass.
1639         (reg_cover_class): Rename to reg_allocno_class.
1640
1641         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1642
1643         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
1644
1645         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
1646
1647         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
1648
1649         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
1650
1651         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
1652
1653         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
1654
1655         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
1656
1657         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
1658
1659         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
1660
1661         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
1662         (i386_ira_cover_classes): Ditto.
1663
1664         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
1665
1666         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
1667
1668         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
1669
1670         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
1671
1672         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
1673
1674         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
1675
1676         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
1677         (mips_ira_cover_classes): Ditto.
1678
1679         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
1680
1681         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
1682
1683         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
1684
1685         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
1686
1687         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
1688
1689         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
1690         (IRA_COVER_CLASSES_VSX): Ditto.
1691
1692         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
1693         (rs6000_ira_cover_classes): Ditto.
1694
1695         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
1696
1697         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
1698
1699         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
1700
1701         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
1702
1703         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
1704
1705         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
1706
1707         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
1708
1709         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
1710
1711         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
1712
1713         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
1714
1715 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
1716
1717         PR debug/48253
1718         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
1719         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
1720         dw_fde_unlikely_section_end_label, cold_in_std_section,
1721         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
1722         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
1723         fields.
1724         (output_fde): Use dw_fde_second_{begin,end} if second is
1725         true, otherwise dw_fde_{begin,end}.
1726         (output_call_frame_info): Test dw_fde_second_begin != NULL
1727         instead of dw_fde_switched_sections.
1728         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
1729         fields, initialize new fields.  Initialize in_std_section
1730         unconditionally from the first partition.
1731         (dwarf2out_end_epilogue): Don't override dw_fde_end when
1732         dw_fde_second_begin is non-NULL.
1733         (dwarf2out_switch_text_section): Stop initializing removed
1734         dw_fde_struct fields, initialize new fields, initialize
1735         also dw_fde_end here.  Set dw_fde_switch_cfi even when
1736         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
1737         (struct var_loc_list_def): Add last_before_switch field.
1738         (arange_table, arange_table_allocated, arange_table_in_use,
1739         ARANGE_TABLE_INCREMENT, add_arange): Removed.
1740         (size_of_aranges): Count !in_std_section and !second_in_std_section
1741         hunks in fdes, instead of looking at arange_table_in_use.
1742         (output_aranges): Add aranges_length argument, don't call
1743         size_of_aranges here.  Instead of using aranges_table*
1744         emit ranges for fdes when !in_std_section resp.
1745         !second_in_std_section.
1746         (dw_loc_list): Break ranges crossing section switch.
1747         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
1748         use dw_fde_second_end instead of dw_fde_end as end of last range.
1749         (gen_subprogram_die): Don't call add_arange.  Use
1750         dw_fde_{begin,end} for first partition and if switched
1751         section dw_fde_second_{begin,end} for the second.
1752         (var_location_switch_text_section_1,
1753         var_location_switch_text_section): New functions.
1754         (dwarf2out_begin_function): Initialize cold_text_section even
1755         when function_section () isn't text_section.
1756         (prune_unused_types): Don't walk arange_table.
1757         (dwarf2out_finish): Don't needlessly test
1758         flag_reorder_blocks_and_partition when testing cold_text_section_used.
1759         If info_section_emitted, call size_of_aranges and if it indicates
1760         non-empty .debug_aranges, call output_aranges with the computed
1761         size.  Stop using removed dw_fde_struct fields, use
1762         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
1763         for second.
1764
1765         PR debug/48203
1766         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
1767         create ENTRY_VALUE if incoming or address of incoming's MEM
1768         is a hard REG.
1769         * dwarf2out.c (mem_loc_descriptor): Don't emit
1770         DW_OP_GNU_entry_value of DW_OP_fbreg.
1771         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
1772         on ENTRY_VALUE is able to find the canonical parameter VALUE.
1773         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
1774         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
1775         ENTRY_VALUE_EXPs.
1776         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
1777         is a REG_P or MEM_P with REG_P address, compute hash directly
1778         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
1779         (preserve_only_constants): Don't clear VALUES forwaring
1780         ENTRY_VALUE to some other VALUE.
1781
1782 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
1783
1784         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
1785         instead of GEN_INT.
1786
1787 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
1788
1789         * cfgexpand.c (expand_gimple_cond): Always set the source location and
1790         block before expanding the statement.
1791         (expand_gimple_stmt_1): Likewise.  Set them here...
1792         (expand_gimple_stmt): ...and not here.  Tidy.
1793         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
1794         unknown.
1795
1796 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
1797
1798         * Makefile.in: New rule for cprop.o.
1799         * gcse.c: Move constant/copy propagation to cprop.c.
1800         (compute_local_properties): Only handle expression tables.
1801         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
1802         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
1803         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
1804         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
1805         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
1806         compute_cprop_data, find_used_regs, try_replace_reg,
1807         find_avail_set, cprop_jump, constprop_register, cprop_insn,
1808         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
1809         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
1810         find_bypass_set, reg_killed_on_edge, bypass_block,
1811         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
1812         execute_rtl_cprop, pass_rtl_cprop): Move to...
1813         * cprop.c: ...here.  New file, constant/copy propagation for RTL
1814         moved from gcse.c to here with minor cleanups in duplicated code.
1815
1816 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
1817
1818         * config/i386/i386.c (flag_opts): Fix a typo in
1819         -mavx256-split-unaligned-store.
1820
1821 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
1822
1823         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1824         LIBCALL_VALUE): Remove macros.
1825         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1826         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1827         (h8300_function_value, h8300_libcall_value,
1828         h8300_function_value_regno_p): New functions.
1829
1830 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
1831
1832         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
1833
1834 2011-03-28  Jeff Law  <law@redhat.com>
1835
1836         * tree-ssa-threadupdate.c (redirect_edges): Call
1837         create_edge_and_update_destination_phis as needed.
1838         (create_edge_and_update_destination_phis): Accept new BB argument.
1839         All callers updated.
1840         (thread_block): Do not update the profile when threading around
1841         intermediate blocks.
1842         (thread_single_edge): Likewise.
1843         (determine_bb_domination_status): If BB is not a successor of the
1844         loop header, return NONDOMINATING.
1845         (register_jump_thread): Note when we register a jump thread around
1846         an intermediate block.
1847         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
1848         (thread_across_edge): Use it.
1849
1850 2011-03-28  Tristan Gingold  <gingold@adacore.com>
1851
1852         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
1853         when for_return is 2.
1854
1855 2011-03-28  Jeff Law  <law@redhat.com>
1856
1857         * var-tracking.c (canonicalize_values_mark): Delete unused
1858         lhs assignment.
1859         (canonicalize_values_star, set_variable_part): Likewise.
1860         (clobber_variable_part, delete_variable_part): Likewise.
1861
1862 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
1863
1864         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
1865
1866 2011-03-28  Martin Jambor  <mjambor@suse.cz>
1867
1868         * tree-inline.c (expand_call_inline): Do not check that destination
1869         node is analyzed.
1870         (optimize_inline_calls): Assert that destination node is analyzed.
1871         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
1872         not call tree_lowering_passes.
1873         * cgraph.h (cgraph_analyze_function): Declare.
1874         * cgraphunit.c (cgraph_analyze_function): Make public.
1875
1876 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
1877
1878         * config/sparc/sparc-opts.h: New.
1879         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
1880         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
1881         (sparc_option_override): Store processor_type enumeration rather
1882         than string in cpu_default.  Remove name and enumeration from
1883         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
1884         without using sparc_select.  Use target_flags_explicit instead of
1885         fpu_option_set.
1886         * config/sparc/sparc.h (enum processor_type): Move to
1887         sparc-opts.h.
1888         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
1889         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
1890         HeaderInclude entry.
1891         (mcpu=, mtune=): Use Var and Enum.
1892         (sparc_processor_type): New Enum and EnumValue entries.
1893
1894 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1895             Iain Sandoe  <iains@gcc.gnu.org>
1896
1897         PR target/48245
1898         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
1899
1900 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
1901
1902         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
1903         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
1904         Insert new statements at it in lieu of STMT.
1905         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
1906         * tree-vect-stmts.c (vectorizable_store): Likewise.
1907         (vectorizable_load): Likewise.
1908
1909 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
1910
1911         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
1912         (divtf3): Ditto.
1913         (multf3): Ditto.
1914         (subtf3): Ditto.
1915
1916 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1917
1918         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1919         unaligned 256bit load/store.
1920         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1921         (*avx_movdqu<avxmodesuffix>): Likewise.
1922
1923 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1924
1925         PR target/48288
1926         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
1927         * config/pa/pa.md (iordi3): Use new predicate in expander.
1928         (iorsi3): Likewise.
1929
1930 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
1931
1932         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
1933         FUNCTION_VALUE_REGNO_P): Remove macros.
1934         * config/mips/mips-protos.h (mips_function_value): Remove.
1935         * config/mips/mips.c (mips_function_value): Rename to...
1936         (mips_function_value_1): ... this. Make static.  Handle receiving
1937         the function type in 'fn_decl_or_type' argument.
1938         (mips_function_value, mips_libcall_value,
1939         mips_function_value_regno_p): New function.
1940         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1941         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1942
1943 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1944
1945         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1946         and -mavx256-split-unaligned-store.
1947         (ix86_option_override_internal): Split 32-byte AVX unaligned
1948         load/store by default.
1949         (ix86_avx256_split_vector_move_misalign): New.
1950         (ix86_expand_vector_move_misalign): Use it.
1951
1952         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1953         -mavx256-split-unaligned-store.
1954
1955         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1956         256bit load/store.  Generate unaligned store on misaligned memory
1957         operand.
1958         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1959         256bit load/store.
1960         (*avx_movdqu<avxmodesuffix>): Likewise.
1961
1962         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1963         -mavx256-split-unaligned-store.
1964
1965 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
1966
1967         PR target/38598
1968         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
1969         Update commentary.
1970
1971 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
1972
1973         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
1974         opno arguments with an expand_operand.  Use create_input_operand.
1975         (mips_prepare_builtin_target): Delete.
1976         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
1977         functions.
1978         (mips_expand_builtin_direct): Use create_output_operand and
1979         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
1980         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
1981         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
1982
1983 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
1984
1985         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
1986         function.
1987         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1988
1989 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
1990
1991         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
1992         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
1993         basic blocks and call commit_edge_insertions directly.
1994         (fixup_abnormal_edges): Move from here to...
1995         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
1996         on the edges and return whether some have actually been inserted.
1997         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
1998         compensation code.
1999
2000 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
2001
2002         PR rtl-optimization/48144
2003         * sel-sched-ir.c (merge_history_vect): Factor out from ...
2004         (merge_expr_data): ... here.
2005         (av_set_intersect): Rename to av_set_code_motion_filter.
2006         Update all callers.  Call merge_history_vect when an expression
2007         is found in both sets.
2008         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
2009
2010 2011-03-26  Alan Modra  <amodra@gmail.com>
2011
2012         * config/rs6000/predicates.md (word_offset_memref_op): Handle
2013         cmodel medium addresses.
2014         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
2015         64-bit gpr loads and stores.
2016         (rs6000_secondary_reload_ppc64): New function.
2017         * config/rs6000/rs6000-protos.h: Declare it.
2018         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
2019
2020 2011-03-26  Alan Modra  <amodra@gmail.com>
2021
2022         PR target/47487
2023         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
2024         GNU Go in traceback table.
2025
2026 2011-03-25  Richard Henderson  <rth@redhat.com>
2027
2028         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
2029         if there are exactly 6 operands.
2030         (set_storage_via_setmem): Similarly.
2031
2032 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2033
2034         * collect2.c (write_c_file_stat): Handle backslash
2035         as right-hand directory separator.
2036         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
2037         checking just for slash.
2038         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
2039         instead of checking for trailing slash.
2040         * gcc.c (record_temp_file): Use filename_cmp instead
2041         of strcmp.
2042         (do_spec_1): Likewise.
2043         (replace_outfile_spec_function): Likewise.
2044         (is_directory): Use filename_ncmp instead of strncmp.
2045         (print_multilib_info): Likewise.
2046         * gcov.c (find_source): Use filename_cmp instead
2047         instead of strcmp.
2048         (make_gcov_file_name): Fix order of slash/backslash
2049         checks.
2050         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
2051         (add_standard_paths): Likewise.
2052         * mips-tfile.c (saber_stop): Handle backslash.
2053         * prefix.c (update_path): Use filename_ncmp instead of
2054         strncmp.
2055         * profile.c (output_location): Use filename_cmp instead
2056         of strcmp.
2057         * read-md.c (handle_toplevel_file): Handle backslash.
2058         * tlink.c (frob_extension):  Likewise.
2059         * tree-cfg.c (same_line_p): Use filename_cmp instead of
2060         strcmp.
2061         * tree-dump.c (dequeue_and_dump): Handle backslash.
2062         * tree.c (get_file_function_name): Likewise.
2063         * gengtype.c (read_input_list): Likewise.
2064         (get_file_realbasename): Likewise.
2065         (get_output_file_with_visibility): Use filename_cmp
2066         instead of strcmp.
2067
2068 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
2069
2070         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
2071         case to VFPv1.
2072
2073 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
2074
2075         * fold-const.c (expr_location_or): New function.
2076         (fold_truth_not_expr): Call it.
2077
2078 2011-03-25  Jeff Law  <law@redhat.com>
2079
2080         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
2081         va_end.
2082         * c-family/c-common.c (def_fn_type): Likewise.
2083         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
2084         * emit-rtl.c (gen_rtvec): Likewise.
2085         * lto/lto-lang.c (def_fn_type): Likewise.
2086
2087 2011-03-25  Richard Guenther  <rguenther@suse.de>
2088
2089         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
2090         also generate copies.
2091         (fini_copy_prop): Handle constant values properly.
2092
2093 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
2094
2095         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
2096         mode size instead of bitsize with DWARF2_ADDR_SIZE.
2097         (hash_loc_operands, compare_loc_operands): Handle
2098         DW_OP_GNU_entry_value.
2099
2100 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2101
2102         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
2103         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
2104         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
2105         comment and use macro TARGET_64BIT_MS_ABI instead.
2106         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
2107         and change default behavior for 32-bit MS_ABI.
2108         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
2109         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
2110         32-bit, too.
2111         (ix86_cfun_abi): Likewise.
2112         (ix86_maybe_switch_abi): Adjust comment.
2113         (init_cumulative_args): Check for bit-ness in MS_ABI case.
2114         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
2115         instead of checking for SYSV_ABI.
2116         (ix86_nsaved_sseregs): Likewise.
2117         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
2118         to 16 bytes.
2119         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
2120         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
2121         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
2122         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
2123         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
2124
2125 2011-03-25  Richard Guenther  <rguenther@suse.de>
2126
2127         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
2128         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2129         (verify_gimple): Remove.
2130         * tree-cfg.c (verify_gimple_call): Merge verification
2131         from verify_stmts.
2132         (verify_gimple_phi): Merge verification from verify_stmts.
2133         (verify_gimple_label): New function.
2134         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
2135         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2136         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
2137         (verify_stmts): Rename to verify_gimple_in_cfg.
2138         (verify_gimple_in_cfg): New function.
2139         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
2140         * tree-ssa.c (verify_ssa): Likewise.
2141         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
2142
2143 2011-03-25  Richard Guenther  <rguenther@suse.de>
2144
2145         * passes.c (init_optimization_passes): Add FRE pass after
2146         early SRA.
2147
2148 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
2149             Andrew Stubbs  <ams@codesourcery.com>
2150
2151         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
2152         for Cortex-A8.
2153         (arm_movdi_vfp_cortexa8): New pattern.
2154         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
2155         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
2156         instructions when tuning for Cortex-A8.  Set attribute "arch".
2157         * config/arm/arm.md: Move include arm-tune.md up a bit.
2158         (define_attr "arch"): Add "onlya8" and "nota8" values.
2159         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
2160
2161 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
2162
2163         PR bootstrap/48282
2164         Revert:
2165         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
2166
2167         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2168         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
2169         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2170         * passes.c (init_optimization_passes): Move
2171         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2172
2173 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2174
2175         * c-typeck.c (comptypes_internal): Replace target
2176         hook call of comp_type_attributes by version in tree.c file.
2177         * gimple.c (gimple_types_compatible_p_1): Likewise.
2178         * tree-ssa.c (useless_type_conversion_p): Likewise.
2179         * tree.c (build_type_attribute_qual_variant): Likewise.
2180         (attribute_value_equal): New static helper function.
2181         (comp_type_attributes): New function.
2182         (merge_attributes): Use attribute_value_equal for comparison.
2183         (attribute_list_contained): Likewise.
2184         * tree.h (comp_type_attributes): New prototype.
2185
2186 2011-03-25  Richard Guenther  <rguenther@suse.de>
2187
2188         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
2189         of complex types at -O0.
2190         (verify_gimple_assign_binary): Likewise.
2191         (verify_gimple_assign_ternary): Likewise.
2192
2193 2011-03-24  Mark Wielaard  <mjw@redhat.com>
2194
2195         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
2196         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2197
2198 2011-03-24  Mark Wielaard  <mjw@redhat.com>
2199
2200         PR debug/48041
2201         * dwarf2out.c (output_abbrev_section): Only write table when
2202         abbrev_die_table_in_use > 1.
2203
2204 2011-02-24  Richard Henderson  <rth@redhat.com>
2205
2206         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
2207         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
2208         (alpha_expand_unaligned_load_words): Use extql.
2209         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
2210         (emit_insxl): Handle all modes for consistency.
2211
2212 2011-02-24  Richard Henderson  <rth@redhat.com>
2213
2214         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
2215         (alpha_expand_unaligned_load): Likewise.
2216         (alpha_expand_unaligned_store): Likewise.
2217         (alpha_expand_unaligned_load_words): Likewise.
2218         (alpha_expand_unaligned_store_words): Likewise.
2219         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
2220         (alpha_split_lock_test_and_set_12): Likewise.
2221         (print_operand, alpha_fold_builtin_extxx): Likewise.
2222         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
2223         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
2224         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
2225         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
2226         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
2227         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
2228         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
2229         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
2230         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
2231         (extwl, extll, extql): Similarly.
2232         (inswh, inslh, insqh): Similarly.
2233         (mskbl, mskwl, mskll, mskql): Similarly.
2234         (mskwh, msklh, mskqh): Similarly.
2235
2236 2011-02-24  Richard Henderson  <rth@redhat.com>
2237
2238         * config/alpha/alpha.md (attribute isa): Add er, ner.
2239         (attribute enabled): Handle them.
2240         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
2241
2242 2011-02-24  Richard Henderson  <rth@redhat.com>
2243
2244         * config/alpha/alpha.md (attribute isa): Add vms.
2245         (attribute enabled): Handle it.
2246         (*movsf): Merge *movsf_{nofix,fix,nofp}.
2247         (*movdf): Merge *movdf_{nofix,fix,nofp}.
2248         (*movtf): Rename from *movtf_internal for consistency.
2249         (*movsi): Merge with *movsi_nt_vms.
2250         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
2251         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
2252         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
2253         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
2254
2255 2011-02-24  Richard Henderson  <rth@redhat.com>
2256
2257         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
2258         (extendqisi2, extendhisi2): Likewise.
2259         (extendqidi2): Simplify BWX/non-BWX expansions.
2260         (extendhidi2): Similarly.
2261
2262 2011-02-24  Richard Henderson  <rth@redhat.com>
2263
2264         * config/alpha/alpha.md (attribute isa): New.
2265         (attribute enabled): New.
2266         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
2267         (zero_extendqisi2, zero_extendqidi2): Similarly.
2268         (zero_extendhisi2, zero_extendhidi2): Similarly.
2269         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
2270
2271 2011-02-24  Richard Henderson  <rth@redhat.com>
2272
2273         * config/alpha/predicates.md (input_operand): Revert last change;
2274         update comment to mention 32-bit VMS rather than Windows.
2275
2276 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
2277
2278         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2279         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
2280         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2281         * passes.c (init_optimization_passes): Move
2282         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2283
2284 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
2285
2286         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
2287
2288 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
2289
2290         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
2291         correctly.
2292
2293 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
2294
2295         PR debug/48204
2296         * simplify-rtx.c (simplify_const_unary_operation): Call
2297         real_convert when changing mode class with FLOAT_EXTEND.
2298
2299 2011-03-24  Nick Clifton  <nickc@redhat.com>
2300
2301         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
2302         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2303         * config/rx/rx.c (rx_option_override): Set align_jumps,
2304         align_loops and align_labels if not set by the user.
2305         (rx_align_for_label): New function.
2306         (rx_max_skip_for_label): New function.
2307         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2308         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2309         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2310         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2311         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
2312
2313 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
2314
2315         PR rtl-optimization/48263
2316         * optabs.c (expand_binop_directly): Reinstate convert_modes code
2317         and original commutative_p handling.  Use maybe_gen_insn.
2318
2319 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2320
2321         * reload.c (find_reloads_subreg_address): Add address_reloaded
2322         parameter and return true there if the full address has been
2323         reloaded.
2324         (find_reloads_toplev): Pass address_reloaded flag.
2325         (find_reloads_address_1): Don't use address_reloaded parameter.
2326
2327 2011-03-24  Jeff Law  <law@redhat.com>
2328
2329         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
2330         unused variable "ann".
2331         (remove_unused_locals): Likewise.
2332
2333         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
2334         statement.
2335
2336         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
2337         after it is freed.
2338
2339 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2340
2341         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2342         for invalid symbolic addresses.
2343         (s390_secondary_reload): Don't use s390_check_symref_alignment for
2344         larl operands.
2345
2346 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
2347
2348         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
2349         the argument in calls to fold_truth_not_expr.
2350
2351 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
2352
2353         * tree.c (record_node_allocation_statistics): New function.
2354         (make_node_stat, copy_node_stat, build_string): Call it.
2355         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
2356         (build1_stat, build_omp_clause): Likewise.
2357
2358 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
2359
2360         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
2361         last commit.
2362
2363 2011-03-24  Richard Guenther  <rguenther@suse.de>
2364
2365         PR tree-optimization/48271
2366         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
2367         blocks that still exist.
2368
2369 2011-03-24  Richard Guenther  <rguenther@suse.de>
2370
2371         PR tree-optimization/48270
2372         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
2373         not free datarefs before ddrs.
2374
2375 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
2376
2377         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
2378         from the address built for a reference with variable offset.
2379
2380 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
2381
2382         PR target/48237
2383         * config/i386/i386.md (*movdf_internal_rex64): Do not split
2384         alternatives that can be handled with movq or movabsq insn.
2385         (*movdf_internal): Disable for !TARGET_64BIT.
2386         (*movdf_internal_nointeger): Ditto.
2387         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
2388
2389 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
2390
2391         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2392         (FUNCTION_ARG_ADVANCE): Likewise.
2393         * tm.texi.in: Change references to them to hook references.
2394         * tm.texi: Regenerate.
2395         * targhooks.c (default_function_arg): Eliminate check for target macro.
2396         (default_function_incoming_arg): Likewise.
2397         (default_function_arg_advance): Likewise.
2398         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
2399         (function_arg_advance): Likewise.
2400         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2401
2402 2011-03-24  Richard Guenther  <rguenther@suse.de>
2403
2404         PR middle-end/48269
2405         * tree-object-size.c (addr_object_size): Do not double-account
2406         for MEM_REF offsets.
2407
2408 2011-03-24  Diego Novillo  <dnovillo@google.com>
2409
2410         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
2411         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
2412         (lto_input_data_block): Move from lto-opts.c.  Make extern.
2413         Update all users.
2414         (lto_input_string): Rename from input_string.  Make extern.
2415         Update all users.
2416         * lto-streamer-out.c (lto_output_string_with_length): Rename from
2417         output_string_with_length.
2418         Output 0 to indicate a non-NULL string.  Update all callers to
2419         not emit 0.
2420         (lto_output_string): Rename from output_string.  Make extern.
2421         Update all users.
2422         (lto_output_decl_state_streams): Make extern.
2423         (lto_output_decl_state_refs): Make extern.
2424         * lto-streamer.h (lto_input_string): Declare.
2425         (lto_input_data_block): Declare.
2426         (lto_output_string): Declare.
2427         (lto_output_string_with_length): Declare.
2428         (lto_output_decl_state_streams): Declare.
2429         (lto_output_decl_state_refs): Declare.
2430
2431 2011-03-24  Richard Guenther  <rguenther@suse.de>
2432
2433         PR tree-optimization/46562
2434         * tree.c (build_invariant_address): New function.
2435         * tree.h (build_invariant_address): Declare.
2436         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
2437         a renamed function moved ...
2438         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
2439         Take valueization callback parameter.
2440         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
2441         * gimple-fold.h: New file.
2442         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
2443         (ccp_fold, fold_const_aggregate_ref,
2444         fold_ctor_reference, fold_nonarray_ctor_reference,
2445         fold_array_ctor_reference, fold_string_cst_ctor_reference,
2446         get_base_constructor): Move ...
2447         * gimple-fold.c: ... here.
2448         (gimple_fold_stmt_to_constant_1): New function
2449         split out from ccp_fold.  Take a valueization callback parameter.
2450         Valueize all operands.
2451         (gimple_fold_stmt_to_constant): New wrapper function.
2452         (fold_const_aggregate_ref_1): New function split out from
2453         fold_const_aggregate_ref.  Take a valueization callback parameter.
2454         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
2455         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
2456         invariant POINTER_PLUS_EXPRs to invariant form.
2457         (vn_valueize): New function.
2458         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
2459         * tree-vrp.c (vrp_valueize): New function.
2460         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
2461         to fold statements to constants.
2462         * tree-ssa-pre.c (eliminate): Properly guard propagation of
2463         function declarations.
2464         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
2465         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
2466
2467 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
2468
2469         * config/h8300/predicates.md (jump_address_operand): Fix register
2470         mode check.
2471
2472 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
2473
2474         * doc/invoke.texi (max-stores-to-sink): Document.
2475         * params.h (MAX_STORES_TO_SINK): Define.
2476         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
2477         if either vectorization or if-conversion is disabled.
2478         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
2479         tree-vect-data-refs.c vect_equal_offsets.
2480         (dr_equal_offsets_p): New function.
2481         (find_data_references_in_bb): Remove static.
2482         * tree-data-ref.h (find_data_references_in_bb): Declare.
2483         (dr_equal_offsets_p): Likewise.
2484         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
2485         (vect_drs_dependent_in_basic_block): Update calls to
2486         vect_equal_offsets.
2487         (vect_check_interleaving): Likewise.
2488         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
2489         (cond_if_else_store_replacement): Rename to...
2490         (cond_if_else_store_replacement_1): ... this.  Change arguments and
2491         documentation.
2492         (cond_if_else_store_replacement): New function.
2493         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
2494         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
2495
2496 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
2497
2498         PR target/46934
2499         * config/arm/arm.md (casesi): Use the gen_int_mode() function
2500         to subtract lower bound instead of GEN_INT().
2501
2502 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
2503
2504         PR other/48179
2505         PR other/48221
2506         PR other/48234
2507         * doc/extend.texi (Alignment): Move section to match order in TOC.
2508         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
2509         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
2510
2511 2011-03-23  Jeff Law  <law@redhat.com>
2512
2513         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
2514         before removing the edge.
2515
2516         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
2517         it may have been freed by redirect_branch_edge or
2518         redirect_edge_succ_nodup.
2519
2520 2011-03-23  Richard Guenther  <rguenther@suse.de>
2521
2522         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
2523         (check_va_list_escapes): Likewise.
2524         (check_all_va_list_escapes): Likewise.
2525
2526 2011-03-23  Richard Guenther  <rguenther@suse.de>
2527
2528         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
2529         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
2530         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
2531         (alias.o): Likewise.
2532         (ipa-type-escape.o): Remove.
2533         (ipa-struct-reorg.o): Likewise.
2534         (GTFILES): Remove ipa-struct-reorg.c.
2535         * alias.c: Do not include ipa-type-escape.h.
2536         * tree-ssa-alias.c: Likewise.
2537         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
2538         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
2539         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
2540         and ipa-type-escape passes.
2541         * tree-pass.h (pass_ipa_type_escape): Remove.
2542         (pass_ipa_struct_reorg): Likewise.
2543         * ipa-struct-reorg.h: Remove.
2544         * ipa-struct-reorg.c: Likewise.
2545         * ipa-type-escape.h: Likewise.
2546         * ipa-type-escape.c: Likewise.
2547         * doc/invoke.texi (-fipa-struct-reorg): Remove.
2548         (--param struct-reorg-cold-struct-ratio): Likewise.
2549         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2550         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2551         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
2552
2553 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2554
2555         * config/s390/2084.md: Enable all insn reservations also for z9_ec
2556         cpu attribute value.
2557         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
2558         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
2559         * config/s390/s390.c (processor_flags_table): New constant array.
2560         (s390_handle_arch_option): Remove.
2561         (s390_handle_option): Remove s390_handle_arch_option invocations
2562         and OPT_mwarn_framesize_ handling.
2563         (s390_option_override): Remove s390_handle_arch_option invocation.
2564         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
2565         warnings.
2566         * config/s390/s390.md (cpu attribute): Add z9_ec value.
2567         * config/s390/s390.opt (s390_tune, s390_arch)
2568         (march=): Replace s390_arch_option enum and values with
2569         processor_type.  Set variable name to s390_arch.  Set
2570         initialization value.
2571         (mtune=): Replace s390_arch_option with processor_type.  Set
2572         variable name to s390_tune.  Set initialization value.
2573
2574 2011-03-23  Julian Brown  <julian@codesourcery.com>
2575
2576         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
2577         accesses which are not naturally aligned.
2578
2579 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
2580
2581         PR target/47553
2582         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
2583
2584 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
2585
2586         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
2587         parameter from "int" to "enum insn_code".
2588         (expand_operand_type): New enum.
2589         (expand_operand): New structure.
2590         (create_expand_operand): New function.
2591         (create_fixed_operand, create_output_operand): Likewise
2592         (create_input_operand, create_convert_operand_to): Likewise.
2593         (create_convert_operand_from, create_address_operand): Likewise.
2594         (create_integer_operand): Likewise.
2595         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
2596         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2597         (expand_insn, expand_jump_insn): Likewise.
2598         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
2599         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
2600         (expand_movstr, expand_builtin___clear_cache): Likewise.
2601         (expand_builtin_lock_release): Likewise.
2602         * explow.c (allocate_dynamic_stack_space): Likewise.
2603         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
2604         and use the default handling in that case.
2605         * expmed.c (check_predicate_volatile_ok): Delete.
2606         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
2607         (emit_cstore): Likewise.
2608         * expr.c (emit_block_move_via_movmem): Likewise.
2609         (set_storage_via_setmem, expand_assignment): Likewise.
2610         (emit_storent_insn, try_casesi): Likewise.
2611         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
2612         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
2613         (expand_vec_shift_expr, expand_binop_directly): Likewise.
2614         (expand_twoval_unop, expand_twoval_binop): Likewise.
2615         (expand_unop_direct, emit_indirect_jump): Likewise.
2616         (emit_conditional_move, vector_compare_rtx): Likewise.
2617         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
2618         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
2619         (expand_sync_lock_test_and_set): Likewise.
2620         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
2621         (emit_unop_insn): Likewise.
2622         (expand_copysign_absneg): Change icode to an insn_code.
2623         (create_convert_operand_from_type): New function.
2624         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
2625         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2626         (expand_insn, expand_jump_insn): Likewise.
2627         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
2628         than const_int_operand for operand 2.
2629
2630 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2631
2632         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
2633         if possible.
2634
2635 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
2636
2637         * emit-rtl.c (emit_pattern_before_noloc): New function.
2638         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
2639         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
2640         (emit_pattern_after_noloc): New function.
2641         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
2642         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
2643
2644 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
2645
2646         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
2647         (__ffsDI2): Likewise.
2648
2649 2011-03-22  Richard Henderson  <rth@redhat.com>
2650
2651         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
2652         of !TARGET_ABI_OPEN_VMS.
2653         (alpha_trampoline_init, alpha_start_function): Likewise.
2654         (alpha_expand_epilogue, alpha_file_start): Likewise.
2655         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
2656         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
2657         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
2658         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
2659         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
2660
2661 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2662
2663         * config/s390/s390-opts.h: New.
2664         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
2665         s390_arch_flags, s390_warn_framesize, s390_stack_size,
2666         s390_stack_guard): Remove.
2667         (s390_handle_arch_option): Return void.  Take enum
2668         s390_arch_option value instead of string and searching array.
2669         (s390_handle_option): Don't assert that global structures are in
2670         use.  Access variables via opts pointer.  Use error_at.  Don't use
2671         sscanf for -mstack-guard= or -mstack-size=.  Update call to
2672         s390_handle_arch_option.
2673         (s390_option_override): Update call to s390_handle_arch_option.
2674         (s390_emit_prologue): Use %d format for s390_stack_size in
2675         diagnostic.  Use %wd for HOST_WIDE_INT.
2676         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
2677         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
2678         * config/s390/s390.opt (config/s390/s390-opts.h): New
2679         HeaderInclude entry.
2680         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
2681         s390_arch_flags, s390_warn_framesize): New Variable entries.
2682         (s390_arch_option): New Enum and EnumValue entries.
2683         (march=): Use Enum instead of Var.
2684         (mstack-guard=, mstack-size=): Use UInteger and Var.
2685         (mtune=): Use Enum.
2686
2687 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2688
2689         * config/score/score.c (score_handle_option): Don't assert that
2690         global structures are in use.  Access target_flags via opts
2691         pointer.  Use value of -march= option to determine target_flags
2692         settings.
2693         * config/score/score.opt (march=): Use Enum.
2694         (score_arch): New Enum and EnumValue entries.
2695
2696 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2697
2698         * config/mep/mep.c (option_mtiny_specified): Remove.
2699         (mep_option_override): Move register handling for -mivc2 from
2700         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
2701         instead of option_mtiny_specified.
2702         (mep_handle_option): Access target_flags via opts pointer.  Don't
2703         assert that global structures are in use.  Defer part of -mivc2
2704         handling and move it to mep_option_override.
2705         * config/mep/mep.opt (IVC2): New Mask entry.
2706         (mivc2): Use Var and Defer instead of Mask.
2707
2708 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2709
2710         * config/v850/v850-opts.h: New.
2711         * config/v850/v850.c (small_memory): Replace with
2712         small_memory_physical_max array.  Make that array static const.
2713         (v850_handle_memory_option): Take integer value of argument.  Take
2714         gcc_options pointer, option text and location.  Return void.
2715         Update for changes to small memory structures.
2716         (v850_handle_option): Access target_flags via opts pointer.  Don't
2717         assert that global structures are in use.  Update calls to
2718         v850_handle_memory_option.
2719         (v850_encode_data_area): Update references to small memory settings.
2720         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
2721         (enum small_memory_type): Move to v850-opts.h.
2722         * config/v850/v850.opt (config/v850/v850-opts.h): New
2723         HeaderInclude entry.
2724         (small_memory_max): New Variable entry.
2725         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
2726         (mtda, mzda): Likewise.
2727
2728 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2729
2730         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
2731         pointer.  Don't assert that global structures are in use.
2732
2733 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2734
2735         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
2736         via opts pointer.  Don't assert that global structures are in use.
2737
2738 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2739
2740         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
2741         (munix=93): Use Var.
2742         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
2743         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
2744         * config/pa/pa-opts.h: New.
2745         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
2746         (pa_handle_option): Don't assert that global structures are in
2747         use.  Access target_flags via opts pointer.  Don't handle
2748         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
2749         OPT_munix_98 here.
2750         (pa_option_override): Handle deferred OPT_mfixed_range_.
2751
2752 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2753
2754         * config/mn10300/mn10300-opts.h: New.
2755         * config/mn10300/mn10300.c (mn10300_processor,
2756         mn10300_tune_string): Remove.
2757         (mn10300_handle_option): Don't assert that global structures are
2758         in use.  Access mn10300_processor via opts pointer.  Don't handle
2759         OPT_mtune_ here.
2760         * config/mn10300/mn10300.h (enum processor_type): Move to
2761         mn10300-opts.h.
2762         (mn10300_processor): Remove.
2763         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
2764         HeaderInclude entry.
2765         (mn10300_processor): New Variable entry.
2766         (mtune=): Use Var.
2767
2768 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2769
2770         * config/microblaze/microblaze.c: Don't include opts.h.
2771         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
2772         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
2773         (mno-clearbss): Use Var and Warn.
2774
2775 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2776
2777         * config/m32r/m32r-opts.h: New.
2778         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
2779         (m32r_handle_option): Don't assert that global structures are in
2780         use.  Access target_flags and m32r_cache_flush_func via opts
2781         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
2782         OPT_mno_flush_trap here.
2783         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
2784         include of m32r-opts.h.
2785         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
2786         HeaderInclude entry.
2787         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
2788         (mmodel=): Use Enum and Var.
2789         (m32r_model): New Enum and EnumValue entries.
2790         (mno-flush-trap): Use Var.
2791         (msdata=): Use Enum and Var.
2792         (m32r_sdata): New Enum and EnumValue entries.
2793
2794 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2795
2796         * config/m32c/m32c.c: Don't include opts.h.
2797         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
2798         m32c_handle_option): Remove.
2799         (m32c_option_override): Check global_options_set.x_target_memregs
2800         instead of target_memregs_set.
2801         * config/m32c/m32c.h (target_memregs): Remove.
2802         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
2803         variable.
2804
2805 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2806
2807         * config/iq2000/iq2000-opts.h: New.
2808         * config/iq2000/iq2000.c: Don't include opts.h.
2809         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
2810         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
2811         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
2812         HeaderInclude entry.
2813         (iq2000_tune): New Variable entry.
2814         (march=): Add comment.  Use Enum.
2815         (iq2000_arch): New Enum and EnumValue entries.
2816         (mcpu=): Use Enum and Var.
2817         (iq2000_tune): New Enum and EnumValue entries.
2818
2819 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2820
2821         * config/ia64/ia64-opts.h: New.
2822         * config/ia64/ia64.c (ia64_tune): Remove.
2823         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
2824         here.  Use error_at.
2825         (ia64_option_override): Handle deferred OPT_mfixed_range_.
2826         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
2827         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
2828         HeaderInclude entry.
2829         (ia64_tune): New Variable entry.
2830         (mfixed-range=): Use Defer and Var.
2831         (mtune=): Use Enum and Var.
2832         (ia64_tune): New Enum and EnumValue entries.
2833
2834 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2835
2836         * config/frv/frv-opts.h: New.
2837         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
2838         frv-opts.h.
2839         (frv_cpu_type): Remove.
2840         * config/frv/frv.c: Don't include opts.h.
2841         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
2842         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
2843         (frv_cpu_type): New Variable entry.
2844         (frv_cpu): New Enum and EnumValue entries.
2845
2846 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2847
2848         * config/cris/cris.c (cris_handle_option): Access target_flags via
2849         opts pointer.  Don't assert that global structures are in use.
2850         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
2851         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
2852
2853 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2854
2855         * config/bfin/bfin-opts.h: New.
2856         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
2857         bfin_si_revision, bfin_workarounds): Remove.
2858         (bfin_cpus): Make static const.
2859         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
2860         not bfin_lib_id_given.
2861         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
2862         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
2863         pointer. Use error_at.  Don't assert that global structures are in use.
2864         * config/bfin/bfin.h: Include bfin-opts.h.
2865         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
2866         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
2867         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
2868         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
2869         entries.
2870
2871 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2872
2873         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
2874         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
2875         or -msoft-float here.
2876         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
2877         -msoft-float and -mhard-float.
2878         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
2879         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2880         msoft-float.
2881         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
2882         -msoft-float.
2883         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
2884         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
2885         not mhard-float.
2886         (LIBGCC_SPEC): Don't handle -msoft-float.
2887         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
2888         -mhard-float.
2889         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2890         msoft-float.
2891         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
2892         -mfloat-abi=*, not -msoft-float and -mhard-float.
2893         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
2894         -msoft-float.
2895         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
2896         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
2897         mhard-float and msoft-float.
2898         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
2899         mfloat-abi=soft in comments, not mhard-float and msoft-float.
2900         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2901         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
2902         mhard-float.
2903         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
2904         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
2905         msoft-float.
2906         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
2907         not mhard-float.
2908         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
2909         not msoft-float.
2910
2911 2011-03-22  Richard Henderson  <rth@redhat.com>
2912
2913         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
2914         TARGET_ABI_WINDOWS_NT.
2915         (alpha_output_function_end_prologue): Likewise.
2916         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
2917         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2918         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
2919         (trap, *movsi_nt_vms): Likewise.
2920         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
2921         (*tablejump_osf_nt_internal): Remove.
2922         * config/alpha/predicates.md (input_operand): Only test Pmode.
2923
2924 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2925
2926         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
2927         via opts pointer.  Use error_at.  Don't assert that global
2928         structures are in use.
2929
2930 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2931
2932         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
2933         (ix86_handle_option): Access ix86_isa_flags and
2934         ix86_isa_flags_explicit via opts pointer.  Don't assert that
2935         global structures are in use.
2936         (ix86_function_specific_save, ix86_function_specific_restore):
2937         Update ix86_isa_flags_explicit field name.
2938         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
2939         (ix86_isa_flags_explicit): Rename TargetSave entry to
2940         x_ix86_isa_flags_explicit.
2941
2942 2011-03-22  Richard Henderson  <rth@redhat.com>
2943
2944         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
2945         (alpha_option_override, direct_return): Likewise.
2946         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
2947         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
2948         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
2949         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2950         (alpha_expand_epilogue, alpha_end_function): Likewise.
2951         (alpha_init_libfuncs): Likewise.
2952         (struct machine_function): Remove unicosmk members.
2953         (print_operand) ['t']: Remove.
2954         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
2955         unicosmk_output_module_name, unicosmk_output_common,
2956         current_section_align, unicosmk_output_text_section_asm_op,
2957         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
2958         unicosmk_section_type_flags, unicosmk_unique_section,
2959         unicosmk_asm_named_section, unicosmk_insert_attributes,
2960         unicosmk_output_align, unicosmk_defer_case_vector,
2961         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
2962         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
2963         unicosmk_output_ssib, unicosmk_add_call_info_word,
2964         unicosmk_extern_head, unicosmk_output_default_externs,
2965         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
2966         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
2967         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
2968         * config/alpha/alpha-protos.h: Update.
2969         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
2970         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
2971         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
2972         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
2973         (*mulsi_se, mulvsi3): Likewise.
2974         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
2975         (*divmodsi_internal, call, call_value, realign): Likewise.
2976         (moddi3, umoddi3): Likewise; remove duplicate expander.
2977         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
2978         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
2979         (*movdi_nofix): Remove r/U alternative.
2980         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
2981         * config/alpha/constraints.md ("U"): Remove.
2982         * config/alpha/predicates.md (call_operand"): Don't test
2983         TARGET_ABI_UNICOSMK.
2984
2985 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2986
2987         * target.def (handle_option): Take gcc_options and
2988         cl_decoded_option pointers and location_t.
2989         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
2990         * doc/tm.texi: Regenerate.
2991         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
2992         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
2993         * lto-opts.c (lto_reissue_options): Generate option structure for
2994         targetm.handle_option call.
2995         * opts.c (target_handle_option): Update call to
2996         targetm.handle_option.  Remove assertions about values now passed
2997         down to hook.
2998         * targhooks.c (default_target_handle_option): New.
2999         * targhooks.h (default_target_handle_option): Declare.
3000         * config/alpha/alpha.c: Include opts.h.
3001         (alpha_handle_option): Update to new hook interface.
3002         * config/arm/arm.c: Include opts.h.
3003         (arm_handle_option): Update to new hook interface.
3004         * config/arm/t-arm (arm.o): Update dependencies.
3005         * config/bfin/bfin.c: Include opts.h.
3006         (bfin_handle_option): Update to new hook interface.
3007         * config/cris/cris.c: Include opts.h.
3008         (cris_handle_option): Update to new hook interface.
3009         * config/frv/frv.c: Include opts.h.
3010         (frv_handle_option): Update to new hook interface.
3011         * config/i386/i386.c: Include opts.h.
3012         (ix86_handle_option): Update to new hook interface.
3013         (ix86_valid_target_attribute_inner_p): Generate option structure
3014         for call to ix86_handle_option.
3015         * config/i386/t-i386 (i386.o): Update dependencies.
3016         * config/ia64/ia64.c: Include opts.h.
3017         (ia64_handle_option): Update to new hook interface.
3018         * config/ia64/t-ia64 (ia64.o): Update dependencies.
3019         * config/iq2000/iq2000.c: Include opts.h.
3020         (iq2000_handle_option): Update to new hook interface.
3021         * config/m32c/m32c.c: Include opts.h.
3022         (m32c_handle_option): Update to new hook interface.
3023         * config/m32r/m32r.c: Include opts.h.
3024         (m32r_handle_option): Update to new hook interface.
3025         * config/m68k/m68k.c: Include opts.h.
3026         (m68k_handle_option): Update to new hook interface.
3027         * config/mep/mep.c: Include opts.h.
3028         (mep_handle_option): Update to new hook interface.
3029         * config/microblaze/microblaze.c: Include opts.h.
3030         (microblaze_handle_option): Update to new hook interface.
3031         * config/mips/mips.c: Include opts.h.
3032         (mips_handle_option): Update to new hook interface.
3033         * config/mn10300/mn10300.c: Include opts.h.
3034         (mn10300_handle_option): Update to new hook interface.
3035         * config/pa/pa.c: Include opts.h.
3036         (pa_handle_option): Update to new hook interface.
3037         * config/pdp11/pdp11.c: Include opts.h.
3038         (pdp11_handle_option): Update to new hook interface.
3039         * config/rs6000/rs6000.c: Include opts.h.
3040         (rs6000_handle_option): Update to new hook interface.
3041         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
3042         * config/rx/rx.c: Include opts.h.
3043         (rx_handle_option): Update to new hook interface.
3044         * config/s390/s390.c: Include opts.h.
3045         (s390_handle_option): Update to new hook interface.
3046         * config/score/score.c: Include opts.h.
3047         (score_handle_option): Update to new hook interface.
3048         * config/sh/sh.c: Include opts.h.
3049         (sh_handle_option): Update to new hook interface.
3050         * config/sparc/sparc.c: Include opts.h.
3051         (sparc_handle_option): Update to new hook interface.
3052         * config/v850/v850.c: Include opts.h.
3053         (v850_handle_option): Update to new hook interface.
3054
3055 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3056
3057         * gcc.c (driver_unknown_option_callback): Only permit and save
3058         unknown -Wno- options.
3059         (driver_wrong_lang_callback): Save options directly instead of via
3060         driver_unknown_option_callback.
3061
3062 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3063
3064         * combine.c (simplify_set): Try harder to find the best CC mode when
3065         simplifying a nested COMPARE on the RHS.
3066
3067 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3068
3069         * config/alpha/gnu.h: Remove.
3070         * config/arc: Remove directory.
3071         * config/arm/netbsd.h: Remove.
3072         * config/arm/t-pe: Remove.
3073         * config/crx: Remove directory.
3074         * config/i386/netbsd.h: Remove.
3075         * config/m68hc11: Remove directory.
3076         * config/m68k/uclinux-oldabi.h: Remove.
3077         * config/mcore/mcore-pe.h: Remove.
3078         * config/mcore/t-mcore-pe: Remove.
3079         * config/netbsd-aout.h: Remove.
3080         * config/rs6000/gnu.h: Remove.
3081         * config/sh/sh-symbian.h: Remove.
3082         * config/sh/symbian-base.c: Remove.
3083         * config/sh/symbian-c.c: Remove.
3084         * config/sh/symbian-cxx.c: Remove.
3085         * config/sh/symbian-post.h: Remove.
3086         * config/sh/symbian-pre.h: Remove.
3087         * config/sh/t-symbian: Remove.
3088         * config/svr3.h: Remove.
3089         * config/vax/netbsd.h: Remove.
3090         * config.build: Don't handle i[34567]86-*-pe.
3091         * config.gcc: Remove handling of deprecations for most deprecated
3092         targets.
3093         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
3094         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
3095         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
3096         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
3097         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
3098         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
3099         Remove cases.
3100         * config.host: Don't handle i[34567]86-*-pe.
3101         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
3102         (ASM_SPEC32): Don't handle -mcall-gnu.
3103         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
3104         -mcall-gnu.
3105         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
3106         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
3107         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
3108         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
3109         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
3110         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
3111         conditional on SYMBIAN.
3112         * configure.ac: Don't handle powerpc*-*-gnu*.
3113         * configure: Regenerate.
3114         * doc/extend.texi (interrupt attribute): Don't mention CRX.
3115         * doc/install-old.texi (m6811, m6812): Don't mention.
3116         * doc/install.texi (arc-*-elf*): Don't document multilib option.
3117         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
3118         (m68k-uclinuxoldabi): Don't mention.
3119         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
3120         Remove.
3121         (-mcall-gnu): Remove.
3122         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
3123         families): Remove constraint documentation.
3124
3125 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
3126
3127         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
3128         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
3129         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3130
3131 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
3132
3133         * config/avr/avr-protos.h (expand_epilogue): Change prototype
3134         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
3135         * config/avr/avr.c (init_cumulative_args)
3136         (avr_function_arg_advance): Use it.
3137         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
3138         sibcall epilogues.
3139         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
3140         (avr_function_ok_for_sibcall): ...this new function.
3141         (avr_lookup_function_attribute1): New static Function.
3142         (avr_naked_function_p, interrupt_function_p)
3143         (signal_function_p, avr_OS_task_function_p)
3144         (avr_OS_main_function_p): Use it.
3145         * config/avr/avr.md ("sibcall", "sibcall_value")
3146         ("sibcall_epilogue"): New expander.
3147         ("*call_insn", "*call_value_insn"): New insn.
3148         ("call_insn", "call_value_insn"): Remove
3149         ("call", "call_value", "epilogue"): Change expander to handle
3150         sibling calls.
3151
3152 2011-03-21  Nick Clifton  <nickc@redhat.com>
3153
3154         * doc/invoke.texi (Overall Options): Move closing brace to end of
3155         options list.
3156         (Optimization Options): Add missing @gol.
3157         (Directory Options): Likewise.
3158         (i386 and x86-64 Options): Likewise.
3159         (RS6000 and PowerPC Options): Likewise.
3160         (i386 and x86-64 Windows Options): Likewise.
3161         (V850 Options): Add text missing from descriptions.
3162
3163 2011-03-22  Richard Henderson  <rth@redhat.com>
3164
3165         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
3166         (avr_incoming_return_addr_rtx): New.
3167         (emit_push_byte): New.
3168         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
3169         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
3170         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
3171         (emit_pop_byte): New.
3172         (expand_epilogue): Use it.  Pop frame pointer by bytes.
3173         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
3174         (INCOMING_RETURN_ADDR_RTX): New.
3175         (INCOMING_FRAME_SP_OFFSET): New.
3176         (ARG_POINTER_CFA_OFFSET): New.
3177         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
3178         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
3179         (pophi): Remove.
3180
3181         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
3182
3183 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
3184
3185         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3186         (FUNCTION_ARG_ADVANCE): Likewise.
3187         * tm.texi.in: Change references to them to hook references.
3188         * tm.texi: Regenerate.
3189         * targhooks.c (default_function_arg): Eliminate check for target
3190         macro.
3191         (default_function_incoming_arg): Likewise.
3192         (default_function_arg_advance): Likewise.
3193         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3194         (function_arg_advance): Likewise.
3195         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3196
3197 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
3198
3199         * tree.c (build_call_1): New function.
3200         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
3201
3202 2011-03-22  Richard Guenther  <rguenther@suse.de>
3203
3204         PR tree-optimization/48228
3205         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3206         for single-arg PHIs.
3207
3208 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
3209
3210         PR rtl-optimization/48143
3211         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
3212         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
3213         sse2_cvtps2pd): Likewise.
3214
3215 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3216
3217         * recog.c (canonicalize_change_group): Use validate_unshare_change.
3218
3219 2011-03-22  Richard Guenther  <rguenther@suse.de>
3220
3221         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
3222         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
3223         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
3224         and REALIGN_LOAD_EXPR.
3225         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
3226         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
3227         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
3228         DOT_PROD_EXPR case ...
3229         (expand_expr_real_2): ... here.
3230         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
3231         and REALIGN_LOAD_EXPR.
3232         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
3233         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
3234         (vect_create_epilog_for_reduction): Likewise.
3235         (vectorizable_reduction): Likewise.
3236         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
3237         * tree-vect-stmts.c (vectorizable_load): Likewise.
3238
3239 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3240
3241         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
3242
3243 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3244
3245         * config/s390/s390.c (s390_delegitimize_address): Fix offset
3246         handling for PLTOFF/GOTOFF.
3247
3248 2011-03-22  Nick Clifton  <nickc@redhat.com>
3249
3250         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3251         trailing backslash from the end of the macro definition.
3252
3253 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3254
3255         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
3256         and PLT unspecs.
3257
3258 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
3259
3260         * expr.h (prepare_operand): Move to...
3261         * optabs.h (prepare_operand): ...here and change the insn code
3262         parameter from "int" to "enum insn_code".
3263         (insn_operand_matches): Declare.
3264         * expr.c (init_expr_target): Use insn_operand_matches.
3265         (compress_float_constant): Likewise.
3266         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
3267         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
3268         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
3269         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
3270         Likewise.
3271         (gen_cond_trap): Likewise.
3272         (prepare_operand): Likewise.  Change icode to an insn_code.
3273         (insn_operand_matches): New function.
3274         * reload.c (find_reloads_address_1): Use insn_operand_matches.
3275         * reload1.c (gen_reload): Likewise.
3276         * targhooks.c (default_secondary_reload): Likewise.
3277
3278 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
3279
3280         * config/alpha/alpha.md (unspec): New define_c_enum.
3281         (unspecv): Ditto.
3282
3283 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
3284
3285         PR debug/48214
3286         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
3287         between a call and its CALL_ARG_LOCATION note.
3288
3289 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
3290
3291         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
3292
3293 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
3294
3295         PR c/42544
3296         PR c/48197
3297         * c-common.c (shorten_compare): If primopN is first sign-extended
3298         to opN and then zero-extended to result type, set primopN to opN.
3299
3300 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
3301
3302         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
3303         for barrier handlers.
3304
3305 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3306
3307         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
3308         UNSPEC constants to be in the unspec enumeration, and redefine
3309         all UNSPECV constants to be in the unspecv enumeration, so that
3310         dumps print which unspec/unspec_volatile this is.
3311         * config/rs6000/vector.md (UNSPEC_*): Ditto.
3312         * config/rs6000/paired.md (UNSPEC_*): Ditto.
3313         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
3314         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
3315         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
3316
3317         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
3318         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
3319         UNSPECV_LWSYNC, since these are used as unspec_volatile.
3320         * config/rs6000/sync.md (isync, lwsync): Ditto.
3321
3322 2011-03-21  Richard Guenther  <rguenther@suse.de>
3323
3324         * params.def (lto-min-partition): Fix typo.
3325
3326 2011-03-21  Richard Guenther  <rguenther@suse.de>
3327
3328         PR c/47939
3329         * c-decl.c (grokdeclarator): Drop to the main variant only
3330         for array types.  Drop flag_gen_aux_info check.
3331
3332 2011-03-21  Richard Guenther  <rguenther@suse.de>
3333
3334         PR translation/47911
3335         * params.def (lto-partitions): Fix typo.
3336         (lto-min-partition): Fix wording.
3337
3338 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
3339
3340         * config/rs6000/t-freebsd: Remove duplication from file.
3341
3342 2011-03-21  Richard Guenther  <rguenther@suse.de>
3343
3344         PR middle-end/47661
3345         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
3346
3347 2011-03-21  Richard Guenther  <rguenther@suse.de>
3348
3349         PR lto/48210
3350         * params.def (lto-partitions): Require at least 1 partition.
3351
3352 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3353
3354         * gthr-solaris.h: Remove.
3355         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
3356         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
3357         (LIB_SPEC): Likewise.
3358         * config/sol2.opt (threads): Remove.
3359         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
3360         (sparc*-*-solaris2*): Likewise.
3361         * configure.ac (enable_threads): Enable solaris support.
3362         * configure: Regenerate.
3363         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
3364         * doc/install.texi (Configuration, --enable-threads=lib): Remove
3365         solaris.
3366
3367 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3368
3369         * config.gcc: Obsolete *-*-solaris2.8*.
3370         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3371
3372 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3373
3374         PR bootstrap/48135
3375         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
3376         reference.  Solaris 8 perl works.
3377
3378 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3379
3380         PR bootstrap/48135
3381         * doc/install.texi (Prerequisites): Move jar etc. up.
3382         Explain support library version requirements.
3383
3384 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3385
3386         PR bootstrap/48135
3387         * doc/install.texi (Prerequisites): Move Perl to build
3388         requirements.  Always necessary on Solaris 2 with Sun ld.
3389
3390 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3391
3392         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3393         binutils 2.21.
3394         (Specific, i?86-*-solaris2.[89]): Likewise.
3395         (Specific, i?86-*-solaris2.10): Likewise.
3396         (Specific, mips-sgi-irix6): Likewise.
3397         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3398         Update for binutils 2.21.
3399
3400 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3401
3402         * configure.ac (gcc_cv_lto_plugin): Fix typo.
3403         Allow -fuse-linker-plugin for non-default plugin linker.
3404         * configure: Regenerate.
3405
3406 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3407
3408         PR bootstrap/48167
3409         * gengtype.c (files_rules): Added rule for cp/parser.h.
3410
3411 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
3412
3413         PR target/48213
3414         * config/s390/s390.c (s390_delegitimize_address): Don't call
3415         lowpart_subreg if orig_x has BLKmode.
3416
3417 2011-03-21  Kai Tietz  <ktietz@redhat.com>
3418
3419         PR target/12171
3420         * doc/plugins.texi: Adjust documentation for plugin register_callback.
3421         * tree.h (attribute_spec): Add new member affects_type_identity.
3422         * attribs.c (empty_attribute_table): Adjust attribute_spec
3423         initializers.
3424         * config/alpha/alpha.c: Likewise.
3425         * config/arc/arc.c: Likewise.
3426         * config/arm/arm.c: Likewise.
3427         * config/avr/avr.c: Likewise.
3428         * config/bfin/bfin.c: Likewise.
3429         * config/crx/crx.c: Likewise.
3430         * config/darwin.h: Likewise.
3431         * config/h8300/h8300.c: Likewise.
3432         * config/i386/cygming.h: Likewise.
3433         * config/i386/i386.c: Likewise.
3434         * config/ia64/ia64.c: Likewise.
3435         * config/m32c/m32c.c: Likewise.
3436         * config/m32r/m32r.c: Likewise.
3437         * config/m68hc11/m68hc11.c: Likewise.
3438         * config/m68k/m68k.c: Likewise.
3439         * config/mcore/mcore.c: Likewise.
3440         * config/mep/mep.c: Likewise.
3441         * config/microblaze/microblaze.c: Likewise.
3442         * config/mips/mips.c: Likewise.
3443         * config/rs6000/rs6000.c: Likewise.
3444         * config/rx/rx.c: Likewise.
3445         * config/sh/sh.c: Likewise.
3446         * config/sol2.h: Likewise.
3447         * config/sparc/sparc.c: Likewise.
3448         * config/spu/spu.c: Likewise.
3449         * config/stormy16/stormy16.c: Likewise.
3450         * config/v850/v850.c: Likewise.
3451
3452 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
3453
3454         * simplify-rtx.c (simplify_binary_operation_1): Handle
3455         (xor (and A B) C) case when B and C are both constants.
3456
3457 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
3458
3459         * tree-dfa.c (add_referenced_var): Fix typo in comment.
3460
3461 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
3462
3463         PR bootstrap/48168
3464         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
3465
3466 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
3467
3468         PR rtl-optimization/48156
3469         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3470         assume df and df_lr are not NULL.
3471
3472 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3473
3474         PR debug/48023
3475         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
3476         between a call and its CALL_ARG_LOCATION note.
3477
3478 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
3479
3480         PR debug/48178
3481         * config/sh/sh.c (find_barrier): Don't emit a constant pool
3482         between a call and its corresponding CALL_ARG_LOCATION note.
3483
3484 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
3485
3486         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
3487         instead of loop. Use HARD_REGISTER_NUM_P predicate.
3488         * haifa-sched.c (setup_ref_regs): Ditto.
3489         * caller-save.c (add_used_regs_1): Ditto.
3490         * dse.c (look_for_hardregs): Ditto.
3491         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
3492         * sched-rgn.c (check_live_1): Ditto.
3493
3494 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
3495
3496         * c-decl.c (diagnose_mismatched_decls): Give an error for
3497         redefining a typedef with variably modified type.
3498
3499 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
3500
3501         * c-decl.c (grokfield): Don't allow typedefs for structures or
3502         unions with no tag by default.
3503         * doc/extend.texi (Unnamed Fields): Update.
3504
3505 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
3506
3507         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3508         Rewrite using indirect functions.
3509         (lwp_slwpcb): Ditto.
3510         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
3511         (avx_vinsertf128<mode>): Ditto.
3512
3513 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3514
3515         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
3516         unspecs.
3517
3518 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3519
3520         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
3521         splitting between a call and its corresponding CALL_ARG_LOCATION note.
3522
3523 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3524
3525         PR rtl-optimization/48170
3526         * gcse.c (hoist_code): Remove bogus asserts.
3527
3528 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
3529
3530         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
3531         computation for prologue/epilogue.
3532
3533 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3534
3535         * Makefile.in (check-consistency): Remove.
3536
3537 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
3538
3539         PR debug/48176
3540         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
3541         arange_table_in_use is 0, but either text_section_used or
3542         cold_text_section_used is true.  Don't call it if
3543         !info_section_emitted.
3544
3545 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
3546
3547         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
3548         FUNCTION_VALUE_REGNO_P): Remove.
3549         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
3550         Remove.
3551         * config/avr/avr.c (avr_ret_register): Make static inline.
3552         (avr_function_value_regno_p): New function.
3553         (avr_libcall_value): Make static. Add 'func' argument.
3554         (avr_function_value): Make static. Rename 'func' argument to
3555         'fn_decl_or_type', forward it to avr_libcall_value. Call
3556         avr_ret_register function instead of RET_REGISTER macro.
3557         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3558
3559 2011-03-18  Jason Merrill  <jason@redhat.com>
3560
3561         PR c++/23372
3562         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
3563
3564 2011-03-18  Richard Guenther  <rguenther@suse.de>
3565
3566         * doc/install.texi (--enable-gold): Remove.
3567         (--with-plugin-ld): Document.
3568         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
3569
3570 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
3571
3572         PR middle-end/47790
3573         * expr.c (optimize_bitfield_assignment_op): Revamp to work
3574         again after expansion changes.
3575
3576 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
3577
3578         * combine.c (try_combine): Do simplification only call of
3579         subst() on i2 even when i1 is present. Update comments.
3580
3581 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3582
3583         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
3584         and UNSPEC_PCREL_SYMOFF.
3585
3586 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3587
3588         * config/s390/s390.md: Use define_c_enum for the unspec constant
3589         definitions.
3590
3591 2011-03-18  Richard Henderson  <rth@redhat.com>
3592             Jakub Jelinek  <jakub@redhat.com>
3593
3594         PR bootstrap/48161
3595         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
3596         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
3597
3598 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
3599
3600         PR middle-end/47725
3601         * combine.c (cant_combine_insn_p): Don't check zero/sign
3602         extended hard registers.
3603
3604 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
3605
3606         PR middle-end/47725
3607         * combine.c (cant_combine_insn_p): Check zero/sign extended
3608         hard registers.
3609
3610 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
3611
3612         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3613         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
3614         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
3615         Change return type to bool.
3616         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3617
3618 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
3619
3620         PR debug/48163
3621         * var-tracking.c (prepare_call_arguments): If CALL target
3622         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
3623         pc instead of looking it up using cselib_lookup and use
3624         Pmode for it if x has VOIDmode.
3625         * dwarf2out.c (gen_subprogram_die): If also both first and
3626         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
3627
3628         PR debug/48163
3629         * function.c (assign_parms): For data.passed_pointer parms
3630         use MEM of data.entry_parm instead of data.entry_parm itself
3631         as DECL_INCOMING_RTL.
3632         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
3633         also when passed and declared mode is the same, DECL_RTL
3634         is a MEM with pseudo as address and DECL_INCOMING_RTL is
3635         a MEM too.
3636
3637 2011-03-16  Jeff Law  <law@redhat.com>
3638
3639         PR rtl-optimization/37273
3640         * ira-costs.c (scan_one_insn): Detect constants living in memory and
3641         handle them like argument loads from stack slots.  Do not double
3642         count memory for memory constants and argument loads from stack slots.
3643
3644 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
3645
3646         PR debug/48160
3647         * var-tracking.c (prepare_call_arguments): Check SUBREG.
3648
3649 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
3650
3651         PR target/48171
3652         * config/i386/i386.opt: Add Save to -mavx and -mfma.
3653
3654 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
3655
3656         PR bootstrap/48153
3657         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
3658         if dwarf_strict.
3659         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
3660         Clear call_arg_locations and call_arg_loc_last always.
3661
3662         PR middle-end/48152
3663         * var-tracking.c (prepare_call_arguments): If argument needs to be
3664         passed by reference, adjust argtype and mode.
3665
3666 2011-03-17  Richard Guenther  <rguenther@suse.de>
3667
3668         PR middle-end/48134
3669         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
3670         a value make sure to fold the statement.
3671
3672 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
3673
3674         PR target/43872
3675         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
3676         return condition with !cfun->calls_alloca.
3677
3678 2011-03-17  Richard Guenther  <rguenther@suse.de>
3679
3680         PR bootstrap/48148
3681         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3682         origin for decls in other ltrans units.
3683         (input_varpool_node): Likewise.
3684
3685 2011-03-17  Richard Guenther  <rguenther@suse.de>
3686
3687         PR middle-end/48165
3688         * tree-object-size.c (compute_object_offset): Properly return
3689         the offset operand of MEM_REFs as sizetype.
3690
3691 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
3692
3693         PR rtl-optimization/48141
3694         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3695         * dse.c: Include params.h.
3696         (active_local_stores_len): New variable.
3697         (add_wild_read, dse_step1): Clear it when setting active_local_stores
3698         to NULL.
3699         (record_store, check_mem_read_rtx): Decrease it when removing
3700         from the chain.
3701         (scan_insn): Likewise.  Increase it when adding to chain, if it
3702         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3703         set active_local_stores to NULL before the addition.
3704         * Makefile.in (dse.o): Depend on $(PARAMS_H).
3705
3706         PR rtl-optimization/48141
3707         * dse.c (record_store): If no positions are needed in an insn
3708         that cannot be deleted, at least unchain it from active_local_stores.
3709
3710 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
3711
3712         PR debug/47510
3713         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3714         (lookup_type_die_strip_naming_typedef): ... here.
3715         (get_context_die): Use it.
3716         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3717         the anonymous struct named by the naming typedef.
3718
3719 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3720
3721         PR target/48154
3722         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
3723         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3724
3725 2011-03-16  Jeff Law  <law@redhat.com>
3726
3727         * tree-vrp.c (identify_jump_threads): Slightly simplify type
3728         check for operands of conditional.  Allow type to be a pointer.
3729
3730 2011-03-16  Richard Guenther  <rguenther@suse.de>
3731
3732         PR tree-optimization/48149
3733         * fold-const.c (fold_binary_loc): Fold
3734         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
3735
3736 2011-03-16  Richard Guenther  <rguenther@suse.de>
3737
3738         PR tree-optimization/26134
3739         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
3740         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
3741         (non_rewritable_mem_ref_base): Handle complex type component
3742         accesses, constrain offsets for vector and complex extracts
3743         more properly.
3744
3745 2011-03-16  Richard Guenther  <rguenther@suse.de>
3746
3747         PR tree-optimization/48146
3748         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
3749         operands avoiding the need for renaming.
3750
3751 2011-03-16  Richard Guenther  <rguenther@suse.de>
3752
3753         * gimple-fold.c (maybe_fold_reference): Open-code relevant
3754         constant folding.  Move MEM_REF canonicalization first.
3755         Rely on fold_const_aggregate_ref for initializer folding.
3756         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
3757
3758 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
3759
3760         PR middle-end/48136
3761         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3762         arg0/arg1 or their arguments are always fold converted to matching
3763         types.
3764
3765         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
3766         to nargs.
3767
3768 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3769
3770         PR lto/46944
3771         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
3772         Handle in-tree gold.
3773         (ld_vers): Extract binutils version for gold.
3774         (gcc_cv_ld_hidden): Handle gold here.
3775         (gcc_cv_lto_plugin): Determine level of linker plugin support.
3776         * configure: Regenerate.
3777         * config.in: Regenerate.
3778         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
3779         -fuse-linker-plugin otherwise.
3780         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
3781         (LINK_COMMAND_SPEC): Use it.
3782         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
3783
3784 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
3785
3786         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
3787         * calls.c: Remove debug.h include.
3788         (emit_call_1): Don't call virtual_call_token debug hook.
3789         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
3790         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
3791         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
3792         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
3793         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
3794         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
3795         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
3796         dwarf2out_virtual_call): Remove.
3797         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
3798         copy_call_info and virtual_call hooks.
3799         (dwarf2out_init): Don't initialize vcall_insn_table,
3800         debug_dcall_section and debug_vcall_section.
3801         (prune_unused_types): Don't mark nodes from dcall_table.
3802         (dwarf2out_finish): Don't output dcall or vcall tables.
3803         * final.c (final_scan_insn): Don't call direct_call or
3804         virtual_call debug hooks.
3805         * debug.h (struct gcc_debug_hooks): Remove direct_call,
3806         virtual_call_token, copy_call_info and virtual_call hooks.
3807         (debug_nothing_uid): Remove prototype.
3808         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
3809         copy_call_info and virtual_call hooks.
3810         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3811         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3812         * debug.c (do_nothing_debug_hooks): Likewise.
3813         (debug_nothing_uid): Remove.
3814         * doc/invoke.texi (-fenable-icf-debug): Remove.
3815         * common.opt (-fenable-icf-debug): Likewise.
3816
3817         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
3818         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
3819         call's MEM.  Handle functions returning aggregate through a hidden
3820         first pointer.  For virtual calls add clobbered pc to call arguments
3821         chain.
3822         * dwarf2out.c (gen_subprogram_die): Emit
3823         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
3824         can't be emitted.
3825
3826         PR debug/45882
3827         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
3828         * rtl.h (ENTRY_VALUE_EXP): Define.
3829         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
3830         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3831         * print-rtl.c (print_rtx): Likewise.
3832         * gengtype.c (adjust_field_rtx_def): Likewise.
3833         * var-tracking.c (vt_add_function_parameter): Adjust
3834         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
3835         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
3836         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
3837         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
3838         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
3839
3840         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
3841         Call var_location debug hook even on CALL_INSNs.
3842         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
3843         * rtl.def (ENTRY_VALUE): New.
3844         * dwarf2out.c: Include cfglayout.h.
3845         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3846         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
3847         (struct call_arg_loc_node): New type.
3848         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
3849         tail_call_site_count): New variables.
3850         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
3851         DW_TAG_GNU_call_site_parameter.
3852         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
3853         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
3854         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
3855         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
3856         and DW_AT_GNU_all_source_call_sites.
3857         (mem_loc_descriptor): Handle ENTRY_VALUE.
3858         (add_src_coords_attributes): Don't add enything if
3859         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
3860         (dwarf2out_abstract_function): Save and clear call_arg_location,
3861         call_site_count and tail_call_site_count around dwarf2out_decl call.
3862         (gen_call_site_die): New function.
3863         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
3864         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
3865         (dwarf2out_function_decl): Clear call_arg_locations,
3866         call_arg_loc_last, set call_site_count and tail_call_site_count
3867         to -1 and free block_map.
3868         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
3869         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
3870         followed by any real instructions.
3871         (dwarf2out_begin_function): Set call_site_count and
3872         tail_call_site_count to 0.
3873         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
3874         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
3875         attempt to force a DIE for it and worst case remove the attribute.
3876         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
3877         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
3878         the decl itself.
3879         * var-tracking.c: Include tm_p.h.
3880         (vt_stack_adjustments): For calls call note_register_arguments.
3881         (argument_reg_set): New variable.
3882         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
3883         ensure the VALUE is resolved.
3884         (call_arguments): New variable.
3885         (prepare_call_arguments): New function.
3886         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
3887         (struct expand_loc_callback_data): Add ignore_cur_loc field.
3888         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
3889         always use the best expression.
3890         (vt_expand_loc): Add ignore_cur_loc argument.
3891         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
3892         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
3893         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
3894         note for all calls.
3895         (vt_add_function_parameter): Use cselib_lookup_from_insn.
3896         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
3897         argument.  Don't call cselib_preserve_only_values and
3898         cselib_reset_table.
3899         (note_register_arguments): New function.
3900         (vt_initialize): Compute argument_reg_set.  Call
3901         vt_add_function_parameters before processing basic blocks instead of
3902         afterwards.  For calls call prepare_call_arguments before calling
3903         cselib_process_insn.
3904         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
3905         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
3906         (var-tracking.o): Depend on $(TM_P_H).
3907         * cfglayout.h (insn_scope): New prototype.
3908         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
3909         * cfglayout.c (insn_scope): No longer static.
3910         * insn-notes.def (CALL_ARG_LOCATION): New.
3911         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
3912         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
3913         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
3914         nothing for DECL_EXTERNAL BLOCK_VARS.
3915
3916 2011-03-16  Alan Modra  <amodra@gmail.com>
3917
3918         PR target/45844
3919         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
3920         create invalid offset address for vsx splat insn.
3921         * config/rs6000/predicates.md (splat_input_operand): New.
3922         * config/rs6000/vsx.md (vsx_splat_*): Use it.
3923
3924 2011-03-15  Xinliang David Li  <davidxl@google.com>
3925
3926         PR c/47837
3927         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
3928         (normalize_preds): New function.
3929         (is_use_properly_guarded): Normalize def predicates.
3930
3931 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3932
3933         PR target/46788
3934         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3935         in the output template.
3936
3937 2011-03-15  Richard Guenther  <rguenther@suse.de>
3938
3939         PR middle-end/47650
3940         * tree-pretty-print.c (dump_function_declaration): Properly
3941         dump unprototyped and varargs function types.
3942
3943 2011-03-15  Richard Guenther  <rguenther@suse.de>
3944
3945         PR tree-optimization/13954
3946         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
3947         and friends.
3948
3949 2011-03-15  Richard Guenther  <rguenther@suse.de>
3950
3951         PR tree-optimization/48037
3952         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
3953         selects into BIT_FIELD_REFs.
3954         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
3955         vector select.
3956
3957 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
3958
3959         PR tree-optimization/48129
3960         * builtins.c (fold_builtin_snprintf): Convert to type of
3961         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
3962         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
3963
3964 2011-03-15  Richard Guenther  <rguenther@suse.de>
3965
3966         PR tree-optimization/41490
3967         * tree-ssa-dce.c (propagate_necessity): Handle returns without
3968         value but with VUSE.
3969         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
3970         return statements.
3971         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
3972         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
3973         * tree-tailcall.c (find_tail_calls): Ignore returns.
3974
3975 2011-03-15  Richard Guenther  <rguenther@suse.de>
3976
3977         PR middle-end/48031
3978         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
3979         or variable-indexed array accesses when in gimple form.
3980
3981 2011-03-15  Richard Guenther  <rguenther@suse.de>
3982
3983         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
3984
3985 2011-03-15  Alan Modra  <amodra@gmail.com>
3986
3987         PR target/48032
3988         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3989         presume symbol_refs without a symbol_ref_decl are suitably
3990         aligned, nor other trees we may see here.  Handle anchor symbols.
3991         (legitimate_constant_pool_address_p): Comment.  Add mode param.
3992         Check cmodel=medium addresses.  Adjust all calls.
3993         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3994         creating cmodel=medium optimized access to locals.
3995         * config/rs6000/constraints.md (R): Pass QImode to
3996         legitimate_constant_pool_address_p.
3997         * config/rs6000/predicates.md (input_operand): Pass mode to
3998         legitimate_constant_pool_address_p.
3999         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
4000         Update prototype.
4001
4002 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4003
4004         PR target/48053
4005         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
4006         64-bit constants being loaded into registers other than GPRs such
4007         as loading 0 into a VSX register.
4008
4009 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4010
4011         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
4012
4013 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
4014
4015         PR middle-end/47917
4016         * builtins.c (fold_builtin_snprintf): New function.
4017         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
4018         (fold_builtin_4): Likewise.
4019
4020         PR middle-end/38878
4021         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
4022         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
4023         and C - X == X also strip nops from +/-/p+ operand.
4024         When optimizing -X == C, fold C to arg0's type.
4025
4026         PR debug/47946
4027         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
4028         emit it as add_AT_int instead of add_AT_unsigned.
4029
4030 2011-03-14  Tom Tromey  <tromey@redhat.com>
4031
4032         * unwind-dw2.c: Include sys/sdt.h if it exists.
4033         (_Unwind_DebugHook): Use STAP_PROBE2.
4034         * config.in, configure: Rebuild.
4035         * configure.ac: Check for sys/sdt.h.
4036
4037 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
4038
4039         * config/i386/i386.md (ROUND_FLOOR): New constant.
4040         (ROUND_CEIL): Ditto.
4041         (ROUND_TRUNC): Ditto.
4042         (ROUND_MXCSR): Ditto.
4043         (ROUND_NO_EXC): Ditto.
4044         (rint<mode>2): Use new defines instead of numerical constants.
4045         (floor<mode>2): Ditto.
4046         (ceil<mode>2): Ditto.
4047         (btrunc<mode>2): Ditto.
4048         * config/i386/i386-builtin-types.def: Define ROUND function type
4049         aliases.
4050         * config/i386/i386.c (enum ix86_builtins): Add
4051         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
4052         (struct builtin_description): Add
4053         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
4054         (ix86_expand_sse_round): New static function.
4055         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
4056         function types.
4057         (ix86_builtin_vectorized_function): Handle
4058         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4059
4060 2011-03-14  Tom Tromey  <tromey@redhat.com>
4061
4062         * c-parser.c (c_parser_asm_string_literal): Clear
4063         warn_overlength_strings.
4064
4065 2011-03-14  Tom Tromey  <tromey@redhat.com>
4066
4067         * c-parser.c (disable_extension_diagnostics): Save
4068         warn_overlength_strings.
4069         (restore_extension_diagnostics): Restore warn_overlength_strings.
4070
4071 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
4072
4073         * BASE-VER: Change to 4.7.0.
4074
4075 2011-03-14  Richard Guenther  <rguenther@suse.de>
4076
4077         PR middle-end/48098
4078         * tree.c (build_vector_from_val): Adjust assert to requirements
4079         and reality.
4080
4081 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
4082
4083         PR bootstrap/48102
4084         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
4085
4086 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
4087
4088         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
4089         terms of target_flags_explicit. Adjust copyright year.
4090
4091         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
4092         * config/rs6000/t-freebsd: New file. Add override for
4093         LIB2FUNCS_EXTRA.
4094
4095 2011-03-13  Chris Demetriou  <cgd@google.com>
4096
4097         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
4098         (-fno-diagnostics-show-option): this, to reflect current default.
4099         (-Werror=): Update text about -fno-diagnostics-show-option.
4100
4101 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
4102
4103         PR target/48053
4104         * config/rs6000/predicates.md (easy_vector_constant_add_self,
4105         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
4106         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
4107         mode is not V2DImode or V2DFmode.
4108         (vspltis_constant): Do not handle V2DImode and V2DFmode.
4109         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
4110         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
4111         registers to 0.
4112         (movdi_internal64): Likewise.
4113
4114 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
4115
4116         PR tree-optimization/47127
4117         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
4118         parameter.
4119         (set_cloog_options): Same.
4120         (scop_to_clast): Same.
4121         (print_clast_stmt): Do not call cloog_state_malloc and
4122         cloog_state_free.
4123         (print_generated_program): Same.
4124         (gloog): Same.
4125         * graphite-clast-to-gimple.h (cloog_state): Declared.
4126         (scop_to_clast): Adjust declaration.
4127         * graphite.c (cloog_state): Defined here.
4128         (graphite_initialize): Call cloog_state_malloc.
4129         (graphite_finalize): Call cloog_state_free.
4130
4131 2011-03-11  Jason Merrill  <jason@redhat.com>
4132
4133         * attribs.c (lookup_attribute_spec): Take const_tree.
4134         * tree.h: Adjust.
4135
4136 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
4137
4138         * config/sparc/sparc.c (sparc_option_override): Use
4139         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
4140
4141 2011-03-11  Richard Guenther  <rguenther@suse.de>
4142
4143         PR tree-optimization/48067
4144         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
4145         multiplication result will be only used once on the target
4146         stmt.
4147
4148 2011-03-11  Richard Guenther  <rguenther@suse.de>
4149
4150         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
4151
4152 2011-03-11  Richard Guenther  <rguenther@suse.de>
4153
4154         PR lto/48073
4155         * tree.c (find_decls_types_r): Do not walk types only reachable
4156         from IDENTIFIER_NODEs.
4157
4158 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
4159
4160         PR middle-end/48044
4161         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
4162         all vnode->force_output nodes as needed.
4163
4164 2011-03-11  Jason Merrill  <jason@redhat.com>
4165
4166         PR c++/48069
4167         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
4168         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
4169
4170 2011-03-11  Martin Jambor  <mjambor@suse.cz>
4171
4172         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
4173         cgraph_node.
4174
4175 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
4176
4177         PR tree-optimization/48063
4178         * ipa-inline.c (cgraph_decide_inlining): Don't try to
4179         inline functions called once if !tree_can_inline_p (node->callers).
4180
4181 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
4182
4183         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
4184         extra_objs.
4185         * config/score/score3.c: Delete.
4186         * config/score/score3.h: Delete.
4187         * config/score/mul-div.S: Delete.
4188         * config/score/sfp-machine.h: Add new file.
4189         * config/score/constraints.md: Add new file.
4190         * config/score/t-score-softfp: Add new file.
4191         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
4192         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
4193         (score7_extra_constraint): Delete.
4194         (score7_option_override): Remove unused code.
4195         * config/score/score.c: Remove score3 and score5 define and code.
4196         * config/score/score.h: Remove score3 and score5 define and code.
4197         * config/score/score.md: Remove score3 template and unusual insn.
4198         * config/score/score.opt: Remove score3 and score5 options.
4199
4200 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4201
4202         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
4203         when _HPUX_SOURCE is defined.
4204         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
4205
4206 2011-03-10  Jason Merrill  <jason@redhat.com>
4207
4208         PR c++/48029
4209         * stor-layout.c (layout_type): Don't set structural equality
4210         on arrays of incomplete type.
4211         * tree.c (type_hash_eq): Handle comparing them properly.
4212
4213 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
4214
4215         PR debug/48043
4216         * config/s390/s390.c (s390_delegitimize_address): Make sure the
4217         result mode matches original rtl mode.
4218
4219 2011-03-10  Nick Clifton  <nickc@redhat.com>
4220
4221         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
4222         (andsi3, andsi3_flags): Fix timings for three operand alternative.
4223
4224 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
4225
4226         PR rtl-optimization/47866
4227         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
4228         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
4229         if target wasn't scalar.
4230         * function.c (assign_stack_temp_for_type): Assert that neither
4231         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
4232         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
4233         macro.
4234         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
4235
4236 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4237
4238         * config/s390/s390-protos.h (s390_label_align): New prototype.
4239         * config/s390/s390.c (s390_label_align): New function.
4240         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
4241
4242 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4243
4244         PR target/47755
4245         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
4246         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
4247         (output_vec_const_move): Ditto.
4248
4249 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
4250
4251         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
4252         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
4253         * config/mips/mips.c (mips_preferred_reload_class): Make static.
4254         Change 'rclass' argument and result type to reg_class_t.
4255         (TARGET_PREFERRED_RELOAD_CLASS): Define.
4256
4257 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
4258
4259         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4260         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
4261         (TARGET_MEMORY_MOVE_COST): Define.
4262         (avr_register_move_cost, avr_memory_move_cost): New Functions.
4263
4264 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
4265
4266         PR debug/47881
4267         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
4268         removed anything.
4269
4270         PR tree-optimization/48022
4271         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
4272         for EQ/NE_EXPR.
4273
4274 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
4275
4276         PR debug/47991
4277         * var-tracking.c (find_use_val): Return NULL for
4278         cui->sets && cui->store_p BLKmode MEMs.
4279
4280 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
4281
4282         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4283         Remove.
4284         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
4285         xstormy16_print_operand_address): Remove.
4286         * config/stormy16/stormy16.c (xstormy16_print_operand,
4287         xstormy16_print_operand_address): Make static.
4288         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4289
4290 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
4291
4292         PR target/47862
4293         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4294         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
4295         before definition.
4296
4297 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
4298
4299         PR bootstrap/48000
4300         * cfgloopmanip.c (fix_bb_placements): Return immediately
4301         if FROM is BASE_LOOP's header.
4302
4303 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
4304
4305         * gimplify.c (gimplify_function_tree): Fix building calls
4306         to __builtin_return_address.
4307
4308 2011-03-07  Alan Modra  <amodra@gmail.com>
4309
4310         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
4311         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
4312         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
4313         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
4314         return_mode args.
4315         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
4316         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
4317         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
4318         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
4319         * config/rs6000/rs6000.c
4320         (rs6000_elf_end_indicate_exec_stack): Rename to..
4321         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
4322         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
4323         (rs6000_file_start): ..here.
4324         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
4325         file scope variables.
4326         (call_ABI_of_interest): New function.
4327         (init_cumulative_args): Set above vars when function return value
4328         is a float, vector, or small struct.
4329         (rs6000_function_arg_advance_1): Likewise for function args.
4330         (rs6000_va_start): Set rs6000_passes_float if variable arg function
4331         references float args.
4332
4333 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
4334
4335         * doc/cfg.texi: Remove "See" before @ref.
4336         * doc/invoke.texi: Likewise.
4337
4338 2011-03-05  Jason Merrill  <jason@redhat.com>
4339
4340         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
4341
4342 2011-03-05  Anthony Green  <green@moxielogic.com>
4343
4344         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
4345
4346 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
4347
4348         PR rtl-optimization/47899
4349         * cfgloopmanip.c (fix_bb_placements): Fix first argument
4350         to flow_loop_nested_p when moving the loop upward.
4351
4352 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
4353
4354         PR target/47719
4355         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
4356
4357 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
4358
4359         PR tree-optimization/47967
4360         * ipa-cp.c (build_const_val): Return NULL instead of creating
4361         VIEW_CONVERT_EXPR for mismatching sizes.
4362         (ipcp_create_replace_map): Return NULL if build_const_val failed.
4363         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
4364         give up on versioning.
4365
4366 2011-03-05  Alan Modra  <amodra@gmail.com>
4367
4368         PR target/47986
4369         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4370         full cmodel medium/large lo_sum + high addresses.
4371
4372 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4373
4374         * config/s390/s390.c (s390_decompose_address): Reject non-literal
4375         pool references in UNSPEC_LTREL_OFFSET.
4376
4377 2011-03-04  Jan Hubicka  <jh@suse.cz>
4378
4379         PR lto/47497
4380         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
4381         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
4382         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
4383         Add node pointers.
4384         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
4385         cgraph_add_thunk): Add node pointers.
4386         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
4387         associated to right node.
4388         (input_node): Update use of cgraph_same_body_alias
4389         and cgraph_add_thunk.
4390
4391 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
4392
4393         * config/i386/i386.opt (mprefer-avx128): New flag.
4394         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
4395         modes when the flag -mprefer-avx128 is on.
4396
4397 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
4398
4399         * dwarf2out.c (compare_loc_operands): Fix address handling.
4400
4401 2011-03-04  Alan Modra  <amodra@gmail.com>
4402
4403         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
4404
4405 2011-03-04  Richard Guenther  <rguenther@suse.de>
4406
4407         PR middle-end/47968
4408         * expmed.c (extract_bit_field_1): Prefer vector modes that
4409         vec_extract patterns can handle.
4410
4411 2011-03-04  Richard Guenther  <rguenther@suse.de>
4412
4413         PR middle-end/47975
4414         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
4415
4416 2011-03-04  Richard Henderson  <rth@redhat.com>
4417
4418         * explow.c (emit_stack_save): Remove 'after' parameter.
4419         (emit_stack_restore): Likewise.
4420         * expr.h: Update to match.
4421         * builtins.c, calls.c, stmt.c: Likewise.
4422         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
4423         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
4424         * function.c (expand_function_end): Insert the emit_stack_save
4425         sequence before parm_birth_insn instead of after.
4426
4427 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
4428
4429         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
4430         (ssse3_pmaddubsw128): Ditto.
4431         (ssse3_pmaddubsw): Ditto.
4432
4433 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
4434
4435         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
4436
4437 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
4438
4439         PR c/47963
4440         * gimplify.c (omp_add_variable): Only call omp_notice_variable
4441         on TYPE_SIZE_UNIT if it is a DECL.
4442
4443         PR debug/47283
4444         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
4445         first operand is not is_gimple_mem_ref_addr, try to fold it.
4446         If the operand still isn't is_gimple_mem_ref_addr, clear
4447         MEM_EXPR on op0.
4448
4449 2011-03-03  Richard Guenther  <rguenther@suse.de>
4450
4451         PR middle-end/47283
4452         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
4453         match comment.
4454         (refs_may_alias_p_1): For release branches return true if
4455         we are confused by our input.
4456
4457 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4458
4459         * config/s390/s390.c (s390_function_value): Rename to ...
4460         (s390_function_and_libcall_value): ... this.
4461         (s390_function_value): New function.
4462         (s390_libcall_value): New function.
4463         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
4464         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
4465         target macro definitions.
4466         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
4467
4468 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
4469
4470         * config/i386/freebsd64.h (CC1_SPEC): Define.
4471         * config/i386/linux64.h (CC1_SPEC): Define.
4472         * config/i386/x86-64.h (CC1_SPEC): Don't define.
4473
4474 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
4475
4476         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4477         Remove.
4478         * config/stormy16/stormy16.c: Include reload.h.
4479         (xstormy16_memory_move_cost): New function.
4480         (TARGET_MEMORY_MOVE_COST): Define.
4481
4482 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
4483
4484         PR rtl-optimization/47925
4485         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
4486         with side effects.  Remove the more-specific check for volatile asms.
4487
4488 2011-03-02  Alan Modra  <amodra@gmail.com>
4489
4490         PR target/47935
4491         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
4492         toc relative addresses for valid offsets.
4493
4494 2011-03-01  Richard Guenther  <rguenther@suse.de>
4495
4496         PR tree-optimization/47890
4497         * tree-vect-loop.c (get_initial_def_for_induction): Set
4498         related stmt properly.
4499
4500 2011-03-01  Richard Guenther  <rguenther@suse.de>
4501
4502         PR lto/47924
4503         * lto-streamer.c (lto_record_common_node): Also register
4504         the canonical type.
4505
4506 2011-03-01  Richard Guenther  <rguenther@suse.de>
4507
4508         PR lto/46911
4509         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4510         Do not stream DECL_ABSTRACT_ORIGIN.
4511         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4512         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4513         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4514         Do not stream DECL_ABSTRACT_ORIGIN.
4515         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4516         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4517
4518 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
4519
4520         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
4521         FUNCTION_VALUE_REGNO_P): Remove.
4522         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
4523         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
4524         Add 'outgoing' argument.
4525         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
4526         function.
4527         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4528         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4529
4530 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
4531
4532         PR debug/28047
4533         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
4534         (lookup_filename): Likewise.
4535         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
4536
4537 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
4538             Jakub Jelinek  <jakub@redhat.com>
4539
4540         PR middle-end/47893
4541         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
4542         (assign_stack_local_1): Change last argument type to int.
4543         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
4544         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
4545         don't record padding space into frame_space_list nor use those areas.
4546         (assign_stack_local): Adjust caller.
4547         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
4548         of assign_stack_local, pass 0 as last argument.
4549         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
4550         callers.
4551
4552 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
4553
4554         PR debug/47283
4555         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
4556         Use target address_mode and pointer_mode hooks instead of hardcoded
4557         Pmode and ptr_mode.  Handle some simple cases of extending if
4558         POINTERS_EXTEND_UNSIGNED < 0.
4559         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
4560         Call convert_debug_memory_address.
4561         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
4562         convert_debug_memory_address.
4563
4564         PR middle-end/46790
4565         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
4566         * configure: Regenerated.
4567         * config.in: Regenerated.
4568         * varasm.c (default_function_section): Return NULL
4569         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
4570
4571 2011-02-28  Martin Jambor  <mjambor@suse.cz>
4572
4573         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
4574         the description to match the printed values.
4575
4576 2011-02-28  Richard Guenther  <rguenther@suse.de>
4577
4578         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
4579         of the copied scope tree.
4580
4581 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4582
4583         * doc/extend.texi (Function Attributes): Avoid deeply (and
4584         wrongly) nested tables.
4585
4586 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
4587
4588         PR middle-end/47903
4589         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
4590         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
4591         r isn't op0 nor op1.
4592
4593 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
4594
4595         * config/avr/avr.md: Remove magic comment for emacs.
4596
4597 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
4598
4599         PR target/45261
4600         * config/avr/avr.c (avr_option_override): Use error on bad options.
4601         (avr_help): New function.
4602         (TARGET_HELP): Define.
4603
4604 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
4605
4606         PR target/42240
4607         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
4608         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
4609
4610 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
4611
4612         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
4613         (ARM Options): Ditto.
4614         (i386 and x86-64 Options): Ditto.
4615         (RX Options): Ditto.
4616         (SPARC Options): Ditto.
4617
4618 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
4619
4620         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
4621         FreeBSD 6 and later.  Generally use cpu generic.
4622
4623 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
4624
4625         * doc/cpp.texi: Update copyright years.
4626
4627 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
4628
4629         PR target/46898
4630         * config/lm32/lm32.md (ashrsi3): Added needed variable.
4631
4632 2011-02-25  Jon Beniston  <jon@beniston.com>
4633
4634         PR target/46898
4635         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
4636         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
4637         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
4638         (lm32_block_move_inline): Add type cast to remove warning.
4639         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
4640         (gen_int_relational): Move declarations to start of function.
4641
4642 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
4643
4644         PR tree-optimization/45470
4645         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
4646         can throw internally only.
4647         * tree-vect-stmts.c (vectorizable_call): Likewise.
4648
4649 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
4650
4651         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
4652         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4653         * config/stormy16/stormy16-protos.h
4654         (xstormy16_preferred_reload_class): Remove.
4655         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
4656         static. Change 'rclass' argument and return type to reg_class_t.
4657         (TARGET_PREFERRED_RELOAD_CLASS,
4658         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4659
4660 2011-02-24  Richard Guenther  <rguenther@suse.de>
4661
4662         * lto-streamer-in.c (input_bb): Do not find referenced vars
4663         in debug statements.
4664
4665 2011-02-23  Jason Merrill  <jason@redhat.com>
4666
4667         * common.opt (fabi-version): Document v5 and v6.
4668
4669 2011-02-23  Richard Guenther  <rguenther@suse.de>
4670
4671         PR tree-optimization/47849
4672         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
4673
4674 2011-02-23  Jie Zhang  <jie@codesourcery.com>
4675
4676         * opts-common.c (decode_cmdline_option): Print empty string
4677         argument as "" in decoded->orig_option_with_args_text.
4678         * gcc.c (execute): Print empty string argument as ""
4679         in the verbose output.
4680         (do_spec_1): Keep empty string argument.
4681
4682 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
4683
4684         * config.gcc: Declare score-* and crx-* obsolete.
4685
4686 2011-02-23  Jie Zhang  <jie@codesourcery.com>
4687
4688         PR rtl-optimization/47763
4689         * web.c (web_main): Ignore naked clobber when replacing register.
4690
4691 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
4692
4693         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4694         Remove.
4695
4696 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
4697
4698         PR doc/47848
4699         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
4700
4701 2011-02-22  Mike Stump  <mikestump@comcast.net>
4702
4703         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
4704         assembler.
4705         * configure: Regenerate.
4706
4707 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
4708
4709         PR rtl-optimization/46002
4710         * ira-color.c (update_copy_costs): Change class intersection
4711         test to reg_class_contents[] test of 'hard_regno'.
4712
4713 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
4714
4715         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
4716         than Driver option.
4717         * config/hpux11.opt (mt): Likewise.
4718         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
4719         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
4720         * config/vax/elf.opt (mno-asm-pic): Likewise.
4721         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
4722
4723 2011-02-21  Mike Stump  <mikestump@comcast.net>
4724
4725         PR target/47822
4726         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
4727         tree so we can get save the type.
4728         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
4729         for CFString instead of trying to use past the end of the builtins.
4730         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
4731         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
4732         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
4733         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
4734         Rename to darwin_builtin_cfstring.
4735         (darwin_init_cfstring_builtins): Return the built type.
4736
4737 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
4738
4739         PR target/47840
4740         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
4741         (_mm256_insert_epi64): Use _mm_insert_epi64.
4742
4743 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
4744
4745         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4746         * config/stormy16/stormy16-protos.h
4747         (xstormy16_mode_dependent_address_p): Remove.
4748         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
4749         Make static. Change return type to bool. Change argument type to
4750         const_rtx. Remove dead code.
4751         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4752
4753 2011-02-21  Richard Guenther  <rguenther@suse.de>
4754
4755         PR lto/47820
4756         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4757         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4758         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
4759         TUs context.
4760         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4761         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4762
4763 2011-02-20  Richard Guenther  <rguenther@suse.de>
4764
4765         PR lto/47822
4766         * tree.c (free_lang_data_in_decl): Clean builtins from
4767         the TU decl BLOCK_VARS.
4768
4769 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
4770
4771         PR debug/47620
4772         PR debug/47630
4773         * haifa-sched.c (fix_tick_ready): Skip tick computation
4774         for debug insns.
4775
4776 2011-02-19  Richard Guenther  <rguenther@suse.de>
4777
4778         PR lto/47647
4779         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4780         Remove lazy BLOCK_VARS streaming.
4781         (lto_input_ts_block_tree_pointers): Likewise.
4782         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4783
4784 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
4785
4786         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
4787
4788 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
4789
4790         * config/i386/biarch32.h, config/i386/mach.h,
4791         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
4792
4793 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
4794
4795         PR target/47800
4796         * config/i386/i386.md (peephole2 for shift and plus): Use
4797         operands[1] original mode in the first insn.
4798
4799 2011-02-18  Mike Stump  <mikestump@comcast.net>
4800
4801         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
4802
4803 2011-02-18  Jan Hubicka  <jh@suse.cz>
4804
4805         PR middle-end/47788
4806         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
4807         to zero when the function is not inlinable at all.
4808
4809 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4810
4811         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
4812         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4813         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
4814         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
4815         * config/pa/t-pa64: Likewise.
4816         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4817
4818 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
4819
4820         PR driver/47787
4821         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
4822
4823 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4824
4825         PR target/47792
4826         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
4827
4828 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
4829
4830         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4831         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
4832         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
4833         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4834         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
4835         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
4836         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
4837         m32r_load_postinc_p, m32r_store_preinc_predec_p,
4838         m32r_legitimate_address_p): New functions.
4839         * config/m32r/constraints.md (constraint "S"): Don't use
4840         STORE_PREINC_PREDEC_P.
4841         (constraint "U"): Don't use LOAD_POSTINC_P.
4842
4843 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
4844
4845         PR rtl-optimization/46178
4846         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
4847         compute ira_hard_regno_cover_class[].
4848
4849 2011-02-18  Richard Guenther  <rguenther@suse.de>
4850
4851         PR lto/47798
4852         * lto-streamer.h (lto_global_var_decls): Declare.
4853         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
4854         statics for global var processing.
4855
4856 2011-02-18  Richard Guenther  <rguenther@suse.de>
4857
4858         PR tree-optimization/47737
4859         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
4860         edge dominance check.
4861
4862 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
4863
4864         PR debug/47780
4865         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
4866         avoid invalid rtx sharing.
4867
4868 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
4869
4870         * doc/cpp.texi (Obsolete Features): Add background on the
4871         origin of assertions.
4872
4873 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
4874
4875         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
4876         objc_abi == 2.
4877         * config/darwin.c (output_objc_section_asm_op): Added support for
4878         ABI v1 and v2.
4879         (is_objc_metadata): New.
4880         (darwin_objc2_section): New.
4881         (darwin_objc1_section): New.
4882         (machopic_select_section): Added support for ABI v1 and v2.
4883         (darwin_emit_objc_zeroed): New.
4884         (darwin_output_aligned_bss): Detect objc metadata and treat it
4885         appropriately.
4886         (darwin_asm_output_aligned_decl_common): Same.
4887         (darwin_asm_output_aligned_decl_local): Same.
4888         * config/darwin-sections.def: Updated for ABI v1 and v2.
4889         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
4890         compiling Objective-C code for the NeXT runtime, default to using
4891         ABI version 0 for 32-bit, and version 2 for 64-bit.
4892
4893 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4894
4895         * common.opt (optimize_fast): New Variable.
4896         * opts.c (default_options_optimization): Use opts->x_optimize_fast
4897         instead of local variable ofast.
4898
4899 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4900
4901         * doc/invoke.texi (fobjc-abi-version): Documented.
4902         (fobjc-nilcheck): Documented.
4903         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
4904         version.
4905
4906 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4907
4908         PR driver/47390
4909         * common.opt (export-dynamic): New Driver option.
4910         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
4911
4912 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4913
4914         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
4915
4916 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
4917             Jan Hubicka  <jh@suse.cz>
4918
4919         PR debug/47106
4920         PR debug/47402
4921         * cfgexpand.c (account_used_vars_for_block): Remove.
4922         (estimated_stack_frame_size): Use referenced vars.
4923         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
4924         that were referenced in the original function.  Test src_fn
4925         rather than cfun.  Drop redundant get_var_ann.
4926         (setup_one_parameter): Drop redundant get_var_ann.
4927         (declare_return_variable): Likewise.
4928         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
4929         (copy_arguments_for_versioning): Drop redundant get_var_ann.
4930         * ipa-inline.c (compute_inline_parameters): Do not compute
4931         disregard_inline_limits here.
4932         (compute_inlinable_for_current, pass_inlinable): New.
4933         (pass_inline_parameters): Require PROP_referenced_vars.
4934         * cgraphunit.c (cgraph_process_new_functions): Don't run
4935         compute_inline_parameters explicitly unless function is in SSA form.
4936         (cgraph_analyze_function): Set .disregard_inline_limits.
4937         * tree-sra.c (convert_callers): Compute inliner parameters
4938         only for functions already in SSA form.
4939
4940 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4941
4942         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
4943         -mlittle-endian-data.
4944
4945 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4946
4947         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
4948         -mno-fpu, not -fpu and -no-fpu.
4949         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
4950         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
4951
4952 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
4953
4954         PR target/43653
4955         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
4956         input reload with PLUS RTX.
4957
4958 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4959
4960         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
4961         of InverseVar(MDMX).
4962
4963 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4964
4965         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
4966         --m4-340.
4967
4968 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4969
4970         * config/mn10300/mn10300.opt (mno-crt0): New.
4971
4972 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4973
4974         * config/m68k/uclinux.opt (static-libc): New Driver option.
4975
4976 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4977
4978         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
4979
4980 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4981
4982         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
4983         %{muser-extend-enabled}.
4984
4985 2011-02-16  Richard Guenther  <rguenther@suse.de>
4986
4987         PR tree-optimization/47738
4988         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
4989         the TODO from tree_predictive_commoning.
4990
4991 2011-02-15  Jeff Law  <law@redhat.com>
4992
4993         Revert
4994         2011-01-25  Jeff Law  <law@redhat.com>
4995
4996         PR rtl-optimization/37273
4997         * ira-costs.c (scan_one_insn): Detect constants living in memory and
4998         handle them like argument loads from stack slots.  Do not double
4999         count memory for memory constants and argument loads from stack slots.
5000
5001 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
5002
5003         PR middle-end/47725
5004         * combine.c (cant_combine_insn_p): Revert the last change.
5005
5006 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
5007
5008         PR target/47755
5009         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
5010         mode for vector constants.  Remove code that checks for TImode.
5011
5012 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
5013
5014         PR debug/47106
5015         PR debug/47402
5016         * cgraph.h (compute_inline_parameters): Return void.
5017         * ipa-inline.c (compute_inline_parameters): Adjust.
5018
5019 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
5020
5021         PR debug/47106
5022         PR debug/47402
5023         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
5024         rather than decl.
5025         * cfgexpand.c (estimated_stack_frame_size): Likewise.
5026         * ipa-inline.c (compute_inline_parameters): Adjust.
5027
5028 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
5029
5030         PR debug/47106
5031         PR debug/47402
5032         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
5033         Adjust all users.  Pass FN to...
5034         * tree-flow-inline.h (first_referenced_var): ... this.  Add
5035         fn argument.
5036         * ipa-struct-reorg.c: Adjust.
5037         * tree-dfa.c: Adjust.
5038         * tree-into-ssa.c: Adjust.
5039         * tree-sra.c: Adjust.
5040         * tree-ssa-alias.c: Adjust.
5041         * tree-ssa-live.c: Adjust.
5042         * tree-ssa.c: Adjust.
5043         * tree-ssanames.c: Adjust.
5044         * tree-tailcall.c: Adjust.
5045
5046 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
5047
5048         PR debug/47106
5049         PR debug/47402
5050         * tree-flow.h (referenced_var_lookup): Add fn parameter.
5051         Adjust all callers.
5052         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
5053         * tree-flow-inline.h: Adjust.
5054         * gimple-pretty-print.c: Adjust.
5055         * tree-into-ssa.c: Adjust.
5056         * tree-ssa.c: Adjust.
5057         * cfgexpand.c: Adjust.
5058
5059 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
5060
5061         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
5062         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5063         (EXTRA_CONSTRAINT): Delete.
5064         * config/iq2000/constraints.md: New file.
5065         * config/iq2000/iq2000.md: Include it.
5066         (define_insn ""): Delete.
5067         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
5068         unsupported constraint letters from patterns.
5069         (call_value, call_value_internal1): Likewise.
5070         (call_value_multiple_internal1): Likewise.
5071
5072 2011-02-15  Nick Clifton  <nickc@redhat.com>
5073
5074         * config/mn10300/mn10300.c: Include tm-constrs.h.
5075         (struct liw_data): New data structure describing an LIW candidate
5076         instruction.
5077         (extract_bundle): Use struct liw_data.  Allow small integer
5078         operands for some instructions.
5079         (check_liw_constraints): Use struct liw_data.  Remove swapped
5080         parameter.  Add comments describing the checks.  Fix bug when
5081         assigning the source of liw1 to the source of liw2.
5082         (liw_candidate): Delete.  Code moved into extract_bundle.
5083         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
5084         before swapping.
5085         * config/mn10300/predicates.md (liw_operand): New predicate.
5086         Allows registers and small integer constants.
5087         * config/mn10300/constraints.md (O): New constraint.  Accetps
5088         integers in the range -8 to +7 inclusive.
5089         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
5090         for moving a small integer into a register.  Give this alternative
5091         LIW attributes.
5092         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
5093         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
5094         using the J,K,L and M constraints,
5095         (liw): Remove SI mode on second operands to allow for HI and QI
5096         mode values.
5097         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
5098         instruction.
5099
5100 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
5101
5102         PR middle-end/47725
5103         * combine.c (cant_combine_insn_p): Check zero/sign extended
5104         hard registers.
5105
5106 2011-02-15  Richard Guenther  <rguenther@suse.de>
5107
5108         PR tree-optimization/47743
5109         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
5110         for a non-type-compatible VN lookup bail out.
5111
5112 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
5113
5114         * config/fr30/constraints.md: New file.
5115         * config/fr30/fr30.md: Include it.
5116         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
5117         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5118         (EXTRA_CONSTRAINT): Delete.
5119
5120 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
5121
5122         * config/frv/constraints.md: New file.
5123         * config/frv/predicates.md: Include it.
5124         * config/frv/frv.c (reg_class_from_letter): Delete.
5125         (frv_option_override): Don't initialize it.
5126         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
5127         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
5128         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
5129         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5130         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
5131         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5132         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
5133         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
5134         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
5135         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
5136         (REG_CLASS_FROM_CONSTRAINT): Delete.
5137
5138 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
5139
5140         PR middle-end/47581
5141         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
5142         if frame size is 0 in a leaf function.
5143
5144 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5145
5146         PR pch/14940
5147         * config/alpha/host-osf.c: New file.
5148         * config/alpha/x-osf: New file.
5149         * config.host (alpha*-dec-osf*): Use it.
5150
5151 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
5152
5153         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5154         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
5155         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
5156         (rx_mode_dependent_address_p): ...this. Make static. Change argument
5157         type to const_rtx.
5158         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5159
5160 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
5161
5162         * config/stormy16/constraints.md: New file.
5163         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
5164         Use satisfies_constraint_Q and satisfies_constraint_R.
5165         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
5166         Delete.
5167         (xstormy16_legitiamte_address_p): Declare.
5168         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
5169         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5170         (EXTRA_CONSTRAINT): Delete.
5171         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
5172         Un-staticize.
5173         (xstormy16_extra_constraint_p): Delete.
5174
5175 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
5176
5177         PR tree-optimization/46494
5178         * loop-unroll.c (split_edge_and_insert): Adjust comment.
5179         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
5180         (pass_rtl_loop_done): Add TODO_verify_flow.
5181         * fwprop.c (pass_rtl_fwprop): Likewise.
5182         * modulo-sched.c (pass_sms): Likewise.
5183         * tree-ssa-dom.c (pass_dominator): Likewise.
5184         * tree-ssa-loop-ch.c (pass_ch): Likewise.
5185         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
5186         (pass_tree_loop_done): Likewise.
5187         * tree-ssa-pre.c (execute_pre): Likewise.
5188         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
5189         * tree-ssa-sink.c (pass_sink_code): Likewise.
5190         * tree-vrp.c (pass_vrp): Likewise.
5191
5192 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
5193
5194         * config/v850/constraints.md: New file.
5195         * config/v850/v850.md: Include it.
5196         * config/v850/predicates.md (reg_or_0_operand): Use
5197         satisfies_constraint_G.
5198         (special_symbolref_operand): Use satisfies_constraint_K.
5199         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
5200         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
5201         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
5202         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5203         (EXTRA_CONSTRAINT): Delete.
5204         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
5205         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
5206         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
5207
5208 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
5209
5210         PR target/47696
5211         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
5212         description.
5213
5214 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
5215
5216         * config/mcore/constraints.md: New file.
5217         * config/mcore/mcore.md: Include it.
5218         * config/mcore/mcore.c (reg_class_from_letter): Delete.
5219         * config/mcore/mcore.h (reg_class_from_letter): Delete.
5220         (REG_CLASS_FROM_LETTER): Delete.
5221         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
5222         insn_const_int_ok_for_constraint.
5223         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
5224         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
5225         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5226         (EXTRA_CONSTRAINT): Delete.
5227
5228 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5229
5230         PR ada/41929
5231         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
5232         (IS_SIGHANDLER): Define.
5233         (sparc64_is_sighandler): New function, split off from
5234         sparc64_fallback_frame_state.
5235         (sparc_is_sighandler): New function, split off from
5236         sparc_fallback_frame_state.
5237         (sparc64_fallback_frame_state): Merge with ...
5238         (sparc_fallback_frame_state): ... this into ...
5239         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
5240         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
5241         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
5242         stack instead of hardcoded offsets.
5243
5244 2011-02-14  Andriy Gapon  <avg@freebsd.org>
5245
5246         PR target/45808
5247         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
5248
5249 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5250
5251         * configure: Regenerate.
5252
5253 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
5254
5255         PR driver/45731
5256         * gcc.c (asm_options): Correct spec matching --target-help.
5257
5258 2011-02-12  Martin Jambor  <mjambor@suse.cz>
5259
5260         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
5261         to gimple call error.
5262
5263 2011-02-12  Mike Stump  <mikestump@comcast.net>
5264
5265         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
5266         comments in backslash regions.
5267
5268 2011-02-12  Mike Stump  <mikestump@comcast.net>
5269             Jakub Jelinek  <jakub@redhat.com>
5270             Iain Sandoe  <iains@gcc.gnu.org>
5271
5272         PR target/47324
5273         * dwarf2out.c (output_cfa_loc): When required, apply the
5274         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
5275         (output_loc_sequence): Likewise.
5276         (output_loc_operands_raw): Likewise.
5277         (output_loc_sequence_raw): Likewise.
5278         (output_cfa_loc): Likewise.
5279         (output_loc_list): Suppress register number adjustment when
5280         calling output_loc_sequence()
5281         (output_die): Likewise.
5282
5283 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
5284
5285         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5286         Remove macros.
5287         * config/xtensa/xtensa.c (xtensa_register_move_cost,
5288         xtensa_memory_move_cost): New functions.
5289         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
5290
5291 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
5292
5293         PR lto/47225
5294         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
5295         in the current directory.
5296         * configure: Rebuilt.
5297
5298 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
5299
5300         * config/darwin.c (darwin_override_options): Add a hunk missed
5301         from the commit of r168571.  Trim comment line lengths and
5302         correct indents of the preceding block.
5303
5304 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
5305
5306         * gcc.c (driver_handle_option): Concatenate the argument to -F with
5307         the switch.
5308
5309 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
5310
5311         * common.opt (nostartfiles): New Driver option.
5312
5313 2011-02-11  Xinliang David Li  <davidxl@google.com>
5314
5315         PR tree-optimization/47707
5316         * tree-chrec.c (convert_affine_scev): Keep type precision.
5317
5318 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
5319
5320         PR tree-optimization/47420
5321         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
5322
5323 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
5324
5325         PR rtl-optimization/47614
5326         * rtl.h (check_for_inc_dec): Declare.
5327         * dse.c (check_for_inc_dec): Externalize...
5328         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
5329         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
5330
5331 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
5332
5333         PR driver/47678
5334         * gcc.c (main): Do not compile inputs if there were errors in
5335         option handling.
5336         * opts-common.c (read_cmdline_option): Check for wrong language
5337         after other error checks.
5338
5339 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
5340
5341         * cgraph.c: Fix comment typos.
5342         * cgraph.h: Likewise.
5343         * cgraphunit.c: Likewise.
5344         * ipa-cp.c: Likewise.
5345         * ipa-inline.c: Likewise.
5346         * ipa-prop.c: Likewise.
5347         * ipa-pure-const.c: Likewise.
5348         * ipa-ref.c: Likewise.
5349         * ipa-reference.c: Likewise.
5350
5351 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
5352
5353         PR debug/47684
5354         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
5355
5356 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5357
5358         PR testsuite/47400
5359         * doc/sourcebuild.texi (Require Support): Document
5360         dg-require-ascii-locale.
5361
5362 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
5363
5364         * doc/lto.texi (Write summary): Fix missing parentheses.
5365
5366 2011-02-10  DJ Delorie  <dj@redhat.com>
5367
5368         * config/m32c/m32c.c (m32c_option_override): Disable
5369         -fcombine-stack-adjustments until flag value tracking and compare
5370         optimization can be rewritten.
5371
5372 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
5373
5374         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
5375         PROCESSOR_POWER7.
5376         (PROCESSOR_DEFAULT64): Likewise.
5377
5378 2011-02-10  Richard Henderson  <rth@redhat.com>
5379
5380         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
5381         change from 2011-02-03.
5382         * config/rx/rx.c (flags_from_code): Likewise.
5383         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
5384         is valid, n/pz otherwise.
5385         (rx_select_cc_mode): Return CCmode if Y is not zero.
5386
5387 2011-02-10  Richard Guenther  <rguenther@suse.de>
5388
5389         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
5390
5391 2011-02-10  Richard Guenther  <rguenther@suse.de>
5392
5393         PR tree-optimization/47677
5394         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
5395
5396 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
5397
5398         PR target/47665
5399         * combine.c (make_compound_operation): Only change shifts into
5400         multiplication for SCALAR_INT_MODE_P.
5401
5402 2011-02-10  Jie Zhang  <jie@codesourcery.com>
5403
5404         PR testsuite/47622
5405         Revert
5406         2011-02-05  Jie Zhang  <jie@codesourcery.com>
5407         PR debug/42631
5408         * web.c (entry_register): Don't clobber the number of the
5409         first uninitialized reference in used[].
5410
5411 2011-02-09  Richard Guenther  <rguenther@suse.de>
5412
5413         PR tree-optimization/47664
5414         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
5415         all edges again.
5416
5417 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
5418
5419         PR target/46481
5420         PR target/47032
5421         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
5422         PROCESSOR_POWER7.
5423         (PROCESSOR_DEFAULT64): Same.
5424         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
5425
5426 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5427
5428         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
5429
5430 2011-02-09  Martin Jambor  <mjambor@suse.cz>
5431
5432         PR middle-end/45505
5433         * tree-sra.c (struct access): New flags grp_scalar_read and
5434         grp_scalar_write.  Changed description of assignment read and write
5435         flags.
5436         (dump_access): Dump new flags, reorder all of them.
5437         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
5438         to detect multiple scalar reads.
5439         (analyze_access_subtree): Use the new scalar read write flags instead
5440         of the old flags.  Adjusted comments.
5441
5442 2011-02-08  DJ Delorie  <dj@redhat.com>
5443
5444         PR target/47548
5445         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
5446         patterns.
5447
5448 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
5449
5450         * config/m68k/uclinux.opt: New.
5451         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
5452
5453 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
5454
5455         * config/cris/elf.opt (sim): New Driver option.
5456
5457 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
5458
5459         * config/xtensa/elf.opt: New.
5460         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
5461
5462 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
5463
5464         * config/vax/elf.opt: New.
5465         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
5466
5467 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
5468
5469         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
5470
5471 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
5472
5473         * config/gnu-user.opt: New.
5474         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
5475         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
5476         *-*-uclinux*): Use gnu-user.opt.
5477
5478 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
5479
5480         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
5481         * config/i386/gnu.h (CPP_SPEC): Likewise.
5482
5483 2011-02-08  Ian Lance Taylor  <iant@google.com>
5484
5485         * common.opt (fcx-limited-range): Add SetByCombined flag.
5486         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
5487         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
5488         (fassociative-math, freciprocal-math): Likewise.
5489         (funsafe-math-optimizations): Likewise.
5490         * opth-gen.awk: Handle SetByCombined.
5491         * optc-gen.awk: Likewise.
5492         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5493         (set_unsafe_math_optimizations_flags): Likewise.
5494         * doc/options.texi (Option properties): Document SetByCombined.
5495
5496 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
5497
5498         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
5499         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
5500         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
5501         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
5502         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
5503
5504 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
5505
5506         PR tree-optimization/46834
5507         PR tree-optimization/46994
5508         PR tree-optimization/46995
5509         * graphite-sese-to-poly.c (used_outside_reduction): New.
5510         (detect_commutative_reduction): Call used_outside_reduction.
5511         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
5512         translate_scalar_reduction_to_array only when at least one
5513         loop-phi/close-phi tuple has been detected.
5514
5515 2011-02-08  Richard Guenther  <rguenther@suse.de>
5516
5517         PR middle-end/47639
5518         * tree-vect-generic.c (expand_vector_operations_1): Update
5519         stmts here ...
5520         (expand_vector_operations): ... not here.  Cleanup EH info
5521         and the CFG if required.
5522
5523 2011-02-08  Richard Guenther  <rguenther@suse.de>
5524
5525         PR tree-optimization/47641
5526         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
5527         require type compatibility.
5528
5529 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5530
5531         * gimple-low.c (lower_function_body): Don't remove the location of
5532         the return statement here.
5533         (lower_gimple_return): Do it here instead but only if the return
5534         statement is actually used twice.
5535
5536 2011-02-08  Richard Guenther  <rguenther@suse.de>
5537
5538         PR tree-optimization/47632
5539         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
5540         unused up_to_stmt parameter, return whether cfg-cleanup is
5541         necessary, remove EH info properly.
5542         (forward_propagate_into_gimple_cond): Adjust caller.
5543         (forward_propagate_into_cond): Likewise.
5544         (forward_propagate_comparison): Likewise.
5545         (tree_ssa_forward_propagate_single_use_vars): Make
5546         forward_propagate_comparison case similar to the two others.
5547
5548 2011-02-08  Nick Clifton  <nickc@redhat.com>
5549
5550         * config/mn10300/mn10300.opt (mliw): New command line option.
5551         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
5552         (liw_bundling): New automaton.
5553         (liw): New attribute.
5554         (liw_op): New attribute.
5555         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
5556         (movsi_internal): Add LIW attributes.
5557         (andsi3): Likewise.
5558         (iorsi3): Likewise.
5559         (xorsi3): Likewise.
5560         (addsi3): Separate register and immediate alternatives.
5561         Add LIW attributes.
5562         (subsi3): Likewise.
5563         (cmpsi): Likewise.
5564         (aslsi3): Likewise.
5565         (lshrsi3): Likewise.
5566         (ashrsi3): Likewise.
5567         (liw): New pattern.
5568         * config/mn10300/mn10300.c (liw_op_names): New
5569         (mn10300_print_operand): Handle 'W' operand descriptor.
5570         (extract_bundle): New function.
5571         (check_liw_constraints): New function.
5572         (liw_candidate): New function.
5573         (mn10300_bundle_liw): New function.
5574         (mn10300_reorg): New function.
5575         (TARGET_MACHINE_DEPENDENT_REORG): Define.
5576         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
5577         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
5578         __LIW__ or __NO_LIW__.
5579         * doc/invoke.texi: Describe the -mliw command line option.
5580
5581 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5582
5583         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
5584         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5585         pthread_mutex_unlock): Remove.
5586         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
5587         * config/pa/t-pa64: Likewise.
5588         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
5589         shared libc if not linking against libpthread.
5590         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5591
5592 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
5593
5594         PR target/47558
5595         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
5596         on 10.6 and later to ensure that we always use the unwinder from
5597         the system.  Only add -no_compact_unwind when tarteting darwin
5598         10.6 or later.
5599
5600 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
5601
5602         PR target/46997
5603         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
5604         (vec_interleave_lowv2sf): Ditto.
5605         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
5606         (vec_extract_oddv2sf): Ditto.
5607
5608 2011-02-07  Mike Stump  <mikestump@comcast.net>
5609
5610         PR target/42333
5611         Add __ieee_divdc3 entry point.
5612         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
5613         entry point.
5614         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
5615         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
5616         * config/darwin.c (darwin_rename_builtins): Add.
5617         * config/darwin-protos.h (darwin_rename_builtins): Add.
5618
5619 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
5620
5621         PR target/47636
5622         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
5623         for the condition.
5624
5625 2011-02-07  Mike Stump  <mikestump@comcast.net>
5626
5627         * config/darwin.opt (mmacosx-version-min): Update default OS version.
5628
5629 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
5630
5631         PR target/47534
5632         * config/avr/libgcc.S (exit): Move .endfunc
5633
5634 2011-02-07  Richard Guenther  <rguenther@suse.de>
5635
5636         PR tree-optimization/47615
5637         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
5638         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
5639         (run_scc_vn): Initialize it.
5640         (visit_reference_op_load): Use it.
5641         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
5642
5643 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5644
5645         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
5646         DImode trapping arithmetic libfuncs.
5647
5648 2011-02-07  Richard Guenther  <rguenther@suse.de>
5649
5650         PR tree-optimization/47621
5651         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
5652         two duplicates ...
5653         (execute_update_addresses_taken): ... here.  Make it more
5654         conservative in what we accept.
5655
5656 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
5657
5658         * config/sparc/freebsd.h (ASM_SPEC): Define.
5659         * config/sparc/vxworks.h (ASM_SPEC): Define.
5660
5661 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
5662
5663         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
5664
5665 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
5666
5667         * doc/invoke.texi: Remove reference to compiler internals from
5668         user documentation.
5669
5670         * reg-notes.def: Remove REG_VALUE_PROFILE.
5671         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
5672
5673 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
5674
5675         PR middle-end/47610
5676         * varasm.c (default_section_type_flags): If decl is NULL,
5677         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
5678
5679 2011-02-05  Jie Zhang  <jie@codesourcery.com>
5680
5681         PR debug/42631
5682         * web.c (entry_register): Don't clobber the number of the
5683         first uninitialized reference in used[].
5684
5685 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
5686
5687         PR tree-optimization/46194
5688         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
5689         (build_classic_dist_vector_1): Do not represent classic distance
5690         vectors when the access functions are variating in different loops.
5691
5692 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
5693
5694         * config/mips/iris6.opt: New.
5695         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
5696
5697 2011-02-04  Richard Henderson  <rth@redhat.com>
5698             Steve Ellcey  <sje@cup.hp.com>
5699
5700         PR target/46997
5701         * config/ia64/predicates.md (mux1_brcst_element): New.
5702         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
5703         * config/ia64/ia64.c (ia64_unpack_assemble): New.
5704         (ia64_unpack_sign): New.
5705         (ia64_expand_unpack): Rewrite using new routines.
5706         (ia64_expand_widen_sum): Ditto.
5707         (ia64_expand_dot_prod_v8qi): Ditto.
5708         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
5709         routines, add endian check.
5710         (pmpy2_even): Rename from pmpy2_r, add endian check.
5711         (pmpy2_odd): Rename from pmpy2_l, add endian check.
5712         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
5713         (vec_widen_smult_hi_v4hi): Ditto.
5714         (vec_widen_umult_lo_v4hi): Ditto.
5715         (vec_widen_umult_hi_v4hi): Ditto.
5716         (mulv2si3): Change endian checks.
5717         (sdot_prodv4hi): Rewrite with new calls.
5718         (udot_prodv4hi): New.
5719         (vec_pack_ssat_v4hi): Add endian check.
5720         (vec_pack_usat_v4hi): Ditto.
5721         (vec_pack_ssat_v2si): Ditto.
5722         (max1_even): Rename from max1_r, add endian check.
5723         (max1_odd): Rename from max1_l, add endian check.
5724         (*mux1_rev): Format change.
5725         (*mux1_mix): Ditto.
5726         (*mux1_shuf): Ditto.
5727         (*mux1_alt): Ditto.
5728         (*mux1_brcst_v8qi): Use new predicate.
5729         (vec_extract_evenv8qi): Remove endian check.
5730         (vec_extract_oddv8qi): Ditto.
5731         (vec_interleave_lowv4hi): Format change.
5732         (vec_interleave_highv4hi): Ditto.
5733         (mix2_even): Rename from mix2_r, add endian check.
5734         (mix2_odd): Rename from mux2_l, add endian check.
5735         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
5736         (vec_extract_evenodd_helper): Format change.
5737         (vec_extract_evenv4hi): Remove endian check.
5738         (vec_extract_oddv4hi): Remove endian check.
5739         (vec_interleave_lowv2si): Format change.
5740         (vec_interleave_highv2si): Format change.
5741         (vec_initv2si): Remove endian check.
5742         (vecinit_v2si): Add endian check.
5743         (reduc_splus_v2sf): Add endian check.
5744         (reduc_smax_v2sf): Ditto.
5745         (reduc_smin_v2sf): Ditto.
5746         (vec_initv2sf): Remove endian check.
5747         (fpack): Add endian check.
5748         (fswap): Add endian check.
5749         (vec_interleave_highv2sf): Add endian check.
5750         (vec_interleave_lowv2sf): Add endian check.
5751         (fmix_lr): Add endian check.
5752         (vec_setv2sf): Format change.
5753         (*vec_extractv2sf_0_be): Use shift to extract operand.
5754         (*vec_extractv2sf_1_be): New.
5755         (vec_pack_trunc_v4hi): Add endian check.
5756         (vec_pack_trunc_v2si): Format change.
5757
5758 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
5759
5760         PR inline-asm/23200
5761         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
5762         do bb, locus and block comparison and disallow loads if it is not set.
5763         (stmt_is_replaceable_p): New function.
5764         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
5765         callers.
5766         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
5767         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
5768         SSA_NAME_DEF_STMT.
5769         * tree-flow.h (stmt_is_replaceable_p): New prototype.
5770
5771 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
5772
5773         * config/rs6000/xilinx.opt: New.
5774         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
5775
5776 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
5777
5778         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
5779
5780 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
5781
5782         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
5783         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5784         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
5785         secondary_reload_info, xtensa_secondary_reload): Remove.
5786         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
5787         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5788         (xtensa_preferred_reload_class): Make static. Change return and
5789         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
5790         Use CONST_DOUBLE_P predicate.
5791         (xtensa_preferred_output_reload_class): New function.
5792         (xtensa_secondary_reload): Make static.
5793
5794 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
5795
5796         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
5797         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
5798         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
5799
5800 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
5801
5802         PR middle-end/31490
5803         * output.h (SECTION_RELRO): Define.
5804         (SECTION_MACH_DEP): Adjust.
5805         (get_variable_section): New prototype.
5806         * varpool.c (varpool_finalize_named_section_flags): New function.
5807         (varpool_assemble_pending_decls): Call it.
5808         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
5809         * cgraphunit.c (cgraph_output_in_order): Call
5810         varpool_finalize_named_section_flags.
5811         * varasm.c (get_section): Allow section flags conflicts between
5812         relro and read-only sections if the section hasn't been declared yet.
5813         Set SECTION_OVERRIDE after diagnosing section type conflict.
5814         (get_variable_section): No longer static.
5815         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
5816         readonly sections that need relocations.
5817         (decl_readonly_section_1): New function.
5818         (decl_readonly_section): Use it.
5819
5820         Revert:
5821         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
5822                     Steve Ellcey  <sje@cup.hp.com>
5823
5824         PR middle-end/31490
5825         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
5826         if section attribute used.
5827
5828 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
5829
5830         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
5831         * config/darwin.c (SECTION_NO_ANCHOR): Define.
5832         (darwin_init_sections): Remove assertion.
5833
5834 2011-02-03  Nick Clifton  <nickc@redhat.com>
5835
5836         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
5837         lt and ge.
5838         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
5839         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
5840         instead of "n" and "pz".
5841         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
5842         CC_FLAG_S.
5843
5844 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
5845
5846         PR target/47312
5847         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
5848         fma, expand FMA_EXPR as fma{,f,l} call.
5849
5850         PR lto/47274
5851         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
5852         copy them into a unsigned char variable and pass address of it to
5853         lto_output_data_stream.
5854
5855         PR target/47564
5856         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
5857         around backend_init_target and lang_dependent_init_target calls.
5858         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
5859         (verify_cgraph_node): Don't call set_cfun here.  Use
5860         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
5861         Set error_found for incorrectly represented calls to thunks.
5862
5863 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
5864
5865         PR debug/43092
5866         PR rtl-optimization/43494
5867         * rtl.h (for_each_inc_dec_fn): New type.
5868         (for_each_inc_dec): Declare.
5869         * rtlanal.c (struct for_each_inc_dec_ops): New type.
5870         (for_each_inc_dec_find_inc_dec): New fn.
5871         (for_each_inc_dec_find_mem): New fn.
5872         (for_each_inc_dec): New fn.
5873         * dse.c (struct insn_size): Remove.
5874         (replace_inc_dec, replace_inc_dec_mem): Remove.
5875         (emit_inc_dec_insn_before): New fn.
5876         (check_for_inc_dec): Use it, along with for_each_inc_dec.
5877         (canon_address): Pass mem modes to cselib_lookup.
5878         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
5879         (cselib_lookup_from_insn): Likewise.
5880         (cselib_subst_to_values): Likewise.
5881         * cselib.c (find_slot_memmode): New var.
5882         (cselib_find_slot): New fn.  Use it instead of
5883         htab_find_slot_with_hash everywhere.
5884         (entry_and_rtx_equal_p): Use find_slot_memmode.
5885         (autoinc_split): New fn.
5886         (rtx_equal_for_cselib_p): Rename and implement in terms of...
5887         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
5888         Deal with autoinc.  Special-case recursion into MEMs.
5889         (cselib_hash_rtx): Likewise.
5890         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
5891         address and MEM modes.
5892         (cselib_subst_to_values): Add memmode, pass it on.
5893         Deal with autoinc.
5894         (cselib_lookup): Add memmode argument, pass it on.
5895         (cselib_lookup_from_insn): Add memmode.
5896         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
5897         (struct cselib_record_autoinc_data): New.
5898         (cselib_record_autoinc_cb): New fn.
5899         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
5900         mode to cselib_lookup.  Reset autoinced REGs here instead of...
5901         (cselib_process_insn): ... here.
5902         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
5903         to cselib_lookup.
5904         (add_uses): Likewise, also to cselib_subst_to_values.
5905         (add_stores): Likewise.
5906         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
5907         cselib_subst_to_values.
5908         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
5909         * gcse.c (do_local_cprop): Adjusted.
5910         * postreload.c (reload_cse_simplify_set): Adjusted.
5911         (reload_cse_simplify_operands): Adjusted.
5912         * sel-sched-dump (debug_mem_addr_value): Pass mode.
5913
5914 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
5915
5916         PR tree-optimization/45122
5917         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
5918         unsafe assumptions when there's more than one loop exit.
5919
5920 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5921
5922         PR target/47272
5923         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
5924         Document using vector double with the load/store builtins, and
5925         that the load/store builtins always use Altivec instructions.
5926
5927         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
5928         to use altivec memory instructions, even on VSX.
5929         (vector_altivec_store_<mode>): Ditto.
5930
5931         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
5932         function.
5933
5934         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5935         V2DF, V2DI support to load/store overloaded builtins.
5936
5937         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
5938         altivec load/store builtins for V2DF/V2DI types.
5939
5940         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5941         set avoid indexed addresses on power6 if -maltivec.
5942         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
5943         vector_altivec_load/vector_altivec_store builtins.
5944         (altivec_expand_st_builtin): Ditto.
5945         (altivec_expand_builtin): Add VSX memory builtins.
5946         (rs6000_init_builtins): Add V2DI types to internal types.
5947         (altivec_init_builtins): Add support for V2DF/V2DI altivec
5948         load/store builtins.
5949         (rs6000_address_for_altivec): Insure memory address is appropriate
5950         for Altivec.
5951
5952         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
5953         vec_vsx_ld and vec_vsx_st.
5954         (vsx_store_<mode>): Ditto.
5955
5956         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
5957         variables to hold long long types for VSX vector memory builtins.
5958         (RS6000_BTI_unsigned_long_long): Ditto.
5959         (long_long_integer_type_internal_node): Ditti.
5960         (long_long_unsigned_type_internal_node): Ditti.
5961
5962         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
5963         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
5964         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
5965
5966         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
5967         short cuts.
5968         (vec_vsx_st): Ditto.
5969
5970 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
5971
5972         * config/pa/pa-hpux10.opt: New.
5973         * config/hpux11.opt (pthread): New Driver option.
5974         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
5975         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
5976
5977 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
5978
5979         * config/ia64/vms.opt: New.
5980         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
5981
5982 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5983
5984         PR target/47580
5985         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
5986         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
5987         generator functions.
5988         (vsx_floatuns<VSi><mode>2): Ditto.
5989         (vsx_fix_trunc<mode><VSi>2): Ditto.
5990         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
5991
5992 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
5993
5994         * config/i386/djgpp.opt (posix): New Driver option.
5995
5996 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
5997
5998         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
5999         Move to the unsupported targets list.
6000
6001 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
6002
6003         PR rtl-optimization/47525
6004         * df-scan.c: Update copyright years.
6005         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
6006         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
6007
6008 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6009
6010         * config/i386/sysv4.h (TARGET_VERSION): Remove.
6011         (SUBTARGET_RETURN_IN_MEMORY): Remove.
6012         (ASM_OUTPUT_ASCII): Remove.
6013         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
6014
6015 2011-02-02  Jeff Law  <law@redhat.com>
6016
6017         PR middle-end/47543
6018         * reload.c (find_reloads_address): Handle reg+d address where both
6019         components are invalid by reloading the entire address.
6020
6021 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
6022             Richard Guenther  <rguenther@suse.de>
6023
6024         PR tree-optimization/40979
6025         PR bootstrap/47044
6026         * passes.c (init_optimization_passes): After LIM call copy_prop
6027         and DCE to clean up.
6028         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
6029
6030 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
6031
6032         PR tree-optimization/47576
6033         PR tree-optimization/47555
6034         * doc/invoke.texi (scev-max-expr-complexity): Documented.
6035         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6036         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
6037         * tree-scalar-evolution.c (follow_ssa_edge): Use
6038         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
6039
6040 2011-02-02  Richard Guenther  <rguenther@suse.de>
6041
6042         PR tree-optimization/47566
6043         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
6044
6045 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
6046
6047         PR debug/47106
6048         PR debug/47402
6049         * tree-inline.c (declare_return_variable): Remove unused caller
6050         variable.
6051
6052         PR debug/47106
6053         PR debug/47402
6054         * tree-flow-inline.h (clear_is_used, is_used_p): New.
6055         * cfgexpand.c (account_used_vars_for_block): Use them.
6056         * tree-nrv.c (tree_nrv): Likewise.
6057         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
6058         (dump_scope_block): Likewise.
6059         (remove_unused_locals): Likewise.
6060
6061         PR debug/47106
6062         PR debug/47402
6063         * tree-inline.c (declare_return_variable): Add result decl to
6064         local decls only once.
6065         * gimple-low.c (record_vars_into): Mark newly-created variables
6066         as referenced.
6067
6068 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
6069
6070         PR debug/47498
6071         PR debug/47501
6072         PR debug/45136
6073         PR debug/45130
6074         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6075         debug insns.
6076         (no_real_insns_p, schedule_block, set_priorities): Drop special
6077         treatment of boundary debug insns.
6078         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6079         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
6080         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6081         (BOUNDARY_DEBUG_INSN_P): Likewise.
6082         (SCHEDULE_DEBUG_INSN_P): Likewise.
6083         * sched-rgn.c (init_ready_list): Drop special treatment of
6084         boundary debug insns.
6085         * final.c (rest_of_clean_state): Clear notes' BB.
6086
6087 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6088
6089         * config/openbsd.opt (assert=): New Driver option.
6090
6091 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6092
6093         * config/i386/nto.opt: New.
6094         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
6095
6096 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6097
6098         * config/i386/netware.opt: New.
6099         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
6100
6101 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6102
6103         * config/interix.opt (posix): New Driver option.
6104
6105 2011-02-01  DJ Delorie  <dj@redhat.com>
6106
6107         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
6108
6109         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
6110         class for A0/A1.
6111
6112 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
6113
6114         PR tree-optimization/47561
6115         * toplev.c (process_options): Print the Graphite flags.  Add
6116         flag_loop_flatten to the list of options requiring Graphite.
6117
6118 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6119
6120         * config/i386/cygming.opt (posix): New Driver option.
6121
6122 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6123
6124         * config/arm/vxworks.opt: New.
6125         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
6126
6127 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6128
6129         * config/alpha/elf.opt: New.
6130         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
6131         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
6132
6133 2011-02-01  Richard Guenther  <rguenther@suse.de>
6134
6135         PR tree-optimization/47559
6136         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
6137         store-motion on references that can throw.
6138
6139 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
6140
6141         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
6142         * tree-pass.h (TDF_CSELIB): New macro.
6143         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
6144         cselib_lookup): Check for it rather than for TDF_DETAILS.
6145
6146 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
6147
6148         PR driver/47547
6149         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
6150         is HOST_BIT_BUCKET.
6151
6152         * opts.c (finish_options): Don't add x_aux_base_name if it is
6153         HOST_BIT_BUCKET.
6154
6155 2011-02-01  Richard Guenther  <rguenther@suse.de>
6156
6157         PR tree-optimization/47555
6158         Revert
6159         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
6160
6161         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6162
6163 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
6164
6165         PR gcc/46692
6166         * config/lm32/t-lm32: Add multilib for all CPU options.
6167
6168 2011-02-01  Richard Guenther  <rguenther@suse.de>
6169
6170         PR tree-optimization/47541
6171         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6172         sure to have a field at offset zero.
6173
6174 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
6175
6176         * config/arc/arc.opt (EB, EL): New Driver options.
6177
6178 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
6179
6180         * config/alpha/osf5.opt: New.
6181         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
6182
6183 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
6184
6185         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
6186
6187 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
6188
6189         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
6190         -floop-interchange.
6191         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
6192         is an alias of -floop-interchange and that it requires the
6193         Graphite infrastructure.
6194         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
6195         flag_loop_interchange based on the value of flag_tree_loop_linear.
6196
6197 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
6198             Richard Guenther  <rguenther@suse.de>
6199
6200         PR tree-optimization/47538
6201         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
6202         type instead of r1type, except for comparisons.  For right
6203         shifts and comparisons punt if there are mismatches in
6204         sizetype vs. non-sizetype types.
6205
6206 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6207
6208         * doc/sourcebuild.texi (Effective-Target Keywords): Document
6209         avx_runtime.
6210
6211 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6212
6213         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
6214         version number.
6215         * configure: Regenerate.
6216
6217 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6218
6219         * configure.ac (gcc_cv_ld_static_option): Define.
6220         (gcc_cv_ld_dynamic_option): Define.
6221         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
6222         instead.
6223         (HAVE_LD_STATIC_DYNAMIC): Update message.
6224         (LD_STATIC_OPTION): Define.
6225         (LD_DYNAMIC_OPTION): Define.
6226         * configure: Regenerate.
6227         * config.in: Regenerate.
6228         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
6229         HAVE_LD_STATIC_DYNAMIC]: Use them.
6230
6231 2011-01-31  Nick Clifton  <nickc@redhat.com>
6232
6233         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
6234         registers inside interrupt handlers if the handler is not a leaf
6235         function.
6236
6237 2011-01-31  Nick Clifton  <nickc@redhat.com>
6238
6239         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
6240         reg_renumber returning an INVALID_REGNUM.
6241
6242 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
6243
6244         PR libgcj/44341
6245         * doc/install.texi: Document host options discarded when cross
6246         configuring target libraries.
6247
6248 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
6249
6250         Reverted:
6251         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
6252         PR debug/45136
6253         PR debug/45130
6254         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6255         debug insns.
6256         (no_real_insns_p, schedule_block, set_priorities): Drop special
6257         treatment of boundary debug insns.
6258         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6259         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6260         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6261         (BOUNDARY_DEBUG_INSN_P): Likewise.
6262         (SCHEDULE_DEBUG_INSN_P): Likewise.
6263         * sched-rgn.c (init_ready_list): Drop special treatment of
6264         boundary debug insns.
6265         * final.c (rest_of_clean-state): Clear notes' BB.
6266
6267 2011-01-31  Alan Modra  <amodra@gmail.com>
6268
6269         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
6270         toc relative expressions as we do in print_operand_address.
6271
6272 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
6273
6274         * doc/extend.texi: Follow spelling conventions.
6275         * doc/invoke.texi: Fix a typo.
6276
6277 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
6278
6279         * config/hpux11.opt: New.
6280         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
6281         ia64*-*-hpux*): Use hpux11.opt.
6282
6283 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
6284
6285         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
6286         to tmake_file.
6287
6288 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
6289
6290         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
6291         support sites.
6292
6293 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
6294
6295         * doc/install.texi (Binaries): Remove outdated reference for
6296         Motorola 68HC11/68HC12 downloads.
6297
6298 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
6299
6300         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
6301         Drepper's paper.
6302
6303 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
6304
6305         PR bootstrap/47147
6306         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
6307         used by NetBSD.
6308
6309 2011-01-28  Ahmad Sharif  <asharif@google.com>
6310
6311         * value-prof.c (check_counter): Corrected error message.
6312
6313 2011-01-29  Jie Zhang  <jie@codesourcery.com>
6314
6315         * config/arm/arm.c (arm_legitimize_reload_address): New.
6316         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6317         arm_legitimize_reload_address.
6318         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
6319
6320 2011-01-28  Ian Lance Taylor  <iant@google.com>
6321
6322         * godump.c (go_define): Ignore macros whose definitions include
6323         two adjacent operands.
6324
6325 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
6326
6327         PR target/42894
6328         * varasm.c (force_const_mem): Store copy of x in desc->constant
6329         instead of x itself.
6330         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
6331         itself into REG_EQUAL note.
6332
6333 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
6334
6335         * config/freebsd.opt (posix, rdynamic): New Driver options.
6336
6337 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6338
6339         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
6340         -Bstatic/-Bdynamic.
6341         * configure: Regenerate.
6342
6343 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
6344
6345         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
6346         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
6347
6348 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
6349
6350         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
6351         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
6352         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6353         (s390_preferred_reload_class): Make static. Change return and
6354         'rclass' argument type to reg_class_t.
6355
6356 2011-01-27  Jan Hubicka  <jh@suse.cz>
6357
6358         PR middle-end/46949
6359         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
6360         (process_function_and_variable_attributes): Check defined weakrefs.
6361
6362 2011-01-27  Martin Jambor  <mjambor@suse.cz>
6363
6364         PR tree-optimization/47228
6365         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
6366         build_ref_for_offset.
6367
6368 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6369
6370         * config/spu/spu-elf.h (ASM_SPEC): Remove.
6371
6372 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
6373
6374         PR rtl-optimization/46856
6375         * postreload.c (reload_combine_recognize_const_pattern): Do not
6376         separate cc0 setter and user on cc0 targets.
6377
6378 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
6379
6380         PR c/43082
6381         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
6382         passed a VOID_TYPE expression, immediately emit an error and
6383         return error_mark_node.
6384
6385 2011-01-26  Jeff Law  <law@redhat.com>
6386
6387         PR rtl-optimization/47464
6388         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
6389         rather than may_trap_p as needed.
6390
6391 2011-01-26  DJ Delorie  <dj@redhat.com>
6392
6393         PR rtl-optimization/46878
6394         * combine.c (insn_a_feeds_b): Check for the implicit cc0
6395         setter/user dependency as well.
6396
6397 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
6398
6399         PR rtl-optimization/44469
6400         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
6401         after removing trivially dead basic blocks.
6402
6403 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
6404
6405         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
6406         * config/frv/frv.h (LINK_SPEC): Likewise.
6407         * config/i386/netware.h (LINK_SPEC): Likewise.
6408         * config/m68k/linux.h (ASM_SPEC): Likewise.
6409         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
6410         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6411         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6412         * config/sparc/linux.h (ASM_SPEC): Likewise.
6413         * config/sparc/linux64.h (ASM_SPEC): Likewise.
6414         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6415
6416 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
6417
6418         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
6419         * config/frv/frv.h (ASM_SPEC): Likewise.
6420         * config/m68k/linux.h (ASM_SPEC): Likewise.
6421         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6422         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
6423         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6424         * config/sparc/linux.h (ASM_SPEC): Likewise.
6425         * config/sparc/linux64.h (ASM_SPEC): Likewise.
6426         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6427
6428 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
6429
6430         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
6431         * config/frv/frv.h (LINK_SPEC): Likewise.
6432         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6433
6434 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
6435
6436         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
6437         * config/frv/frv.h (ASM_SPEC): Likewise.
6438         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
6439         * config/m68k/linux.h (ASM_SPEC): Likewise.
6440         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6441         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6442         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6443         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
6444         * config/sparc/linux.h (ASM_SPEC): Likewise.
6445         * config/sparc/linux64.h (ASM_SPEC): Likewise.
6446         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6447         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
6448
6449 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
6450
6451         PR target/46997
6452         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
6453         (*mux2): Ditto.
6454         (vec_extract_evenodd_help): Ditto.
6455         (vec_extract_evenv4hi): Ditto.
6456         (vec_extract_oddv4hi): Ditto.
6457         (vec_interleave_lowv2si): Ditto.
6458         (vec_interleave_highv2si): Ditto.
6459         (vec_extract_evenv2si): Ditto.
6460         (vec_extract_oddv2si: Ditto.
6461         (vec_pack_trunc_v2si): Ditto.
6462
6463 2011-01-22  Jan Hubicka  <jh@suse.cz>
6464
6465         PR target/47237
6466         * cgraph.h (cgraph_local_info): New field can_change_signature.
6467         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
6468         signature can change.
6469         (ipcp_estimate_growth): Call sequence simplify only if calle signature
6470         can change.
6471         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
6472         (cgraph_function_versioning): We can not change signature of functions
6473         that don't allow that.
6474         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
6475         (lto_input_node): Likewise.
6476         * ipa-inline.c (compute_inline_parameters): Compute
6477         local.can_change_signature.
6478         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
6479         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
6480         functions that can not change signature.
6481         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
6482         init_cumulative_args): Do not use local calling conventions
6483         for functions that can not change signature.
6484
6485 2011-01-22  Jan Hubicka  <jh@suse.cz>
6486
6487         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
6488
6489 2011-01-26  Richard Guenther  <rguenther@suse.de>
6490
6491         PR tree-optimization/47190
6492         * cgraphunit.c (process_common_attributes): New function.
6493         (process_function_and_variable_attributes): Use it.
6494
6495 2011-01-26  Richard Guenther  <rguenther@suse.de>
6496
6497         PR lto/47423
6498         * cgraphbuild.c (record_eh_tables): Record reference to personality
6499         function.
6500
6501 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
6502
6503         PR debug/45454
6504         * sel-sched.c (moveup_expr): Don't let debug insns prevent
6505         non-debug insns from moving up.
6506
6507 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
6508
6509         PR target/40125
6510         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
6511         t-dlldir{,-x} fragment for build and add it to tmake_file.
6512         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
6513         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
6514         * config/i386/t-dlldir: New file.
6515         (SHLIB_DLLDIR): Define.
6516         * config/i386/t-dlldir-x: New file.
6517         (SHLIB_DLLDIR): Define.
6518         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
6519         (SHLIB_INSTALL): Use it.
6520
6521 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
6522
6523         PR target/47246
6524         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
6525         lower bound of the allowed Thumb-2 coprocessor load/store
6526         index range to -256. Add explaining comment.
6527
6528 2011-01-25  Ian Lance Taylor  <iant@google.com>
6529
6530         * godump.c (go_define): Improve lexing of macro expansion to only
6531         accept expressions which match Go spec.
6532
6533 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
6534
6535         PR c++/43601
6536         * tree.c (handle_dll_attribute): Handle it.
6537         * doc/extend.texi (@item dllexport): Mention it.
6538         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
6539
6540 2011-01-25  Ian Lance Taylor  <iant@google.com>
6541
6542         PR tree-optimization/26854
6543         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
6544         (decl_jump_unsafe): Move higher in file, with no other change.
6545         (bind): Set has_jump_unsafe_decl if appropriate.
6546         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
6547         (check_earlier_gotos): Likewise.
6548         (c_check_switch_jump_warnings): Likewise.
6549
6550 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
6551
6552         * doc/invoke.texi (Warning Options): Add missing hyphen.
6553         (-fprofile-dir): Minor grammatical fixes.
6554         (-fbranch-probabilities): Likewise.
6555
6556 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
6557
6558         PR debug/45136
6559         PR debug/45130
6560         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6561         debug insns.
6562         (no_real_insns_p, schedule_block, set_priorities): Drop special
6563         treatment of boundary debug insns.
6564         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6565         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6566         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6567         (BOUNDARY_DEBUG_INSN_P): Likewise.
6568         (SCHEDULE_DEBUG_INSN_P): Likewise.
6569         * sched-rgn.c (init_ready_list): Drop special treatment of
6570         boundary debug insns.
6571         * final.c (rest_of_clean-state): Clear notes' BB.
6572
6573 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6574
6575         * Makefile.in (LAMBDA_H): Removed.
6576         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
6577         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
6578         lambda-trans.o, and tree-loop-linear.o.
6579         (lto-symtab.o): Remove dependence on LAMBDA_H.
6580         (tree-loop-linear.o): Remove rule.
6581         (lambda-mat.o): Same.
6582         (lambda-trans.o): Same.
6583         (lambda-code.o): Same.
6584         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
6585         (tree-vect-slp.o): Same.
6586         * hwint.h (gcd): Moved here.
6587         (least_common_multiple): Same.
6588         * lambda-code.c: Removed.
6589         * lambda-mat.c: Removed.
6590         * lambda-trans.c: Removed.
6591         * lambda.h: Removed.
6592         * tree-loop-linear.c: Removed.
6593         * lto-symtab.c: Do not include lambda.h.
6594         * omega.c (gcd): Removed.
6595         * passes.c (init_optimization_passes): Remove pass_linear_transform.
6596         * tree-data-ref.c (print_lambda_vector): Moved here.
6597         (lambda_vector_copy): Same.
6598         (lambda_matrix_copy): Same.
6599         (lambda_matrix_id): Same.
6600         (lambda_vector_first_nz): Same.
6601         (lambda_matrix_row_add): Same.
6602         (lambda_matrix_row_exchange): Same.
6603         (lambda_vector_mult_const): Same.
6604         (lambda_vector_negate): Same.
6605         (lambda_matrix_row_negate): Same.
6606         (lambda_vector_equal): Same.
6607         (lambda_matrix_right_hermite): Same.
6608         * tree-data-ref.h: Do not include lambda.h.
6609         (lambda_vector): Moved here.
6610         (lambda_matrix): Same.
6611         (dependence_level): Same.
6612         (lambda_transform_legal_p): Removed declaration.
6613         (lambda_collect_parameters): Same.
6614         (lambda_compute_access_matrices): Same.
6615         (lambda_vector_gcd): Same.
6616         (lambda_vector_new): Same.
6617         (lambda_vector_clear): Same.
6618         (lambda_vector_lexico_pos): Same.
6619         (lambda_vector_zerop): Same.
6620         (lambda_matrix_new): Same.
6621         * tree-flow.h (least_common_multiple): Removed declaration.
6622         * tree-parloops.c (lambda_trans_matrix): Moved here.
6623         (LTM_MATRIX): Same.
6624         (LTM_ROWSIZE): Same.
6625         (LTM_COLSIZE): Same.
6626         (LTM_DENOMINATOR): Same.
6627         (lambda_trans_matrix_new): Same.
6628         (lambda_matrix_vector_mult): Same.
6629         (lambda_transform_legal_p): Same.
6630         * tree-pass.h (pass_linear_transform): Removed declaration.
6631         * tree-ssa-loop.c (tree_linear_transform): Removed.
6632         (gate_tree_linear_transform): Removed.
6633         (pass_linear_transform): Removed.
6634         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
6635         flag_loop_interchange.
6636
6637 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
6638
6639         PR tree-optimization/47265
6640         PR tree-optimization/47443
6641         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
6642         if name still has some uses.
6643
6644 2011-01-25  Martin Jambor  <mjambor@suse.cz>
6645
6646         PR tree-optimization/47382
6647         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
6648         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
6649
6650 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
6651
6652         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
6653         sjlj_except_unwind_info.
6654
6655 2011-01-25  Richard Guenther  <rguenther@suse.de>
6656
6657         PR tree-optimization/47426
6658         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
6659         visible functions results escape.
6660
6661 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
6662
6663         PR target/45701
6664         * config/arm/arm.c (any_sibcall_uses_r3): New function.
6665         (arm_get_frame_offsets): Use it.
6666
6667 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6668             Jakub Jelinek  <jakub@redhat.com>
6669
6670         PR tree-optimization/47271
6671         * tree-if-conv.c (bb_postdominates_preds): New.
6672         (if_convertible_bb_p): Call bb_postdominates_preds.
6673         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
6674         (predicate_scalar_phi): Call bb_postdominates_preds.
6675
6676 2011-01-25  Nick Clifton  <nickc@redhat.com>
6677
6678         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
6679         * config/rx/rx.c (rx_function_value): Likewise.
6680         (rx_promote_function_mode): Likewise.
6681         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
6682         in order to make it legitimate.
6683         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
6684         make sure that the first operand is the same as the result register.
6685         (addsi3_unspec): Delete.
6686         (subdi3): Do not accept immediate operands.
6687         (subdi3_internal): Likewise.
6688
6689 2011-01-25  Jeff Law  <law@redhat.com>
6690
6691         PR rtl-optimization/37273
6692         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6693         handle them like argument loads from stack slots.  Do not double
6694         count memory for memory constants and argument loads from stack slots.
6695
6696 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
6697
6698         PR tree-optimization/47427
6699         PR tree-optimization/47428
6700         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6701         coalesce if the new root var would be TREE_READONLY.
6702
6703 2011-01-25  Richard Guenther  <rguenther@suse.de>
6704
6705         PR middle-end/47414
6706         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
6707         correct type for TBAA.
6708
6709 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6710
6711         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
6712         (close_phi_written_to_memory): Call for_each_index with
6713         dr_indices_valid_in_loop.
6714
6715 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6716
6717         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
6718         when it is initialized.
6719
6720 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6721
6722         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
6723         call to graphite_find_data_references_in_stmt.
6724         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
6725         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
6726         call to graphite_find_data_references_in_stmt.
6727         (analyze_drs_in_stmts): Same.
6728         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
6729         in which the scalar analysis of indices is performed.
6730         (create_data_ref): Same.  Update call to dr_analyze_indices.
6731         (find_data_references_in_stmt): Update call to create_data_ref.
6732         (graphite_find_data_references_in_stmt): Same.
6733         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
6734         declaration.
6735         (create_data_ref): Same.
6736         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
6737         call to create_data_ref.
6738
6739 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6740
6741         * graphite-sese-to-poly.c (build_poly_scop): Move
6742         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
6743
6744 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6745
6746         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
6747         VAR_DECL, PARM_DECL, and RESULT_DECL.
6748
6749 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6750
6751         * graphite-dependences.c (reduction_dr_1): Allow several reductions
6752         in a reduction PBB.
6753         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
6754         that have already been marked as PBB_IS_REDUCTION.
6755
6756 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6757
6758         * graphite-scop-detection.c (same_close_phi_node): New.
6759         (remove_duplicate_close_phi): New.
6760         (make_close_phi_nodes_unique): New.
6761         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
6762
6763 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6764
6765         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
6766         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
6767         of both data references to be the same.
6768
6769 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6770
6771         * graphite-dependences.c (build_lexicographical_constraint): Remove
6772         the gdim parameter.
6773         (build_lexicographical_constraint): Adjust call to
6774         ppl_powerset_is_empty.
6775         (dependence_polyhedron): Same.
6776         (graphite_legal_transform_dr): Same.
6777         (graphite_carried_dependence_level_k): Same.
6778         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
6779         parameter.
6780         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
6781
6782 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6783
6784         * graphite-sese-to-poly.c
6785         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
6786         (close_phi_written_to_memory): New.
6787         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
6788         and unshare_expr.
6789
6790 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6791
6792         * doc/install.texi: Update the expected version number of PPL to 0.11.
6793         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
6794         #if PPL_VERSION_MINOR < 11.
6795
6796 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6797
6798         * graphite-dependences.c: Include graphite-cloog-util.h.
6799         (new_poly_ddr): Inlined into dependence_polyhedron.
6800         (free_poly_ddr): Moved close by new_poly_ddr.
6801         (dependence_polyhedron_1): Renamed dependence_polyhedron.
6802         Early return NULL when ppl_powerset_is_empty returns true.
6803         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
6804         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
6805         (graphite_legal_transform_dr): Call new_poly_ddr.
6806         (graphite_carried_dependence_level_k): Same.
6807         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
6808         (dot_transformed_deps_stmt_1): Removed.
6809         (dot_deps_stmt_1): Call dot_deps_stmt_2.
6810         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
6811         (dot_deps_1): Call dot_deps_2.
6812         * Makefile.in (graphite-dependences.o): Add missing dependence on
6813         graphite-cloog-util.h.
6814
6815 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6816
6817         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
6818         (build_lexicographical_constraint): Same.
6819         (dependence_polyhedron_1): Same.
6820         (graphite_legal_transform_dr): Same.
6821         (graphite_carried_dependence_level_k): Same.
6822         * graphite-ppl.c (ppl_powerset_is_empty): New.
6823         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
6824         * tree-data-ref.c (dump_data_reference): Print the basic block index.
6825
6826 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6827
6828         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
6829         the "a followed by b" relation and document it.
6830
6831 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6832
6833         * graphite-dependences.c (build_lexicographical_constraint): Stop the
6834         iteration when the bag of constraints is empty.
6835
6836 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6837
6838         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
6839
6840 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6841
6842         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
6843         nest and two loop depths as parameters.
6844         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
6845         lst_perfect_nestify.
6846
6847 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6848
6849         * graphite-dependences.c (print_pddr): Call
6850         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
6851
6852 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6853
6854         * graphite-ppl.c (debug_gmp_value): New.
6855         * graphite-ppl.h (debug_gmp_value): Declared.
6856
6857 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
6858
6859         * doc/install.texi: Document availability of cloog-0.16.
6860
6861 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
6862
6863         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
6864         invalid postdominance info.
6865
6866 2011-01-24  Jan Hubicka  <jh@suse.cz>
6867
6868         PR c/21659
6869         * doc/extend.texi (weak pragma): Drop claim that it must
6870         appear before definition.
6871         * varasm.c (merge_weak, declare_weak): Only sanity check
6872         that DECL is not output at a time it is declared weak.
6873
6874 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
6875
6876         * machmode.def: Fixed comments.
6877
6878 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
6879
6880         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
6881
6882 2011-01-24  Paul Koning  <ni1d@arrl.net>
6883
6884         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
6885         WORDS_BIG_ENDIAN.
6886
6887 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
6888
6889         PR target/46519
6890         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
6891         (block_info): Add scanned and prev.
6892         (move_or_delete_vzeroupper_2): Return if the basic block
6893         has been scanned and the upper 128bit state is unchanged
6894         from the last scan.
6895         (move_or_delete_vzeroupper_1): Return true if the exit
6896         state is changed.
6897         (move_or_delete_vzeroupper): Visit basic blocks using the
6898         work-list based algorithm based on vt_find_locations in
6899         var-tracking.c.
6900
6901         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
6902
6903 2011-01-24  Nick Clifton  <nickc@redhat.com>
6904
6905         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
6906         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
6907         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
6908         then define __v850e1__.
6909         * doc/invoke.texi: Document -mv850es.
6910
6911 2011-01-24  Richard Henderson  <rth@redhat.com>
6912
6913         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
6914         compound unordered comparisons.
6915         * config/rx/rx.c (rx_split_fp_compare): Remove.
6916         * config/rx/rx-protos.h: Update.
6917         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
6918         (cbranchsf4): Don't call rx_split_fp_compare.
6919         (*cbranchsf4): Use rx_split_cbranch.
6920         (*cmpsf): Don't accept "i" constraint.
6921         (*conditional_branch): Only valid after reload.
6922         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
6923
6924 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6925
6926         PR target/47385
6927         * config/rs6000/altivec.md (vector constant splitters): Add
6928         support for creating vector single precision constants if -mvsx is
6929         used and we would create the constant using Altivec primitives.
6930
6931 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
6932             Richard Sandiford  <rdsandiford@googlemail.com>
6933
6934         PR rtl-optimization/47166
6935         * reload1.c (emit_reload_insns): Disable the spill_reg_store
6936         mechanism for PRE_MODIFY and POST_MODIFY.
6937         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
6938         reloadreg.
6939
6940 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
6941
6942         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
6943
6944 2011-01-22  Jan Hubicka  <jh@suse.cz>
6945
6946         PR lto/47333
6947         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
6948
6949 2011-01-22  Jan Hubicka  <jh@suse.cz>
6950
6951         PR tree-optimization/43884
6952         PR lto/44334
6953         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
6954         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
6955
6956 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
6957
6958         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6959         * config/s390/s390.c (s390_register_move_cost,
6960         s390_memory_move_cost): New.
6961         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6962
6963 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6964
6965         PR middle-end/47401
6966         * except.c (sjlj_assign_call_site_values): Move setting the
6967         crtl->uses_eh_lsda flag to ...
6968         (sjlj_mark_call_sites): ... here.
6969         (sjlj_emit_function_enter): Support NULL dispatch label.
6970         (sjlj_build_landing_pads): In a function with no landing pads
6971         that still has must-not-throw regions, generate code to register
6972         a personality function with empty LSDA.
6973
6974 2011-01-21  Richard Henderson  <rth@redhat.com>
6975
6976         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
6977
6978         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
6979
6980         * compare-elim.c: New file.
6981         * Makefile.in (OBJS-common): Add it.
6982         (compare-elim.o): New.
6983         * common.opt (fcompare-elim): New.
6984         * opts.c (default_options_table): Add OPT_fcompare_elim.
6985         * tree-pass.h (pass_compare_elim_after_reload): New.
6986         * passes.c (init_optimization_passes): Add it.
6987         * recog.h: Protect against re-inclusion.
6988         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
6989         * doc/invoke.texi (-fcompare-elim): Document it.
6990         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
6991         * doc/tm.texi: Rebuild.
6992
6993 2011-01-22  Nick Clifton  <nickc@redhat.com>
6994
6995         * config/rx/rx.md (cstoresf4): Pass comparison operator to
6996         rx_split_fp_compare.
6997
6998 2011-01-22  Nick Clifton  <nickc@redhat.com>
6999
7000         * config/rx/rx.md (UNSPEC_CONST): New.
7001         (deallocate_and_return): Wrap the amount popped off the stack in
7002         an UNSPEC_CONST in order to stop it being rejected by
7003         -mmax-constant-size.
7004         (pop_and_return): Add a "(return)" rtx.
7005         (call): Drop the immediate operand.
7006         (call_internal): Likewise.
7007         (call_value): Likewise.
7008         (call_value_internal): Likewise.
7009         (sibcall_internal): Likewise.
7010         (sibcall_value_internal): Likewise.
7011         (sibcall): Likewise.  Generate an explicit call using
7012         sibcall_internal.
7013         (sibcall_value): Likewise.
7014         (mov<>): FAIL if a constant operand is not legitimate.
7015         (addsi3_unpsec): New pattern.
7016
7017         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
7018         (ok_for_max_constant): New function.
7019         (gen_safe_add): New function.
7020         (rx_expand_prologue): Use gen_safe_add.
7021         (rx_expand_epilogue): Likewise.
7022         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
7023         UNSPEC CONSTs.
7024
7025 2011-01-21  Jeff Law  <law@redhat.com>
7026
7027         PR tree-optimization/47053
7028         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
7029         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
7030         statements are deleted.
7031         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
7032         is nonempty, then purge dead edges and cleanup the CFG.
7033
7034 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
7035
7036         PR debug/47402
7037         Temporarily revert:
7038         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
7039         PR debug/47106
7040         * tree-dfa.c (create_var_ann): Mark variable as used.
7041
7042 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
7043
7044         PR middle-end/45566
7045         * except.c (convert_to_eh_region_ranges): Emit queued no-region
7046         notes from other section in hot/cold partitioning even if
7047         last_action is -3.  Increment call_site_base.
7048
7049         PR rtl-optimization/47366
7050         * fwprop.c (forward_propagate_into): Return bool.  If
7051         any changes are made, -fnon-call-exceptions is used and
7052         REG_EH_REGION note is present, call purge_dead_edges
7053         and return true if it purged anything.
7054         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
7055         any EH edges were purged.
7056
7057 2011-01-21  Jeff Law  <law@redhat.com>
7058
7059         PR rtl-optimization/41619
7060         * caller-save.c (setup_save_areas): Break out code to determine
7061         which hard regs are live across calls by examining the reload chains
7062         so that it is always used.
7063         Eliminate code which checked REG_N_CALLS_CROSSED.
7064
7065 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
7066
7067         PR tree-optimization/47355
7068         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
7069         NOP has non-debug uses beyond PHIs in new_bb.
7070
7071 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
7072
7073         PR debug/47106
7074         * cfgexpand.c (account_used_vars_for_block): Only account vars
7075         that are annotated as used.
7076         (estimated_stack_frame_size): Don't set TREE_USED.
7077         * tree-dfa.c (create_var_ann): Mark variable as used.
7078
7079 2011-01-21  Richard Guenther  <rguenther@suse.de>
7080
7081         PR middle-end/47395
7082         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
7083
7084 2011-01-21  Richard Guenther  <rguenther@suse.de>
7085
7086         PR tree-optimization/47365
7087         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
7088         (vn_reference_lookup_pieces): Adjust.
7089         (vn_reference_lookup): Likewise.
7090         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
7091         (vn_reference_lookup_3): Only look through kills if in
7092         VN_WALKREWRITE mode.
7093         (vn_reference_lookup_pieces): Adjust.
7094         (vn_reference_lookup): Likewise.
7095         (visit_reference_op_load): Likewise.
7096         (visit_reference_op_store): Likewise.
7097         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
7098         (compute_avail): Likewise.
7099         (eliminate): Likewise.
7100
7101 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
7102
7103         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
7104         DECL_IGNORED_P non-reg vars if they are used.
7105
7106         PR tree-optimization/47391
7107         * varpool.c (const_value_known_p): Return false if
7108         decl is volatile.
7109
7110 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
7111
7112         PR bootstrap/47215
7113         * config/i386/i386.c (ix86_local_alignment): Handle
7114         case for va_list_type_node is nil.
7115         (ix86_canonical_va_list_type): Likewise.
7116
7117 2011-01-21  Alan Modra  <amodra@gmail.com>
7118
7119         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
7120         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
7121
7122 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7123
7124         * config/arm/arm.md (define_attr type): Rename f_load
7125         and f_store to f_fpa_load and f_fpa_store. Update.
7126         (write_conflict): Deal with rename fallout.
7127         (*push_fp_multi): Likewise.
7128         * config/arm/fpa.md (f_load): Use f_fpa_load.
7129         (f_store): Use f_fpa_store.
7130         (*movsf_fpa): Likewise.
7131         (*movdf_fpa): Likewise.
7132         (*movxf_fpa): Likewise.
7133         (*thumb2_movsf_fpa): Likewise.
7134         (*thumb2_movdf_fpa): Likewise.
7135         (*thumb2_movxf_fpa): Likewise.
7136         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
7137         f_loadd and f_stored.
7138         (*thumb2_movdi_vfp): Likewise.
7139         (*thumb2_movsf_vfp): Fix attribute to f_loads.
7140         (*thumb2_movsi_vfp): Likewise.
7141         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
7142         Use f_loads instead of f_load.
7143         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
7144
7145 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
7146
7147         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7148         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
7149         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7150         (xtensa_mode_dependent_address_p): New function.
7151         (constantpool_address_p): Make static. Change return type to bool.
7152         Change argument type to const_rtx. Use CONST_INT_P predicate.
7153
7154 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
7155
7156         PR debug/46583
7157         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
7158
7159 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
7160
7161         PR debug/47283
7162         * cfgexpand.c (expand_debug_expr): Instead of generating
7163         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
7164         etc. handling.
7165
7166 2011-01-20  Richard Guenther  <rguenther@suse.de>
7167
7168         PR middle-end/47370
7169         * tree-inline.c (remap_gimple_op_r): Recurse manually for
7170         the pointer operand of MEM_REFs.
7171
7172 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
7173
7174         PR tree-optimization/46130
7175         * ipa-split.c (consider_split): If return_bb contains non-virtual
7176         PHIs other than for retval or if split_function would not adjust it,
7177         refuse to split.
7178
7179 2011-01-20  Richard Guenther  <rguenther@suse.de>
7180
7181         PR tree-optimization/47167
7182         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7183         Revert previous change, only avoid enumeral type changes.
7184
7185 2011-01-19  Mike Stump  <mikestump@comcast.net>
7186
7187         * doc/tm.texi.in (BRANCH_COST): Englishify.
7188         * doc/tm.texi (BRANCH_COST): Likewise.
7189
7190 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
7191
7192         PR c++/47291
7193         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
7194         (gen_scheduled_generic_parms_dies): New functions.
7195         (gen_struct_or_union_type_die): Schedule template parameters DIEs
7196         generation for the end of CU compilation.
7197         (dwarf2out_finish): Generate template parameters DIEs here.
7198
7199 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
7200
7201         PR debug/46240
7202         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
7203         debug bind stmt on merge edges.
7204
7205 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
7206
7207         PR debug/47079
7208         PR debug/46724
7209         * function.c (instantiate_expr): Instantiate incoming rtl of
7210         implicit arguments, and recurse on VALUE_EXPRs.
7211         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
7212         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
7213
7214 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
7215
7216         * c-parser.c (c_parser_for_statement): Initialize
7217         collection_expression.
7218
7219 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
7220
7221         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
7222
7223 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
7224
7225         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
7226         (LINK_SHLIB_SPEC): Don't use %(link_path).
7227         (SUBTARGET_EXTRA_SPECS): Remove link_path.
7228
7229 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
7230
7231         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
7232         (NO_SHARED_LIB_SUPPORT): Remove.
7233         (LINK_SHLIB_SPEC): Remove one conditional definition.
7234
7235 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
7236
7237         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
7238         %{call_shared}.
7239         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
7240         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
7241         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
7242         %{call_shared} and conditionals on these options not being passed.
7243         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
7244         %{call_shared}.
7245
7246 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
7247
7248         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
7249         simplify.
7250
7251         * ipa-split.c: Spelling fixes.
7252
7253 2011-01-19  Richard Henderson  <rth@redhat.com>
7254
7255         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
7256         (*mulsi3): Likewise.
7257
7258         * longlong.h [__mn10300__] (count_leading_zeros): New.
7259         [__mn10300__] (umul_ppmm, smul_ppmm): New.
7260         [__mn10300__] (add_ssaaaa, subddmmss): New.
7261         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
7262         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
7263
7264 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7265
7266         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
7267
7268 2011-01-19  Richard Henderson  <rth@redhat.com>
7269
7270         * config/mn10300/mn10300.md (addsi3_flags): New.
7271         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
7272         (subsi3_flags, subc_internal, subdi3): New.
7273         (subdi3_internal, *subdi3_degenerate): New.
7274         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
7275
7276         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
7277         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
7278         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
7279         * config/mn10300/mn10300-protos.h: Update.
7280         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
7281         (return_ret): Likewise.  Rename from return_internal_regs.
7282         (return_internal): Remove.
7283
7284         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
7285         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
7286         (mn10300_legitimate_constant_p): Likewise.
7287         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
7288         (mn10300_frame_size): New.
7289         (mn10300_expand_prologue): Use it.
7290         (mn10300_expand_epilogue): Likewise.
7291         (mn10300_initial_offset): Likewise.
7292         * config/mn10300/mn10300-protos.h: Update.
7293         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
7294         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
7295         (prologue, epilogue, return_internal): Tidy output code.
7296         (mn10300_store_multiple_operation, return): Likewise.
7297         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
7298         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
7299         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
7300         (load_pic, am33_load_pic): New.
7301         (mn10300_load_pic0, mn10300_load_pic1): New.
7302
7303         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
7304         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
7305         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
7306         (cc_flags_for_mode, cc_flags_for_code): New.
7307         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
7308         overflow flag is not valid.  Validate that the flags we need
7309         for the comparison are valid.
7310         (mn10300_output_cmp): Remove.
7311         (mn10300_output_add): New.
7312         (mn10300_select_cc_mode): Use cc_flags_for_code.
7313         (mn10300_split_cbranch): New.
7314         (mn10300_match_ccmode): New.
7315         (mn10300_split_and_operand_count): New.
7316         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
7317         to the function.
7318         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
7319         (addsi3): ... here.  Use mn10300_output_add.
7320         (*addsi3_flags): New.
7321         (*am33_subsi3, *mn10300_subsi3): Merge...
7322         (subsi3): ... here.  Use attribute isa.
7323         (*subsi3_flags): New.
7324         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
7325         when possible.
7326         (*am33_andsi3, *mn10300_andsi3): Merge...
7327         (andsi3): ... here.
7328         (*andsi3_flags): New.
7329         (andsi3 splitters): New.
7330         (*am33_iorsi3, *mn10300_iorsi3): Merge...
7331         (iorsi3): ... here.
7332         (*iorsi3_flags): New.
7333         (*am33_xorsi3, *mn10300_xorsi3): Merge...
7334         (xorsi3): ... here.
7335         (*xorsi3_flags): New.
7336         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
7337         (one_cmplsi2): ... here.
7338         (*one_cmplsi2_flags): New.
7339         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
7340         instead of "dax" in constraints.  Use mn10300_split_cbranch.
7341         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
7342         use matching constraints to eliminate a self-comparison.
7343         (*integer_conditional_branch): Rename from integer_conditional_branch.
7344         Use int_mode_flags to match CC_REG.
7345         (*cbranchsi4_btst, *btstsi): New.
7346         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
7347         mn10300_split_cbranch.
7348         (*am33_cmpsf): Rename from am33_cmpsf.
7349         (*float_conditional_branch): Rename from float_conditional_branch.
7350         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
7351         (zero_extendqisi2): ... here.
7352         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
7353         (zero_extendhisi2): ... here.
7354         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
7355         (extendqisi2): ... here.
7356         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
7357         (extendhisi2): ... here.
7358         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
7359         (ashlsi3): ... here.
7360         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
7361         (lshrsi3): ... here.
7362         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
7363         (ashrsi3): ... here.
7364         (consecutive add peephole): Remove.
7365         * config/mn10300/predicates.md (label_ref_operand): New.
7366         (int_mode_flags): New.
7367         (CCZN_comparison_operator): New.
7368
7369         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
7370         (throughput_42_latency_43): New reservation.
7371         (mulsidi3, umulsidi3): New expanders.
7372         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
7373         the MDR register to allocation; separately allocate the low and
7374         high parts of the DImode result.
7375         (umulsidi3_internal): Similarly.
7376         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
7377         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
7378         (udivsi3, umodsi3): Remove.
7379         (udivmodsi4, divmodsi4): New expanders.
7380         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
7381         (*divmodsi4): Simiarly.
7382         (ext_internal): New.
7383
7384         * config/mn10300/constraints.md ("z"): New constraint.
7385         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
7386         (FIXED_REGISTERS): Don't fix MDR.
7387         (CALL_USED_REGSITERS): Reformat nicely.
7388         (REG_ALLOC_ORDER): Add MDR.
7389         (enum regclass): Add MDR_REGS.
7390         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
7391         (IRA_COVER_CLASSES): Add MDR_REGS.
7392         (REGNO_REG_CLASS): Handle MDR_REG.
7393         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
7394         (mn10300_register_move_cost): Likewise.
7395         * config/mn10300/mn10300.md (MDR_REG): New.
7396         (*movsi_internal): Handle moves to/from MDR_REGS.
7397
7398         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
7399         POST_MODIFY.
7400         (mn10300_secondary_reload): Tidy combination reload classes.
7401         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
7402         addresses for AM33.  Allow symbolic offsets for reg+imm.
7403         (mn10300_regno_in_class_p): New.
7404         (mn10300_legitimize_reload_address): New.
7405         * config/mn10300/mn10300.h (enum reg_class): Remove
7406         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
7407         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
7408         SP_OR_GENERAL_REGS.
7409         (REG_CLASS_NAMES): Update to match.
7410         (REG_CLASS_CONTENTS): Likewise.
7411         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
7412         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
7413         (REGNO_IN_RANGE_P): Remove.
7414         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
7415         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
7416         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
7417         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
7418         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
7419         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
7420         (REGNO_GENERAL_P): New.
7421         (HAVE_POST_MODIFY_DISP): New.
7422         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
7423         (LEGITIMIZE_RELOAD_ADDRESS): New.
7424         * config/mn10300/mn10300-protos.h: Update.
7425
7426         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
7427         DATA_REGS for AM33 stack-pointer destination.
7428         (mn10300_preferred_output_reload_class): Likewise.
7429         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
7430         into a form appropriate for ...
7431         (TARGET_SECONDARY_RELOAD): New.
7432         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
7433         * config/mn10300/mn10300-protos.h: Update.
7434         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
7435         reload_insi; use the "A" constraint for the scratch; handle AM33
7436         moves of sp to non-address registers.
7437
7438         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
7439         (*movqi_internal): ... here.
7440         (*am33_movhi, *mn10300_movhi): Merge into...
7441         (*movhi_internal): ... here.
7442         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
7443         as the source/destination of moves from/to SP.
7444         (movsf): Only allow for AM33-2.
7445         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
7446         any integer constant constraint.  Only allow for AM33-2.  Tidy
7447         all of the alternative outputs.
7448         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
7449         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
7450         for MN103.
7451         (udivsi3, umodsi3): New patterns for MN103 only.
7452
7453 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
7454
7455         * doc/tm.texi.in: Spell out that a lack of register class unions
7456         can lead to ICEs.
7457         * doc/tm.texi: Regenerate.
7458
7459 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
7460
7461         PR rtl-optimization/47337
7462         * dce.c (check_argument_store): New function.
7463         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
7464
7465         PR tree-optimization/47290
7466         * tree-eh.c (infinite_empty_loop_p): New function.
7467         (cleanup_empty_eh): Use it.
7468
7469 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
7470
7471         PR target/46997
7472         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
7473         (a64_expand_widen_sum): Ditto.
7474         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
7475         (vec_extract_evenodd_help): Ditto.
7476         (vec_extract_evenv4hi): Ditto.
7477         (vec_extract_oddv4hi): Ditto.
7478         (vec_extract_evenv2si): Ditto.
7479         (vec_extract_oddv2si): Ditto.
7480         (vec_extract_evenv2sf): Ditto.
7481         (vec_extract_oddv2sf): Ditto.
7482         (vec_pack_trunc_v4hi: Ditto.
7483         (vec_pack_trunc_v2si): Ditto.
7484         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
7485         (vec_interleave_highv8qi): Ditto.
7486         (mix1_r): Ditto.
7487         (vec_extract_oddv8qi): Ditto.
7488         (vec_interleave_lowv4hi): Ditto.
7489         (vec_interleave_highv4hi): Ditto.
7490         (vec_interleave_lowv2si): Ditto.
7491         (vec_interleave_highv2si): Ditto.
7492
7493 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7494
7495         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
7496         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
7497         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
7498         (pa_c_mode_for_suffix): New.
7499         (TARGET_EXPAND_BUILTIN): Define.
7500         (TARGET_C_MODE_FOR_SUFFIX): Define.
7501         (pa_builtins): Define.
7502         (pa_init_builtins): Register __float128 type and init new support
7503         builtins.
7504         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
7505         * config/pa/quadlib.c (_U_Qfcopysign): New.
7506
7507 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
7508
7509         PR middle-end/46894
7510         * explow.c (allocate_dynamic_stack_space): Do not assume more than
7511         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
7512         are defined.
7513
7514 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7515
7516         PR tree-optimization/47179
7517         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
7518         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
7519
7520 2011-01-18  Richard Guenther  <rguenther@suse.de>
7521
7522         PR rtl-optimization/47216
7523         * emit-rtl.c: Include tree-flow.h.
7524         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
7525         of replicating it with different semantics.
7526         * Makefile.in (emit-rtl.o): Adjust.
7527
7528 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7529
7530         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
7531         (cortex_a9_dp): Handle neon types correctly.
7532
7533 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
7534
7535         PR rtl-optimization/47299
7536         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
7537         subtarget.  Use normal multiplication if both operands are constants.
7538         * expmed.c (expand_widening_mult): Don't try to optimize constant
7539         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
7540         before using it.
7541
7542 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7543
7544         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
7545         spacing after 'e.g.', typos, comma, hyphenation.
7546
7547 2011-01-17  Richard Henderson  <rth@redhat.com>
7548
7549         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
7550         (rx_restricted_mem_operand): New.
7551         (rx_shift_operand): Use register_operand.
7552         (rx_source_operand, rx_compare_operand): Likewise.
7553         * config/rx/rx.md (addsi3_flags): New expander.
7554         (adddi3): Rewrite as expander.
7555         (adc_internal, *adc_flags, adddi3_internal): New patterns.
7556         (subsi3_flags): New expander.
7557         (subdi3): Rewrite as expander.
7558         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
7559
7560         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
7561         (rx_init_builtins): Remove sat builtin.
7562         (rx_expand_builtin): Likewise.
7563         * config/rx/rx.md (ssaddsi3): New.
7564         (*sat): Rename from sat.  Represent the CC_REG input.
7565
7566         * config/rx/predicates.md (rshift_operator): New.
7567         * config/rx/rx.c (rx_expand_insv): Remove.
7568         * config/rx/rx-protos.h: Update.
7569         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
7570         operand to the canonical position.
7571         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
7572         (*bitclr, *bitclr_in_memory): Similarly.
7573         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
7574         (insv): Retain the zero_extract in the expansion.
7575
7576         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
7577         (bswaphi2, bitinvert, revw): Likewise.
7578
7579         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
7580         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7581         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
7582         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
7583         (bitset, bitset_in_memory): Likewise.
7584         (bitinvert, bitinvert_in_memory): Likewise.
7585         (bitclr, bitclr_in_memory): Likewise.
7586         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
7587         (rx_strend, rx_cmpstrn): Likewise.
7588         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
7589         (bitop peep2 patterns): Remove.
7590
7591         * config/rx/rx.c (rx_match_ccmode): New.
7592         * config/rx/rx-protos.h: Update.
7593         * config/rx/rx.md (abssi2): Clobber, don't set flags.
7594         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
7595         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
7596         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
7597         (fix_truncsfsi2, floatsisf2): Likewise.
7598         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
7599         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
7600         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
7601         (*subsi3_flags, *xorsi3_flags): New.
7602
7603         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
7604
7605         * config/rx/rx.c (rx_print_operand): Remove workaround for
7606         unsplit comparison operations.
7607
7608         * config/rx/rx.md (movsicc): Split after reload.
7609         (*movsicc): Merge *movsieq and *movsine via match_operator.
7610         (*stcc): New pattern.
7611
7612         * config/rx/rx.c (rx_float_compare_mode): Remove.
7613         * config/rx/rx.h (rx_float_compare_mode): Remove.
7614         * config/rx/rx.md (cstoresi4): Split after reload.
7615         (*sccc): New pattern.
7616
7617         * config/rx/predicates.md (label_ref_operand): New.
7618         (rx_z_comparison_operator): New.
7619         (rx_zs_comparison_operator): New.
7620         (rx_fp_comparison_operator): New.
7621         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
7622         Validate that the flags are set properly for the comparison.
7623         (rx_gen_cond_branch_template): Remove.
7624         (rx_cc_modes_compatible): Remove.
7625         (mode_from_flags): New.
7626         (flags_from_code): Rename from flags_needed_for_conditional.
7627         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
7628         (rx_select_cc_mode): Likewise.
7629         (rx_split_fp_compare): New.
7630         (rx_split_cbranch): New.
7631         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
7632         (*cbranchsi4): Use match_operator and rx_split_cbranch.
7633         (*cbranchsf4): Similarly.
7634         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
7635         match_operator and rx_split_cbranch.
7636         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
7637         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
7638         (*cmpsi): Rename from cmpsi.
7639         (*tstsi): Rename from tstsi.
7640         (*cmpsf): Rename from cmpsf; use CC_Fmode.
7641         (*conditional_branch): Rename from conditional_branch.
7642         (*reveresed_conditional_branch): Remove.
7643         (b<code>): Remove expander.
7644         * config/rx/rx-protos.h: Update.
7645
7646         * config/rx/rx.c (rx_compare_redundant): Remove.
7647         * config/rx/rx.md (cmpsi): Don't use it.
7648         * config/rx/rx-protos.h: Update.
7649
7650         * config/rx/rx-modes.def (CC_F): New mode.
7651         * config/rx/rx.c (rx_select_cc_mode): New.
7652         * config/rx/rx.h (SELECT_CC_MODE): Use it.
7653         * config/rx/rx-protos.h: Update.
7654
7655 2011-01-17  Richard Henderson  <rth@redhat.com>
7656
7657         * except.c (dump_eh_tree): Fix stray ; after for statement.
7658
7659 2011-01-17  Richard Guenther  <rguenther@suse.de>
7660
7661         PR tree-optimization/47313
7662         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
7663         handling before copying the body.  Properly deal with
7664         by-reference result in SSA form.
7665
7666 2011-01-17  Ian Lance Taylor  <iant@google.com>
7667
7668         PR target/47219
7669         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
7670         (struct_value_alias_set): Don't define.
7671         (sparc_option_override): Don't set sparc_sr_alias_set and
7672         struct_value_alias_set.
7673         (save_or_restore_regs): Use gen_frame_mem rather than calling
7674         set_mem_alias_set.
7675         (sparc_struct_value_rtx): Likewise.
7676
7677 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
7678
7679         PR target/47318
7680         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
7681         (_mm_maskstore_pd): Likewise.
7682         (_mm_maskload_ps): Likewise.
7683         (_mm_maskstore_ps): Likewise.
7684         (_mm256_maskload_pd): Change mask to __m256i.
7685         (_mm256_maskstore_pd): Likewise.
7686         (_mm256_maskload_ps): Likewise.
7687         (_mm256_maskstore_ps): Likewise.
7688
7689         * config/i386/i386-builtin-types.def: Updated.
7690         (ix86_expand_special_args_builtin): Likewise.
7691
7692         * config/i386/i386.c (bdesc_special_args): Update
7693         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
7694         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
7695         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
7696         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
7697
7698         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
7699         Use <avxpermvecmode> on mask register.
7700         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
7701
7702 2011-01-17  Olivier Hainque  <hainque@adacore.com>
7703             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7704             Eric Botcazou  <ebotcazou@adacore.com>
7705
7706         PR target/46655
7707         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
7708         if <= USHRT_MAX in 32-bit mode.
7709
7710 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7711
7712         * doc/install.texi (Configuration, Specific): Wrap long
7713         lines in examples.  Allow line wrapping in long options
7714         and URLs where beneficial for PDF output.
7715
7716 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
7717
7718         * config/mips/mips.c (mips_classify_symbol): Don't return
7719         SYMBOL_PC_RELATIVE for nonlocal labels.
7720
7721 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
7722
7723         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
7724
7725 2011-01-15  Jan Hubicka  <jh@suse.cz>
7726
7727         PR tree-optimization/47276
7728         * ipa.c (function_and_variable_visibility): Do not try to mark alias
7729         declarations as needed.
7730
7731 2011-01-15  Martin Jambor  <mjambor@suse.cz>
7732
7733         * common.opt (fdevirtualize): New flag.
7734         * doc/invoke.texi (Option Summary): Document it.
7735         * opts.c (default_options_table): Add devirtualize flag.
7736         * ipa-prop.c (detect_type_change): Return immediately if
7737         devirtualize flag is not set.
7738         (detect_type_change_ssa): Likewise.
7739         (compute_known_type_jump_func): Likewise.
7740         (ipa_analyze_virtual_call_uses): Likewise.
7741
7742 2011-01-14  Martin Jambor  <mjambor@suse.cz>
7743
7744         PR tree-optimization/45934
7745         PR tree-optimization/46302
7746         * ipa-prop.c (type_change_info): New type.
7747         (stmt_may_be_vtbl_ptr_store): New function.
7748         (check_stmt_for_type_change): Likewise.
7749         (detect_type_change): Likewise.
7750         (detect_type_change_ssa): Likewise.
7751         (compute_complex_assign_jump_func): Check for dynamic type change.
7752         (compute_complex_ancestor_jump_func): Likewise.
7753         (compute_known_type_jump_func): Likewise.
7754         (compute_scalar_jump_functions): Likewise.
7755         (ipa_analyze_virtual_call_uses): Likewise.
7756         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
7757
7758 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7759
7760         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
7761         * config/i386/i386.opt (msse5): New Alias.
7762
7763 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7764
7765         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7766         * config/sparc/linux64.h (CC1_SPEC): Likewise.
7767         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7768         * config/sparc/sparc.h (CC1_SPEC): Likewise.
7769
7770 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7771
7772         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
7773         -mcpu options.
7774         * config/sparc/linux64.h (CC1_SPEC): Likewise.
7775         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7776         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
7777         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
7778         Likewise.
7779         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
7780
7781 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7782
7783         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
7784
7785 2011-01-14  Mike Stump  <mikestump@comcast.net>
7786
7787         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
7788         * config/fr30/fr30.md: Likweise
7789         (movsi_push): Likewise.
7790         (movsi_pop): Likewise.
7791         (enter_func): Likewise.
7792         * config/moxie/moxie.md (movsi_push): Likewise.
7793         (movsi_pop): Likewise.
7794
7795 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7796
7797         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
7798         %{no_archive} %{exact_version}.
7799         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
7800         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
7801         %{no_archive} %{exact_version}.
7802         * config/mips/openbsd.h (LINK_SPEC): Likewise.
7803         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
7804         * config/mips/vxworks.h: Likewise.
7805
7806 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7807
7808         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
7809
7810 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7811
7812         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
7813         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
7814
7815 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7816
7817         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
7818         -nodefaultlib.
7819
7820 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7821
7822         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
7823         for mcpu not cpu.
7824         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
7825         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
7826         not cpu.
7827         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
7828         Don't handle -shlib.
7829
7830 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7831
7832         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
7833         (CC1_SPEC): Don't handle -profile.
7834
7835 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7836
7837         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
7838         * config/mips/mips.h (CC1_SPEC): Likewise.
7839
7840 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7841
7842         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
7843         * config/mips/mips.h (CC1_SPEC): Likewise.
7844
7845 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7846
7847         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
7848         * config/m32r/linux.h (LINK_SPEC): Likewise.
7849         * config/mips/linux.h (LINK_SPEC): Likewise.
7850         * config/mips/linux64.h (LINK_SPEC): Likewise.
7851         * config/sparc/linux.h (LINK_SPEC): Likewise.
7852         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7853         LINK_SPEC): Likewise.
7854         * config/xtensa/linux.h (LINK_SPEC): Likewise.
7855
7856 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7857
7858         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
7859         %{version:-v}.
7860         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
7861
7862 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7863
7864         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
7865         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7866
7867 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7868
7869         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
7870
7871 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7872
7873         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
7874         supports -Bstatic/-Bdynamic.
7875         * configure: Regenerate.
7876
7877 2011-01-14  Jan Hubicka  <jh@suse.cz>
7878             Jack Howarth  <howarth@bromo.med.uc.edu>
7879
7880         PR target/46037
7881         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
7882         when checking debug_info_level. Test write_symbols instead of
7883         debug_hooks->var_location when setting flag_var_tracking_uninit.
7884
7885 2011-01-14  Richard Guenther  <rguenther@suse.de>
7886
7887         PR tree-optimization/47179
7888         * target.def (ref_may_alias_errno): New target hook.
7889         * targhooks.h (default_ref_may_alias_errno): Declare.
7890         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
7891         (default_ref_may_alias_errno): New function.
7892         * target.h (struct ao_ref_s): Declare.
7893         * tree-ssa-alias.c: Include target.h.
7894         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
7895         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
7896         (targhooks.o): Likewise.
7897         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
7898         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
7899
7900 2011-01-14  Richard Guenther  <rguenther@suse.de>
7901
7902         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
7903
7904 2011-01-14  Richard Guenther  <rguenther@suse.de>
7905
7906         PR tree-optimization/47280
7907         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
7908         return CFG changes.
7909         (tree_ssa_forward_propagate_single_use_vars): Deal with
7910         CFG changes from associate_plusminus.
7911
7912 2011-01-14  Richard Guenther  <rguenther@suse.de>
7913
7914         PR middle-end/47281
7915         Revert
7916         2011-01-11  Richard Guenther  <rguenther@suse.de>
7917
7918         PR tree-optimization/46076
7919         * tree-ssa.c (useless_type_conversion_p): Conversions from
7920         unprototyped to empty argument list function types are useless.
7921
7922 2011-01-14  Richard Guenther  <rguenther@suse.de>
7923
7924         PR tree-optimization/47286
7925         * tree-ssa-structalias.c (new_var_info): Register variables are global.
7926
7927 2011-01-14  Martin Jambor  <mjambor@suse.cz>
7928
7929         PR middle-end/46823
7930         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
7931
7932 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
7933
7934         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
7935         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7936         * config/xtensa/xtensa.c (xtensa_libcall_value,
7937         xtensa_function_value_regno_p): New functions.
7938         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7939
7940 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
7941
7942         PR c++/47213
7943         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
7944         PE specific hook.
7945         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
7946         New function prototype.
7947         * config/i386/winnt.c (i386_pe_assemble_visibility):
7948         Warn only if attribute was specified by user.
7949
7950 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
7951
7952         PR target/47251
7953         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
7954         floating point.
7955         (floatunsdidf2_fcfidu): Ditto.
7956
7957 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7958
7959         * config/s390/s390.c (print_operand_address): Replace 'error' with
7960         'output_operand_lossage'.
7961         (print_operand): Likewise.
7962
7963 2011-01-13  Jeff Law  <law@redhat.com>
7964
7965         PR rtl-optimization/39077
7966         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
7967         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
7968         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
7969         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
7970         * gcse.c (prune_insertions_deletions): New function.
7971         (compute_pre_data): Use it.
7972
7973 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
7974
7975         PR debug/PR46973
7976         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
7977         static function.
7978         (prune_unused_types_mark): Use it.
7979
7980 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
7981
7982         PR rtl-optimization/45352
7983         * sel-sched.c: Update copyright years.
7984         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
7985         in the advancing loop when we have issued issue_rate insns.
7986
7987 2011-01-12  Richard Henderson  <rth@redhat.com>
7988
7989         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
7990         (TARGET_MD_ASM_CLOBBERS): New.
7991
7992         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
7993         (TARGET_DELEGITIMIZE_ADDRESS): New.
7994
7995         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
7996         (clzsi2, *bsch): New patterns.
7997
7998         * config/mn10300/mn10300.md (INT): New mode iterator.
7999         (*mov<INT>_clr): New pattern, and peep2 to generate it.
8000
8001         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
8002         flag_split_wide_types.
8003
8004         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
8005         (mn10300_trampoline_init): Rewrite without a template, an immediate
8006         load and a direct branch.
8007         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
8008
8009 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
8010
8011         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8012         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
8013         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
8014         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8015
8016 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
8017
8018         PR debug/47209
8019         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
8020         of type.
8021
8022 2011-01-12  Jan Hubicka  <jh@suse.cz>
8023
8024         PR driver/47244
8025         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
8026         (PLUGIN_COND_CLOSE): New macro.
8027         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
8028
8029 2011-01-12  Richard Guenther  <rguenther@suse.de>
8030
8031         PR lto/47259
8032         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
8033         register variables in a MEM_REF.
8034
8035 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
8036
8037         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
8038         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
8039         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
8040         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8041         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8042         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
8043         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
8044         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
8045         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
8046         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
8047         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
8048         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
8049         * config/gnu-user.h: New.  Copied from linux.h.
8050         (LINUX_TARGET_STARTFILE_SPEC): Rename to
8051         GNU_USER_TARGET_STARTFILE_SPEC.
8052         (LINUX_TARGET_ENDFILE_SPEC): Rename to
8053         GNU_USER_TARGET_ENDFILE_SPEC.
8054         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
8055         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
8056         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
8057         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
8058         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
8059         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
8060         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
8061         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
8062         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
8063         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
8064         * config/arm/linux-eabi.h (CC1_SPEC): Use
8065         GNU_USER_TARGET_CC1_SPEC.
8066         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
8067         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
8068         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
8069         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
8070         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
8071         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
8072         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
8073         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
8074
8075 2011-01-12  Richard Guenther  <rguenther@suse.de>
8076
8077         PR other/46946
8078         * doc/invoke.texi (ffast-math): Document it is turned on
8079         with -Ofast.
8080
8081 2011-01-12  Jan Hubicka  <jh@suse.cz>
8082
8083         PR tree-optimization/47233
8084         * opts.c (common_handle_option): Disable ipa-reference with profile
8085         feedback.
8086
8087 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
8088
8089         * c-parser.c (c_parser_objc_at_property_declaration): Improved
8090         error message.
8091
8092 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
8093
8094         * c-parser.c (c_lex_one_token): Updated and reindented some
8095         comments.  No changes in code.
8096
8097 2011-01-11  Ian Lance Taylor  <iant@google.com>
8098
8099         * godump.c (go_output_var): Don't output the variable if there is
8100         already a type with the same name.
8101
8102 2011-01-11  Ian Lance Taylor  <iant@google.com>
8103
8104         * godump.c (go_format_type): Don't generate float80.
8105
8106 2011-01-11  Richard Henderson  <rth@redhat.com>
8107
8108         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
8109         declaration.  Rewrite for both speed and size.
8110         (mn10300_address_cost_1): Remove.
8111         (mn10300_register_move_cost): New.
8112         (mn10300_memory_move_cost): New.
8113         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
8114         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
8115         extensions, shifts, BSWAP, CLZ.
8116         (mn10300_wide_const_load_uses_clr): Remove.
8117         (TARGET_REGISTER_MOVE_COST): New.
8118         (TARGET_MEMORY_MOVE_COST): New.
8119         * config/mn10300/mn10300-protos.h: Update.
8120         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
8121
8122         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
8123         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
8124         * config/mn10300/mn10300-protos.h: Update.
8125         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
8126         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
8127         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
8128         (*test_int_bitfield, *test_byte_bitfield): Remove.
8129         (*bit_test, *subreg_bit_test): Remove.
8130         * config/mn10300/predicates.md (const_8bit_operand): Remove.
8131
8132         * config/mn10300/constraints.md ("c"): Rename from "A".
8133         ("A", "D"): New constraint letters.
8134         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
8135         (fmssf4, fnmasf4, fnmssf4): Likewise.
8136
8137         * config/mn10300/mn10300.md (isa): New attribute.
8138         (enabled): New attribute.
8139
8140         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
8141         (abssf2, negsf2): Define only for hardware fp.
8142         (sqrtsf2): Reformat.
8143         (addsf3, subsf3, mulsf3): Merge expander and insn.
8144
8145         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
8146         (DEBUGGER_AUTO_OFFSET): Remove.
8147         (DEBUGGER_ARG_OFFSET): Remove.
8148
8149         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
8150         Emit register stores with the same offsets as the hardware.
8151         (mn10300_store_multiple_operation): Don't check that the register
8152         save offsets are monotonic.
8153         * config/mn10300/mn10300-protos.h: Update.
8154
8155         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
8156
8157         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
8158         in terms of the value on the stack, not the MDR register.
8159
8160 2011-01-11  Jan Hubicka  <jh@suse.cz>
8161
8162         PR lto/45721
8163         PR lto/45375
8164         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
8165         (symbol_alias_set_destroy, symbol_alias_set_contains,
8166         propagate_aliases_backward): Declare.
8167         * lto-streamer-out.c (struct sets): New sturcture.
8168         (trivally_defined_alias): New function.
8169         (output_alias_pair_p): Rewrite.
8170         (output_unreferenced_globals): Fix output of alias pairs.
8171         (produce_symtab): Likewise.
8172         * ipa.c (function_and_variable_visibility): Set weak alias destination
8173         as needed in lto.
8174         * varasm.c (symbol_alias_set_t): Remove.
8175         (symbol_alias_set_destroy): Export.
8176         (propagate_aliases_forward, propagate_aliases_backward): New functions
8177         based on ...
8178         (compute_visible_aliases): ... this one; remove.
8179         (trivially_visible_alias): New
8180         (trivially_defined_alias): New.
8181         (remove_unreachable_alias_pairs): Rewrite.
8182         (finish_aliases_1): Reorganize code checking if alias is defined.
8183         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
8184         in LTO mode.
8185
8186 2011-01-11  Richard Guenther  <rguenther@suse.de>
8187
8188         PR tree-optimization/46076
8189         * tree-ssa.c (useless_type_conversion_p): Conversions from
8190         unprototyped to empty argument list function types are useless.
8191
8192 2011-01-11  Richard Guenther  <rguenther@suse.de>
8193
8194         PR middle-end/45235
8195         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
8196         volatile MEMs as MEM_READONLY_P.
8197
8198 2011-01-11  Richard Guenther  <rguenther@suse.de>
8199
8200         PR tree-optimization/47239
8201         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
8202
8203 2011-01-11  Jeff Law  <law@redhat.com>
8204
8205         PR tree-optimization/47086
8206         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
8207         IVs from statements that might throw.
8208
8209 2011-01-10  Jan Hubicka  <jh@suse.cz>
8210
8211         PR lto/45375
8212         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
8213
8214 2011-01-10  Jan Hubicka  <jh@suse.cz>
8215
8216         PR lto/45375
8217         * profile.c (read_profile_edge_counts): Ignore profile inconistency
8218         when correcting profile.
8219
8220 2011-01-10  Jan Hubicka  <jh@suse.cz>
8221
8222         PR lto/46083
8223         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
8224         DECL_FINI_PRIORITY.
8225         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
8226         Restore DECL_FINI_PRIORITY.
8227
8228 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8229
8230         * doc/gimple.texi: Fix quoting of multi-word return values in
8231         @deftypefn statements.  Ensure presence of return value.  Wrap
8232         overlong @deftypefn lines.
8233         (is_gimple_operand, is_gimple_min_invariant_address): Remove
8234         descriptions of removed functions.
8235         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
8236         of multi-word return value in @deftypefn statement.
8237
8238 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8239
8240         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
8241         (Conditional Expressions, Logical Operators)
8242         (Statement and operand traversals): Do not indent smallexample
8243         code.  Fix duplicate function argument in example.
8244
8245 2011-01-10  Jeff Law  <law@redhat.com>
8246
8247         PR tree-optimization/47141
8248         * ipa-split.c (split_function): Handle case where we are
8249         returning a value and the return block has a virtual operand phi.
8250
8251 2011-01-10  Jan Hubicka  <jh@suse.cz>
8252
8253         PR tree-optimization/47234
8254         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
8255         (pass_feedback_split_functions): Declare.
8256         * passes.c (init_optimization_passes): Add ipa-split as subpass of
8257         tree-profile.
8258         * ipa-split.c (gate_split_functions): Update comments; disable
8259         split-functions for profile_arc_flag and branch_probabilities.
8260         (gate_feedback_split_functions): New function.
8261         (execute_feedback_split_functions): New function.
8262         (pass_feedback_split_functions): New global var.
8263
8264 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
8265
8266         PR lto/46760
8267         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
8268         calling gimple_call_set_cannot_inline.
8269
8270 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
8271
8272         * config/darwin-sections.def: Remove unused section.
8273
8274 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
8275
8276         PR c++/47218
8277         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
8278
8279 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
8280
8281         PR objc/47232
8282         * c-parser.c (c_parser_declaration_or_fndef): Improved
8283         error message.
8284
8285 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
8286
8287         * config/i386/winnt.c (i386_pe_start_function): Make sure
8288         to switch back to function's section.
8289
8290 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
8291
8292         PR gcc/46902
8293         PR testsuite/46912
8294         * plugin.c: Move include of dlfcn.h from here...
8295         * system.h: ... to here.
8296
8297 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8298
8299         * doc/cpp.texi (C++ Named Operators): Fix markup for header
8300         file name.
8301         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
8302         two extra empty pages in PDF output.
8303
8304 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
8305
8306         PR objc/47078
8307         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
8308         for error recovery purposes behave as if it was not specified so
8309         that the default type is usd.
8310
8311 2011-01-07  Jan Hubicka  <jh@suse.cz>
8312
8313         PR tree-optmization/46469
8314         * ipa.c (function_and_variable_visibility): Clear needed flags on
8315         nodes with external decls; handle weakrefs merging correctly.
8316
8317 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
8318
8319         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
8320         not false.
8321
8322 2011-01-07  Jan Hubicka  <jh@suse.cz>
8323
8324         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
8325         and no longer claim that gold is required for linker plugin.
8326         * configure: Regenerate.
8327         * gcc.c (PLUGIN_COND): New macro.
8328         (LINK_COMMAND_SPEC): Use it.
8329         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
8330         * config.in (HAVE_LTO_PLUGIN): New.
8331         * configure.ac (--with-lto-plugin): New parameter; autodetect
8332         HAVE_LTO_PLUGIN.
8333
8334 2011-01-07  Jan Hubicka  <jh@suse.cz>
8335
8336         PR tree-optimization/46367
8337         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
8338         when we can update original.
8339         (cgraph_mark_inline_edge): Sanity check.
8340         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
8341
8342 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8343
8344         * config/spu/spu.h (ASM_COMMENT_START): Define.
8345
8346 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
8347
8348         PR driver/42445
8349         * gcc.c (%>S): New.
8350         (SWITCH_KEEP_FOR_GCC): Likewise.
8351         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
8352         (do_spec_1): Handle "%>".
8353
8354         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
8355
8356 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
8357
8358         PR target/47201
8359         * config/i386/i386.c (ix86_delegitimize_address): If
8360         simplify_gen_subreg fails, return orig_x.
8361
8362         PR bootstrap/47187
8363         * value-prof.c (gimple_stringop_fixed_value): Handle
8364         lhs of the call properly.
8365
8366 2011-01-07  Jan Hubicka  <jh@suse.cz>
8367
8368         PR lto/45375
8369         * lto-opt.c (lto_reissue_options): Set flag_shlib.
8370
8371 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
8372
8373         * target.def (function_switched_text_sections): New hook.
8374         * doc/tm.texi: Regenerated.
8375         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8376         * final.c (default_function_switched_text_sections): New.
8377         (final_scan_insn): Call function_switched_text_sections when a
8378         mid-function section change occurs.
8379         * output.h (default_function_switched_text_sections): Declare.
8380         * config/darwin-protos.h (darwin_function_switched_text_sections):
8381         Likewise.
8382         * config/darwin.c (darwin_function_switched_text_sections): New.
8383         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8384
8385 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
8386
8387         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
8388         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
8389         the secondary code fragment when outputting for DWARF == 2.
8390
8391 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
8392
8393         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8394         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
8395         Remove.
8396         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
8397         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8398
8399 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
8400
8401         PR debug/46704
8402         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
8403         when it is not empty.
8404
8405 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
8406
8407         Bobcat Enablement
8408         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
8409         (case ${target}): Add btver1.
8410         * config/i386/driver-i386.c (host_detect_local_cpu): Let
8411         -march=native recognize btver1 processors.
8412         * config/i386/i386-c.c (ix86_target_macros_internal): Add
8413         btver1 def_and_undef
8414         * config/i386/i386.c (struct processor_costs btver1_cost): New
8415         btver1 cost table.
8416         (m_BTVER1): New definition.
8417         (m_AMD_MULTIPLE): Includes m_BTVER1.
8418         (initial_ix86_tune_features): Add btver1 tune.
8419         (processor_target_table): Add btver1 entry.
8420         (static const char *const cpu_names): Add btver1 entry.
8421         (software_prefetching_beneficial_p): Add btver1.
8422         (ix86_option_override_internal): Add btver1 instruction sets.
8423         (ix86_issue_rate): Add btver1.
8424         (ix86_adjust_cost): Add btver1.
8425         * config/i386/i386.h (TARGET_BTVER1): New definition.
8426         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
8427         (enum processor_type): Add PROCESSOR_BTVER1.
8428         * config/i386/i386.md (define_attr "cpu"): Add btver1.
8429
8430 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8431
8432         PR target/43309
8433         * config/i386/i386.c (legitimize_tls_address)
8434         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
8435         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
8436         (tls_initial_exec_64_sun): New pattern.
8437
8438 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
8439
8440         * doc/invoke.texi (Overall Options): Improve wording and markup
8441         of the description of -wrapper.
8442
8443 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
8444
8445         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
8446         rdynamic, threads): New Driver options.
8447
8448 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8449
8450         PR target/38118
8451         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
8452         if coming from .tdata.
8453         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8454
8455 2011-01-06  Jan Hubicka  <jh@suse.cz>
8456
8457         PR lto/47188
8458         * collect2.c (main): Do not enable LTOmode when plugin is active.
8459
8460 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8461
8462         PR other/45915
8463         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
8464         --version output if supported.
8465         * configure: Regenerate.
8466
8467 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
8468
8469         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
8470         Driver options.
8471
8472 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
8473
8474         PR c/47150
8475         * c-convert.c (convert): When converting a complex expression
8476         other than COMPLEX_EXPR to a different complex type, ensure
8477         c_save_expr is called instead of save_expr, unless in_late_binary_op.
8478         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
8479         when converting COMPLEX_TYPE.
8480
8481 2011-01-06  Ira Rosen  <irar@il.ibm.com>
8482
8483         PR tree-optimization/47139
8484         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
8485         only the last reduction value is used outside the loop.  Update
8486         documentation.
8487
8488 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
8489
8490         * config/rtems.opt: New.
8491         * config.gcc (*-*-rtems*): Use rtems.opt.
8492
8493 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
8494
8495         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
8496         processors do not support 3DNow instructions.
8497
8498 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8499
8500         * config/spu/spu.c (spu_option_override): Set parameter
8501         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
8502
8503 2011-01-05  Jan Hubicka  <jh@suse.cz>
8504
8505         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
8506         at the command line.
8507
8508 2011-01-05  Martin Jambor  <mjambor@suse.cz>
8509
8510         PR lto/47162
8511         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
8512         deltas on streamed outgoing edges.
8513         (output_node_opt_summary): Output info for outgoing edges only when
8514         the node is in new parameter set.
8515         (output_cgraph_opt_summary): New parameter set, passed to the two
8516         aforementioned functions.  Update its forward declaration and its
8517         callee too.
8518
8519 2011-01-05  Tom Tromey  <tromey@redhat.com>
8520
8521         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
8522         operator to c_finish_omp_atomic.
8523         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
8524         (build_unary_op): Update.
8525         (build_modify_expr): Update.
8526         (build_asm_expr): Update.
8527
8528 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8529
8530         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
8531         newly inserted insns.
8532         (pad_bb): Likewise.
8533         (spu_emit_branch_hint): Likewise.
8534         (insert_hbrp_for_ilb_runout): Likewise.
8535         (spu_machine_dependent_reorg): Call df_finish_pass after
8536         schedule_insns returns.
8537
8538 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8539
8540         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
8541
8542 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
8543
8544         PR tree-optimization/47005
8545         * tree-sra.c (struct access): Add 'non_addressable' bit.
8546         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
8547         (decide_one_param_reduction): Return 0 if the parameter is passed by
8548         reference and one of the accesses in the group is non_addressable.
8549
8550 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
8551
8552         PR tree-optimization/47056
8553         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
8554         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
8555         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
8556
8557 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
8558
8559         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
8560         initializer.  Skip view conversions from aggregate types.
8561
8562 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
8563
8564         PR bootstrap/47055
8565         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
8566
8567 2011-01-04  Philipp Thomas  <pth@suse.de>
8568
8569         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
8570         obvious typo.
8571
8572 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8573
8574         * function.c (thread_prologue_and_epilogue_insns): Do not crash
8575         on empty epilogue sequences.
8576
8577 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
8578
8579         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
8580         non-static): New Driver options.
8581
8582 2011-01-04  Jie Zhang  <jie@codesourcery.com>
8583
8584         PR driver/47137
8585         * gcc.c (default_compilers[]): Set combinable field to 0
8586         for all assembly languages.
8587
8588 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
8589
8590         * config/mips/loongson3a.md: New file.
8591         * config/mips/mips.md: Include loongson3a.md.
8592         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
8593         TUNE_LOONGSON_3A.
8594
8595 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
8596
8597         PR middle-end/47017
8598         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
8599         instead of convert_memory_address_addr_space on the base expression.
8600
8601 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8602
8603         * config/spu/spu.c (spu_option_override): Update error text
8604         for bad -march= / -mtune= values.
8605
8606 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8607
8608         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
8609         if branch-hint optimization will be performed.
8610
8611 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
8612
8613         PR tree-optimization/47148
8614         * ipa-split.c (split_function): Convert arguments to
8615         DECL_ARG_TYPE if possible.
8616
8617         PR tree-optimization/47155
8618         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
8619         when computing uns.
8620
8621         PR rtl-optimization/47157
8622         * combine.c (try_combine): If undobuf.other_insn becomes
8623         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
8624         and set *new_direct_jump_p too.
8625
8626 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
8627
8628         PR tree-optimization/47021
8629         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
8630
8631 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
8632
8633         * gcc.c (process_command): Update copyright notice dates.
8634         * gcov.c (print_version): Likewise.
8635         * gcov-dump.c (print_version): Likewise.
8636         * mips-tfile.c (main): Likewise.
8637         * mips-tdump.c (main): Likewise.
8638
8639 2011-01-03  Martin Jambor  <mjambor@suse.cz>
8640
8641         PR tree-optimization/46801
8642         * tree-sra.c (type_internals_preclude_sra_p): Check whether
8643         aggregate fields start at byte boundary instead of the bit-field flag.
8644
8645 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
8646
8647         PR driver/47137
8648         * gcc.c (main): Revert revision 168407.
8649
8650 2011-01-03  Martin Jambor  <mjambor@suse.cz>
8651
8652         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
8653
8654 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8655
8656         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
8657         vector optab to expand vector/scalar shift, update gimple to vector.
8658
8659 2011-01-03  Martin Jambor  <mjambor@suse.cz>
8660
8661         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
8662         a thunk.
8663
8664 2011-01-03  Martin Jambor  <mjambor@suse.cz>
8665
8666         PR tree-optimization/46984
8667         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
8668         HOST_WIDE_INT.
8669         (cgraph_create_indirect_edge): Fixed line length.
8670         (cgraph_indirect_call_info): Declare.
8671         (cgraph_make_edge_direct) Update declaration.
8672         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
8673         (cgraph_create_indirect_edge): Use it.
8674         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
8675         callees.
8676         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
8677         the new thunk_delta representation.
8678         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
8679         HOST_WIDE_INT.
8680         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
8681         (ipa_read_indirect_edge_info): Likewise.
8682         * lto-cgraph.c (output_edge_opt_summary): New function.
8683         (output_node_opt_summary): Call it on all outgoing edges.
8684         (input_edge_opt_summary): New function.
8685         (input_node_opt_summary): Call it on all outgoing edges.
8686
8687 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
8688
8689         PR driver/47137
8690         * gcc.c (main): Don't check have_o when settting combine_inputs.
8691
8692 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
8693
8694         * regrename.c: Add general comment describing the pass.
8695         (struct du_head): Remove 'length' field.
8696         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
8697         (regrename_optimize): Do not sort chains.  Rework comments, add others.
8698         Force renaming to the preferred class (if any) in the first pass and do
8699         not consider registers that belong to it in the second pass.
8700         (create_new_chain): Do not set 'length' field.
8701         (scan_rtx_reg): Likewise.
8702
8703 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
8704
8705         PR tree-optimization/47140
8706         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
8707         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
8708         to bit_value_binop.
8709
8710         PR rtl-optimization/47028
8711         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
8712         parm_birth_insn instead of at the beginning of first bb.
8713
8714 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
8715
8716         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
8717         Remove the word "see" before "@pxref".
8718         * doc/rtl.texi: Remove the word "see" before "@pxref".
8719
8720 2011-01-01  Jan Hubicka  <jh@suse.cz>
8721
8722         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
8723         memory.
8724
8725 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
8726
8727         PR target/38662
8728         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
8729
8730 \f
8731 Copyright (C) 2011 Free Software Foundation, Inc.
8732
8733 Copying and distribution of this file, with or without modification,
8734 are permitted in any medium without royalty provided the copyright
8735 notice and this notice are preserved.