1 2011-01-14 Joseph Myers <joseph@codesourcery.com>
3 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
5 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
6 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
8 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
11 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14 (CC1_SPEC): Don't handle -profile.
16 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19 * config/mips/mips.h (CC1_SPEC): Likewise.
21 2011-01-14 Joseph Myers <joseph@codesourcery.com>
23 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
24 * config/mips/mips.h (CC1_SPEC): Likewise.
26 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29 * config/m32r/linux.h (LINK_SPEC): Likewise.
30 * config/mips/linux.h (LINK_SPEC): Likewise.
31 * config/mips/linux64.h (LINK_SPEC): Likewise.
32 * config/sparc/linux.h (LINK_SPEC): Likewise.
33 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
35 * config/xtensa/linux.h (LINK_SPEC): Likewise.
37 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
41 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
43 2011-01-14 Joseph Myers <joseph@codesourcery.com>
45 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
46 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
48 2011-01-14 Joseph Myers <joseph@codesourcery.com>
50 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
52 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
54 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
55 supports -Bstatic/-Bdynamic.
56 * configure: Regenerate.
58 2011-01-14 Jan Hubicka <jh@suse.cz>
59 Jack Howarth <howarth@bromo.med.uc.edu>
62 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
63 when checking debug_info_level. Test write_symbols instead of
64 debug_hooks->var_location when setting flag_var_tracking_uninit.
66 2011-01-14 Richard Guenther <rguenther@suse.de>
68 PR tree-optimization/47179
69 * target.def (ref_may_alias_errno): New target hook.
70 * targhooks.h (default_ref_may_alias_errno): Declare.
71 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
72 (default_ref_may_alias_errno): New function.
73 * target.h (struct ao_ref_s): Declare.
74 * tree-ssa-alias.c: Include target.h.
75 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
76 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
77 (targhooks.o): Likewise.
78 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
79 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
81 2011-01-14 Richard Guenther <rguenther@suse.de>
83 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
85 2011-01-14 Richard Guenther <rguenther@suse.de>
87 PR tree-optimization/47280
88 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
90 (tree_ssa_forward_propagate_single_use_vars): Deal with
91 CFG changes from associate_plusminus.
93 2011-01-14 Richard Guenther <rguenther@suse.de>
97 2011-01-11 Richard Guenther <rguenther@suse.de>
99 PR tree-optimization/46076
100 * tree-ssa.c (useless_type_conversion_p): Conversions from
101 unprototyped to empty argument list function types are useless.
103 2011-01-14 Richard Guenther <rguenther@suse.de>
105 PR tree-optimization/47286
106 * tree-ssa-structalias.c (new_var_info): Register variables are global.
108 2011-01-14 Martin Jambor <mjambor@suse.cz>
111 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
113 2011-01-13 Anatoly Sokolov <aesok@post.ru>
115 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
116 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
117 * config/xtensa/xtensa.c (xtensa_libcall_value,
118 xtensa_function_value_regno_p): New functions.
119 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
121 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
124 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
126 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
127 New function prototype.
128 * config/i386/winnt.c (i386_pe_assemble_visibility):
129 Warn only if attribute was specified by user.
131 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
134 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
136 (floatunsdidf2_fcfidu): Ditto.
138 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
140 * config/s390/s390.c (print_operand_address): Replace 'error' with
141 'output_operand_lossage'.
142 (print_operand): Likewise.
144 2011-01-13 Jeff Law <law@redhat.com>
146 PR rtl-optimization/39077
147 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
148 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
149 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
150 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
151 * gcse.c (prune_insertions_deletions): New function.
152 (compute_pre_data): Use it.
154 2011-01-13 Dodji Seketeli <dodji@redhat.com>
157 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
159 (prune_unused_types_mark): Use it.
161 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
163 PR rtl-optimization/45352
164 * sel-sched.c: Update copyright years.
165 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
166 in the advancing loop when we have issued issue_rate insns.
168 2011-01-12 Richard Henderson <rth@redhat.com>
170 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
171 (TARGET_MD_ASM_CLOBBERS): New.
173 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
174 (TARGET_DELEGITIMIZE_ADDRESS): New.
176 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
177 (clzsi2, *bsch): New patterns.
179 * config/mn10300/mn10300.md (INT): New mode iterator.
180 (*mov<INT>_clr): New pattern, and peep2 to generate it.
182 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
183 flag_split_wide_types.
185 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
186 (mn10300_trampoline_init): Rewrite without a template, an immediate
187 load and a direct branch.
188 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
190 2011-01-12 Anatoly Sokolov <aesok@post.ru>
192 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
193 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
194 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
195 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
197 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
200 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
203 2011-01-12 Jan Hubicka <jh@suse.cz>
206 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
207 (PLUGIN_COND_CLOSE): New macro.
208 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
210 2011-01-12 Richard Guenther <rguenther@suse.de>
213 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
214 register variables in a MEM_REF.
216 2011-01-12 Joseph Myers <joseph@codesourcery.com>
218 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
219 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
220 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
221 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
222 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
223 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
224 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
225 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
226 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
227 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
228 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
229 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
230 * config/gnu-user.h: New. Copied from linux.h.
231 (LINUX_TARGET_STARTFILE_SPEC): Rename to
232 GNU_USER_TARGET_STARTFILE_SPEC.
233 (LINUX_TARGET_ENDFILE_SPEC): Rename to
234 GNU_USER_TARGET_ENDFILE_SPEC.
235 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
236 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
237 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
238 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
239 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
240 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
241 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
242 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
243 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
244 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
245 * config/arm/linux-eabi.h (CC1_SPEC): Use
246 GNU_USER_TARGET_CC1_SPEC.
247 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
248 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
249 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
250 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
251 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
252 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
253 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
254 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
256 2011-01-12 Richard Guenther <rguenther@suse.de>
259 * doc/invoke.texi (ffast-math): Document it is turned on
262 2011-01-12 Jan Hubicka <jh@suse.cz>
264 PR tree-optimization/47233
265 * opts.c (common_handle_option): Disable ipa-reference with profile
268 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
270 * c-parser.c (c_parser_objc_at_property_declaration): Improved
273 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
275 * c-parser.c (c_lex_one_token): Updated and reindented some
276 comments. No changes in code.
278 2011-01-11 Ian Lance Taylor <iant@google.com>
280 * godump.c (go_output_var): Don't output the variable if there is
281 already a type with the same name.
283 2011-01-11 Ian Lance Taylor <iant@google.com>
285 * godump.c (go_format_type): Don't generate float80.
287 2011-01-11 Richard Henderson <rth@redhat.com>
289 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
290 declaration. Rewrite for both speed and size.
291 (mn10300_address_cost_1): Remove.
292 (mn10300_register_move_cost): New.
293 (mn10300_memory_move_cost): New.
294 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
295 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
296 extensions, shifts, BSWAP, CLZ.
297 (mn10300_wide_const_load_uses_clr): Remove.
298 (TARGET_REGISTER_MOVE_COST): New.
299 (TARGET_MEMORY_MOVE_COST): New.
300 * config/mn10300/mn10300-protos.h: Update.
301 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
303 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
304 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
305 * config/mn10300/mn10300-protos.h: Update.
306 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
307 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
308 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
309 (*test_int_bitfield, *test_byte_bitfield): Remove.
310 (*bit_test, *subreg_bit_test): Remove.
311 * config/mn10300/predicates.md (const_8bit_operand): Remove.
313 * config/mn10300/constraints.md ("c"): Rename from "A".
314 ("A", "D"): New constraint letters.
315 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
316 (fmssf4, fnmasf4, fnmssf4): Likewise.
318 * config/mn10300/mn10300.md (isa): New attribute.
319 (enabled): New attribute.
321 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
322 (abssf2, negsf2): Define only for hardware fp.
324 (addsf3, subsf3, mulsf3): Merge expander and insn.
326 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
327 (DEBUGGER_AUTO_OFFSET): Remove.
328 (DEBUGGER_ARG_OFFSET): Remove.
330 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
331 Emit register stores with the same offsets as the hardware.
332 (mn10300_store_multiple_operation): Don't check that the register
333 save offsets are monotonic.
334 * config/mn10300/mn10300-protos.h: Update.
336 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
338 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
339 in terms of the value on the stack, not the MDR register.
341 2011-01-11 Jan Hubicka <jh@suse.cz>
345 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
346 (symbol_alias_set_destroy, symbol_alias_set_contains,
347 propagate_aliases_backward): Declare.
348 * lto-streamer-out.c (struct sets): New sturcture.
349 (trivally_defined_alias): New function.
350 (output_alias_pair_p): Rewrite.
351 (output_unreferenced_globals): Fix output of alias pairs.
352 (produce_symtab): Likewise.
353 * ipa.c (function_and_variable_visibility): Set weak alias destination
355 * varasm.c (symbol_alias_set_t): Remove.
356 (symbol_alias_set_destroy): Export.
357 (propagate_aliases_forward, propagate_aliases_backward): New functions
359 (compute_visible_aliases): ... this one; remove.
360 (trivially_visible_alias): New
361 (trivially_defined_alias): New.
362 (remove_unreachable_alias_pairs): Rewrite.
363 (finish_aliases_1): Reorganize code checking if alias is defined.
364 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
367 2011-01-11 Richard Guenther <rguenther@suse.de>
369 PR tree-optimization/46076
370 * tree-ssa.c (useless_type_conversion_p): Conversions from
371 unprototyped to empty argument list function types are useless.
373 2011-01-11 Richard Guenther <rguenther@suse.de>
376 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
377 volatile MEMs as MEM_READONLY_P.
379 2011-01-11 Richard Guenther <rguenther@suse.de>
381 PR tree-optimization/47239
382 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
384 2011-01-11 Jeff Law <law@redhat.com>
386 PR tree-optimization/47086
387 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
388 IVs from statements that might throw.
390 2011-01-10 Jan Hubicka <jh@suse.cz>
393 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
395 2011-01-10 Jan Hubicka <jh@suse.cz>
398 * profile.c (read_profile_edge_counts): Ignore profile inconistency
399 when correcting profile.
401 2011-01-10 Jan Hubicka <jh@suse.cz>
404 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
406 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
407 Restore DECL_FINI_PRIORITY.
409 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
411 * doc/gimple.texi: Fix quoting of multi-word return values in
412 @deftypefn statements. Ensure presence of return value. Wrap
413 overlong @deftypefn lines.
414 (is_gimple_operand, is_gimple_min_invariant_address): Remove
415 descriptions of removed functions.
416 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
417 of multi-word return value in @deftypefn statement.
419 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
421 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
422 (Conditional Expressions, Logical Operators)
423 (Statement and operand traversals): Do not indent smallexample
424 code. Fix duplicate function argument in example.
426 2011-01-10 Jeff Law <law@redhat.com>
428 PR tree-optimization/47141
429 * ipa-split.c (split_function): Handle case where we are
430 returning a value and the return block has a virtual operand phi.
432 2011-01-10 Jan Hubicka <jh@suse.cz>
434 PR tree-optimization/47234
435 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
436 (pass_feedback_split_functions): Declare.
437 * passes.c (init_optimization_passes): Add ipa-split as subpass of
439 * ipa-split.c (gate_split_functions): Update comments; disable
440 split-functions for profile_arc_flag and branch_probabilities.
441 (gate_feedback_split_functions): New function.
442 (execute_feedback_split_functions): New function.
443 (pass_feedback_split_functions): New global var.
445 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
448 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
449 calling gimple_call_set_cannot_inline.
451 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
453 * config/darwin-sections.def: Remove unused section.
455 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
458 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
460 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
463 * c-parser.c (c_parser_declaration_or_fndef): Improved
466 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
468 * config/i386/winnt.c (i386_pe_start_function): Make sure
469 to switch back to function's section.
471 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
475 * plugin.c: Move include of dlfcn.h from here...
476 * system.h: ... to here.
478 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
480 * doc/cpp.texi (C++ Named Operators): Fix markup for header
482 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
483 two extra empty pages in PDF output.
485 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
488 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
489 for error recovery purposes behave as if it was not specified so
490 that the default type is usd.
492 2011-01-07 Jan Hubicka <jh@suse.cz>
494 PR tree-optmization/46469
495 * ipa.c (function_and_variable_visibility): Clear needed flags on
496 nodes with external decls; handle weakrefs merging correctly.
498 2011-01-07 Joseph Myers <joseph@codesourcery.com>
500 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
503 2011-01-07 Jan Hubicka <jh@suse.cz>
505 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
506 and no longer claim that gold is required for linker plugin.
507 * configure: Regenerate.
508 * gcc.c (PLUGIN_COND): New macro.
509 (LINK_COMMAND_SPEC): Use it.
510 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
511 * config.in (HAVE_LTO_PLUGIN): New.
512 * configure.ac (--with-lto-plugin): New parameter; autodetect
515 2011-01-07 Jan Hubicka <jh@suse.cz>
517 PR tree-optimization/46367
518 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
519 when we can update original.
520 (cgraph_mark_inline_edge): Sanity check.
521 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
523 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
525 * config/spu/spu.h (ASM_COMMENT_START): Define.
527 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
531 (SWITCH_KEEP_FOR_GCC): Likewise.
532 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
533 (do_spec_1): Handle "%>".
535 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
537 2011-01-07 Jakub Jelinek <jakub@redhat.com>
540 * config/i386/i386.c (ix86_delegitimize_address): If
541 simplify_gen_subreg fails, return orig_x.
544 * value-prof.c (gimple_stringop_fixed_value): Handle
545 lhs of the call properly.
547 2011-01-07 Jan Hubicka <jh@suse.cz>
550 * lto-opt.c (lto_reissue_options): Set flag_shlib.
552 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
554 * target.def (function_switched_text_sections): New hook.
555 * doc/tm.texi: Regenerated.
556 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
557 * final.c (default_function_switched_text_sections): New.
558 (final_scan_insn): Call function_switched_text_sections when a
559 mid-function section change occurs.
560 * output.h (default_function_switched_text_sections): Declare.
561 * config/darwin-protos.h (darwin_function_switched_text_sections):
563 * config/darwin.c (darwin_function_switched_text_sections): New.
564 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
566 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
568 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
569 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
570 the secondary code fragment when outputting for DWARF == 2.
572 2011-01-07 Anatoly Sokolov <aesok@post.ru>
574 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
575 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
577 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
578 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
580 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
583 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
584 when it is not empty.
586 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
589 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
590 (case ${target}): Add btver1.
591 * config/i386/driver-i386.c (host_detect_local_cpu): Let
592 -march=native recognize btver1 processors.
593 * config/i386/i386-c.c (ix86_target_macros_internal): Add
595 * config/i386/i386.c (struct processor_costs btver1_cost): New
597 (m_BTVER1): New definition.
598 (m_AMD_MULTIPLE): Includes m_BTVER1.
599 (initial_ix86_tune_features): Add btver1 tune.
600 (processor_target_table): Add btver1 entry.
601 (static const char *const cpu_names): Add btver1 entry.
602 (software_prefetching_beneficial_p): Add btver1.
603 (ix86_option_override_internal): Add btver1 instruction sets.
604 (ix86_issue_rate): Add btver1.
605 (ix86_adjust_cost): Add btver1.
606 * config/i386/i386.h (TARGET_BTVER1): New definition.
607 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
608 (enum processor_type): Add PROCESSOR_BTVER1.
609 * config/i386/i386.md (define_attr "cpu"): Add btver1.
611 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
614 * config/i386/i386.c (legitimize_tls_address)
615 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
616 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
617 (tls_initial_exec_64_sun): New pattern.
619 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
621 * doc/invoke.texi (Overall Options): Improve wording and markup
622 of the description of -wrapper.
624 2011-01-06 Joseph Myers <joseph@codesourcery.com>
626 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
627 rdynamic, threads): New Driver options.
629 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
632 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
633 if coming from .tdata.
634 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
636 2011-01-06 Jan Hubicka <jh@suse.cz>
639 * collect2.c (main): Do not enable LTOmode when plugin is active.
641 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
644 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
645 --version output if supported.
646 * configure: Regenerate.
648 2011-01-06 Joseph Myers <joseph@codesourcery.com>
650 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
653 2011-01-06 Jakub Jelinek <jakub@redhat.com>
656 * c-convert.c (convert): When converting a complex expression
657 other than COMPLEX_EXPR to a different complex type, ensure
658 c_save_expr is called instead of save_expr, unless in_late_binary_op.
659 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
660 when converting COMPLEX_TYPE.
662 2011-01-06 Ira Rosen <irar@il.ibm.com>
664 PR tree-optimization/47139
665 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
666 only the last reduction value is used outside the loop. Update
669 2011-01-05 Joseph Myers <joseph@codesourcery.com>
671 * config/rtems.opt: New.
672 * config.gcc (*-*-rtems*): Use rtems.opt.
674 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
676 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
677 processors do not support 3DNow instructions.
679 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
681 * config/spu/spu.c (spu_option_override): Set parameter
682 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
684 2011-01-05 Jan Hubicka <jh@suse.cz>
686 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
689 2011-01-05 Martin Jambor <mjambor@suse.cz>
692 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
693 deltas on streamed outgoing edges.
694 (output_node_opt_summary): Output info for outgoing edges only when
695 the node is in new parameter set.
696 (output_cgraph_opt_summary): New parameter set, passed to the two
697 aforementioned functions. Update its forward declaration and its
700 2011-01-05 Tom Tromey <tromey@redhat.com>
702 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
703 operator to c_finish_omp_atomic.
704 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
705 (build_unary_op): Update.
706 (build_modify_expr): Update.
707 (build_asm_expr): Update.
709 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
711 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
712 newly inserted insns.
714 (spu_emit_branch_hint): Likewise.
715 (insert_hbrp_for_ilb_runout): Likewise.
716 (spu_machine_dependent_reorg): Call df_finish_pass after
717 schedule_insns returns.
719 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
721 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
723 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
725 PR tree-optimization/47005
726 * tree-sra.c (struct access): Add 'non_addressable' bit.
727 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
728 (decide_one_param_reduction): Return 0 if the parameter is passed by
729 reference and one of the accesses in the group is non_addressable.
731 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
733 PR tree-optimization/47056
734 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
735 (mark_load): Likewise. Handle FUNCTION_DECL specially.
736 (mark_store): Likewise. Pass STMT to ipa_record_reference.
738 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
740 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
741 initializer. Skip view conversions from aggregate types.
743 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
746 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
748 2011-01-04 Philipp Thomas <pth@suse.de>
750 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
753 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
755 * function.c (thread_prologue_and_epilogue_insns): Do not crash
756 on empty epilogue sequences.
758 2011-01-04 Joseph Myers <joseph@codesourcery.com>
760 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
761 non-static): New Driver options.
763 2011-01-04 Jie Zhang <jie@codesourcery.com>
766 * gcc.c (default_compilers[]): Set combinable field to 0
767 for all assembly languages.
769 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
771 * config/mips/loongson3a.md: New file.
772 * config/mips/mips.md: Include loongson3a.md.
773 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
776 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
779 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
780 instead of convert_memory_address_addr_space on the base expression.
782 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
784 * config/spu/spu.c (spu_option_override): Update error text
785 for bad -march= / -mtune= values.
787 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
789 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
790 if branch-hint optimization will be performed.
792 2011-01-03 Jakub Jelinek <jakub@redhat.com>
794 PR tree-optimization/47148
795 * ipa-split.c (split_function): Convert arguments to
796 DECL_ARG_TYPE if possible.
798 PR tree-optimization/47155
799 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
802 PR rtl-optimization/47157
803 * combine.c (try_combine): If undobuf.other_insn becomes
804 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
805 and set *new_direct_jump_p too.
807 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
809 PR tree-optimization/47021
810 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
812 2011-01-03 Jakub Jelinek <jakub@redhat.com>
814 * gcc.c (process_command): Update copyright notice dates.
815 * gcov.c (print_version): Likewise.
816 * gcov-dump.c (print_version): Likewise.
817 * mips-tfile.c (main): Likewise.
818 * mips-tdump.c (main): Likewise.
820 2011-01-03 Martin Jambor <mjambor@suse.cz>
822 PR tree-optimization/46801
823 * tree-sra.c (type_internals_preclude_sra_p): Check whether
824 aggregate fields start at byte boundary instead of the bit-field flag.
826 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
829 * gcc.c (main): Revert revision 168407.
831 2011-01-03 Martin Jambor <mjambor@suse.cz>
833 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
835 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
837 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
838 vector optab to expand vector/scalar shift, update gimple to vector.
840 2011-01-03 Martin Jambor <mjambor@suse.cz>
842 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
845 2011-01-03 Martin Jambor <mjambor@suse.cz>
847 PR tree-optimization/46984
848 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
850 (cgraph_create_indirect_edge): Fixed line length.
851 (cgraph_indirect_call_info): Declare.
852 (cgraph_make_edge_direct) Update declaration.
853 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
854 (cgraph_create_indirect_edge): Use it.
855 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
857 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
858 the new thunk_delta representation.
859 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
861 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
862 (ipa_read_indirect_edge_info): Likewise.
863 * lto-cgraph.c (output_edge_opt_summary): New function.
864 (output_node_opt_summary): Call it on all outgoing edges.
865 (input_edge_opt_summary): New function.
866 (input_node_opt_summary): Call it on all outgoing edges.
868 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
871 * gcc.c (main): Don't check have_o when settting combine_inputs.
873 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
875 * regrename.c: Add general comment describing the pass.
876 (struct du_head): Remove 'length' field.
877 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
878 (regrename_optimize): Do not sort chains. Rework comments, add others.
879 Force renaming to the preferred class (if any) in the first pass and do
880 not consider registers that belong to it in the second pass.
881 (create_new_chain): Do not set 'length' field.
882 (scan_rtx_reg): Likewise.
884 2011-01-02 Jakub Jelinek <jakub@redhat.com>
886 PR tree-optimization/47140
887 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
888 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
891 PR rtl-optimization/47028
892 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
893 parm_birth_insn instead of at the beginning of first bb.
895 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
897 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
898 Remove the word "see" before "@pxref".
899 * doc/rtl.texi: Remove the word "see" before "@pxref".
901 2011-01-01 Jan Hubicka <jh@suse.cz>
903 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
906 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
909 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
912 Copyright (C) 2011 Free Software Foundation, Inc.
914 Copying and distribution of this file, with or without modification,
915 are permitted in any medium without royalty provided the copyright
916 notice and this notice are preserved.