OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
2
3         * config/darwin-sections.def: Remove unused section.
4
5 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
6
7         PR c++/47218
8         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
9
10 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11
12         PR objc/47232
13         * c-parser.c (c_parser_declaration_or_fndef): Improved
14         error message.
15
16 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
17
18         * config/i386/winnt.c (i386_pe_start_function): Make sure
19         to switch back to function's section.
20
21 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
22
23         PR gcc/46902
24         PR testsuite/46912
25         * plugin.c: Move include of dlfcn.h from here...
26         * system.h: ... to here.
27
28 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29
30         * doc/cpp.texi (C++ Named Operators): Fix markup for header
31         file name.
32         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
33         two extra empty pages in PDF output.
34
35 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
36
37         PR objc/47078
38         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
39         for error recovery purposes behave as if it was not specified so
40         that the default type is usd.
41
42 2011-01-07  Jan Hubicka  <jh@suse.cz>
43
44         PR tree-optmization/46469
45         * ipa.c (function_and_variable_visibility): Clear needed flags on
46         nodes with external decls; handle weakrefs merging correctly.
47
48 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
49
50         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
51         not false.
52
53 2011-01-07  Jan Hubicka  <jh@suse.cz>
54
55         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
56         and no longer claim that gold is required for linker plugin.
57         * configure: Regenerate.
58         * gcc.c (PLUGIN_COND): New macro.
59         (LINK_COMMAND_SPEC): Use it.
60         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
61         * config.in (HAVE_LTO_PLUGIN): New.
62         * configure.ac (--with-lto-plugin): New parameter; autodetect
63         HAVE_LTO_PLUGIN.
64
65 2011-01-07  Jan Hubicka  <jh@suse.cz>
66
67         PR tree-optimization/46367
68         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
69         when we can update original.
70         (cgraph_mark_inline_edge): Sanity check.
71         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
72
73 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
74
75         * config/spu/spu.h (ASM_COMMENT_START): Define.
76
77 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
78
79         PR driver/42445
80         * gcc.c (%>S): New.
81         (SWITCH_KEEP_FOR_GCC): Likewise.
82         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
83         (do_spec_1): Handle "%>".
84
85         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
86
87 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
88
89         PR target/47201
90         * config/i386/i386.c (ix86_delegitimize_address): If
91         simplify_gen_subreg fails, return orig_x.
92
93         PR bootstrap/47187
94         * value-prof.c (gimple_stringop_fixed_value): Handle
95         lhs of the call properly.
96
97 2011-01-07  Jan Hubicka  <jh@suse.cz>
98
99         PR lto/45375
100         * lto-opt.c (lto_reissue_options): Set flag_shlib.
101
102 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
103
104         * target.def (function_switched_text_sections): New hook.
105         * doc/tm.texi: Regenerated.
106         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
107         * final.c (default_function_switched_text_sections): New.
108         (final_scan_insn): Call function_switched_text_sections when a
109         mid-function section change occurs.
110         * output.h (default_function_switched_text_sections): Declare.
111         * config/darwin-protos.h (darwin_function_switched_text_sections):
112         Likewise.
113         * config/darwin.c (darwin_function_switched_text_sections): New.
114         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
115
116 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
117
118         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
119         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
120         the secondary code fragment when outputting for DWARF == 2.
121
122 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
123
124         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
125         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
126         Remove.
127         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
128         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
129
130 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
131
132         PR debug/46704
133         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section
134         only when it is not empty.
135
136 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
137
138         Bobcat Enablement
139         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
140         (case ${target}): Add btver1.
141         * config/i386/driver-i386.c (host_detect_local_cpu): Let
142         -march=native recognize btver1 processors.
143         * config/i386/i386-c.c (ix86_target_macros_internal): Add
144         btver1 def_and_undef
145         * config/i386/i386.c (struct processor_costs btver1_cost): New
146         btver1 cost table.
147         (m_BTVER1): New definition.
148         (m_AMD_MULTIPLE): Includes m_BTVER1.
149         (initial_ix86_tune_features): Add btver1 tune.
150         (processor_target_table): Add btver1 entry.
151         (static const char *const cpu_names): Add btver1 entry.
152         (software_prefetching_beneficial_p): Add btver1.
153         (ix86_option_override_internal): Add btver1 instruction sets.
154         (ix86_issue_rate): Add btver1.
155         (ix86_adjust_cost): Add btver1.
156         * config/i386/i386.h (TARGET_BTVER1): New definition.
157         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
158         (enum processor_type): Add PROCESSOR_BTVER1.
159         * config/i386/i386.md (define_attr "cpu"): Add btver1.
160
161 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
162
163         PR target/43309
164         * config/i386/i386.c (legitimize_tls_address)
165         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
166         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
167         (tls_initial_exec_64_sun): New pattern.
168
169 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
170
171         * doc/invoke.texi (Overall Options): Improve wording and markup
172         of the description of -wrapper.
173
174 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
175
176         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
177         rdynamic, threads): New Driver options.
178
179 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
180
181         PR target/38118
182         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
183         if coming from .tdata.
184         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
185
186 2011-01-06  Jan Hubicka  <jh@suse.cz>
187
188         PR lto/47188
189         * collect2.c (main): Do not enable LTOmode when plugin is active.
190
191 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
192
193         PR other/45915
194         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
195         --version output if supported.
196         * configure: Regenerate.
197
198 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
199
200         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
201         Driver options.
202
203 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
204
205         PR c/47150
206         * c-convert.c (convert): When converting a complex expression
207         other than COMPLEX_EXPR to a different complex type, ensure
208         c_save_expr is called instead of save_expr, unless in_late_binary_op.
209         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
210         when converting COMPLEX_TYPE.
211
212 2011-01-06  Ira Rosen  <irar@il.ibm.com>
213
214         PR tree-optimization/47139
215         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
216         only the last reduction value is used outside the loop.  Update
217         documentation.
218
219 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
220
221         * config/rtems.opt: New.
222         * config.gcc (*-*-rtems*): Use rtems.opt.
223
224 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
225
226         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
227         processors do not support 3DNow instructions.
228
229 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
230
231         * config/spu/spu.c (spu_option_override): Set parameter
232         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
233
234 2011-01-05  Jan Hubicka  <jh@suse.cz>
235
236         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
237         at the command line.
238
239 2011-01-05  Martin Jambor  <mjambor@suse.cz>
240
241         PR lto/47162
242         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
243         deltas on streamed outgoing edges.
244         (output_node_opt_summary): Output info for outgoing edges only when
245         the node is in new parameter set.
246         (output_cgraph_opt_summary): New parameter set, passed to the two
247         aforementioned functions.  Update its forward declaration and its
248         callee too.
249
250 2011-01-05  Tom Tromey  <tromey@redhat.com>
251
252         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
253         operator to c_finish_omp_atomic.
254         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
255         (build_unary_op): Update.
256         (build_modify_expr): Update.
257         (build_asm_expr): Update.
258
259 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
260
261         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
262         newly inserted insns.
263         (pad_bb): Likewise.
264         (spu_emit_branch_hint): Likewise.
265         (insert_hbrp_for_ilb_runout): Likewise.
266         (spu_machine_dependent_reorg): Call df_finish_pass after
267         schedule_insns returns.
268
269 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
270
271         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
272
273 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
274
275         PR tree-optimization/47005
276         * tree-sra.c (struct access): Add 'non_addressable' bit.
277         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
278         (decide_one_param_reduction): Return 0 if the parameter is passed by
279         reference and one of the accesses in the group is non_addressable.
280
281 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
282
283         PR tree-optimization/47056
284         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
285         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
286         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
287
288 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
289
290         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
291         initializer.  Skip view conversions from aggregate types.
292
293 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
294
295         PR bootstrap/47055
296         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
297
298 2011-01-04  Philipp Thomas <pth@suse.de>
299
300         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
301         obvious typo.
302
303 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
304
305         * function.c (thread_prologue_and_epilogue_insns): Do not crash
306         on empty epilogue sequences.
307
308 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
309
310         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
311         non-static): New Driver options.
312
313 2011-01-04  Jie Zhang  <jie@codesourcery.com>
314
315         PR driver/47137
316         * gcc.c (default_compilers[]): Set combinable field to 0
317         for all assembly languages.
318
319 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
320
321         * config/mips/loongson3a.md: New file.
322         * config/mips/mips.md: Include loongson3a.md.
323         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
324         TUNE_LOONGSON_3A.
325
326 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
327
328         PR middle-end/47017
329         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
330         instead of convert_memory_address_addr_space on the base expression.
331
332 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
333
334         * config/spu/spu.c (spu_option_override): Update error text
335         for bad -march= / -mtune= values.
336
337 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
338
339         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
340         if branch-hint optimization will be performed.
341
342 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
343
344         PR tree-optimization/47148
345         * ipa-split.c (split_function): Convert arguments to
346         DECL_ARG_TYPE if possible.
347
348         PR tree-optimization/47155
349         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
350         when computing uns.
351
352         PR rtl-optimization/47157
353         * combine.c (try_combine): If undobuf.other_insn becomes
354         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
355         and set *new_direct_jump_p too.
356
357 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
358
359         PR tree-optimization/47021
360         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
361
362 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
363
364         * gcc.c (process_command): Update copyright notice dates.
365         * gcov.c (print_version): Likewise.
366         * gcov-dump.c (print_version): Likewise.
367         * mips-tfile.c (main): Likewise.
368         * mips-tdump.c (main): Likewise.
369
370 2011-01-03  Martin Jambor  <mjambor@suse.cz>
371
372         PR tree-optimization/46801
373         * tree-sra.c (type_internals_preclude_sra_p): Check whether
374         aggregate fields start at byte boundary instead of the bit-field flag.
375
376 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
377
378         PR driver/47137
379         * gcc.c (main): Revert revision 168407.
380
381 2011-01-03  Martin Jambor  <mjambor@suse.cz>
382
383         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
384
385 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
386
387         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
388         vector optab to expand vector/scalar shift, update gimple to vector.
389
390 2011-01-03  Martin Jambor  <mjambor@suse.cz>
391
392         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
393         a thunk.
394
395 2011-01-03  Martin Jambor  <mjambor@suse.cz>
396
397         PR tree-optimization/46984
398         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
399         HOST_WIDE_INT.
400         (cgraph_create_indirect_edge): Fixed line length.
401         (cgraph_indirect_call_info): Declare.
402         (cgraph_make_edge_direct) Update declaration.
403         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
404         (cgraph_create_indirect_edge): Use it.
405         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
406         callees.
407         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
408         the new thunk_delta representation.
409         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
410         HOST_WIDE_INT.
411         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
412         (ipa_read_indirect_edge_info): Likewise.
413         * lto-cgraph.c (output_edge_opt_summary): New function.
414         (output_node_opt_summary): Call it on all outgoing edges.
415         (input_edge_opt_summary): New function.
416         (input_node_opt_summary): Call it on all outgoing edges.
417
418 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
419
420         PR driver/47137
421         * gcc.c (main): Don't check have_o when settting combine_inputs.
422
423 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
424
425         * regrename.c: Add general comment describing the pass.
426         (struct du_head): Remove 'length' field.
427         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
428         (regrename_optimize): Do not sort chains.  Rework comments, add others.
429         Force renaming to the preferred class (if any) in the first pass and do
430         not consider registers that belong to it in the second pass.
431         (create_new_chain): Do not set 'length' field.
432         (scan_rtx_reg): Likewise.
433
434 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
435
436         PR tree-optimization/47140
437         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
438         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
439         to bit_value_binop.
440
441         PR rtl-optimization/47028
442         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
443         parm_birth_insn instead of at the beginning of first bb.
444
445 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
446
447         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
448         Remove the word "see" before "@pxref".
449         * doc/rtl.texi: Remove the word "see" before "@pxref".
450
451 2011-01-01  Jan Hubicka  <jh@suse.cz>
452
453         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
454         memory.
455
456 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
457
458         PR target/38662
459         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
460
461 \f
462 Copyright (C) 2011 Free Software Foundation, Inc.
463
464 Copying and distribution of this file, with or without modification,
465 are permitted in any medium without royalty provided the copyright
466 notice and this notice are preserved.