(TARGET_BUILTIN_RECIPROCAL): Fix argument types.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
2
3         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
4         appearance.
5
6         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
7         Fix markup for strict argument.
8
9         (TARGET_SCHED_REORDER2): Fix argument types.
10
11         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
12         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
13
14         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
15         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
16
17         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
18         Add argument name.
19
20         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
21         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
22         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
23         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
24         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
25
26         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
27
28         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
29
30         (TARGET_ASM_RELOC_RW_MASK): Add return type.
31         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
32
33         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
34
35         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
36         Use prototype.
37
38         (TARGET_ASM_NAMED_SECTION): Fix argument list.
39
40         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
41         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
42
43         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
44
45         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
46
47         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
48         referring to it.  Fix language.
49
50         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
51
52         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
53
54         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
55
56         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
57
58         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
59         '@var{stream}.  Remove stray 'and'.
60
61         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
62
63         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
64
65         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
66
67         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was 
68         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
69
70         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
71         Fix description of return value.
72         Rename argument "sz" to "len."
73
74         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
75         Clarify meaning of 'true' return value.
76
77         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
78
79         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
80         rep_mode versus mode_rep.
81
82         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
83
84         (TARGET_BUILTIN_DECL): Fix name.
85
86         (TARGET_COMMUTATIVE_P): Fix type of first argument.
87
88         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
89
90         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
91
92         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
93
94         (TARGET_RELAXED_ORDERING): Use @deftypevr.
95
96         (TARGET_GET_DRAP_RTX): Note that this is a hook.
97         Clarify language.
98
99         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
100         Rename argument tm_fn to md_fn.
101
102 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
103
104         PR target/42664
105         * config/i386/i386.c (ix86_fixup_binary_operands):
106         Revert FMA4 fixup of operands.
107
108 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109
110         PR gcc/42525
111         * Makefile.in (write_entries_to_file, install-plugin):
112         Use \012 instead of \n with tr.
113
114 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
115
116         * configure.ac (HAVE_AS_REF): New C macro.
117         * configure: Regenerate.
118         * config.in: Likewise.
119         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
120         if HAVE_AS_REF.
121         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
122         if HAVE_AS_REF.
123
124 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
125
126         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
127
128         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
129
130         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
131
132         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
133
134         (TARGET_IN_SMALL_DATA_P): Fix argument type.
135
136         (TARGET_BINDS_LOCAL_P): Fix argument type.
137
138         (TARGET_ASM_FILE_END): Use prototype.
139
140         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
141
142         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
143
144         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
145
146         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
147
148         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
149         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
150
151         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
152         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
153
154         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
155         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
156         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
157         (TARGET_ADDR_SPACE_CONVERT): Likewise.
158
159         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
160
161         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
162
163         (TARGET_INIT_BUILTINS): Use prototype.
164
165         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
166         Put 'const char *' in braces.  Fix parameter types.
167         (TARGET_INVALID_CONVERSION): Fix parameter types.
168         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
169         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
170
171         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
172         Fix argument type.
173
174         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
175
176         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
177
178 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
179
180         * doc/tm.texi (TARGET_HELP): Fix return type.
181
182         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
183         in braces.  Fix argument types.
184
185         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
186
187         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
188
189         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
190
191         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
192         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
193
194         (TARGET_MANGLE_TYPE): Fix argument types.
195
196         (TARGET_IRA_COVER_CLASSES): Use prototype.
197
198         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
199
200         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
201
202         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
203
204         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
205
206         (TARGET_CALLEE_COPIES): Fix argument types.
207
208         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
209
210         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
211
212         (TARGET_FUNCTION_VALUE): Fix argument types.
213
214         (TARGET_RETURN_IN_MSB): Fix argument type.
215
216         (TARGET_RETURN_IN_MEMORY): Fix argument types.
217
218         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
219
220         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
221
222         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
223         agree with return type.
224
225         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
226
227 2010-01-15  Jing Yu  <jingyu@google.com>
228
229         PR rtl-optimization/42691
230         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
231         a pseudo to a constant and are merged, and adjust comments.
232
233 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
234
235         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
236
237 2010-01-15  Richard Guenther  <rguenther@suse.de>
238
239         PR middle-end/42739
240         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
241         labels of computed or non-local gotos to the destination.
242         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
243         landing pad label is the first label.
244
245 2010-01-15  Richard Guenther  <rguenther@suse.de>
246
247         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
248
249 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
250
251         PR target/42747
252         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
253         to allow generation of the xssqrtdp instruction on power7.
254         (sqrtdf2_fpr): Ditto.
255
256 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
257
258         PR middle-end/42674
259         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
260         functions with noreturn attribute.
261
262         PR c++/42608
263         * varasm.c (declare_weak): Add weak attribute to decl if it
264         doesn't have one already.
265         (assemble_external): Only add decls to weak_decls if they also
266         have weak attribute.
267
268 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
269
270         * var-tracking.c (var_reg_delete): Don't delete the association
271         between REGs and values or one-part variables if the register
272         isn't clobbered.
273
274 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
275
276         PR debug/42657
277         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
278         because its first operand is a non-localized variable.
279
280 2010-01-14  Martin Jambor  <mjambor@suse.cz>
281
282         PR tree-optimization/42706
283         * tree-sra.c (encountered_recursive_call): New variable.
284         (encountered_unchangable_recursive_call): Likewise.
285         (sra_initialize): Initialize both new variables.
286         (callsite_has_enough_arguments_p): New function.
287         (scan_function): Call decl and flags check only for IPA-SRA, check
288         whether there is a recursive call and whether it has enough arguments.
289         (all_callers_have_enough_arguments_p): New function.
290         (convert_callers): Look for recursive calls only when
291         encountered_recursive_call is set.
292         (ipa_early_sra): Bail out either if
293         !all_callers_have_enough_arguments_p or
294         encountered_unchangable_recursive_call.
295
296 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
297
298         * sel-sched.c: Add 2010 to copyright years.
299         * sel-sched-ir.c: Likewise.
300         * sel-sched-ir.h: Likewise.
301
302 2010-01-14  Martin Jambor  <mjambor@suse.cz>
303
304         PR tree-optimization/42714
305         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
306         constructors specially.
307
308 2010-01-14  Andi Kleen  <ak@linux.intel.com>
309
310         * config/i386/drivers-i386.c (detect_caches_intel):
311         Add l2sizekb parameter and fill in.
312         (host_detect_local_cpu): Add l2sizekb, fill in.
313         Add Atom small cache heuristic.
314
315 2010-01-14  Andi Kleen  <ak@linux.intel.com>
316
317         * config/i386/drivers-i386.c (detect_caches_cpuid4):
318         Add level3 parameter and fill in.
319         (detect_caches_intel): Handle level3 cache.
320
321 2010-01-14  Andi Kleen  <ak@linux.intel.com>
322
323         * config/i386/drivers-i386.c (host_detect_local_cpu):
324         Fix core duo detection.
325
326 2010-01-14  Andi Kleen  <ak@linux.intel.com>
327
328         * config/i386/drivers-i386.c (host_detect_local_cpu):
329         Fix Atom detection.
330
331 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
332
333         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
334         (rs6000_variable_issue_1): this.  Use...
335         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
336
337 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
338
339         * sel-sched-ir.c (sel_restore_other_notes): Rename to
340         sel_restore_notes.  Update all callers.  Call reemit_notes
341         for all insns.
342
343 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
344
345         PR rtl-optimization/42246
346         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
347         loops.
348
349 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
350
351         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
352         all successors is the same as number of successors in current region.
353
354 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
355
356         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
357         to rename is not separable.  Otherwise check that its LHS is not NULL.
358
359 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
360
361         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
362
363 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
364
365         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
366         available registers when failed to discover LHS register class.
367         Fix indentation.  Update comment.
368
369 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
370             Alexander Monakov  <amonakov@ispras.ru>
371
372         PR rtl-optimization/42389
373         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
374         to can_issue_more.
375         (advance_state_on_fence): Likewise.
376         (sel_target_adjust_priority): Print debug output only when
377         sched_verbose >= 4, not 2.
378         (get_expr_cost): Do not issue all unique insns on the next cycle.
379         (fill_insns): Initialize can_issue_more from the value saved
380         with the fence.
381         * sel-sched-ir.c (flist_add): New parameter issue_more.
382         Init FENCE_ISSUE_MORE with it.
383         (merge_fences): Likewise.
384         (init_fences): Update call to flist_add.
385         (add_to_fences, add_clean_fence_to_fences)
386         (add_dirty_fence_to_fences): Likewise.
387         (move_fence_to_fences): Update call to merge_fences.
388         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
389         sched groups.
390         * sel-sched-ir.h (struct _fence): New field issue_more.
391         (FENCE_ISSUE_MORE): New accessor macro.
392
393 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
394
395         PR rtl-optimization/42388
396         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
397         that have no predecessors nor successors.  Do not call move_bb_info
398         for empty blocks outside of current region.
399
400 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
401
402         PR rtl-optimization/42294
403         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
404         * sel-sched.c (move_exprs_to_boundary): Transitively add all
405         originators' originators.
406
407 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
408
409         PR rtl-optimization/39453
410         PR rtl-optimization/42246
411         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
412         for pipelining_p.
413         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
414
415 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
416             Alexander Monakov  <amonakov@ispras.ru>
417
418         PR middle-end/42245
419         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
420         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
421         argument.  Update all callers.
422         (tidy_control_flow): ... and here.  Recompute topological order
423         of basic blocks in region if necessary.
424         (sel_redirect_edge_and_branch): Change return type.  Return true
425         if topological order might have been invalidated.
426         (purge_empty_blocks): Export and move from...
427         * sel-sched.c (purge_empty_blocks): ... here.
428         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
429         (maybe_tidy_empty_bb): Delete prototype.
430         (purge_empty_blocks): Declare.
431
432 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
433
434         PR rtl-optimization/42249
435         * sel-sched.c (try_replace_dest_reg): When chosen register
436         and original register is the same, do not bail out early, but
437         still check all original insns for validity of replacing destination
438         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
439         in this case.
440
441 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
442
443         PR c/42721
444         Port from no-undefined-overflow branch:
445         2009-03-09  Richard Guenther  <rguenther@suse.de>
446
447         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
448
449 2010-01-14  Richard Guenther  <rguenther@suse.de>
450
451         PR lto/42665
452         * gimple.c (iterative_hash_gimple_type): Avoid hashing
453         error_mark_node.
454
455 2010-01-14  Ira Rosen  <irar@il.ibm.com>
456
457         PR tree-optimization/42709
458         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
459         as scalar type in creation of constant vector operand.
460
461 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
462
463         PR testsuite/42414
464         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
465         (check-parallel-%): Match `testsuite' directory component only
466         at the end.
467
468 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
469
470         PR translation/39521
471         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
472         strings with _().
473
474 2010-01-13  Richard Guenther  <rguenther@suse.de>
475
476         PR tree-optimization/42730
477         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
478         offset zero.
479
480 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
481
482         PR target/pr42542
483         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
484         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
485         them signed.
486
487 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
488
489         * config/bfin/libgcc-bfin.ver: Regenerate based on current
490         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
491         ___umulsi3_highpart.
492
493         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
494         rather than schedule_insns if the pass is enabled.
495
496 2010-01-13  Martin Jambor  <mjambor@suse.cz>
497
498         PR tree-optimization/42704
499         * tree-sra.c (sra_modify_assign): Do not delete assignments to
500         SSA_NAMEs.
501
502 2010-01-13  Martin Jambor  <mjambor@suse.cz>
503
504         PR tree-optimization/42703
505         * tree-sra.c (analyze_access_subtree): Check that we can build a
506         reference to the original data within the aggregate.
507
508 2010-01-13  Richard Guenther  <rguenther@suse.de>
509
510         PR tree-optimization/42705
511         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after
512         labels.
513
514 2010-01-13  Richard Guenther  <rguenther@suse.de>
515
516         PR middle-end/42716
517         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
518
519 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
520
521         PR debug/41371
522         * var-tracking.c (values_to_unmark): New variable.
523         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
524         values_to_unmark vector.  Moved body to...
525         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
526         instead queue it into values_to_unmark vector.
527         (vt_find_locations): Free values_to_unmark vector.
528
529 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
530
531         * config/s390/s390.c (override_options): Set
532         default of max-pending-list-length to 256
533
534 2010-01-13  Richard Guenther  <rguenther@suse.de>
535
536         PR lto/42678
537         * tree-pass.h (PROP_gimple_lcx): New.
538         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
539         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
540         before the final cleanup_eh.
541         (dump_properties): Dump PROP_gimple_lcx.
542         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
543         (tree_lower_complex_O0): Remove.
544         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
545         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
546         tree_lower_complex, schedule TODO_update_ssa.
547         * lto-streamer-out.c (output_function): Stream the functions
548         properties.
549         * lto-streamer-in.c (input_function): Likewise.
550         (lto_read_body): Do not override them here.
551
552 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
553
554         PR c/42708
555         * c-typeck.c (build_c_cast): Fold value cast to union type before
556         wrapping it in a CONSTRUCTOR.
557
558 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
559
560         PR rtl-optimization/42699
561         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
562         involved.
563
564 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
565
566         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
567         SUBTARGET_WARN_UNUSED_SPEC): Move ...
568         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
569         SUBTARGET_WARN_UNUSED_SPEC): ... here
570         * config/mips/iris5.h (LIBGCC_SPEC): Define.
571
572 2010-01-12  Julian Brown  <julian@codesourcery.com>
573
574         * config/arm/neon-schedgen.ml (Utils): Don't try to
575         open missing module.
576         (find_with_result): New.
577
578 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
579
580         PR debug/42662
581         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
582         sharing when canonicalizing ({lt,ge}u (plus a b) b).
583
584         PR tree-optimization/42645
585         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
586         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
587         decl_map, set processing_debug_stmt to -1 and return name without
588         any remapping.
589
590 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
591
592         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
593         binutils version, and reword target configuration description.
594
595 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
596
597         * config/avr/avr.h (LINKER_NAME): Remove.
598
599 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
600
601         PR target/42416
602         * config/rs6000/rs6000.c (rs6000_override_options): On targets
603         that support VSX, warn for -mno-altivec if vsx is not disabled,
604         and disable vsx.
605
606 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
607             Shujing Zhao  <pearly.zhao@oracle.com>
608
609         PR translation/42469
610         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
611         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
612         character between option name and help text.
613         * c.opt (imultilib): Likewise.
614
615 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
616
617         * lto-streamer-out.c (output_unreferenced_globals): Output static
618         variables.
619
620 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
621
622         PR rtl-optimization/42621
623         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
624         optimizing for size.
625         (duplicate_computed_gotos): Remove now-redundant check.
626
627 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
628
629         PR target/37454
630         * configure.ac: Save and restore LDFLAGS and LIBS
631         * configure: Regenerate.
632
633 2010-01-10  Richard Guenther  <rguenther@suse.de>
634
635         PR middle-end/42667
636         * builtins.c (fold_builtin_strlen): Add type argument and
637         convert the resulting length to it.
638         (fold_builtin_1): Adjust.
639
640 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
641
642         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
643         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
644         1 insn.
645         (num_insns_constant_wide): Adjust for that change.
646
647 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
648
649         PR debug/42631
650         * web.c (union_defs): Add used argument, to combine uses of
651         uninitialized regs.
652         (entry_register): Adjust type and tests of used argument.
653         (web_main): Widen used for new use.  Pass it to union_defs.
654         * df.h (union_defs): Adjust prototype.
655
656 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
657
658         PR debug/42630
659         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
660         uses in new incoming argument.  Free body.
661         (reset_debug_uses_in_loop): New.
662         (analyze_insn_to_expand_var): Call the latter if the former found
663         anything.  Fix whitespace.  Reject invalid dest overlaps before
664         going through all insns in the loop.
665
666 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
667
668         PR debug/42629
669         * haifa-sched.c (dying_use_p): Debug insns don't count.
670
671 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
672
673         PR middle-end/42363
674         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
675         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
676         (verify_gimple_call): Reject LHS in noreturn calls.
677
678 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
679
680         PR debug/42604
681         PR debug/42395
682         * tree-vect-loop-manip.c (adjust_info): New type.
683         (adjust_vec): New pointer to vector.
684         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
685         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
686         (slpeel_update_phis_for_duplicate_loop): Use them.
687         (slpeel_update_phi_nodes_for_guard1): Likewise.
688         (slpeel_update_phi_nodes_for_guard2): Likewise.
689         (slpeel_tree_peel_loop_to_edge): Likewise.
690         (vect_update_ivs_after_vectorizer): Likewise.
691
692 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
693
694         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
695         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
696
697 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
698
699         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
700         bogus uninitialized warning.
701
702 2010-01-09  Richard Guenther  <rguenther@suse.de>
703
704         PR middle-end/42512
705         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
706         the evolution is compatible with the initial condition.
707
708 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
709
710         * gcc.c (process_command): Update copyright notice dates.
711         * gcov.c (print_version): Likewise.
712         * gcov-dump.c (print_version): Likewise.
713         * mips-tfile.c (main): Likewise.
714         * mips-tdump.c (main): Likewise.
715
716 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
717
718         PR target/41885
719         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
720         (rotlhi3): Delete.
721         (rotlhi3_8): Delete.
722         (rotlsi3): Delete.
723         (rotlsi3_8): Delete.
724         (rotlsi3_16): Delete.
725         (rotlsi3_24): Delete.
726         (rotl<mode>3): New.
727         (*rotw<mode>3): New.
728         (*rotb<mode>3): New.
729         * config/avr/avr.c (avr_rotate_bytes): New function.
730         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
731
732 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
733
734         PR target/37454
735         * configure.ac: Modify -rdynamic check.
736         * configure: Regenerate.
737
738 2010-01-08  DJ Delorie  <dj@redhat.com>
739
740         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
741         register popping order.
742
743 2010-01-08  Richard Guenther  <rguenther@suse.de>
744
745         PR lto/42528
746         * c.opt (fsigned-char): Also let LTO handle this option.
747         (funsigned-char): Likewise.
748
749 2010-01-07  Richard Guenther  <rguenther@suse.de>
750
751         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
752         (gimple_op): Likewise.
753         (gimple_op_ptr): Likewise.
754         (gimple_assign_set_lhs): Remove gcc_assert.
755         (gimple_assign_set_rhs1): Likewise.
756         (gimple_assign_set_rhs2): Likewise.
757         (gimple_call_set_lhs): Likewise.
758         (gimple_call_set_fn): Likewise.
759         (gimple_call_set_fndecl): Likewise.
760         (gimple_call_fndecl): Likewise.
761         (gimple_call_return_type): Likewise.
762         (gimple_call_set_chain): Likewise.
763         (gimple_call_num_args): Likewise.
764         (gimple_call_set_arg): Likewise.
765         (gimple_cond_set_code): Likewise.
766         (gimple_cond_set_lhs): Likewise.
767         (gimple_cond_set_rhs): Likewise.
768         (gimple_cond_set_true_label): Likewise.
769         (gimple_cond_set_false_label): Likewise.
770         (gimple_label_set_label): Likewise.
771         (gimple_goto_set_dest): Likewise.
772         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
773         (gimple_debug_bind_get_value): Likewise.
774         (gimple_debug_bind_get_value_ptr): Likewise.
775         (gimple_debug_bind_set_var): Likewise.
776         (gimple_debug_bind_set_value): Likewise.
777         (gimple_debug_bind_reset_value): Likewise.
778         (gimple_debug_bind_has_value_p): Likewise.
779         (gimple_return_retval_ptr): Remove gcc_assert.
780         (gimple_return_retval): Likewise.
781         (gimple_return_set_retval): Likewise.
782         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
783         (safe_referenced_var_iterator): Remove.
784         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
785         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
786         (fill_referenced_var_vec): Remove.
787         (first_readonly_imm_use): Remove redundant gcc_assert.
788         (phi_arg_index_from_use): Combine gcc_asserts.
789         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
790         (first_imm_use_stmt): Remove redundant gcc_assert.
791         * tree-cfg.c (verify_gimple_call): Verify function and chain
792         operands.  Verify arguments.
793         (verify_types_in_gimple_stmt): Verify condition code and labels.
794
795 2010-01-07  Richard Guenther  <rguenther@suse.de>
796
797         PR tree-optimization/42641
798         * sese.c (rename_map_elt_info): Use the SSA name version, do
799         not hash pointers.
800
801 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
802
803         PR tree-optimization/42625
804         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
805         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body
806         aliases.
807
808 2010-01-07  Duncan Sands  <baldrick@free.fr>
809
810         * Makefile.in (PLUGIN_HEADERS): Add version.h.
811
812 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
813
814         PR target/42511
815         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
816         note itself is not function_invariant_p.
817
818 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
819
820         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
821         Do not add the DF_NOTE problem.
822         * store-motion.c (execute_rtl_store_motion): Likewise.
823
824 2010-01-07  Martin Jambor  <mjambor@suse.cz>
825
826         PR tree-optimization/42157
827         * tree-sra.c (compare_access_positions): Stabilize sort if both
828         accesses have integer types, return zero immediately if they are the
829         same.
830
831 2010-01-06  Richard Henderson  <rth@redhat.com>
832
833         PR middle-end/41883
834         * haifa-sched.c (add_to_note_list): Merge into ...
835         (concat_note_lists): ... here, and ...
836         (unlink_other_notes, rm_other_notes): Merge into...
837         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
838         NOTE_INSN_EPILOGUE_BEG.
839
840 2010-01-06  Richard Guenther  <rguenther@suse.de>
841
842         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
843         not inline regular functions into always-inline functions.
844
845 2010-01-06  Nick Clifton  <nickc@redhat.com>
846
847         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
848         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
849         used together.
850         (OVERRIDE_OPTIONS): Delete.
851         (OPTIMIZATION_OPTIONS): Define.
852         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
853         * config/rx/rx.c (rx_handle_option): Issue an error message if
854         -mcpu=rx200 and -fpu are used together.
855         (rx_set_optimization_options): New function.  Issue an error
856         message if an optimization attribute attempts to reset the FPU/
857         math optimization pairing.
858         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
859         * config/rx/rx.opt: Set the default to 32-bit doubles.
860         * config/rx/t-rx: Add multilibs for -nofpu option.
861         * doc/invoke.texi: Update documentation of RX options.
862
863 2010-01-06  Richard Guenther  <rguenther@suse.de>
864
865         * tree-ssa-pre.c (name_to_id): New global.
866         (alloc_expression_id): Simplify SSA name handling.
867         (lookup_expression_id): Likewise.
868         (init_pre): Zero name_to_id.
869         (fini_pre): Free it.
870
871 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
872
873         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
874
875 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
876
877         PR target/42542
878         * config/i386/sse.md (smaxv2di3): New.
879         (umaxv2di3): Likewise.
880         (sminv2di3): Likewise.
881         (uminv2di3): Likewise.
882
883 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
884
885         PR target/42564
886         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
887         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
888         (legitimize_tls_address): Likewise.
889         (sparc_tls_referenced_p): Likewise.
890         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
891         and adjust calls to legitimize_pic_address.
892         (legitimate_constant_p) Use sparc_tls_referenced_p.
893         (legitimate_pic_operand_p): Likewise.
894         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
895         (sparc_tls_symbol_ref_1): Delete.
896         (sparc_tls_referenced_p): Make static, recognize specific patterns.
897         (legitimize_tls_address): Make static, handle CONST patterns.
898         (legitimize_pic_address): Make static, remove unused parameter and
899         adjust recursive calls.
900         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
901         and adjust call to legitimize_pic_address.
902         (sparc_output_mi_thunk): Likewise.
903
904 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
905             H.J. Lu  <hongjiu.lu@intel.com>
906
907         PR target/42542
908         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
909         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
910         operands to make them signed.
911
912         Revert:
913         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
914
915         PR target/42542
916         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
917         GTU to GT for V4SI and V2DI.
918
919         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
920         (umin<mode>3): Removed.
921         (uminv8hi3): New.
922         (uminv4si3): Likewise.
923
924 2010-01-05  Martin Jambor  <mjambor@suse.cz>
925
926         PR tree-optimization/42462
927         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
928         current_function_decl to helper functions and macros.
929
930 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
931
932         PR bootstrap/41771
933         * flags.h: Don't include real.h.
934         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
935         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
936         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
937         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
938         * dominance.c: Update copyright.
939         * gimple.c (walk_gimple_op): Remove inline.
940         * tree-ssa-reassoc.c: Include real.h.
941         * Makefile.in (FLAGS_H): Remove $(REAL_H).
942         (tree-ssa-reassoc.o): Depend on $(REAL_H).
943
944 2010-01-05  Nick Clifton  <nickc@redhat.com>
945
946         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
947         register to push into the stack frame when the accumulator has to
948         be saved during interrupts.
949
950 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
951
952         * doc/invoke.texi: Remove the documentation about option
953         -Wunreachable-code.
954         * common.opt (Wunreachable-code):  Preserved for backward
955         compatibility.
956         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
957         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
958         the backward compatibility flag section.
959
960 2010-01-05  Richard Guenther  <rguenther@suse.de>
961
962         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
963
964 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
965
966         PR other/42611
967         * cfgexpand.c (expand_one_var): Diagnose too large variables.
968
969         PR tree-optimization/42508
970         * tree-sra.c (convert_callers): Check for recursive call
971         by comparing cgraph nodes instead of decls.
972         (modify_function): Call ipa_modify_formal_parameters also
973         on all same_body aliases.
974
975         * cgraphunit.c (cgraph_materialize_all_clones): Compare
976         cgraph nodes when checking for same_body aliases.
977
978 2010-01-05  Richard Guenther  <rguenther@suse.de>
979
980         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
981         allocation and lookup.
982         (get_or_alloc_expr_for_constant): Likewise.
983         (phi_translate): Sink allocation.
984
985 2010-01-04  Richard Guenther  <rguenther@suse.de>
986
987         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
988         a new entry only if needed.
989         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
990         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
991         hashtable lookup.
992         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
993         the result array.
994         (phi_translate): Handle CONSTANTs early.
995
996 2010-01-04  Martin Jambor  <mjambor@suse.cz>
997
998         PR tree-optimization/42398
999         * tree-sra.c (struct access): Removed flag grp_different_types.
1000         (dump_access): Do not dump the removed flag.
1001         (sort_and_splice_var_accesses): Do not set the removed flag.
1002         (sra_modify_expr): Check for type compatibility directly.
1003
1004 2010-01-04  Martin Jambor  <mjambor@suse.cz>
1005
1006         PR tree-optimization/42366
1007         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
1008         edges with variable number of parameters.
1009         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
1010         flag instead of asserting it.
1011         (ipa_read_node_info): Read uses_analysis_done flag.
1012
1013 2010-01-04  Richard Guenther  <rguenther@suse.de>
1014
1015         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
1016         iterative_hash_* as intended.
1017         (vn_reference_compute_hash): Likewise.  Simplify hashing
1018         SSA names.
1019         (vn_reference_lookup_2): Likewise.
1020         (vn_nary_op_compute_hash): Likewise.
1021         (vn_phi_compute_hash): Likewise.
1022         (expressions_equal_p): Remove strange code.
1023         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
1024         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
1025         (bitmap_insert_into_set_1): Take value-id as parameter.
1026         (add_to_value): Pass it.
1027         (bitmap_insert_into_set): Likewise.
1028         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
1029
1030 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
1031
1032         PR driver/42442
1033         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
1034         (do_self_spec): For switches with SWITCH_IGNORE set set also
1035         SWITCH_IGNORE_PERMANENTLY.
1036         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
1037         of SWITCH_IGNORE.
1038
1039 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
1040
1041         * lto-streamer-out.c (output_unreferenced_globals): Output the full
1042         tree of an unreferenced global var.
1043
1044 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1045
1046         PR target/42542
1047         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
1048         GTU to GT for V4SI and V2DI.
1049
1050         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
1051         (umin<mode>3): Removed.
1052         (uminv8hi3): New.
1053         (uminv4si3): Likewise.
1054
1055 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1056
1057         PR lto/42581
1058         * collect2.c (main): Turn on trace in collect2 if -v is passed
1059         to gcc with LTO.
1060
1061 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
1062
1063         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
1064         description of expression operand.
1065
1066 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
1067
1068         * configure.ac: Add install-html to target_list for Make-hooks.
1069         * configure: Regenerate.
1070         * fortran/Make-lang.in (F95_HTMLFILES): New.
1071         (fortran.html): Use it.
1072         (fortran.install-html): New.
1073         * Makefile.in (install-html): Add lang.install-html.
1074         * java/Make-lang.in (JAVA_HTMLFILES): New.
1075         (java.html): Use it.
1076         (java.install-html): New.
1077         * objc/Make-lang.in (objc.install-html): New.
1078         * objcp/Make-lang.in (obj-c++.install-html): New.
1079         * cp/Make-lang.in (c++.install-html): New.
1080         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
1081         * lto/Make-lang.in (lto.install-html): New.
1082
1083 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
1084
1085         PR lto/42520
1086         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
1087
1088 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
1089
1090         PR rtl-optimization/41862
1091         * store-motion.c (store_killed_in_insn, compute_store_table,
1092         remove_reachable_equiv_notes, replace_store_insn,
1093         build_store_vectors): Ignore all DEBUG_INSNs.
1094
1095 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
1096
1097         PR lto/41564
1098         * common.opt: Add dumpdir.
1099
1100         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
1101         isn't specified.
1102         (option_map): Add --dumpdir.
1103
1104         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
1105
1106         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
1107
1108         * opts.c (decode_options): Try dump_dir_name first if
1109         dump_base_name isn't an absolute path.
1110         (common_handle_option): Handle OPT_dumpdir.
1111
1112         * toplev.c (dump_dir_name): New.
1113         (print_switch_values): Also ignore -dumpdir.
1114
1115         * toplev.h (dump_dir_name): New.
1116
1117 2010-01-03  Richard Guenther  <rguenther@suse.de>
1118
1119         PR tree-optimization/42589
1120         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
1121         double-word expansion of bswap32.
1122
1123 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
1124
1125         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
1126         with BLOCK_FOR_INSN.
1127         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
1128         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
1129         noce_process_if_block): Likewise.
1130         * gcse.c (compute_local_properties, insert_expr_in_table,
1131         insert_set_in_table, canon_list_insert, find_avail_set,
1132         pre_insert_copy_insn): Likewise.
1133
1134         * basic-block.h (BLOCK_NUM): Move from here...
1135         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
1136
1137 2010-01-03  Richard Guenther  <rguenther@suse.de>
1138
1139         PR tree-optimization/42438
1140         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
1141         contains_may_not_return_call flag.
1142         (BB_MAY_NOTRETURN): New.
1143         (valid_in_sets): Trapping nary operations are not valid
1144         in blocks that may not return.
1145         (insert_into_preds_of_block): Remove check for trapping
1146         expressions.
1147         (compute_avail): Compute also BB_MAY_NOTRETURN.
1148
1149 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
1150
1151         * doc/invoke.texi: Add 2010 to copyright years.
1152
1153 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
1154
1155         * config/sparc/sparc.c: Fix formatting nits.
1156
1157 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
1158             Alexander Monakov  <amonakov@ispras.ru>
1159
1160         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
1161
1162 2010-01-02  Richard Guenther  <rguenther@suse.de>
1163
1164         PR middle-end/42577
1165         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
1166         (simplify_switch_using_ranges): Mark to be removed edges
1167         as non-executable.
1168
1169 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1170
1171         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
1172
1173         * collect2.c (scan_libraries): Add missing argument in call to
1174         scan_prog_file.
1175
1176 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
1177
1178         PR target/42448
1179         * config/alpha/predicates.md (aligned_memory_operand): Return false
1180         for CQImode.
1181         (unaligned_memory_operand): Return true for CQImode.
1182         * config/alpha/alpha.c (get_aligned_mem): Assert that location
1183         doesn not cross aligned SImode word boundary.
1184
1185 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
1186
1187         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
1188         Remove.
1189         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
1190         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
1191
1192 2010-01-02  Richard Guenther  <rguenther@suse.de>
1193
1194         PR lto/41597
1195         * toplev.c (compile_file): Emit LTO marker properly.  Change
1196         it to __gnu_lto_v1.
1197         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
1198
1199 2010-01-01  Richard Guenther  <rguenther@suse.de>
1200
1201         PR debug/42455
1202         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
1203
1204 2010-01-01  Richard Guenther  <rguenther@suse.de>
1205
1206         PR c/42570
1207         * c-decl.c (grokdeclarator): For zero-size arrays force
1208         structural equality checks as layout_type does.
1209
1210 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
1211
1212         * builtins.c: Update copyright to 2010.
1213
1214 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
1215
1216         PR lto/42531
1217         * lto-streamer-out.c (produce_asm): Revert the last change.
1218         (copy_function): Likewise.
1219
1220         * lto-streamer.c (lto_get_section_name): Skip any leading
1221         asterisk in name.
1222
1223 2010-01-01  Richard Guenther  <rguenther@suse.de>
1224
1225         PR middle-end/42559
1226         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
1227         for LABEL_DECLs.
1228
1229 \f
1230 Copyright (C) 2010 Free Software Foundation, Inc.
1231
1232 Copying and distribution of this file, with or without modification,
1233 are permitted in any medium without royalty provided the copyright
1234 notice and this notice are preserved.