OSDN Git Service

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