OSDN Git Service

2011-01-14 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-01-14  Richard Guenther  <rguenther@suse.de>
2
3         PR middle-end/47281
4         Revert
5         2011-01-11  Richard Guenther  <rguenther@suse.de>
6
7         PR tree-optimization/46076
8         * tree-ssa.c (useless_type_conversion_p): Conversions from
9         unprototyped to empty argument list function types are useless.
10
11 2011-01-14  Richard Guenther  <rguenther@suse.de>
12
13         PR tree-optimization/47286
14         * tree-ssa-structalias.c (new_var_info): Register variables
15         are global.
16
17 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18
19         PR middle-end/46823
20         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
21
22 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
23
24         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
25         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26         * config/xtensa/xtensa.c (xtensa_libcall_value,
27         xtensa_function_value_regno_p): New functions.
28         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29
30 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
31
32         PR c++/47213
33         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
34         PE specific hook.
35         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
36         New function prototype.
37         * config/i386/winnt.c (i386_pe_assemble_visibility):
38         Warn only if attribute was specified by user.
39
40 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
41
42         PR target/47251
43         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
44         floating point.
45         (floatunsdidf2_fcfidu): Ditto.
46
47 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
48
49         * config/s390/s390.c (print_operand_address): Replace 'error' with
50         'output_operand_lossage'.
51         (print_operand): Likewise.
52
53 2011-01-13  Jeff Law  <law@redhat.com>
54
55         * PR rtl-optimization/39077
56         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
57         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
58         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
59         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
60         * gcse.c (prune_insertions_deletions): New function.
61         (compute_pre_data): Use it.
62
63 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
64
65         PR debug/PR46973
66         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
67         static function.
68         (prune_unused_types_mark): Use it.
69
70 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
71
72         PR rtl-optimization/45352
73         * sel-sched.c: Update copyright years. 
74         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
75         in the advancing loop when we have issued issue_rate insns. 
76
77 2011-01-12  Richard Henderson  <rth@redhat.com>
78
79         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
80         (TARGET_MD_ASM_CLOBBERS): New.
81
82         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
83         (TARGET_DELEGITIMIZE_ADDRESS): New.
84
85         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
86         (clzsi2, *bsch): New patterns.
87
88         * config/mn10300/mn10300.md (INT): New mode iterator.
89         (*mov<INT>_clr): New pattern, and peep2 to generate it.
90
91         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
92         flag_split_wide_types.
93
94         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
95         (mn10300_trampoline_init): Rewrite without a template, an immediate
96         load and a direct branch.
97         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
98
99 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
100
101         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
102         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
103         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
104         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
105
106 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
107
108         PR debug/47209
109         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
110         of type.
111
112 2011-01-12  Jan Hubicka  <jh@suse.cz>
113
114         PR driver/47244
115         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
116         (PLUGIN_COND_CLOSE): New macro.
117         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
118
119 2011-01-12  Richard Guenther  <rguenther@suse.de>
120
121         PR lto/47259
122         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
123         register variables in a MEM_REF.
124
125 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
126
127         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
128         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
129         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
130         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
131         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
132         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
133         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
134         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
135         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
136         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
137         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
138         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
139         * config/gnu-user.h: New.  Copied from linux.h.
140         (LINUX_TARGET_STARTFILE_SPEC): Rename to
141         GNU_USER_TARGET_STARTFILE_SPEC.
142         (LINUX_TARGET_ENDFILE_SPEC): Rename to
143         GNU_USER_TARGET_ENDFILE_SPEC.
144         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
145         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
146         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
147         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
148         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
149         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
150         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
151         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
152         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
153         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
154         * config/arm/linux-eabi.h (CC1_SPEC): Use
155         GNU_USER_TARGET_CC1_SPEC.
156         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
157         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
158         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
159         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
160         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
161         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
162         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
163         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
164
165 2011-01-12  Richard Guenther  <rguenther@suse.de>
166
167         PR other/46946
168         * doc/invoke.texi (ffast-math): Document it is turned on
169         with -Ofast.
170
171 2011-01-12  Jan Hubicka  <jh@suse.cz>
172
173         PR tree-optimization/47233
174         * opts.c (common_handle_option): Disable ipa-reference with profile
175         feedback.
176
177 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>      
178
179         * c-parser.c (c_parser_objc_at_property_declaration): Improved
180         error message.
181
182 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
183
184         * c-parser.c (c_lex_one_token): Updated and reindented some
185         comments.  No changes in code.
186
187 2011-01-11  Ian Lance Taylor  <iant@google.com>
188
189         * godump.c (go_output_var): Don't output the variable if there is
190         already a type with the same name.
191
192 2011-01-11  Ian Lance Taylor  <iant@google.com>
193
194         * godump.c (go_format_type): Don't generate float80.
195
196 2011-01-11  Richard Henderson  <rth@redhat.com>
197
198         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
199         declaration.  Rewrite for both speed and size.
200         (mn10300_address_cost_1): Remove.
201         (mn10300_register_move_cost): New.
202         (mn10300_memory_move_cost): New.
203         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
204         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
205         extensions, shifts, BSWAP, CLZ.
206         (mn10300_wide_const_load_uses_clr): Remove.
207         (TARGET_REGISTER_MOVE_COST): New.
208         (TARGET_MEMORY_MOVE_COST): New.
209         * config/mn10300/mn10300-protos.h: Update.
210         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
211
212         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
213         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
214         * config/mn10300/mn10300-protos.h: Update.
215         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
216         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
217         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
218         (*test_int_bitfield, *test_byte_bitfield): Remove.
219         (*bit_test, *subreg_bit_test): Remove.
220         * config/mn10300/predicates.md (const_8bit_operand): Remove.
221
222         * config/mn10300/constraints.md ("c"): Rename from "A".
223         ("A", "D"): New constraint letters.
224         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
225         (fmssf4, fnmasf4, fnmssf4): Likewise.
226
227         * config/mn10300/mn10300.md (isa): New attribute.
228         (enabled): New attribute.
229
230         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
231         (abssf2, negsf2): Define only for hardware fp.
232         (sqrtsf2): Reformat.
233         (addsf3, subsf3, mulsf3): Merge expander and insn.
234
235         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
236         (DEBUGGER_AUTO_OFFSET): Remove.
237         (DEBUGGER_ARG_OFFSET): Remove.
238
239         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
240         Emit register stores with the same offsets as the hardware.
241         (mn10300_store_multiple_operation): Don't check that the register
242         save offsets are monotonic.
243         * config/mn10300/mn10300-protos.h: Update.
244
245         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
246
247         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
248         in terms of the value on the stack, not the MDR register.
249
250 2011-01-11  Jan Hubicka  <jh@suse.cz>
251
252         PR lto/45721
253         PR lto/45375
254         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
255         (symbol_alias_set_destroy, symbol_alias_set_contains,
256         propagate_aliases_backward): Declare.
257         * lto-streamer-out.c (struct sets): New sturcture.
258         (trivally_defined_alias): New function.
259         (output_alias_pair_p): Rewrite.
260         (output_unreferenced_globals): Fix output of alias pairs.
261         (produce_symtab): Likewise.
262         * ipa.c (function_and_variable_visibility): Set weak alias destination
263         as needed in lto.
264         * varasm.c (symbol_alias_set_t): Remove.
265         (symbol_alias_set_destroy): Export.
266         (propagate_aliases_forward, propagate_aliases_backward): New functions
267         based on ...
268         (compute_visible_aliases): ... this one; remove.
269         (trivially_visible_alias): New
270         (trivially_defined_alias): New.
271         (remove_unreachable_alias_pairs): Rewrite.
272         (finish_aliases_1): Reorganize code checking if alias is defined.
273         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
274         in LTO mode.
275
276 2011-01-11  Richard Guenther  <rguenther@suse.de>
277
278         PR tree-optimization/46076
279         * tree-ssa.c (useless_type_conversion_p): Conversions from
280         unprototyped to empty argument list function types are useless.
281
282 2011-01-11  Richard Guenther  <rguenther@suse.de>
283
284         PR middle-end/45235
285         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
286         volatile MEMs as MEM_READONLY_P.
287
288 2011-01-11  Richard Guenther  <rguenther@suse.de>
289
290         PR tree-optimization/47239
291         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
292
293 2011-01-11  Jeff Law  <law@redhat.com>
294
295         PR tree-optimization/47086
296         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
297         IVs from statements that might throw.
298
299 2011-01-10  Jan Hubicka  <jh@suse.cz>
300
301         PR lto/45375
302         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
303
304 2011-01-10  Jan Hubicka  <jh@suse.cz>
305
306         PR lto/45375
307         * profile.c (read_profile_edge_counts): Ignore profile inconistency
308         when correcting profile.
309
310 2011-01-10  Jan Hubicka  <jh@suse.cz>
311
312         PR lto/46083
313         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
314         DECL_FINI_PRIORITY.
315         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
316         Restore DECL_FINI_PRIORITY.
317
318 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
319
320         * doc/gimple.texi: Fix quoting of multi-word return values in
321         @deftypefn statements.  Ensure presence of return value.  Wrap
322         overlong @deftypefn lines.
323         (is_gimple_operand, is_gimple_min_invariant_address): Remove
324         descriptions of removed functions.
325         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
326         of multi-word return value in @deftypefn statement.
327
328 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
329
330         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
331         (Conditional Expressions, Logical Operators)
332         (Statement and operand traversals): Do not indent smallexample
333         code.  Fix duplicate function argument in example.
334
335 2011-01-10  Jeff Law  <law@redhat.com>
336
337         PR tree-optimization/47141
338         * ipa-split.c (split_function): Handle case where we are
339         returning a value and the return block has a virtual operand phi.
340
341 2011-01-10  Jan Hubicka  <jh@suse.cz>
342
343         PR tree-optimization/47234 
344         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
345         (pass_feedback_split_functions): Declare.
346         * passes.c (init_optimization_passes): Add ipa-split as subpass of
347         tree-profile.
348         * ipa-split.c (gate_split_functions): Update comments; disable
349         split-functions for profile_arc_flag and branch_probabilities.
350         (gate_feedback_split_functions): New function.
351         (execute_feedback_split_functions): New function.
352         (pass_feedback_split_functions): New global var.
353
354 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
355
356         PR lto/46760
357         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
358         calling gimple_call_set_cannot_inline.
359
360 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
361
362         * config/darwin-sections.def: Remove unused section.
363
364 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
365
366         PR c++/47218
367         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
368
369 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
370
371         PR objc/47232
372         * c-parser.c (c_parser_declaration_or_fndef): Improved
373         error message.
374
375 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
376
377         * config/i386/winnt.c (i386_pe_start_function): Make sure
378         to switch back to function's section.
379
380 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
381
382         PR gcc/46902
383         PR testsuite/46912
384         * plugin.c: Move include of dlfcn.h from here...
385         * system.h: ... to here.
386
387 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
388
389         * doc/cpp.texi (C++ Named Operators): Fix markup for header
390         file name.
391         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
392         two extra empty pages in PDF output.
393
394 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
395
396         PR objc/47078
397         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
398         for error recovery purposes behave as if it was not specified so
399         that the default type is usd.
400
401 2011-01-07  Jan Hubicka  <jh@suse.cz>
402
403         PR tree-optmization/46469
404         * ipa.c (function_and_variable_visibility): Clear needed flags on
405         nodes with external decls; handle weakrefs merging correctly.
406
407 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
408
409         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
410         not false.
411
412 2011-01-07  Jan Hubicka  <jh@suse.cz>
413
414         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
415         and no longer claim that gold is required for linker plugin.
416         * configure: Regenerate.
417         * gcc.c (PLUGIN_COND): New macro.
418         (LINK_COMMAND_SPEC): Use it.
419         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
420         * config.in (HAVE_LTO_PLUGIN): New.
421         * configure.ac (--with-lto-plugin): New parameter; autodetect
422         HAVE_LTO_PLUGIN.
423
424 2011-01-07  Jan Hubicka  <jh@suse.cz>
425
426         PR tree-optimization/46367
427         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
428         when we can update original.
429         (cgraph_mark_inline_edge): Sanity check.
430         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
431
432 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
433
434         * config/spu/spu.h (ASM_COMMENT_START): Define.
435
436 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
437
438         PR driver/42445
439         * gcc.c (%>S): New.
440         (SWITCH_KEEP_FOR_GCC): Likewise.
441         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
442         (do_spec_1): Handle "%>".
443
444         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
445
446 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
447
448         PR target/47201
449         * config/i386/i386.c (ix86_delegitimize_address): If
450         simplify_gen_subreg fails, return orig_x.
451
452         PR bootstrap/47187
453         * value-prof.c (gimple_stringop_fixed_value): Handle
454         lhs of the call properly.
455
456 2011-01-07  Jan Hubicka  <jh@suse.cz>
457
458         PR lto/45375
459         * lto-opt.c (lto_reissue_options): Set flag_shlib.
460
461 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
462
463         * target.def (function_switched_text_sections): New hook.
464         * doc/tm.texi: Regenerated.
465         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
466         * final.c (default_function_switched_text_sections): New.
467         (final_scan_insn): Call function_switched_text_sections when a
468         mid-function section change occurs.
469         * output.h (default_function_switched_text_sections): Declare.
470         * config/darwin-protos.h (darwin_function_switched_text_sections):
471         Likewise.
472         * config/darwin.c (darwin_function_switched_text_sections): New.
473         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
474
475 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
476
477         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
478         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
479         the secondary code fragment when outputting for DWARF == 2.
480
481 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
482
483         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
484         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
485         Remove.
486         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
487         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
488
489 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
490
491         PR debug/46704
492         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section
493         only when it is not empty.
494
495 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
496
497         Bobcat Enablement
498         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
499         (case ${target}): Add btver1.
500         * config/i386/driver-i386.c (host_detect_local_cpu): Let
501         -march=native recognize btver1 processors.
502         * config/i386/i386-c.c (ix86_target_macros_internal): Add
503         btver1 def_and_undef
504         * config/i386/i386.c (struct processor_costs btver1_cost): New
505         btver1 cost table.
506         (m_BTVER1): New definition.
507         (m_AMD_MULTIPLE): Includes m_BTVER1.
508         (initial_ix86_tune_features): Add btver1 tune.
509         (processor_target_table): Add btver1 entry.
510         (static const char *const cpu_names): Add btver1 entry.
511         (software_prefetching_beneficial_p): Add btver1.
512         (ix86_option_override_internal): Add btver1 instruction sets.
513         (ix86_issue_rate): Add btver1.
514         (ix86_adjust_cost): Add btver1.
515         * config/i386/i386.h (TARGET_BTVER1): New definition.
516         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
517         (enum processor_type): Add PROCESSOR_BTVER1.
518         * config/i386/i386.md (define_attr "cpu"): Add btver1.
519
520 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
521
522         PR target/43309
523         * config/i386/i386.c (legitimize_tls_address)
524         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
525         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
526         (tls_initial_exec_64_sun): New pattern.
527
528 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
529
530         * doc/invoke.texi (Overall Options): Improve wording and markup
531         of the description of -wrapper.
532
533 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
534
535         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
536         rdynamic, threads): New Driver options.
537
538 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
539
540         PR target/38118
541         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
542         if coming from .tdata.
543         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
544
545 2011-01-06  Jan Hubicka  <jh@suse.cz>
546
547         PR lto/47188
548         * collect2.c (main): Do not enable LTOmode when plugin is active.
549
550 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
551
552         PR other/45915
553         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
554         --version output if supported.
555         * configure: Regenerate.
556
557 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
558
559         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
560         Driver options.
561
562 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
563
564         PR c/47150
565         * c-convert.c (convert): When converting a complex expression
566         other than COMPLEX_EXPR to a different complex type, ensure
567         c_save_expr is called instead of save_expr, unless in_late_binary_op.
568         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
569         when converting COMPLEX_TYPE.
570
571 2011-01-06  Ira Rosen  <irar@il.ibm.com>
572
573         PR tree-optimization/47139
574         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
575         only the last reduction value is used outside the loop.  Update
576         documentation.
577
578 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
579
580         * config/rtems.opt: New.
581         * config.gcc (*-*-rtems*): Use rtems.opt.
582
583 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
584
585         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
586         processors do not support 3DNow instructions.
587
588 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
589
590         * config/spu/spu.c (spu_option_override): Set parameter
591         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
592
593 2011-01-05  Jan Hubicka  <jh@suse.cz>
594
595         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
596         at the command line.
597
598 2011-01-05  Martin Jambor  <mjambor@suse.cz>
599
600         PR lto/47162
601         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
602         deltas on streamed outgoing edges.
603         (output_node_opt_summary): Output info for outgoing edges only when
604         the node is in new parameter set.
605         (output_cgraph_opt_summary): New parameter set, passed to the two
606         aforementioned functions.  Update its forward declaration and its
607         callee too.
608
609 2011-01-05  Tom Tromey  <tromey@redhat.com>
610
611         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
612         operator to c_finish_omp_atomic.
613         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
614         (build_unary_op): Update.
615         (build_modify_expr): Update.
616         (build_asm_expr): Update.
617
618 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
619
620         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
621         newly inserted insns.
622         (pad_bb): Likewise.
623         (spu_emit_branch_hint): Likewise.
624         (insert_hbrp_for_ilb_runout): Likewise.
625         (spu_machine_dependent_reorg): Call df_finish_pass after
626         schedule_insns returns.
627
628 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
629
630         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
631
632 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
633
634         PR tree-optimization/47005
635         * tree-sra.c (struct access): Add 'non_addressable' bit.
636         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
637         (decide_one_param_reduction): Return 0 if the parameter is passed by
638         reference and one of the accesses in the group is non_addressable.
639
640 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
641
642         PR tree-optimization/47056
643         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
644         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
645         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
646
647 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
648
649         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
650         initializer.  Skip view conversions from aggregate types.
651
652 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
653
654         PR bootstrap/47055
655         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
656
657 2011-01-04  Philipp Thomas <pth@suse.de>
658
659         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
660         obvious typo.
661
662 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
663
664         * function.c (thread_prologue_and_epilogue_insns): Do not crash
665         on empty epilogue sequences.
666
667 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
668
669         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
670         non-static): New Driver options.
671
672 2011-01-04  Jie Zhang  <jie@codesourcery.com>
673
674         PR driver/47137
675         * gcc.c (default_compilers[]): Set combinable field to 0
676         for all assembly languages.
677
678 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
679
680         * config/mips/loongson3a.md: New file.
681         * config/mips/mips.md: Include loongson3a.md.
682         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
683         TUNE_LOONGSON_3A.
684
685 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
686
687         PR middle-end/47017
688         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
689         instead of convert_memory_address_addr_space on the base expression.
690
691 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
692
693         * config/spu/spu.c (spu_option_override): Update error text
694         for bad -march= / -mtune= values.
695
696 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
697
698         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
699         if branch-hint optimization will be performed.
700
701 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
702
703         PR tree-optimization/47148
704         * ipa-split.c (split_function): Convert arguments to
705         DECL_ARG_TYPE if possible.
706
707         PR tree-optimization/47155
708         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
709         when computing uns.
710
711         PR rtl-optimization/47157
712         * combine.c (try_combine): If undobuf.other_insn becomes
713         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
714         and set *new_direct_jump_p too.
715
716 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
717
718         PR tree-optimization/47021
719         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
720
721 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
722
723         * gcc.c (process_command): Update copyright notice dates.
724         * gcov.c (print_version): Likewise.
725         * gcov-dump.c (print_version): Likewise.
726         * mips-tfile.c (main): Likewise.
727         * mips-tdump.c (main): Likewise.
728
729 2011-01-03  Martin Jambor  <mjambor@suse.cz>
730
731         PR tree-optimization/46801
732         * tree-sra.c (type_internals_preclude_sra_p): Check whether
733         aggregate fields start at byte boundary instead of the bit-field flag.
734
735 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
736
737         PR driver/47137
738         * gcc.c (main): Revert revision 168407.
739
740 2011-01-03  Martin Jambor  <mjambor@suse.cz>
741
742         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
743
744 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
745
746         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
747         vector optab to expand vector/scalar shift, update gimple to vector.
748
749 2011-01-03  Martin Jambor  <mjambor@suse.cz>
750
751         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
752         a thunk.
753
754 2011-01-03  Martin Jambor  <mjambor@suse.cz>
755
756         PR tree-optimization/46984
757         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
758         HOST_WIDE_INT.
759         (cgraph_create_indirect_edge): Fixed line length.
760         (cgraph_indirect_call_info): Declare.
761         (cgraph_make_edge_direct) Update declaration.
762         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
763         (cgraph_create_indirect_edge): Use it.
764         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
765         callees.
766         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
767         the new thunk_delta representation.
768         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
769         HOST_WIDE_INT.
770         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
771         (ipa_read_indirect_edge_info): Likewise.
772         * lto-cgraph.c (output_edge_opt_summary): New function.
773         (output_node_opt_summary): Call it on all outgoing edges.
774         (input_edge_opt_summary): New function.
775         (input_node_opt_summary): Call it on all outgoing edges.
776
777 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
778
779         PR driver/47137
780         * gcc.c (main): Don't check have_o when settting combine_inputs.
781
782 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
783
784         * regrename.c: Add general comment describing the pass.
785         (struct du_head): Remove 'length' field.
786         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
787         (regrename_optimize): Do not sort chains.  Rework comments, add others.
788         Force renaming to the preferred class (if any) in the first pass and do
789         not consider registers that belong to it in the second pass.
790         (create_new_chain): Do not set 'length' field.
791         (scan_rtx_reg): Likewise.
792
793 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
794
795         PR tree-optimization/47140
796         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
797         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
798         to bit_value_binop.
799
800         PR rtl-optimization/47028
801         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
802         parm_birth_insn instead of at the beginning of first bb.
803
804 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
805
806         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
807         Remove the word "see" before "@pxref".
808         * doc/rtl.texi: Remove the word "see" before "@pxref".
809
810 2011-01-01  Jan Hubicka  <jh@suse.cz>
811
812         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
813         memory.
814
815 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
816
817         PR target/38662
818         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
819
820 \f
821 Copyright (C) 2011 Free Software Foundation, Inc.
822
823 Copying and distribution of this file, with or without modification,
824 are permitted in any medium without royalty provided the copyright
825 notice and this notice are preserved.