OSDN Git Service

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