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