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