OSDN Git Service

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