OSDN Git Service

2011-03-27 Jonathan Wakely <jwakely.gcc@gmail.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-03-27  Jonathan Wakely  <jwakely.gcc@gmail.com>
2
3         PR other/48179
4         PR other/48221
5         PR other/48234
6         * doc/extend.texi (Alignment): Move section to match order in TOC.
7         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9
10 2011-03-26  Uros Bizjak  <ubizjak@gmail.com>
11
12         Backport from mainline:
13         2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
14
15         PR target/48237
16         * config/i386/i386.md (*movdf_internal_rex64): Do not split
17         alternatives that can be handled with movq or movabsq insn.
18         (*movdf_internal): Disable for !TARGET_64BIT.
19         (*movdf_internal_nointeger): Ditto.
20         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
21
22 2011-03-26  Jakub Jelinek  <jakub@redhat.com>
23
24         Backport from mainline
25         2011-03-24  Jakub Jelinek  <jakub@redhat.com>
26
27         PR debug/48204
28         * simplify-rtx.c (simplify_const_unary_operation): Call
29         real_convert when changing mode class with FLOAT_EXTEND.
30
31         2011-03-20  Jakub Jelinek  <jakub@redhat.com>
32
33         PR c/42544
34         PR c/48197
35         * c-common.c (shorten_compare): If primopN is first sign-extended
36         to opN and then zero-extended to result type, set primopN to opN.
37
38         PR rtl-optimization/48156
39         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
40         assume df and df_lr are not NULL.
41
42         2011-03-17  Jakub Jelinek  <jakub@redhat.com>
43
44         PR rtl-optimization/48141
45         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
46         * dse.c: Include params.h.
47         (active_local_stores_len): New variable.
48         (add_wild_read, dse_step1): Clear it when setting active_local_stores
49         to NULL.
50         (record_store, check_mem_read_rtx): Decrease it when removing
51         from the chain.
52         (scan_insn): Likewise.  Increase it when adding to chain, if it
53         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
54         set active_local_stores to NULL before the addition.
55         * Makefile.in (dse.o): Depend on $(PARAMS_H).
56
57         PR rtl-optimization/48141
58         * dse.c (record_store): If no positions are needed in an insn
59         that cannot be deleted, at least unchain it from active_local_stores.
60
61 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
62
63         * BASE-VER: Set to 4.6.1.
64         * DEV-PHASE: Set to prerelease.
65
66 2011-03-25  Release Manager
67
68         * GCC 4.6.0 released.
69
70 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
71
72         * config/rs6000/t-freebsd: Remove duplication from file.
73
74 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
75
76         PR bootstrap/48135
77         * doc/install.texi (Prerequisites): Move jar etc. up.
78         Explain support library version requirements.
79
80 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
81
82         PR bootstrap/48135
83         * doc/install.texi (Prerequisites): Move Perl to build
84         requirements.  Always necessary on Solaris 2 with Sun ld.
85
86 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
87
88         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
89         binutils 2.21.
90         (Specific, i?86-*-solaris2.[89]): Likewise.
91         (Specific, i?86-*-solaris2.10): Likewise.
92         (Specific, mips-sgi-irix6): Likewise.
93         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
94         Update for binutils 2.21.
95
96 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
97
98         PR target/48213
99         * config/s390/s390.c (s390_delegitimize_address): Don't call
100         lowpart_subreg if orig_x has BLKmode.
101
102 2011-03-20  Joseph Myers  <joseph@codesourcery.com>
103
104         * c-decl.c (diagnose_mismatched_decls): Give an error for
105         redefining a typedef with variably modified type.
106
107 2011-03-20  Joseph Myers  <joseph@codesourcery.com>
108
109         * c-decl.c (grokfield): Don't allow typedefs for structures or
110         unions with no tag by default.
111         * doc/extend.texi (Unnamed Fields): Update.
112
113 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
114
115         PR debug/48176
116         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
117         arange_table_in_use is 0, but either text_section_used or
118         cold_text_section_used is true.  Don't call it if
119         !info_section_emitted.
120
121 2011-03-18  Richard Guenther  <rguenther@suse.de>
122
123         * doc/install.texi (--enable-gold): Remove.
124         (--with-plugin-ld): Document.
125         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
126
127 2011-03-18  H.J. Lu  <hongjiu.lu@intel.com>
128
129         Backport from mainline
130         2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
131
132         PR target/48171
133         * config/i386/i386.opt: Add Save to -mavx and -mfma.
134
135 2011-03-18  Richard Henderson  <rth@redhat.com>
136             Jakub Jelinek  <jakub@redhat.com>
137
138         PR bootstrap/48161
139         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
140         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
141
142 2011-03-17  Richard Guenther  <rguenther@suse.de>
143
144         PR middle-end/48165
145         * tree-object-size.c (compute_object_offset): Properly return
146         the offset operand of MEM_REFs as sizetype.
147
148 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
149
150         PR debug/47510
151         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
152         (lookup_type_die_strip_naming_typedef): ... here.
153         (get_context_die): Use it.
154         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
155         the anonymous struct named by the naming typedef.
156
157 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
158
159         PR target/46788
160         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
161         in the output template.
162
163 2011-03-15  Alan Modra  <amodra@gmail.com>
164
165         PR target/48032
166         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
167         presume symbol_refs without a symbol_ref_decl are suitably
168         aligned, nor other trees we may see here.  Handle anchor symbols.
169         (legitimate_constant_pool_address_p): Comment.  Add mode param.
170         Check cmodel=medium addresses.  Adjust all calls.
171         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
172         creating cmodel=medium optimized access to locals.
173         * config/rs6000/constraints.md (R): Pass QImode to
174         legitimate_constant_pool_address_p.
175         * config/rs6000/predicates.md (input_operand): Pass mode to
176         legitimate_constant_pool_address_p.
177         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
178         Update prototype.
179
180 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
181
182         PR target/48053
183         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
184         64-bit constants being loaded into registers other than GPRs such
185         as loading 0 into a VSX register.
186
187 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
188
189         * config/sol2.c (solaris_assemble_visibility): Remove obsolete
190         URLs.
191
192 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
193
194         * doc/invoke.texi, doc/standards.texi: Refer to
195         gcc-4.6/c99status.html.
196
197         * DEV-PHASE: Mark "prerelease".
198
199 2011-03-14  Richard Guenther  <rguenther@suse.de>
200
201         PR middle-end/48098
202         * tree.c (build_vector_from_val): Adjust assert to requirements
203         and reality.
204
205 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
206
207         PR bootstrap/48102
208         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE
209         parameter.
210
211 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
212
213         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
214         terms of target_flags_explicit. Adjust copyright year.
215
216         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
217         * config/rs6000/t-freebsd: New file. Add override for
218         LIB2FUNCS_EXTRA.
219
220 2011-03-13  Chris Demetriou  <cgd@google.com>
221
222         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
223         (-fno-diagnostics-show-option): this, to reflect current default.
224         (-Werror=): Update text about -fno-diagnostics-show-option.
225
226 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
227
228         PR target/48053
229         * config/rs6000/predicates.md (easy_vector_constant_add_self,
230         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
231         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
232         mode is not V2DImode or V2DFmode.
233         (vspltis_constant): Do not handle V2DImode and V2DFmode.
234         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
235         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
236         registers to 0.
237         (movdi_internal64): Likewise.
238
239 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
240
241         PR tree-optimization/47127
242         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
243         parameter.
244         (set_cloog_options): Same.
245         (scop_to_clast): Same.
246         (print_clast_stmt): Do not call cloog_state_malloc and
247         cloog_state_free.
248         (print_generated_program): Same.
249         (gloog): Same.
250         * graphite-clast-to-gimple.h (cloog_state): Declared.
251         (scop_to_clast): Adjust declaration.
252         * graphite.c (cloog_state): Defined here.
253         (graphite_initialize): Call cloog_state_malloc.
254         (graphite_finalize): Call cloog_state_free.
255
256 2011-03-11  Jason Merrill  <jason@redhat.com>
257
258         * attribs.c (lookup_attribute_spec): Take const_tree.
259         * tree.h: Adjust.
260
261 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
262
263         * config/sparc/sparc.c (sparc_option_override): Use
264         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
265
266 2011-03-11  Richard Guenther  <rguenther@suse.de>
267
268         PR tree-optimization/48067
269         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
270         multiplication result will be only used once on the target
271         stmt.
272
273 2011-03-11  Richard Guenther  <rguenther@suse.de>
274
275         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
276
277 2011-03-11  Richard Guenther  <rguenther@suse.de>
278
279         PR lto/48073
280         * tree.c (find_decls_types_r): Do not walk types only reachable
281         from IDENTIFIER_NODEs.
282
283 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
284
285         PR middle-end/48044
286         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
287         all vnode->force_output nodes as needed.
288
289 2011-03-11  Jason Merrill  <jason@redhat.com>
290
291         PR c++/48069
292         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
293         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
294
295 2011-03-11  Martin Jambor  <mjambor@suse.cz>
296
297         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
298         cgraph_node.
299
300 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
301
302         PR tree-optimization/48063
303         * ipa-inline.c (cgraph_decide_inlining): Don't try to
304         inline functions called once if !tree_can_inline_p (node->callers).
305
306 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
307
308         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
309         extra_objs.
310         * config/score/score3.c: Delete.
311         * config/score/score3.h: Delete.
312         * config/score/mul-div.S: Delete.
313         * config/score/sfp-machine.h: Add new file.
314         * config/score/constraints.md: Add new file.
315         * config/score/t-score-softfp: Add new file.
316         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
317         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
318         (score7_extra_constraint): Delete.
319         (score7_option_override): Remove unused code.
320         * config/score/score.c: Remove score3 and score5 define and code.
321         * config/score/score.h: Remove score3 and score5 define and code.
322         * config/score/score.md: Remove score3 template and unusual insn.
323         * config/score/score.opt: Remove score3 and score5 options.
324
325 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
326
327         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
328         when _HPUX_SOURCE is defined.
329         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
330
331 2011-03-10  Jason Merrill  <jason@redhat.com>
332
333         PR c++/48029
334         * stor-layout.c (layout_type): Don't set structural equality
335         on arrays of incomplete type.
336         * tree.c (type_hash_eq): Handle comparing them properly.
337
338 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
339
340         PR debug/48043
341         * config/s390/s390.c (s390_delegitimize_address): Make sure the
342         result mode matches original rtl mode.
343
344 2011-03-10  Nick Clifton  <nickc@redhat.com>
345
346         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
347         (andsi3, andsi3_flags): Fix timings for three operand alternative.
348
349 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
350
351         PR rtl-optimization/47866
352         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
353         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
354         if target wasn't scalar.
355         * function.c (assign_stack_temp_for_type): Assert that neither
356         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
357         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
358         macro.
359         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
360
361 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
362
363         * config/s390/s390-protos.h (s390_label_align): New prototype.
364         * config/s390/s390.c (s390_label_align): New function.
365         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
366
367 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
368
369         PR target/47755
370         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
371         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
372         (output_vec_const_move): Ditto.
373
374 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
375
376         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
377         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
378         * config/mips/mips.c (mips_preferred_reload_class): Make static.
379         Change 'rclass' argument and result type to reg_class_t.
380         (TARGET_PREFERRED_RELOAD_CLASS): Define.
381
382 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
383
384        * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
385        * config/avr/avr.c (TARGET_REGISTER_MOVE_COST,
386        TARGET_MEMORY_MOVE_COST): Define.
387        (avr_register_move_cost, avr_memory_move_cost): New Functions.
388
389 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
390
391         PR debug/47881
392         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
393         removed anything.
394
395         PR tree-optimization/48022
396         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
397         for EQ/NE_EXPR.
398
399 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
400
401         PR debug/47991
402         * var-tracking.c (find_use_val): Return NULL for
403         cui->sets && cui->store_p BLKmode MEMs.
404
405 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
406
407         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
408         Remove.
409         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
410         xstormy16_print_operand_address): Remove.
411         * config/stormy16/stormy16.c (xstormy16_print_operand,
412         xstormy16_print_operand_address): Make static.
413         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
414
415 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
416
417         PR target/47862
418         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
419         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
420         before definition.
421
422 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
423
424         PR bootstrap/48000
425         * cfgloopmanip.c (fix_bb_placements): Return immediately
426         if FROM is BASE_LOOP's header.
427
428 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
429
430         * gimplify.c (gimplify_function_tree): Fix building calls
431         to __builtin_return_address.
432
433 2011-03-07  Alan Modra  <amodra@gmail.com>
434
435         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
436         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
437         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
438         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
439         return_mode args.
440         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
441         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
442         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
443         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
444         * config/rs6000/rs6000.c
445         (rs6000_elf_end_indicate_exec_stack): Rename to..
446         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
447         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
448         (rs6000_file_start): ..here.
449         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
450         file scope variables.
451         (call_ABI_of_interest): New function.
452         (init_cumulative_args): Set above vars when function return value
453         is a float, vector, or small struct.
454         (rs6000_function_arg_advance_1): Likewise for function args.
455         (rs6000_va_start): Set rs6000_passes_float if variable arg function
456         references float args.
457
458 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
459
460         * doc/cfg.texi: Remove "See" before @ref.
461         * doc/invoke.texi: Likewise.
462
463 2011-03-05  Jason Merrill  <jason@redhat.com>
464
465         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
466
467 2011-03-05  Anthony Green  <green@moxielogic.com>
468
469         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
470
471 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
472
473         PR rtl-optimization/47899
474         * cfgloopmanip.c (fix_bb_placements): Fix first argument
475         to flow_loop_nested_p when moving the loop upward.
476
477 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
478
479         PR target/47719
480         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
481
482 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
483
484         PR tree-optimization/47967
485         * ipa-cp.c (build_const_val): Return NULL instead of creating
486         VIEW_CONVERT_EXPR for mismatching sizes.
487         (ipcp_create_replace_map): Return NULL if build_const_val failed.
488         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
489         give up on versioning.
490
491 2011-03-05  Alan Modra  <amodra@gmail.com>
492
493         PR target/47986
494         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
495         full cmodel medium/large lo_sum + high addresses.
496
497 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
498
499         * config/s390/s390.c (s390_decompose_address): Reject non-literal
500         pool references in UNSPEC_LTREL_OFFSET.
501
502 2011-03-04  Jan Hubicka  <jh@suse.cz>
503
504         PR lto/47497
505         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
506         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
507         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk): Add node pointers.
508         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
509         cgraph_add_thunk): Add node pointers.
510         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
511         associated to right node.
512         (input_node): Update use of cgraph_same_body_alias
513         and cgraph_add_thunk.
514
515 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
516
517         * config/i386/i386.opt (mprefer-avx128): New flag.
518         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit mode
519         when the flag -mprefer-avx128 is on.
520
521 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
522
523         * dwarf2out.c (compare_loc_operands): Fix address handling.
524
525 2011-03-04  Alan Modra  <amodra@gmail.com>
526
527         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
528
529 2011-03-04  Richard Guenther  <rguenther@suse.de>
530
531         PR middle-end/47968
532         * expmed.c (extract_bit_field_1): Prefer vector modes that
533         vec_extract patterns can handle.
534
535 2011-03-04  Richard Guenther  <rguenther@suse.de>
536
537         PR middle-end/47975
538         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
539
540 2011-03-04  Richard Henderson  <rth@redhat.com>
541
542         * explow.c (emit_stack_save): Remove 'after' parameter.
543         (emit_stack_restore): Likewise.
544         * expr.h: Update to match.
545         * builtins.c, calls.c, stmt.c: Likewise.
546         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
547         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
548         * function.c (expand_function_end): Insert the emit_stack_save
549         sequence before parm_birth_insn instead of after.
550
551 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
552
553         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
554         (ssse3_pmaddubsw128): Ditto.
555         (ssse3_pmaddubsw): Ditto.
556
557 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
558
559         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
560
561 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
562
563         PR c/47963
564         * gimplify.c (omp_add_variable): Only call omp_notice_variable
565         on TYPE_SIZE_UNIT if it is a DECL.
566
567         PR debug/47283
568         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
569         first operand is not is_gimple_mem_ref_addr, try to fold it.
570         If the operand still isn't is_gimple_mem_ref_addr, clear
571         MEM_EXPR on op0.
572
573 2011-03-03  Richard Guenther  <rguenther@suse.de>
574
575         PR middle-end/47283
576         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
577         match comment.
578         (refs_may_alias_p_1): For release branches return true if
579         we are confused by our input.
580
581 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
582
583         * config/s390/s390.c (s390_function_value): Rename to ...
584         (s390_function_and_libcall_value): ... this.
585         (s390_function_value): New function.
586         (s390_libcall_value): New function.
587         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
588         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
589         target macro definitions.
590         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
591
592 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
593
594         * config/i386/freebsd64.h (CC1_SPEC): Define.
595         * config/i386/linux64.h (CC1_SPEC): Define.
596         * config/i386/x86-64.h (CC1_SPEC): Don't define.
597
598 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
599
600         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
601         Remove.
602         * config/stormy16/stormy16.c: Include reload.h.
603         (xstormy16_memory_move_cost): New function.
604         (TARGET_MEMORY_MOVE_COST): Define.
605
606 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
607
608         PR rtl-optimization/47925
609         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
610         with side effects.  Remove the more-specific check for volatile asms.
611
612 2011-03-02  Alan Modra  <amodra@gmail.com>
613
614         PR target/47935
615         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
616         toc relative addresses for valid offsets.
617
618 2011-03-01  Richard Guenther  <rguenther@suse.de>
619
620         PR tree-optimization/47890
621         * tree-vect-loop.c (get_initial_def_for_induction): Set
622         related stmt properly.
623
624 2011-03-01  Richard Guenther  <rguenther@suse.de>
625
626         PR lto/47924
627         * lto-streamer.c (lto_record_common_node): Also register
628         the canonical type.
629
630 2011-03-01  Richard Guenther  <rguenther@suse.de>
631
632         PR lto/46911
633         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
634         Do not stream DECL_ABSTRACT_ORIGIN.
635         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
636         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
637         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
638         Do not stream DECL_ABSTRACT_ORIGIN.
639         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
640         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
641
642 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
643
644         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
645         FUNCTION_VALUE_REGNO_P): Remove.
646         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
647         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
648         Add 'outgoing' argument.
649         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
650         function.
651         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
652         TARGET_FUNCTION_VALUE_REGNO_P): Define.
653
654 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
655
656         PR debug/28047
657         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
658         (lookup_filename): Likewise.
659         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
660
661 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
662             Jakub Jelinek  <jakub@redhat.com>
663
664         PR middle-end/47893
665         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
666         (assign_stack_local_1): Change last argument type to int.
667         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
668         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
669         don't record padding space into frame_space_list nor use those areas.
670         (assign_stack_local): Adjust caller.
671         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
672         of assign_stack_local, pass 0 as last argument.
673         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
674         callers.
675
676 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
677
678         PR debug/47283
679         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
680         Use target address_mode and pointer_mode hooks instead of hardcoded
681         Pmode and ptr_mode.  Handle some simple cases of extending if
682         POINTERS_EXTEND_UNSIGNED < 0.
683         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
684         Call convert_debug_memory_address.
685         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
686         convert_debug_memory_address.
687
688         PR middle-end/46790
689         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
690         * configure: Regenerated.
691         * config.in: Regenerated.
692         * varasm.c (default_function_section): Return NULL
693         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
694
695 2011-02-28  Martin Jambor  <mjambor@suse.cz>
696
697         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
698         the description to match the printed values.
699
700 2011-02-28  Richard Guenther  <rguenther@suse.de>
701
702         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
703         of the copied scope tree.
704
705 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
706
707         * doc/extend.texi (Function Attributes): Avoid deeply (and
708         wrongly) nested tables.
709
710 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
711
712         PR middle-end/47903
713         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
714         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
715         r isn't op0 nor op1.
716
717 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
718
719         * config/avr/avr.md: Remove magic comment for emacs.
720
721 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
722
723         PR target/45261
724         * config/avr/avr.c (avr_option_override): Use error on bad options.
725         (avr_help): New function.
726         (TARGET_HELP): Define.
727
728 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
729
730         PR target/42240
731         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
732         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
733
734 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
735
736         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
737         (ARM Options): Ditto.
738         (i386 and x86-64 Options): Ditto.
739         (RX Options): Ditto.
740         (SPARC Options): Ditto.
741
742 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
743
744         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
745         FreeBSD 6 and later.  Generally use cpu generic.
746
747 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
748
749         * doc/cpp.texi: Update copyright years.
750
751 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
752
753         PR target/46898
754         * config/lm32/lm32.md (ashrsi3): Added needed variable.
755
756 2011-02-25  Jon Beniston  <jon@beniston.com>
757
758         PR target/46898
759         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
760         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
761         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
762         (lm32_block_move_inline): Add type cast to remove warning.
763         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
764         (gen_int_relational): Move declarations to start of function.
765
766 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
767
768         PR tree-optimization/45470
769         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
770         can throw internally only.
771         * tree-vect-stmts.c (vectorizable_call): Likewise.
772
773 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
774
775         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
776         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
777         * config/stormy16/stormy16-protos.h
778         (xstormy16_preferred_reload_class): Remove.
779         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
780         static. Change 'rclass' argument and return type to reg_class_t.
781         (TARGET_PREFERRED_RELOAD_CLASS,
782         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
783
784 2011-02-24  Richard Guenther  <rguenther@suse.de>
785
786         * lto-streamer-in.c (input_bb): Do not find referenced vars
787         in debug statements.
788
789 2011-02-23  Jason Merrill  <jason@redhat.com>
790
791         * common.opt (fabi-version): Document v5 and v6.
792
793 2011-02-23  Richard Guenther  <rguenther@suse.de>
794
795         PR tree-optimization/47849
796         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
797
798 2011-02-23  Jie Zhang  <jie@codesourcery.com>
799
800         * opts-common.c (decode_cmdline_option): Print empty string
801         argument as "" in decoded->orig_option_with_args_text.
802         * gcc.c (execute): Print empty string argument as ""
803         in the verbose output.
804         (do_spec_1): Keep empty string argument.
805
806 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
807
808         * config.gcc: Declare score-* and crx-* obsolete.
809
810 2011-02-23  Jie Zhang  <jie@codesourcery.com>
811
812         PR rtl-optimization/47763
813         * web.c (web_main): Ignore naked clobber when replacing register.
814
815 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
816
817         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
818         Remove.
819
820 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
821
822         PR doc/47848
823         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
824
825 2011-02-22  Mike Stump  <mikestump@comcast.net>
826
827         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
828         assembler.
829         * configure: Regenerate.
830
831 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
832
833         PR rtl-optimization/46002
834         * ira-color.c (update_copy_costs): Change class intersection
835         test to reg_class_contents[] test of 'hard_regno'.
836
837 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
838
839         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
840         than Driver option.
841         * config/hpux11.opt (mt): Likewise.
842         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
843         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
844         * config/vax/elf.opt (mno-asm-pic): Likewise.
845         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
846
847 2011-02-21  Mike Stump  <mikestump@comcast.net>
848
849         PR target/47822
850         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
851         tree so we can get save the type.
852         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
853         for CFString instead of trying to use past the end of the builtins.
854         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
855         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
856         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
857         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
858         Rename to darwin_builtin_cfstring.
859         (darwin_init_cfstring_builtins): Return the built type.
860
861 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
862
863         PR target/47840
864         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
865         (_mm256_insert_epi64): Use _mm_insert_epi64.
866
867 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
868
869         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
870         * config/stormy16/stormy16-protos.h
871         (xstormy16_mode_dependent_address_p): Remove.
872         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
873         Make static. Change return type to bool. Change argument type to
874         const_rtx. Remove dead code.
875         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
876
877 2011-02-21  Richard Guenther  <rguenther@suse.de>
878
879         PR lto/47820
880         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
881         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
882         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
883         TUs context.
884         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
885         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
886
887 2011-02-20  Richard Guenther  <rguenther@suse.de>
888
889         PR lto/47822
890         * tree.c (free_lang_data_in_decl): Clean builtins from
891         the TU decl BLOCK_VARS.
892
893 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
894
895         PR debug/47620
896         PR debug/47630
897         * haifa-sched.c (fix_tick_ready): Skip tick computation
898         for debug insns.
899
900 2011-02-19  Richard Guenther  <rguenther@suse.de>
901
902         PR lto/47647
903         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
904         Remove lazy BLOCK_VARS streaming.
905         (lto_input_ts_block_tree_pointers): Likewise.
906         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
907
908 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
909
910         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
911
912 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
913
914         * config/i386/biarch32.h, config/i386/mach.h,
915         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
916
917 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
918
919         PR target/47800
920         * config/i386/i386.md (peephole2 for shift and plus): Use
921         operands[1] original mode in the first insn.
922
923 2011-02-18  Mike Stump  <mikestump@comcast.net>
924
925         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
926
927 2011-02-18  Jan Hubicka  <jh@suse.cz>
928
929         PR middle-end/47788
930         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
931         to zero when the function is not inlinable at all.
932
933 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
934
935         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
936         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
937         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
938         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
939         * config/pa/t-pa64: Likewise.
940         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
941
942 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
943
944         PR driver/47787
945         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
946
947 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
948
949         PR target/47792
950         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
951
952 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
953
954         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
955         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
956         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
957         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
958         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
959         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
960         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
961         m32r_load_postinc_p, m32r_store_preinc_predec_p,
962         m32r_legitimate_address_p): New functions.
963         * config/m32r/constraints.md (constraint "S"): Don't use
964         STORE_PREINC_PREDEC_P.
965         (constraint "U"): Don't use LOAD_POSTINC_P.
966
967 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
968
969         PR rtl-optimization/46178
970         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
971         compute ira_hard_regno_cover_class[].
972
973 2011-02-18  Richard Guenther  <rguenther@suse.de>
974
975         PR lto/47798
976         * lto-streamer.h (lto_global_var_decls): Declare.
977         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
978         statics for global var processing.
979
980 2011-02-18  Richard Guenther  <rguenther@suse.de>
981
982         PR tree-optimization/47737
983         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
984         edge dominance check.
985
986 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
987
988         PR debug/47780
989         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
990         avoid invalid rtx sharing.
991
992 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
993
994         * doc/cpp.texi (Obsolete Features): Add background on the
995         origin of assertions.
996
997 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
998
999         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
1000         objc_abi == 2.
1001         * config/darwin.c (output_objc_section_asm_op): Added support for
1002         ABI v1 and v2.
1003         (is_objc_metadata): New.
1004         (darwin_objc2_section): New.
1005         (darwin_objc1_section): New.
1006         (machopic_select_section): Added support for ABI v1 and v2.
1007         (darwin_emit_objc_zeroed): New.
1008         (darwin_output_aligned_bss): Detect objc metadata and treat it
1009         appropriately.
1010         (darwin_asm_output_aligned_decl_common): Same.
1011         (darwin_asm_output_aligned_decl_local): Same.
1012         * config/darwin-sections.def: Updated for ABI v1 and v2.
1013         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
1014         compiling Objective-C code for the NeXT runtime, default to using
1015         ABI version 0 for 32-bit, and version 2 for 64-bit.
1016
1017 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
1018
1019         * common.opt (optimize_fast): New Variable.
1020         * opts.c (default_options_optimization): Use opts->x_optimize_fast
1021         instead of local variable ofast.
1022
1023 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1024
1025         * doc/invoke.texi (fobjc-abi-version): Documented.
1026         (fobjc-nilcheck): Documented.
1027         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
1028         version.
1029
1030 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
1031
1032         PR driver/47390
1033         * common.opt (export-dynamic): New Driver option.
1034         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
1035
1036 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
1037
1038         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
1039
1040 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
1041             Jan Hubicka  <jh@suse.cz>
1042
1043         PR debug/47106
1044         PR debug/47402
1045         * cfgexpand.c (account_used_vars_for_block): Remove.
1046         (estimated_stack_frame_size): Use referenced vars.
1047         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
1048         that were referenced in the original function.  Test src_fn
1049         rather than cfun.  Drop redundant get_var_ann.
1050         (setup_one_parameter): Drop redundant get_var_ann.
1051         (declare_return_variable): Likewise.
1052         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
1053         (copy_arguments_for_versioning): Drop redundant get_var_ann.
1054         * ipa-inline.c (compute_inline_parameters): Do not compute
1055         disregard_inline_limits here.
1056         (compute_inlinable_for_current, pass_inlinable): New.
1057         (pass_inline_parameters): Require PROP_referenced_vars.
1058         * cgraphunit.c (cgraph_process_new_functions): Don't run
1059         compute_inline_parameters explicitly unless function is in SSA form.
1060         (cgraph_analyze_function): Set .disregard_inline_limits.
1061         * tree-sra.c (convert_callers): Compute inliner parameters
1062         only for functions already in SSA form.
1063
1064 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
1065
1066         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
1067         -mlittle-endian-data.
1068
1069 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
1070
1071         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
1072         -mno-fpu, not -fpu and -no-fpu.
1073         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
1074         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
1075
1076 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
1077
1078         PR target/43653
1079         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
1080         input reload with PLUS RTX.
1081
1082 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1083
1084         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
1085         of InverseVar(MDMX).
1086
1087 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1088
1089         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
1090         --m4-340.
1091
1092 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1093
1094         * config/mn10300/mn10300.opt (mno-crt0): New.
1095
1096 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1097
1098         * config/m68k/uclinux.opt (static-libc): New Driver option.
1099
1100 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1101
1102         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
1103
1104 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
1105
1106         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
1107         %{muser-extend-enabled}.
1108
1109 2011-02-16  Richard Guenther  <rguenther@suse.de>
1110
1111         PR tree-optimization/47738
1112         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
1113         the TODO from tree_predictive_commoning.
1114
1115 2011-02-15  Jeff Law  <law@redhat.com>
1116
1117         Revert
1118         2011-01-25  Jeff Law  <law@redhat.com>
1119
1120         PR rtl-optimization/37273
1121         * ira-costs.c (scan_one_insn): Detect constants living in memory and
1122         handle them like argument loads from stack slots.  Do not double
1123         count memory for memory constants and argument loads from stack slots.
1124
1125 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
1126
1127         PR middle-end/47725
1128         * combine.c (cant_combine_insn_p): Revert the last change.
1129
1130 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1131
1132         PR target/47755
1133         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
1134         mode for vector constants.  Remove code that checks for TImode.
1135
1136 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
1137
1138         PR debug/47106
1139         PR debug/47402
1140         * cgraph.h (compute_inline_parameters): Return void.
1141         * ipa-inline.c (compute_inline_parameters): Adjust.
1142
1143 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
1144
1145         PR debug/47106
1146         PR debug/47402
1147         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
1148         rather than decl.
1149         * cfgexpand.c (estimated_stack_frame_size): Likewise.
1150         * ipa-inline.c (compute_inline_parameters): Adjust.
1151
1152 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
1153
1154         PR debug/47106
1155         PR debug/47402
1156         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
1157         Adjust all users.  Pass FN to...
1158         * tree-flow-inline.h (first_referenced_var): ... this.  Add
1159         fn argument.
1160         * ipa-struct-reorg.c: Adjust.
1161         * tree-dfa.c: Adjust.
1162         * tree-into-ssa.c: Adjust.
1163         * tree-sra.c: Adjust.
1164         * tree-ssa-alias.c: Adjust.
1165         * tree-ssa-live.c: Adjust.
1166         * tree-ssa.c: Adjust.
1167         * tree-ssanames.c: Adjust.
1168         * tree-tailcall.c: Adjust.
1169
1170 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
1171
1172         PR debug/47106
1173         PR debug/47402
1174         * tree-flow.h (referenced_var_lookup): Add fn parameter.
1175         Adjust all callers.
1176         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
1177         * tree-flow-inline.h: Adjust.
1178         * gimple-pretty-print.c: Adjust.
1179         * tree-into-ssa.c: Adjust.
1180         * tree-ssa.c: Adjust.
1181         * cfgexpand.c: Adjust.
1182
1183 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
1184
1185         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
1186         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1187         (EXTRA_CONSTRAINT): Delete.
1188         * config/iq2000/constraints.md: New file.
1189         * config/iq2000/iq2000.md: Include it.
1190         (define_insn ""): Delete.
1191         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
1192         unsupported constraint letters from patterns.
1193         (call_value, call_value_internal1): Likewise.
1194         (call_value_multiple_internal1): Likewise.
1195
1196 2011-02-15  Nick Clifton  <nickc@redhat.com>
1197
1198         * config/mn10300/mn10300.c: Include tm-constrs.h.
1199         (struct liw_data): New data structure describing an LIW candidate
1200         instruction.
1201         (extract_bundle): Use struct liw_data.  Allow small integer
1202         operands for some instructions.
1203         (check_liw_constraints): Use struct liw_data.  Remove swapped
1204         parameter.  Add comments describing the checks.  Fix bug when
1205         assigning the source of liw1 to the source of liw2.
1206         (liw_candidate): Delete.  Code moved into extract_bundle.
1207         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
1208         before swapping.
1209         * config/mn10300/predicates.md (liw_operand): New predicate.
1210         Allows registers and small integer constants.
1211         * config/mn10300/constraints.md (O): New constraint.  Accetps
1212         integers in the range -8 to +7 inclusive.
1213         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
1214         for moving a small integer into a register.  Give this alternative
1215         LIW attributes.
1216         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
1217         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
1218         using the J,K,L and M constraints,
1219         (liw): Remove SI mode on second operands to allow for HI and QI
1220         mode values.
1221         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
1222         instruction.
1223
1224 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
1225
1226         PR middle-end/47725
1227         * combine.c (cant_combine_insn_p): Check zero/sign extended
1228         hard registers.
1229
1230 2011-02-15  Richard Guenther  <rguenther@suse.de>
1231
1232         PR tree-optimization/47743
1233         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
1234         for a non-type-compatible VN lookup bail out.
1235
1236 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
1237
1238         * config/fr30/constraints.md: New file.
1239         * config/fr30/fr30.md: Include it.
1240         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
1241         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1242         (EXTRA_CONSTRAINT): Delete.
1243
1244 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
1245
1246         * config/frv/constraints.md: New file.
1247         * config/frv/predicates.md: Include it.
1248         * config/frv/frv.c (reg_class_from_letter): Delete.
1249         (frv_option_override): Don't initialize it.
1250         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
1251         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
1252         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
1253         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
1254         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
1255         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1256         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
1257         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
1258         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
1259         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
1260         (REG_CLASS_FROM_CONSTRAINT): Delete.
1261
1262 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
1263
1264         PR middle-end/47581
1265         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
1266         if frame size is 0 in a leaf function.
1267
1268 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1269
1270         PR pch/14940
1271         * config/alpha/host-osf.c: New file.
1272         * config/alpha/x-osf: New file.
1273         * config.host (alpha*-dec-osf*): Use it.
1274
1275 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
1276
1277         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1278         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
1279         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
1280         (rx_mode_dependent_address_p): ...this. Make static. Change argument
1281         type to const_rtx.
1282         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1283
1284 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
1285
1286         * config/stormy16/constraints.md: New file.
1287         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
1288         Use satisfies_constraint_Q and satisfies_constraint_R.
1289         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
1290         Delete.
1291         (xstormy16_legitiamte_address_p): Declare.
1292         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
1293         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1294         (EXTRA_CONSTRAINT): Delete.
1295         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
1296         Un-staticize.
1297         (xstormy16_extra_constraint_p): Delete.
1298
1299 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
1300
1301         PR tree-optimization/46494
1302         * loop-unroll.c (split_edge_and_insert): Adjust comment.
1303         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
1304         (pass_rtl_loop_done): Add TODO_verify_flow.
1305         * fwprop.c (pass_rtl_fwprop): Likewise.
1306         * modulo-sched.c (pass_sms): Likewise.
1307         * tree-ssa-dom.c (pass_dominator): Likewise.
1308         * tree-ssa-loop-ch.c (pass_ch): Likewise.
1309         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
1310         (pass_tree_loop_done): Likewise.
1311         * tree-ssa-pre.c (execute_pre): Likewise.
1312         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
1313         * tree-ssa-sink.c (pass_sink_code): Likewise.
1314         * tree-vrp.c (pass_vrp): Likewise.
1315
1316 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
1317
1318         * config/v850/constraints.md: New file.
1319         * config/v850/v850.md: Include it.
1320         * config/v850/predicates.md (reg_or_0_operand): Use
1321         satisfies_constraint_G.
1322         (special_symbolref_operand): Use satisfies_constraint_K.
1323         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
1324         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
1325         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
1326         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
1327         (EXTRA_CONSTRAINT): Delete.
1328         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
1329         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
1330         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
1331
1332 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
1333
1334         PR target/47696
1335         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
1336         description.
1337
1338 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
1339
1340         * config/mcore/constraints.md: New file.
1341         * config/mcore/mcore.md: Include it.
1342         * config/mcore/mcore.c (reg_class_from_letter): Delete.
1343         * config/mcore/mcore.h (reg_class_from_letter): Delete.
1344         (REG_CLASS_FROM_LETTER): Delete.
1345         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
1346         insn_const_int_ok_for_constraint.
1347         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
1348         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
1349         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1350         (EXTRA_CONSTRAINT): Delete.
1351
1352 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1353
1354         PR ada/41929
1355         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
1356         (IS_SIGHANDLER): Define.
1357         (sparc64_is_sighandler): New function, split off from
1358         sparc64_fallback_frame_state.
1359         (sparc_is_sighandler): New function, split off from
1360         sparc_fallback_frame_state.
1361         (sparc64_fallback_frame_state): Merge with ...
1362         (sparc_fallback_frame_state): ... this into ...
1363         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
1364         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
1365         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
1366         stack instead of hardcoded offsets.
1367
1368 2011-02-14  Andriy Gapon  <avg@freebsd.org>
1369
1370         PR target/45808
1371         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
1372
1373 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1374
1375         * configure: Regenerate.
1376
1377 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
1378
1379         PR driver/45731
1380         * gcc.c (asm_options): Correct spec matching --target-help.
1381
1382 2011-02-12  Martin Jambor  <mjambor@suse.cz>
1383
1384         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
1385         to gimple call error.
1386
1387 2011-02-12  Mike Stump  <mikestump@comcast.net>
1388
1389         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
1390         comments in backslash regions.
1391
1392 2011-02-12  Mike Stump  <mikestump@comcast.net>
1393             Jakub Jelinek  <jakub@redhat.com>
1394             Iain Sandoe  <iains@gcc.gnu.org>
1395
1396         PR target/47324
1397         * dwarf2out.c (output_cfa_loc): When required, apply the
1398         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
1399         (output_loc_sequence): Likewise.
1400         (output_loc_operands_raw): Likewise.
1401         (output_loc_sequence_raw): Likewise.
1402         (output_cfa_loc): Likewise.
1403         (output_loc_list): Suppress register number adjustment when
1404         calling output_loc_sequence()
1405         (output_die): Likewise.
1406
1407 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
1408
1409         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1410         Remove macros.
1411         * config/xtensa/xtensa.c (xtensa_register_move_cost,
1412         xtensa_memory_move_cost): New functions.
1413         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
1414
1415 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
1416
1417         PR lto/47225
1418         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
1419         in the current directory.
1420         * configure: Rebuilt.
1421
1422 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
1423
1424         * config/darwin.c (darwin_override_options): Add a hunk missed
1425         from the commit of r168571.  Trim comment line lengths and
1426         correct indents of the preceding block.
1427
1428 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
1429
1430         * gcc.c (driver_handle_option): Concatenate the argument to -F with
1431         the switch.
1432
1433 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
1434
1435         * common.opt (nostartfiles): New Driver option.
1436
1437 2011-02-11  Xinliang David Li  <davidxl@google.com>
1438
1439         PR tree-optimization/47707
1440         * tree-chrec.c (convert_affine_scev): Keep type precision.
1441
1442 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
1443
1444         PR tree-optimization/47420
1445         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
1446
1447 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
1448
1449         PR rtl-optimization/47614
1450         * rtl.h (check_for_inc_dec): Declare.
1451         * dse.c (check_for_inc_dec): Externalize...
1452         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
1453         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
1454
1455 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
1456
1457         PR driver/47678
1458         * gcc.c (main): Do not compile inputs if there were errors in
1459         option handling.
1460         * opts-common.c (read_cmdline_option): Check for wrong language
1461         after other error checks.
1462
1463 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
1464
1465         * cgraph.c: Fix comment typos.
1466         * cgraph.h: Likewise.
1467         * cgraphunit.c: Likewise.
1468         * ipa-cp.c: Likewise.
1469         * ipa-inline.c: Likewise.
1470         * ipa-prop.c: Likewise.
1471         * ipa-pure-const.c: Likewise.
1472         * ipa-ref.c: Likewise.
1473         * ipa-reference.c: Likewise.
1474
1475 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
1476
1477         PR debug/47684
1478         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
1479
1480 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1481
1482         PR testsuite/47400
1483         * doc/sourcebuild.texi (Require Support): Document
1484         dg-require-ascii-locale.
1485
1486 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
1487
1488         * doc/lto.texi (Write summary): Fix missing parentheses.
1489
1490 2011-02-10  DJ Delorie  <dj@redhat.com>
1491
1492         * config/m32c/m32c.c (m32c_option_override): Disable
1493         -fcombine-stack-adjustments until flag value tracking and compare
1494         optimization can be rewritten.
1495
1496 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
1497
1498         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
1499         PROCESSOR_POWER7.
1500         (PROCESSOR_DEFAULT64): Likewise.
1501
1502 2011-02-10  Richard Henderson  <rth@redhat.com>
1503
1504         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
1505         change from 2011-02-03.
1506         * config/rx/rx.c (flags_from_code): Likewise.
1507         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
1508         is valid, n/pz otherwise.
1509         (rx_select_cc_mode): Return CCmode if Y is not zero.
1510
1511 2011-02-10  Richard Guenther  <rguenther@suse.de>
1512
1513         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
1514
1515 2011-02-10  Richard Guenther  <rguenther@suse.de>
1516
1517         PR tree-optimization/47677
1518         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
1519
1520 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
1521
1522         PR target/47665
1523         * combine.c (make_compound_operation): Only change shifts into
1524         multiplication for SCALAR_INT_MODE_P.
1525
1526 2011-02-10  Jie Zhang  <jie@codesourcery.com>
1527
1528         PR testsuite/47622
1529         Revert
1530         2011-02-05  Jie Zhang  <jie@codesourcery.com>
1531         PR debug/42631
1532         * web.c (entry_register): Don't clobber the number of the
1533         first uninitialized reference in used[].
1534
1535 2011-02-09  Richard Guenther  <rguenther@suse.de>
1536
1537         PR tree-optimization/47664
1538         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
1539         all edges again.
1540
1541 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
1542
1543         PR target/46481
1544         PR target/47032
1545         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
1546         PROCESSOR_POWER7.
1547         (PROCESSOR_DEFAULT64): Same.
1548         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
1549
1550 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1551
1552         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
1553
1554 2011-02-09  Martin Jambor  <mjambor@suse.cz>
1555
1556         PR middle-end/45505
1557         * tree-sra.c (struct access): New flags grp_scalar_read and
1558         grp_scalar_write.  Changed description of assignment read and write
1559         flags.
1560         (dump_access): Dump new flags, reorder all of them.
1561         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
1562         to detect multiple scalar reads.
1563         (analyze_access_subtree): Use the new scalar read write flags instead
1564         of the old flags.  Adjusted comments.
1565
1566 2011-02-08  DJ Delorie  <dj@redhat.com>
1567
1568         PR target/47548
1569         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
1570         patterns.
1571
1572 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
1573
1574         * config/m68k/uclinux.opt: New.
1575         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
1576
1577 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
1578
1579         * config/cris/elf.opt (sim): New Driver option.
1580
1581 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
1582
1583         * config/xtensa/elf.opt: New.
1584         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
1585
1586 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
1587
1588         * config/vax/elf.opt: New.
1589         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
1590
1591 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
1592
1593         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
1594
1595 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
1596
1597         * config/gnu-user.opt: New.
1598         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
1599         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
1600         *-*-uclinux*): Use gnu-user.opt.
1601
1602 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
1603
1604         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
1605         * config/i386/gnu.h (CPP_SPEC): Likewise.
1606
1607 2011-02-08  Ian Lance Taylor  <iant@google.com>
1608
1609         * common.opt (fcx-limited-range): Add SetByCombined flag.
1610         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
1611         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
1612         (fassociative-math, freciprocal-math): Likewise.
1613         (funsafe-math-optimizations): Likewise.
1614         * opth-gen.awk: Handle SetByCombined.
1615         * optc-gen.awk: Likewise.
1616         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
1617         (set_unsafe_math_optimizations_flags): Likewise.
1618         * doc/options.texi (Option properties): Document SetByCombined.
1619
1620 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
1621
1622         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
1623         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
1624         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
1625         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
1626         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
1627
1628 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
1629
1630         PR tree-optimization/46834
1631         PR tree-optimization/46994
1632         PR tree-optimization/46995
1633         * graphite-sese-to-poly.c (used_outside_reduction): New.
1634         (detect_commutative_reduction): Call used_outside_reduction.
1635         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
1636         translate_scalar_reduction_to_array only when at least one
1637         loop-phi/close-phi tuple has been detected.
1638
1639 2011-02-08  Richard Guenther  <rguenther@suse.de>
1640
1641         PR middle-end/47639
1642         * tree-vect-generic.c (expand_vector_operations_1): Update
1643         stmts here ...
1644         (expand_vector_operations): ... not here.  Cleanup EH info
1645         and the CFG if required.
1646
1647 2011-02-08  Richard Guenther  <rguenther@suse.de>
1648
1649         PR tree-optimization/47641
1650         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
1651         require type compatibility.
1652
1653 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1654
1655         * gimple-low.c (lower_function_body): Don't remove the location of
1656         the return statement here.
1657         (lower_gimple_return): Do it here instead but only if the return
1658         statement is actually used twice.
1659
1660 2011-02-08  Richard Guenther  <rguenther@suse.de>
1661
1662         PR tree-optimization/47632
1663         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
1664         unused up_to_stmt parameter, return whether cfg-cleanup is
1665         necessary, remove EH info properly.
1666         (forward_propagate_into_gimple_cond): Adjust caller.
1667         (forward_propagate_into_cond): Likewise.
1668         (forward_propagate_comparison): Likewise.
1669         (tree_ssa_forward_propagate_single_use_vars): Make
1670         forward_propagate_comparison case similar to the two others.
1671
1672 2011-02-08  Nick Clifton  <nickc@redhat.com>
1673
1674         * config/mn10300/mn10300.opt (mliw): New command line option.
1675         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
1676         (liw_bundling): New automaton.
1677         (liw): New attribute.
1678         (liw_op): New attribute.
1679         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
1680         (movsi_internal): Add LIW attributes.
1681         (andsi3): Likewise.
1682         (iorsi3): Likewise.
1683         (xorsi3): Likewise.
1684         (addsi3): Separate register and immediate alternatives.
1685         Add LIW attributes.
1686         (subsi3): Likewise.
1687         (cmpsi): Likewise.
1688         (aslsi3): Likewise.
1689         (lshrsi3): Likewise.
1690         (ashrsi3): Likewise.
1691         (liw): New pattern.
1692         * config/mn10300/mn10300.c (liw_op_names): New
1693         (mn10300_print_operand): Handle 'W' operand descriptor.
1694         (extract_bundle): New function.
1695         (check_liw_constraints): New function.
1696         (liw_candidate): New function.
1697         (mn10300_bundle_liw): New function.
1698         (mn10300_reorg): New function.
1699         (TARGET_MACHINE_DEPENDENT_REORG): Define.
1700         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
1701         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
1702         __LIW__ or __NO_LIW__.
1703         * doc/invoke.texi: Describe the -mliw command line option.
1704
1705 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1706
1707         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
1708         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
1709         pthread_mutex_unlock): Remove.
1710         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
1711         * config/pa/t-pa64: Likewise.
1712         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
1713         shared libc if not linking against libpthread.
1714         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1715
1716 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
1717
1718         PR target/47558
1719         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
1720         on 10.6 and later to ensure that we always use the unwinder from
1721         the system.  Only add -no_compact_unwind when tarteting darwin
1722         10.6 or later.
1723
1724 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
1725
1726         PR target/46997
1727         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
1728         (vec_interleave_lowv2sf): Ditto.
1729         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
1730         (vec_extract_oddv2sf): Ditto.
1731
1732 2011-02-07  Mike Stump  <mikestump@comcast.net>
1733
1734         PR target/42333
1735         Add __ieee_divdc3 entry point.
1736         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
1737         entry point.
1738         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
1739         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
1740         * config/darwin.c (darwin_rename_builtins): Add.
1741         * config/darwin-protos.h (darwin_rename_builtins): Add.
1742
1743 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
1744
1745         PR target/47636
1746         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
1747         for the condition.
1748
1749 2011-02-07  Mike Stump  <mikestump@comcast.net>
1750
1751         * config/darwin.opt (mmacosx-version-min): Update default OS version.
1752
1753 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
1754
1755         PR target/47534
1756         * config/avr/libgcc.S (exit): Move .endfunc
1757
1758 2011-02-07  Richard Guenther  <rguenther@suse.de>
1759
1760         PR tree-optimization/47615
1761         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
1762         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
1763         (run_scc_vn): Initialize it.
1764         (visit_reference_op_load): Use it.
1765         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
1766
1767 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1768
1769         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
1770         DImode trapping arithmetic libfuncs.
1771
1772 2011-02-07  Richard Guenther  <rguenther@suse.de>
1773
1774         PR tree-optimization/47621
1775         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
1776         two duplicates ...
1777         (execute_update_addresses_taken): ... here.  Make it more
1778         conservative in what we accept.
1779
1780 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
1781
1782         * config/sparc/freebsd.h (ASM_SPEC): Define.
1783         * config/sparc/vxworks.h (ASM_SPEC): Define.
1784
1785 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
1786
1787         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1788
1789 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
1790
1791         * doc/invoke.texi: Remove reference to compiler internals from
1792         user documentation.
1793
1794         * reg-notes.def: Remove REG_VALUE_PROFILE.
1795         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
1796
1797 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
1798
1799         PR middle-end/47610
1800         * varasm.c (default_section_type_flags): If decl is NULL,
1801         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
1802
1803 2011-02-05  Jie Zhang  <jie@codesourcery.com>
1804
1805         PR debug/42631
1806         * web.c (entry_register): Don't clobber the number of the
1807         first uninitialized reference in used[].
1808
1809 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
1810
1811         PR tree-optimization/46194
1812         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
1813         (build_classic_dist_vector_1): Do not represent classic distance
1814         vectors when the access functions are variating in different loops.
1815
1816 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
1817
1818         * config/mips/iris6.opt: New.
1819         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
1820
1821 2011-02-04  Richard Henderson  <rth@redhat.com>
1822             Steve Ellcey  <sje@cup.hp.com>
1823
1824         PR target/46997
1825         * config/ia64/predicates.md (mux1_brcst_element): New.
1826         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
1827         * config/ia64/ia64.c (ia64_unpack_assemble): New.
1828         (ia64_unpack_sign): New.
1829         (ia64_expand_unpack): Rewrite using new routines.
1830         (ia64_expand_widen_sum): Ditto.
1831         (ia64_expand_dot_prod_v8qi): Ditto.
1832         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
1833         routines, add endian check.
1834         (pmpy2_even): Rename from pmpy2_r, add endian check.
1835         (pmpy2_odd): Rename from pmpy2_l, add endian check.
1836         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
1837         (vec_widen_smult_hi_v4hi): Ditto.
1838         (vec_widen_umult_lo_v4hi): Ditto.
1839         (vec_widen_umult_hi_v4hi): Ditto.
1840         (mulv2si3): Change endian checks.
1841         (sdot_prodv4hi): Rewrite with new calls.
1842         (udot_prodv4hi): New.
1843         (vec_pack_ssat_v4hi): Add endian check.
1844         (vec_pack_usat_v4hi): Ditto.
1845         (vec_pack_ssat_v2si): Ditto.
1846         (max1_even): Rename from max1_r, add endian check.
1847         (max1_odd): Rename from max1_l, add endian check.
1848         (*mux1_rev): Format change.
1849         (*mux1_mix): Ditto.
1850         (*mux1_shuf): Ditto.
1851         (*mux1_alt): Ditto.
1852         (*mux1_brcst_v8qi): Use new predicate.
1853         (vec_extract_evenv8qi): Remove endian check.
1854         (vec_extract_oddv8qi): Ditto.
1855         (vec_interleave_lowv4hi): Format change.
1856         (vec_interleave_highv4hi): Ditto.
1857         (mix2_even): Rename from mix2_r, add endian check.
1858         (mix2_odd): Rename from mux2_l, add endian check.
1859         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
1860         (vec_extract_evenodd_helper): Format change.
1861         (vec_extract_evenv4hi): Remove endian check.
1862         (vec_extract_oddv4hi): Remove endian check.
1863         (vec_interleave_lowv2si): Format change.
1864         (vec_interleave_highv2si): Format change.
1865         (vec_initv2si): Remove endian check.
1866         (vecinit_v2si): Add endian check.
1867         (reduc_splus_v2sf): Add endian check.
1868         (reduc_smax_v2sf): Ditto.
1869         (reduc_smin_v2sf): Ditto.
1870         (vec_initv2sf): Remove endian check.
1871         (fpack): Add endian check.
1872         (fswap): Add endian check.
1873         (vec_interleave_highv2sf): Add endian check.
1874         (vec_interleave_lowv2sf): Add endian check.
1875         (fmix_lr): Add endian check.
1876         (vec_setv2sf): Format change.
1877         (*vec_extractv2sf_0_be): Use shift to extract operand.
1878         (*vec_extractv2sf_1_be): New.
1879         (vec_pack_trunc_v4hi): Add endian check.
1880         (vec_pack_trunc_v2si): Format change.
1881
1882 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
1883
1884         PR inline-asm/23200
1885         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
1886         do bb, locus and block comparison and disallow loads if it is not set.
1887         (stmt_is_replaceable_p): New function.
1888         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
1889         callers.
1890         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
1891         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
1892         SSA_NAME_DEF_STMT.
1893         * tree-flow.h (stmt_is_replaceable_p): New prototype.
1894
1895 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
1896
1897         * config/rs6000/xilinx.opt: New.
1898         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
1899
1900 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
1901
1902         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
1903
1904 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
1905
1906         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
1907         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1908         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
1909         secondary_reload_info, xtensa_secondary_reload): Remove.
1910         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
1911         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1912         (xtensa_preferred_reload_class): Make static. Change return and
1913         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
1914         Use CONST_DOUBLE_P predicate.
1915         (xtensa_preferred_output_reload_class): New function.
1916         (xtensa_secondary_reload): Make static.
1917
1918 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
1919
1920         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
1921         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
1922         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
1923
1924 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
1925
1926         PR middle-end/31490
1927         * output.h (SECTION_RELRO): Define.
1928         (SECTION_MACH_DEP): Adjust.
1929         (get_variable_section): New prototype.
1930         * varpool.c (varpool_finalize_named_section_flags): New function.
1931         (varpool_assemble_pending_decls): Call it.
1932         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
1933         * cgraphunit.c (cgraph_output_in_order): Call
1934         varpool_finalize_named_section_flags.
1935         * varasm.c (get_section): Allow section flags conflicts between
1936         relro and read-only sections if the section hasn't been declared yet.
1937         Set SECTION_OVERRIDE after diagnosing section type conflict.
1938         (get_variable_section): No longer static.
1939         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
1940         readonly sections that need relocations.
1941         (decl_readonly_section_1): New function.
1942         (decl_readonly_section): Use it.
1943
1944         Revert:
1945         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
1946                     Steve Ellcey  <sje@cup.hp.com>
1947
1948         PR middle-end/31490
1949         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
1950         if section attribute used.
1951
1952 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
1953
1954         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
1955         * config/darwin.c (SECTION_NO_ANCHOR): Define.
1956         (darwin_init_sections): Remove assertion.
1957
1958 2011-02-03  Nick Clifton  <nickc@redhat.com>
1959
1960         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
1961         lt and ge.
1962         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
1963         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
1964         instead of "n" and "pz".
1965         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
1966         CC_FLAG_S.
1967
1968 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
1969
1970         PR target/47312
1971         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
1972         fma, expand FMA_EXPR as fma{,f,l} call.
1973
1974         PR lto/47274
1975         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
1976         copy them into a unsigned char variable and pass address of it to
1977         lto_output_data_stream.
1978
1979         PR target/47564
1980         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
1981         around backend_init_target and lang_dependent_init_target calls.
1982         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
1983         (verify_cgraph_node): Don't call set_cfun here.  Use
1984         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
1985         Set error_found for incorrectly represented calls to thunks.
1986
1987 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
1988
1989         PR debug/43092
1990         PR rtl-optimization/43494
1991         * rtl.h (for_each_inc_dec_fn): New type.
1992         (for_each_inc_dec): Declare.
1993         * rtlanal.c (struct for_each_inc_dec_ops): New type.
1994         (for_each_inc_dec_find_inc_dec): New fn.
1995         (for_each_inc_dec_find_mem): New fn.
1996         (for_each_inc_dec): New fn.
1997         * dse.c (struct insn_size): Remove.
1998         (replace_inc_dec, replace_inc_dec_mem): Remove.
1999         (emit_inc_dec_insn_before): New fn.
2000         (check_for_inc_dec): Use it, along with for_each_inc_dec.
2001         (canon_address): Pass mem modes to cselib_lookup.
2002         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
2003         (cselib_lookup_from_insn): Likewise.
2004         (cselib_subst_to_values): Likewise.
2005         * cselib.c (find_slot_memmode): New var.
2006         (cselib_find_slot): New fn.  Use it instead of
2007         htab_find_slot_with_hash everywhere.
2008         (entry_and_rtx_equal_p): Use find_slot_memmode.
2009         (autoinc_split): New fn.
2010         (rtx_equal_for_cselib_p): Rename and implement in terms of...
2011         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
2012         Deal with autoinc.  Special-case recursion into MEMs.
2013         (cselib_hash_rtx): Likewise.
2014         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
2015         address and MEM modes.
2016         (cselib_subst_to_values): Add memmode, pass it on.
2017         Deal with autoinc.
2018         (cselib_lookup): Add memmode argument, pass it on.
2019         (cselib_lookup_from_insn): Add memmode.
2020         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
2021         (struct cselib_record_autoinc_data): New.
2022         (cselib_record_autoinc_cb): New fn.
2023         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
2024         mode to cselib_lookup.  Reset autoinced REGs here instead of...
2025         (cselib_process_insn): ... here.
2026         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
2027         to cselib_lookup.
2028         (add_uses): Likewise, also to cselib_subst_to_values.
2029         (add_stores): Likewise.
2030         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
2031         cselib_subst_to_values.
2032         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
2033         * gcse.c (do_local_cprop): Adjusted.
2034         * postreload.c (reload_cse_simplify_set): Adjusted.
2035         (reload_cse_simplify_operands): Adjusted.
2036         * sel-sched-dump (debug_mem_addr_value): Pass mode.
2037
2038 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
2039
2040         PR tree-optimization/45122
2041         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
2042         unsafe assumptions when there's more than one loop exit.
2043
2044 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
2045
2046         PR target/47272
2047         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2048         Document using vector double with the load/store builtins, and
2049         that the load/store builtins always use Altivec instructions.
2050
2051         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
2052         to use altivec memory instructions, even on VSX.
2053         (vector_altivec_store_<mode>): Ditto.
2054
2055         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
2056         function.
2057
2058         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2059         V2DF, V2DI support to load/store overloaded builtins.
2060
2061         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
2062         altivec load/store builtins for V2DF/V2DI types.
2063
2064         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2065         set avoid indexed addresses on power6 if -maltivec.
2066         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
2067         vector_altivec_load/vector_altivec_store builtins.
2068         (altivec_expand_st_builtin): Ditto.
2069         (altivec_expand_builtin): Add VSX memory builtins.
2070         (rs6000_init_builtins): Add V2DI types to internal types.
2071         (altivec_init_builtins): Add support for V2DF/V2DI altivec
2072         load/store builtins.
2073         (rs6000_address_for_altivec): Insure memory address is appropriate
2074         for Altivec.
2075
2076         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
2077         vec_vsx_ld and vec_vsx_st.
2078         (vsx_store_<mode>): Ditto.
2079
2080         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
2081         variables to hold long long types for VSX vector memory builtins.
2082         (RS6000_BTI_unsigned_long_long): Ditto.
2083         (long_long_integer_type_internal_node): Ditti.
2084         (long_long_unsigned_type_internal_node): Ditti.
2085
2086         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
2087         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
2088         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
2089
2090         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
2091         short cuts.
2092         (vec_vsx_st): Ditto.
2093
2094 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
2095
2096         * config/pa/pa-hpux10.opt: New.
2097         * config/hpux11.opt (pthread): New Driver option.
2098         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
2099         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
2100
2101 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
2102
2103         * config/ia64/vms.opt: New.
2104         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
2105
2106 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2107
2108         PR target/47580
2109         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
2110         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
2111         generator functions.
2112         (vsx_floatuns<VSi><mode>2): Ditto.
2113         (vsx_fix_trunc<mode><VSi>2): Ditto.
2114         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
2115
2116 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
2117
2118         * config/i386/djgpp.opt (posix): New Driver option.
2119
2120 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
2121
2122         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
2123         Move to the unsupported targets list.
2124
2125 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
2126
2127         PR rtl-optimization/47525
2128         * df-scan.c: Update copyright years.
2129         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
2130         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
2131
2132 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2133
2134         * config/i386/sysv4.h (TARGET_VERSION): Remove.
2135         (SUBTARGET_RETURN_IN_MEMORY): Remove.
2136         (ASM_OUTPUT_ASCII): Remove.
2137         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
2138
2139 2011-02-02  Jeff Law  <law@redhat.com>
2140
2141         PR middle-end/47543
2142         * reload.c (find_reloads_address): Handle reg+d address where both
2143         components are invalid by reloading the entire address.
2144
2145 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
2146             Richard Guenther  <rguenther@suse.de>
2147
2148         PR tree-optimization/40979
2149         PR bootstrap/47044
2150         * passes.c (init_optimization_passes): After LIM call copy_prop
2151         and DCE to clean up.
2152         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
2153
2154 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
2155
2156         PR tree-optimization/47576
2157         PR tree-optimization/47555
2158         * doc/invoke.texi (scev-max-expr-complexity): Documented.
2159         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
2160         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
2161         * tree-scalar-evolution.c (follow_ssa_edge): Use
2162         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
2163
2164 2011-02-02  Richard Guenther  <rguenther@suse.de>
2165
2166         PR tree-optimization/47566
2167         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
2168
2169 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
2170
2171         PR debug/47106
2172         PR debug/47402
2173         * tree-inline.c (declare_return_variable): Remove unused caller
2174         variable.
2175
2176         PR debug/47106
2177         PR debug/47402
2178         * tree-flow-inline.h (clear_is_used, is_used_p): New.
2179         * cfgexpand.c (account_used_vars_for_block): Use them.
2180         * tree-nrv.c (tree_nrv): Likewise.
2181         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
2182         (dump_scope_block): Likewise.
2183         (remove_unused_locals): Likewise.
2184
2185         PR debug/47106
2186         PR debug/47402
2187         * tree-inline.c (declare_return_variable): Add result decl to
2188         local decls only once.
2189         * gimple-low.c (record_vars_into): Mark newly-created variables
2190         as referenced.
2191
2192 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
2193
2194         PR debug/47498
2195         PR debug/47501
2196         PR debug/45136
2197         PR debug/45130
2198         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
2199         debug insns.
2200         (no_real_insns_p, schedule_block, set_priorities): Drop special
2201         treatment of boundary debug insns.
2202         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
2203         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
2204         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
2205         (BOUNDARY_DEBUG_INSN_P): Likewise.
2206         (SCHEDULE_DEBUG_INSN_P): Likewise.
2207         * sched-rgn.c (init_ready_list): Drop special treatment of
2208         boundary debug insns.
2209         * final.c (rest_of_clean_state): Clear notes' BB.
2210
2211 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2212
2213         * config/openbsd.opt (assert=): New Driver option.
2214
2215 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2216
2217         * config/i386/nto.opt: New.
2218         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
2219
2220 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2221
2222         * config/i386/netware.opt: New.
2223         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
2224
2225 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2226
2227         * config/interix.opt (posix): New Driver option.
2228
2229 2011-02-01  DJ Delorie  <dj@redhat.com>
2230
2231         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
2232
2233         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
2234         class for A0/A1.
2235
2236 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
2237
2238         PR tree-optimization/47561
2239         * toplev.c (process_options): Print the Graphite flags.  Add
2240         flag_loop_flatten to the list of options requiring Graphite.
2241
2242 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2243
2244         * config/i386/cygming.opt (posix): New Driver option.
2245
2246 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2247
2248         * config/arm/vxworks.opt: New.
2249         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
2250
2251 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
2252
2253         * config/alpha/elf.opt: New.
2254         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
2255         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
2256
2257 2011-02-01  Richard Guenther  <rguenther@suse.de>
2258
2259         PR tree-optimization/47559
2260         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
2261         store-motion on references that can throw.
2262
2263 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
2264
2265         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
2266         * tree-pass.h (TDF_CSELIB): New macro.
2267         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
2268         cselib_lookup): Check for it rather than for TDF_DETAILS.
2269
2270 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
2271
2272         PR driver/47547
2273         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
2274         is HOST_BIT_BUCKET.
2275
2276         * opts.c (finish_options): Don't add x_aux_base_name if it is
2277         HOST_BIT_BUCKET.
2278
2279 2011-02-01  Richard Guenther  <rguenther@suse.de>
2280
2281         PR tree-optimization/47555
2282         Revert
2283         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
2284
2285         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
2286
2287 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
2288
2289         PR gcc/46692
2290         * config/lm32/t-lm32: Add multilib for all CPU options.
2291
2292 2011-02-01  Richard Guenther  <rguenther@suse.de>
2293
2294         PR tree-optimization/47541
2295         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
2296         sure to have a field at offset zero.
2297
2298 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
2299
2300         * config/arc/arc.opt (EB, EL): New Driver options.
2301
2302 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
2303
2304         * config/alpha/osf5.opt: New.
2305         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
2306
2307 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
2308
2309         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
2310
2311 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
2312
2313         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
2314         -floop-interchange.
2315         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
2316         is an alias of -floop-interchange and that it requires the
2317         Graphite infrastructure.
2318         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
2319         flag_loop_interchange based on the value of flag_tree_loop_linear.
2320
2321 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
2322             Richard Guenther  <rguenther@suse.de>
2323
2324         PR tree-optimization/47538
2325         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
2326         type instead of r1type, except for comparisons.  For right
2327         shifts and comparisons punt if there are mismatches in
2328         sizetype vs. non-sizetype types.
2329
2330 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2331
2332         * doc/sourcebuild.texi (Effective-Target Keywords): Document
2333         avx_runtime.
2334
2335 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2336
2337         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
2338         version number.
2339         * configure: Regenerate.
2340
2341 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2342
2343         * configure.ac (gcc_cv_ld_static_option): Define.
2344         (gcc_cv_ld_dynamic_option): Define.
2345         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
2346         instead.
2347         (HAVE_LD_STATIC_DYNAMIC): Update message.
2348         (LD_STATIC_OPTION): Define.
2349         (LD_DYNAMIC_OPTION): Define.
2350         * configure: Regenerate.
2351         * config.in: Regenerate.
2352         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
2353         HAVE_LD_STATIC_DYNAMIC]: Use them.
2354
2355 2011-01-31  Nick Clifton  <nickc@redhat.com>
2356
2357         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
2358         registers inside interrupt handlers if the handler is not a leaf
2359         function.
2360
2361 2011-01-31  Nick Clifton  <nickc@redhat.com>
2362
2363         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
2364         reg_renumber returning an INVALID_REGNUM.
2365
2366 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
2367
2368         PR libgcj/44341
2369         * doc/install.texi: Document host options discarded when cross
2370         configuring target libraries.
2371
2372 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
2373
2374         Reverted:
2375         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
2376         PR debug/45136
2377         PR debug/45130
2378         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
2379         debug insns.
2380         (no_real_insns_p, schedule_block, set_priorities): Drop special
2381         treatment of boundary debug insns.
2382         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
2383         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
2384         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
2385         (BOUNDARY_DEBUG_INSN_P): Likewise.
2386         (SCHEDULE_DEBUG_INSN_P): Likewise.
2387         * sched-rgn.c (init_ready_list): Drop special treatment of
2388         boundary debug insns.
2389         * final.c (rest_of_clean-state): Clear notes' BB.
2390
2391 2011-01-31  Alan Modra  <amodra@gmail.com>
2392
2393         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
2394         toc relative expressions as we do in print_operand_address.
2395
2396 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
2397
2398         * doc/extend.texi: Follow spelling conventions.
2399         * doc/invoke.texi: Fix a typo.
2400
2401 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
2402
2403         * config/hpux11.opt: New.
2404         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
2405         ia64*-*-hpux*): Use hpux11.opt.
2406
2407 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
2408
2409         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
2410         to tmake_file.
2411
2412 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
2413
2414         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
2415         support sites.
2416
2417 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
2418
2419         * doc/install.texi (Binaries): Remove outdated reference for
2420         Motorola 68HC11/68HC12 downloads.
2421
2422 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
2423
2424         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
2425         Drepper's paper.
2426
2427 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2428
2429         PR bootstrap/47147
2430         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
2431         used by NetBSD.
2432
2433 2011-01-28  Ahmad Sharif  <asharif@google.com>
2434
2435         * value-prof.c (check_counter): Corrected error message.
2436
2437 2011-01-29  Jie Zhang  <jie@codesourcery.com>
2438
2439         * config/arm/arm.c (arm_legitimize_reload_address): New.
2440         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
2441         arm_legitimize_reload_address.
2442         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
2443
2444 2011-01-28  Ian Lance Taylor  <iant@google.com>
2445
2446         * godump.c (go_define): Ignore macros whose definitions include
2447         two adjacent operands.
2448
2449 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
2450
2451         PR target/42894
2452         * varasm.c (force_const_mem): Store copy of x in desc->constant
2453         instead of x itself.
2454         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
2455         itself into REG_EQUAL note.
2456
2457 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
2458
2459         * config/freebsd.opt (posix, rdynamic): New Driver options.
2460
2461 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2462
2463         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
2464         -Bstatic/-Bdynamic.
2465         * configure: Regenerate.
2466
2467 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
2468
2469         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
2470         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
2471
2472 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
2473
2474         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
2475         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
2476         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2477         (s390_preferred_reload_class): Make static. Change return and
2478         'rclass' argument type to reg_class_t.
2479
2480 2011-01-27  Jan Hubicka  <jh@suse.cz>
2481
2482         PR middle-end/46949
2483         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
2484         (process_function_and_variable_attributes): Check defined weakrefs.
2485
2486 2011-01-27  Martin Jambor  <mjambor@suse.cz>
2487
2488         PR tree-optimization/47228
2489         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
2490         build_ref_for_offset.
2491
2492 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2493
2494         * config/spu/spu-elf.h (ASM_SPEC): Remove.
2495
2496 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
2497
2498         PR rtl-optimization/46856
2499         * postreload.c (reload_combine_recognize_const_pattern): Do not
2500         separate cc0 setter and user on cc0 targets.
2501
2502 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
2503
2504         PR c/43082
2505         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
2506         passed a VOID_TYPE expression, immediately emit an error and
2507         return error_mark_node.
2508
2509 2011-01-26  Jeff Law  <law@redhat.com>
2510
2511         PR rtl-optimization/47464
2512         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
2513         rather than may_trap_p as needed.
2514
2515 2011-01-26  DJ Delorie  <dj@redhat.com>
2516
2517         PR rtl-optimization/46878
2518         * combine.c (insn_a_feeds_b): Check for the implicit cc0
2519         setter/user dependency as well.
2520
2521 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
2522
2523         PR rtl-optimization/44469
2524         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
2525         after removing trivially dead basic blocks.
2526
2527 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
2528
2529         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
2530         * config/frv/frv.h (LINK_SPEC): Likewise.
2531         * config/i386/netware.h (LINK_SPEC): Likewise.
2532         * config/m68k/linux.h (ASM_SPEC): Likewise.
2533         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
2534         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
2535         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2536         * config/sparc/linux.h (ASM_SPEC): Likewise.
2537         * config/sparc/linux64.h (ASM_SPEC): Likewise.
2538         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
2539
2540 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
2541
2542         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
2543         * config/frv/frv.h (ASM_SPEC): Likewise.
2544         * config/m68k/linux.h (ASM_SPEC): Likewise.
2545         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
2546         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
2547         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2548         * config/sparc/linux.h (ASM_SPEC): Likewise.
2549         * config/sparc/linux64.h (ASM_SPEC): Likewise.
2550         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
2551
2552 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
2553
2554         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
2555         * config/frv/frv.h (LINK_SPEC): Likewise.
2556         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
2557
2558 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
2559
2560         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
2561         * config/frv/frv.h (ASM_SPEC): Likewise.
2562         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
2563         * config/m68k/linux.h (ASM_SPEC): Likewise.
2564         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
2565         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
2566         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2567         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
2568         * config/sparc/linux.h (ASM_SPEC): Likewise.
2569         * config/sparc/linux64.h (ASM_SPEC): Likewise.
2570         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
2571         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
2572
2573 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
2574
2575         PR target/46997
2576         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
2577         (*mux2): Ditto.
2578         (vec_extract_evenodd_help): Ditto.
2579         (vec_extract_evenv4hi): Ditto.
2580         (vec_extract_oddv4hi): Ditto.
2581         (vec_interleave_lowv2si): Ditto.
2582         (vec_interleave_highv2si): Ditto.
2583         (vec_extract_evenv2si): Ditto.
2584         (vec_extract_oddv2si: Ditto.
2585         (vec_pack_trunc_v2si): Ditto.
2586
2587 2011-01-22  Jan Hubicka  <jh@suse.cz>
2588
2589         PR target/47237
2590         * cgraph.h (cgraph_local_info): New field can_change_signature.
2591         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
2592         signature can change.
2593         (ipcp_estimate_growth): Call sequence simplify only if calle signature
2594         can change.
2595         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
2596         (cgraph_function_versioning): We can not change signature of functions
2597         that don't allow that.
2598         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
2599         (lto_input_node): Likewise.
2600         * ipa-inline.c (compute_inline_parameters): Compute
2601         local.can_change_signature.
2602         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
2603         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
2604         functions that can not change signature.
2605         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
2606         init_cumulative_args): Do not use local calling conventions
2607         for functions that can not change signature.
2608
2609 2011-01-22  Jan Hubicka  <jh@suse.cz>
2610
2611         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
2612
2613 2011-01-26  Richard Guenther  <rguenther@suse.de>
2614
2615         PR tree-optimization/47190
2616         * cgraphunit.c (process_common_attributes): New function.
2617         (process_function_and_variable_attributes): Use it.
2618
2619 2011-01-26  Richard Guenther  <rguenther@suse.de>
2620
2621         PR lto/47423
2622         * cgraphbuild.c (record_eh_tables): Record reference to personality
2623         function.
2624
2625 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
2626
2627         PR debug/45454
2628         * sel-sched.c (moveup_expr): Don't let debug insns prevent
2629         non-debug insns from moving up.
2630
2631 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
2632
2633         PR target/40125
2634         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
2635         t-dlldir{,-x} fragment for build and add it to tmake_file.
2636         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
2637         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
2638         * config/i386/t-dlldir: New file.
2639         (SHLIB_DLLDIR): Define.
2640         * config/i386/t-dlldir-x: New file.
2641         (SHLIB_DLLDIR): Define.
2642         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
2643         (SHLIB_INSTALL): Use it.
2644
2645 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
2646
2647         PR target/47246
2648         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
2649         lower bound of the allowed Thumb-2 coprocessor load/store
2650         index range to -256. Add explaining comment.
2651
2652 2011-01-25  Ian Lance Taylor  <iant@google.com>
2653
2654         * godump.c (go_define): Improve lexing of macro expansion to only
2655         accept expressions which match Go spec.
2656
2657 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
2658
2659         PR c++/43601
2660         * tree.c (handle_dll_attribute): Handle it.
2661         * doc/extend.texi (@item dllexport): Mention it.
2662         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
2663
2664 2011-01-25  Ian Lance Taylor  <iant@google.com>
2665
2666         PR tree-optimization/26854
2667         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
2668         (decl_jump_unsafe): Move higher in file, with no other change.
2669         (bind): Set has_jump_unsafe_decl if appropriate.
2670         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
2671         (check_earlier_gotos): Likewise.
2672         (c_check_switch_jump_warnings): Likewise.
2673
2674 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
2675
2676         * doc/invoke.texi (Warning Options): Add missing hyphen.
2677         (-fprofile-dir): Minor grammatical fixes.
2678         (-fbranch-probabilities): Likewise.
2679
2680 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
2681
2682         PR debug/45136
2683         PR debug/45130
2684         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
2685         debug insns.
2686         (no_real_insns_p, schedule_block, set_priorities): Drop special
2687         treatment of boundary debug insns.
2688         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
2689         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
2690         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
2691         (BOUNDARY_DEBUG_INSN_P): Likewise.
2692         (SCHEDULE_DEBUG_INSN_P): Likewise.
2693         * sched-rgn.c (init_ready_list): Drop special treatment of
2694         boundary debug insns.
2695         * final.c (rest_of_clean-state): Clear notes' BB.
2696
2697 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2698
2699         * Makefile.in (LAMBDA_H): Removed.
2700         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
2701         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
2702         lambda-trans.o, and tree-loop-linear.o.
2703         (lto-symtab.o): Remove dependence on LAMBDA_H.
2704         (tree-loop-linear.o): Remove rule.
2705         (lambda-mat.o): Same.
2706         (lambda-trans.o): Same.
2707         (lambda-code.o): Same.
2708         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
2709         (tree-vect-slp.o): Same.
2710         * hwint.h (gcd): Moved here.
2711         (least_common_multiple): Same.
2712         * lambda-code.c: Removed.
2713         * lambda-mat.c: Removed.
2714         * lambda-trans.c: Removed.
2715         * lambda.h: Removed.
2716         * tree-loop-linear.c: Removed.
2717         * lto-symtab.c: Do not include lambda.h.
2718         * omega.c (gcd): Removed.
2719         * passes.c (init_optimization_passes): Remove pass_linear_transform.
2720         * tree-data-ref.c (print_lambda_vector): Moved here.
2721         (lambda_vector_copy): Same.
2722         (lambda_matrix_copy): Same.
2723         (lambda_matrix_id): Same.
2724         (lambda_vector_first_nz): Same.
2725         (lambda_matrix_row_add): Same.
2726         (lambda_matrix_row_exchange): Same.
2727         (lambda_vector_mult_const): Same.
2728         (lambda_vector_negate): Same.
2729         (lambda_matrix_row_negate): Same.
2730         (lambda_vector_equal): Same.
2731         (lambda_matrix_right_hermite): Same.
2732         * tree-data-ref.h: Do not include lambda.h.
2733         (lambda_vector): Moved here.
2734         (lambda_matrix): Same.
2735         (dependence_level): Same.
2736         (lambda_transform_legal_p): Removed declaration.
2737         (lambda_collect_parameters): Same.
2738         (lambda_compute_access_matrices): Same.
2739         (lambda_vector_gcd): Same.
2740         (lambda_vector_new): Same.
2741         (lambda_vector_clear): Same.
2742         (lambda_vector_lexico_pos): Same.
2743         (lambda_vector_zerop): Same.
2744         (lambda_matrix_new): Same.
2745         * tree-flow.h (least_common_multiple): Removed declaration.
2746         * tree-parloops.c (lambda_trans_matrix): Moved here.
2747         (LTM_MATRIX): Same.
2748         (LTM_ROWSIZE): Same.
2749         (LTM_COLSIZE): Same.
2750         (LTM_DENOMINATOR): Same.
2751         (lambda_trans_matrix_new): Same.
2752         (lambda_matrix_vector_mult): Same.
2753         (lambda_transform_legal_p): Same.
2754         * tree-pass.h (pass_linear_transform): Removed declaration.
2755         * tree-ssa-loop.c (tree_linear_transform): Removed.
2756         (gate_tree_linear_transform): Removed.
2757         (pass_linear_transform): Removed.
2758         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
2759         flag_loop_interchange.
2760
2761 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
2762
2763         PR tree-optimization/47265
2764         PR tree-optimization/47443
2765         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
2766         if name still has some uses.
2767
2768 2011-01-25  Martin Jambor  <mjambor@suse.cz>
2769
2770         PR tree-optimization/47382
2771         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
2772         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
2773
2774 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
2775
2776         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
2777         sjlj_except_unwind_info.
2778
2779 2011-01-25  Richard Guenther  <rguenther@suse.de>
2780
2781         PR tree-optimization/47426
2782         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
2783         visible functions results escape.
2784
2785 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
2786
2787         PR target/45701
2788         * config/arm/arm.c (any_sibcall_uses_r3): New function.
2789         (arm_get_frame_offsets): Use it.
2790
2791 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2792             Jakub Jelinek  <jakub@redhat.com>
2793
2794         PR tree-optimization/47271
2795         * tree-if-conv.c (bb_postdominates_preds): New.
2796         (if_convertible_bb_p): Call bb_postdominates_preds.
2797         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
2798         (predicate_scalar_phi): Call bb_postdominates_preds.
2799
2800 2011-01-25  Nick Clifton  <nickc@redhat.com>
2801
2802         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
2803         * config/rx/rx.c (rx_function_value): Likewise.
2804         (rx_promote_function_mode): Likewise.
2805         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
2806         in order to make it legitimate.
2807         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
2808         make sure that the first operand is the same as the result register.
2809         (addsi3_unspec): Delete.
2810         (subdi3): Do not accept immediate operands.
2811         (subdi3_internal): Likewise.
2812
2813 2011-01-25  Jeff Law  <law@redhat.com>
2814
2815         PR rtl-optimization/37273
2816         * ira-costs.c (scan_one_insn): Detect constants living in memory and
2817         handle them like argument loads from stack slots.  Do not double
2818         count memory for memory constants and argument loads from stack slots.
2819
2820 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
2821
2822         PR tree-optimization/47427
2823         PR tree-optimization/47428
2824         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
2825         coalesce if the new root var would be TREE_READONLY.
2826
2827 2011-01-25  Richard Guenther  <rguenther@suse.de>
2828
2829         PR middle-end/47414
2830         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
2831         correct type for TBAA.
2832
2833 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2834
2835         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
2836         (close_phi_written_to_memory): Call for_each_index with
2837         dr_indices_valid_in_loop.
2838
2839 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2840
2841         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
2842         when it is initialized.
2843
2844 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2845
2846         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
2847         call to graphite_find_data_references_in_stmt.
2848         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
2849         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
2850         call to graphite_find_data_references_in_stmt.
2851         (analyze_drs_in_stmts): Same.
2852         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
2853         in which the scalar analysis of indices is performed.
2854         (create_data_ref): Same.  Update call to dr_analyze_indices.
2855         (find_data_references_in_stmt): Update call to create_data_ref.
2856         (graphite_find_data_references_in_stmt): Same.
2857         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
2858         declaration.
2859         (create_data_ref): Same.
2860         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
2861         call to create_data_ref.
2862
2863 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2864
2865         * graphite-sese-to-poly.c (build_poly_scop): Move
2866         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
2867
2868 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2869
2870         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
2871         VAR_DECL, PARM_DECL, and RESULT_DECL.
2872
2873 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2874
2875         * graphite-dependences.c (reduction_dr_1): Allow several reductions
2876         in a reduction PBB.
2877         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
2878         that have already been marked as PBB_IS_REDUCTION.
2879
2880 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2881
2882         * graphite-scop-detection.c (same_close_phi_node): New.
2883         (remove_duplicate_close_phi): New.
2884         (make_close_phi_nodes_unique): New.
2885         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
2886
2887 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2888
2889         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
2890         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
2891         of both data references to be the same.
2892
2893 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2894
2895         * graphite-dependences.c (build_lexicographical_constraint): Remove
2896         the gdim parameter.
2897         (build_lexicographical_constraint): Adjust call to
2898         ppl_powerset_is_empty.
2899         (dependence_polyhedron): Same.
2900         (graphite_legal_transform_dr): Same.
2901         (graphite_carried_dependence_level_k): Same.
2902         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
2903         parameter.
2904         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
2905
2906 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2907
2908         * graphite-sese-to-poly.c
2909         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
2910         (close_phi_written_to_memory): New.
2911         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
2912         and unshare_expr.
2913
2914 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2915
2916         * doc/install.texi: Update the expected version number of PPL to 0.11.
2917         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
2918         #if PPL_VERSION_MINOR < 11.
2919
2920 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2921
2922         * graphite-dependences.c: Include graphite-cloog-util.h.
2923         (new_poly_ddr): Inlined into dependence_polyhedron.
2924         (free_poly_ddr): Moved close by new_poly_ddr.
2925         (dependence_polyhedron_1): Renamed dependence_polyhedron.
2926         Early return NULL when ppl_powerset_is_empty returns true.
2927         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
2928         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
2929         (graphite_legal_transform_dr): Call new_poly_ddr.
2930         (graphite_carried_dependence_level_k): Same.
2931         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
2932         (dot_transformed_deps_stmt_1): Removed.
2933         (dot_deps_stmt_1): Call dot_deps_stmt_2.
2934         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
2935         (dot_deps_1): Call dot_deps_2.
2936         * Makefile.in (graphite-dependences.o): Add missing dependence on
2937         graphite-cloog-util.h.
2938
2939 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2940
2941         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
2942         (build_lexicographical_constraint): Same.
2943         (dependence_polyhedron_1): Same.
2944         (graphite_legal_transform_dr): Same.
2945         (graphite_carried_dependence_level_k): Same.
2946         * graphite-ppl.c (ppl_powerset_is_empty): New.
2947         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
2948         * tree-data-ref.c (dump_data_reference): Print the basic block index.
2949
2950 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2951
2952         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
2953         the "a followed by b" relation and document it.
2954
2955 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2956
2957         * graphite-dependences.c (build_lexicographical_constraint): Stop the
2958         iteration when the bag of constraints is empty.
2959
2960 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2961
2962         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
2963
2964 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2965
2966         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
2967         nest and two loop depths as parameters.
2968         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
2969         lst_perfect_nestify.
2970
2971 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2972
2973         * graphite-dependences.c (print_pddr): Call
2974         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
2975
2976 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
2977
2978         * graphite-ppl.c (debug_gmp_value): New.
2979         * graphite-ppl.h (debug_gmp_value): Declared.
2980
2981 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
2982
2983         * doc/install.texi: Document availability of cloog-0.16.
2984
2985 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
2986
2987         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
2988         invalid postdominance info.
2989
2990 2011-01-24  Jan Hubicka  <jh@suse.cz>
2991
2992         PR c/21659
2993         * doc/extend.texi (weak pragma): Drop claim that it must
2994         appear before definition.
2995         * varasm.c (merge_weak, declare_weak): Only sanity check
2996         that DECL is not output at a time it is declared weak.
2997
2998 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
2999
3000         * machmode.def: Fixed comments.
3001
3002 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
3003
3004         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
3005
3006 2011-01-24  Paul Koning  <ni1d@arrl.net>
3007
3008         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
3009         WORDS_BIG_ENDIAN.
3010
3011 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
3012
3013         PR target/46519
3014         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
3015         (block_info): Add scanned and prev.
3016         (move_or_delete_vzeroupper_2): Return if the basic block
3017         has been scanned and the upper 128bit state is unchanged
3018         from the last scan.
3019         (move_or_delete_vzeroupper_1): Return true if the exit
3020         state is changed.
3021         (move_or_delete_vzeroupper): Visit basic blocks using the
3022         work-list based algorithm based on vt_find_locations in
3023         var-tracking.c.
3024
3025         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
3026
3027 2011-01-24  Nick Clifton  <nickc@redhat.com>
3028
3029         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
3030         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
3031         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
3032         then define __v850e1__.
3033         * doc/invoke.texi: Document -mv850es.
3034
3035 2011-01-24  Richard Henderson  <rth@redhat.com>
3036
3037         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
3038         compound unordered comparisons.
3039         * config/rx/rx.c (rx_split_fp_compare): Remove.
3040         * config/rx/rx-protos.h: Update.
3041         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
3042         (cbranchsf4): Don't call rx_split_fp_compare.
3043         (*cbranchsf4): Use rx_split_cbranch.
3044         (*cmpsf): Don't accept "i" constraint.
3045         (*conditional_branch): Only valid after reload.
3046         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
3047
3048 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3049
3050         PR target/47385
3051         * config/rs6000/altivec.md (vector constant splitters): Add
3052         support for creating vector single precision constants if -mvsx is
3053         used and we would create the constant using Altivec primitives.
3054
3055 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
3056             Richard Sandiford  <rdsandiford@googlemail.com>
3057
3058         PR rtl-optimization/47166
3059         * reload1.c (emit_reload_insns): Disable the spill_reg_store
3060         mechanism for PRE_MODIFY and POST_MODIFY.
3061         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
3062         reloadreg.
3063
3064 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
3065
3066         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
3067
3068 2011-01-22  Jan Hubicka  <jh@suse.cz>
3069
3070         PR lto/47333
3071         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
3072
3073 2011-01-22  Jan Hubicka  <jh@suse.cz>
3074
3075         PR tree-optimization/43884
3076         PR lto/44334
3077         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
3078         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
3079
3080 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
3081
3082         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3083         * config/s390/s390.c (s390_register_move_cost,
3084         s390_memory_move_cost): New.
3085         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3086
3087 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3088
3089         PR middle-end/47401
3090         * except.c (sjlj_assign_call_site_values): Move setting the
3091         crtl->uses_eh_lsda flag to ...
3092         (sjlj_mark_call_sites): ... here.
3093         (sjlj_emit_function_enter): Support NULL dispatch label.
3094         (sjlj_build_landing_pads): In a function with no landing pads
3095         that still has must-not-throw regions, generate code to register
3096         a personality function with empty LSDA.
3097
3098 2011-01-21  Richard Henderson  <rth@redhat.com>
3099
3100         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
3101
3102         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
3103
3104         * compare-elim.c: New file.
3105         * Makefile.in (OBJS-common): Add it.
3106         (compare-elim.o): New.
3107         * common.opt (fcompare-elim): New.
3108         * opts.c (default_options_table): Add OPT_fcompare_elim.
3109         * tree-pass.h (pass_compare_elim_after_reload): New.
3110         * passes.c (init_optimization_passes): Add it.
3111         * recog.h: Protect against re-inclusion.
3112         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
3113         * doc/invoke.texi (-fcompare-elim): Document it.
3114         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
3115         * doc/tm.texi: Rebuild.
3116
3117 2011-01-22  Nick Clifton  <nickc@redhat.com>
3118
3119         * config/rx/rx.md (cstoresf4): Pass comparison operator to
3120         rx_split_fp_compare.
3121
3122 2011-01-22  Nick Clifton  <nickc@redhat.com>
3123
3124         * config/rx/rx.md (UNSPEC_CONST): New.
3125         (deallocate_and_return): Wrap the amount popped off the stack in
3126         an UNSPEC_CONST in order to stop it being rejected by
3127         -mmax-constant-size.
3128         (pop_and_return): Add a "(return)" rtx.
3129         (call): Drop the immediate operand.
3130         (call_internal): Likewise.
3131         (call_value): Likewise.
3132         (call_value_internal): Likewise.
3133         (sibcall_internal): Likewise.
3134         (sibcall_value_internal): Likewise.
3135         (sibcall): Likewise.  Generate an explicit call using
3136         sibcall_internal.
3137         (sibcall_value): Likewise.
3138         (mov<>): FAIL if a constant operand is not legitimate.
3139         (addsi3_unpsec): New pattern.
3140
3141         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
3142         (ok_for_max_constant): New function.
3143         (gen_safe_add): New function.
3144         (rx_expand_prologue): Use gen_safe_add.
3145         (rx_expand_epilogue): Likewise.
3146         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
3147         UNSPEC CONSTs.
3148
3149 2011-01-21  Jeff Law  <law@redhat.com>
3150
3151         PR tree-optimization/47053
3152         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
3153         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
3154         statements are deleted.
3155         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
3156         is nonempty, then purge dead edges and cleanup the CFG.
3157
3158 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
3159
3160         PR debug/47402
3161         Temporarily revert:
3162         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
3163         PR debug/47106
3164         * tree-dfa.c (create_var_ann): Mark variable as used.
3165
3166 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
3167
3168         PR middle-end/45566
3169         * except.c (convert_to_eh_region_ranges): Emit queued no-region
3170         notes from other section in hot/cold partitioning even if
3171         last_action is -3.  Increment call_site_base.
3172
3173         PR rtl-optimization/47366
3174         * fwprop.c (forward_propagate_into): Return bool.  If
3175         any changes are made, -fnon-call-exceptions is used and
3176         REG_EH_REGION note is present, call purge_dead_edges
3177         and return true if it purged anything.
3178         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
3179         any EH edges were purged.
3180
3181 2011-01-21  Jeff Law  <law@redhat.com>
3182
3183         PR rtl-optimization/41619
3184         * caller-save.c (setup_save_areas): Break out code to determine
3185         which hard regs are live across calls by examining the reload chains
3186         so that it is always used.
3187         Eliminate code which checked REG_N_CALLS_CROSSED.
3188
3189 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
3190
3191         PR tree-optimization/47355
3192         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
3193         NOP has non-debug uses beyond PHIs in new_bb.
3194
3195 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
3196
3197         PR debug/47106
3198         * cfgexpand.c (account_used_vars_for_block): Only account vars
3199         that are annotated as used.
3200         (estimated_stack_frame_size): Don't set TREE_USED.
3201         * tree-dfa.c (create_var_ann): Mark variable as used.
3202
3203 2011-01-21  Richard Guenther  <rguenther@suse.de>
3204
3205         PR middle-end/47395
3206         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
3207
3208 2011-01-21  Richard Guenther  <rguenther@suse.de>
3209
3210         PR tree-optimization/47365
3211         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
3212         (vn_reference_lookup_pieces): Adjust.
3213         (vn_reference_lookup): Likewise.
3214         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
3215         (vn_reference_lookup_3): Only look through kills if in
3216         VN_WALKREWRITE mode.
3217         (vn_reference_lookup_pieces): Adjust.
3218         (vn_reference_lookup): Likewise.
3219         (visit_reference_op_load): Likewise.
3220         (visit_reference_op_store): Likewise.
3221         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
3222         (compute_avail): Likewise.
3223         (eliminate): Likewise.
3224
3225 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
3226
3227         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
3228         DECL_IGNORED_P non-reg vars if they are used.
3229
3230         PR tree-optimization/47391
3231         * varpool.c (const_value_known_p): Return false if
3232         decl is volatile.
3233
3234 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
3235
3236         PR bootstrap/47215
3237         * config/i386/i386.c (ix86_local_alignment): Handle
3238         case for va_list_type_node is nil.
3239         (ix86_canonical_va_list_type): Likewise.
3240
3241 2011-01-21  Alan Modra  <amodra@gmail.com>
3242
3243         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
3244         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
3245
3246 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3247
3248         * config/arm/arm.md (define_attr type): Rename f_load
3249         and f_store to f_fpa_load and f_fpa_store. Update.
3250         (write_conflict): Deal with rename fallout.
3251         (*push_fp_multi): Likewise.
3252         * config/arm/fpa.md (f_load): Use f_fpa_load.
3253         (f_store): Use f_fpa_store.
3254         (*movsf_fpa): Likewise.
3255         (*movdf_fpa): Likewise.
3256         (*movxf_fpa): Likewise.
3257         (*thumb2_movsf_fpa): Likewise.
3258         (*thumb2_movdf_fpa): Likewise.
3259         (*thumb2_movxf_fpa): Likewise.
3260         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
3261         f_loadd and f_stored.
3262         (*thumb2_movdi_vfp): Likewise.
3263         (*thumb2_movsf_vfp): Fix attribute to f_loads.
3264         (*thumb2_movsi_vfp): Likewise.
3265         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
3266         Use f_loads instead of f_load.
3267         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
3268
3269 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
3270
3271         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3272         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
3273         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3274         (xtensa_mode_dependent_address_p): New function.
3275         (constantpool_address_p): Make static. Change return type to bool.
3276         Change argument type to const_rtx. Use CONST_INT_P predicate.
3277
3278 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
3279
3280         PR debug/46583
3281         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
3282
3283 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
3284
3285         PR debug/47283
3286         * cfgexpand.c (expand_debug_expr): Instead of generating
3287         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
3288         etc. handling.
3289
3290 2011-01-20  Richard Guenther  <rguenther@suse.de>
3291
3292         PR middle-end/47370
3293         * tree-inline.c (remap_gimple_op_r): Recurse manually for
3294         the pointer operand of MEM_REFs.
3295
3296 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
3297
3298         PR tree-optimization/46130
3299         * ipa-split.c (consider_split): If return_bb contains non-virtual
3300         PHIs other than for retval or if split_function would not adjust it,
3301         refuse to split.
3302
3303 2011-01-20  Richard Guenther  <rguenther@suse.de>
3304
3305         PR tree-optimization/47167
3306         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
3307         Revert previous change, only avoid enumeral type changes.
3308
3309 2011-01-19  Mike Stump  <mikestump@comcast.net>
3310
3311         * doc/tm.texi.in (BRANCH_COST): Englishify.
3312         * doc/tm.texi (BRANCH_COST): Likewise.
3313
3314 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
3315
3316         PR c++/47291
3317         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
3318         (gen_scheduled_generic_parms_dies): New functions.
3319         (gen_struct_or_union_type_die): Schedule template parameters DIEs
3320         generation for the end of CU compilation.
3321         (dwarf2out_finish): Generate template parameters DIEs here.
3322
3323 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
3324
3325         PR debug/46240
3326         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
3327         debug bind stmt on merge edges.
3328
3329 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
3330
3331         PR debug/47079
3332         PR debug/46724
3333         * function.c (instantiate_expr): Instantiate incoming rtl of
3334         implicit arguments, and recurse on VALUE_EXPRs.
3335         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
3336         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
3337
3338 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
3339
3340         * c-parser.c (c_parser_for_statement): Initialize
3341         collection_expression.
3342
3343 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
3344
3345         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
3346
3347 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
3348
3349         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
3350         (LINK_SHLIB_SPEC): Don't use %(link_path).
3351         (SUBTARGET_EXTRA_SPECS): Remove link_path.
3352
3353 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
3354
3355         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
3356         (NO_SHARED_LIB_SUPPORT): Remove.
3357         (LINK_SHLIB_SPEC): Remove one conditional definition.
3358
3359 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
3360
3361         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
3362         %{call_shared}.
3363         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
3364         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
3365         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
3366         %{call_shared} and conditionals on these options not being passed.
3367         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
3368         %{call_shared}.
3369
3370 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
3371
3372         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
3373         simplify.
3374
3375         * ipa-split.c: Spelling fixes.
3376
3377 2011-01-19  Richard Henderson  <rth@redhat.com>
3378
3379         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
3380         (*mulsi3): Likewise.
3381
3382         * longlong.h [__mn10300__] (count_leading_zeros): New.
3383         [__mn10300__] (umul_ppmm, smul_ppmm): New.
3384         [__mn10300__] (add_ssaaaa, subddmmss): New.
3385         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
3386         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
3387
3388 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3389
3390         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
3391
3392 2011-01-19  Richard Henderson  <rth@redhat.com>
3393
3394         * config/mn10300/mn10300.md (addsi3_flags): New.
3395         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
3396         (subsi3_flags, subc_internal, subdi3): New.
3397         (subdi3_internal, *subdi3_degenerate): New.
3398         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
3399
3400         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
3401         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
3402         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
3403         * config/mn10300/mn10300-protos.h: Update.
3404         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
3405         (return_ret): Likewise.  Rename from return_internal_regs.
3406         (return_internal): Remove.
3407
3408         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
3409         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
3410         (mn10300_legitimate_constant_p): Likewise.
3411         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
3412         (mn10300_frame_size): New.
3413         (mn10300_expand_prologue): Use it.
3414         (mn10300_expand_epilogue): Likewise.
3415         (mn10300_initial_offset): Likewise.
3416         * config/mn10300/mn10300-protos.h: Update.
3417         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
3418         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
3419         (prologue, epilogue, return_internal): Tidy output code.
3420         (mn10300_store_multiple_operation, return): Likewise.
3421         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
3422         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
3423         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
3424         (load_pic, am33_load_pic): New.
3425         (mn10300_load_pic0, mn10300_load_pic1): New.
3426
3427         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
3428         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
3429         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
3430         (cc_flags_for_mode, cc_flags_for_code): New.
3431         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
3432         overflow flag is not valid.  Validate that the flags we need
3433         for the comparison are valid.
3434         (mn10300_output_cmp): Remove.
3435         (mn10300_output_add): New.
3436         (mn10300_select_cc_mode): Use cc_flags_for_code.
3437         (mn10300_split_cbranch): New.
3438         (mn10300_match_ccmode): New.
3439         (mn10300_split_and_operand_count): New.
3440         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
3441         to the function.
3442         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
3443         (addsi3): ... here.  Use mn10300_output_add.
3444         (*addsi3_flags): New.
3445         (*am33_subsi3, *mn10300_subsi3): Merge...
3446         (subsi3): ... here.  Use attribute isa.
3447         (*subsi3_flags): New.
3448         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
3449         when possible.
3450         (*am33_andsi3, *mn10300_andsi3): Merge...
3451         (andsi3): ... here.
3452         (*andsi3_flags): New.
3453         (andsi3 splitters): New.
3454         (*am33_iorsi3, *mn10300_iorsi3): Merge...
3455         (iorsi3): ... here.
3456         (*iorsi3_flags): New.
3457         (*am33_xorsi3, *mn10300_xorsi3): Merge...
3458         (xorsi3): ... here.
3459         (*xorsi3_flags): New.
3460         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
3461         (one_cmplsi2): ... here.
3462         (*one_cmplsi2_flags): New.
3463         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
3464         instead of "dax" in constraints.  Use mn10300_split_cbranch.
3465         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
3466         use matching constraints to eliminate a self-comparison.
3467         (*integer_conditional_branch): Rename from integer_conditional_branch.
3468         Use int_mode_flags to match CC_REG.
3469         (*cbranchsi4_btst, *btstsi): New.
3470         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
3471         mn10300_split_cbranch.
3472         (*am33_cmpsf): Rename from am33_cmpsf.
3473         (*float_conditional_branch): Rename from float_conditional_branch.
3474         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
3475         (zero_extendqisi2): ... here.
3476         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
3477         (zero_extendhisi2): ... here.
3478         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
3479         (extendqisi2): ... here.
3480         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
3481         (extendhisi2): ... here.
3482         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
3483         (ashlsi3): ... here.
3484         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
3485         (lshrsi3): ... here.
3486         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
3487         (ashrsi3): ... here.
3488         (consecutive add peephole): Remove.
3489         * config/mn10300/predicates.md (label_ref_operand): New.
3490         (int_mode_flags): New.
3491         (CCZN_comparison_operator): New.
3492
3493         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
3494         (throughput_42_latency_43): New reservation.
3495         (mulsidi3, umulsidi3): New expanders.
3496         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
3497         the MDR register to allocation; separately allocate the low and
3498         high parts of the DImode result.
3499         (umulsidi3_internal): Similarly.
3500         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
3501         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
3502         (udivsi3, umodsi3): Remove.
3503         (udivmodsi4, divmodsi4): New expanders.
3504         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
3505         (*divmodsi4): Simiarly.
3506         (ext_internal): New.
3507
3508         * config/mn10300/constraints.md ("z"): New constraint.
3509         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
3510         (FIXED_REGISTERS): Don't fix MDR.
3511         (CALL_USED_REGSITERS): Reformat nicely.
3512         (REG_ALLOC_ORDER): Add MDR.
3513         (enum regclass): Add MDR_REGS.
3514         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
3515         (IRA_COVER_CLASSES): Add MDR_REGS.
3516         (REGNO_REG_CLASS): Handle MDR_REG.
3517         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
3518         (mn10300_register_move_cost): Likewise.
3519         * config/mn10300/mn10300.md (MDR_REG): New.
3520         (*movsi_internal): Handle moves to/from MDR_REGS.
3521
3522         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
3523         POST_MODIFY.
3524         (mn10300_secondary_reload): Tidy combination reload classes.
3525         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
3526         addresses for AM33.  Allow symbolic offsets for reg+imm.
3527         (mn10300_regno_in_class_p): New.
3528         (mn10300_legitimize_reload_address): New.
3529         * config/mn10300/mn10300.h (enum reg_class): Remove
3530         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
3531         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
3532         SP_OR_GENERAL_REGS.
3533         (REG_CLASS_NAMES): Update to match.
3534         (REG_CLASS_CONTENTS): Likewise.
3535         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
3536         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
3537         (REGNO_IN_RANGE_P): Remove.
3538         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
3539         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
3540         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
3541         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
3542         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
3543         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
3544         (REGNO_GENERAL_P): New.
3545         (HAVE_POST_MODIFY_DISP): New.
3546         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
3547         (LEGITIMIZE_RELOAD_ADDRESS): New.
3548         * config/mn10300/mn10300-protos.h: Update.
3549
3550         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
3551         DATA_REGS for AM33 stack-pointer destination.
3552         (mn10300_preferred_output_reload_class): Likewise.
3553         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
3554         into a form appropriate for ...
3555         (TARGET_SECONDARY_RELOAD): New.
3556         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
3557         * config/mn10300/mn10300-protos.h: Update.
3558         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
3559         reload_insi; use the "A" constraint for the scratch; handle AM33
3560         moves of sp to non-address registers.
3561
3562         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
3563         (*movqi_internal): ... here.
3564         (*am33_movhi, *mn10300_movhi): Merge into...
3565         (*movhi_internal): ... here.
3566         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
3567         as the source/destination of moves from/to SP.
3568         (movsf): Only allow for AM33-2.
3569         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
3570         any integer constant constraint.  Only allow for AM33-2.  Tidy
3571         all of the alternative outputs.
3572         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
3573         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
3574         for MN103.
3575         (udivsi3, umodsi3): New patterns for MN103 only.
3576
3577 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
3578
3579         * doc/tm.texi.in: Spell out that a lack of register class unions
3580         can lead to ICEs.
3581         * doc/tm.texi: Regenerate.
3582
3583 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
3584
3585         PR rtl-optimization/47337
3586         * dce.c (check_argument_store): New function.
3587         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
3588
3589         PR tree-optimization/47290
3590         * tree-eh.c (infinite_empty_loop_p): New function.
3591         (cleanup_empty_eh): Use it.
3592
3593 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
3594
3595         PR target/46997
3596         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
3597         (a64_expand_widen_sum): Ditto.
3598         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
3599         (vec_extract_evenodd_help): Ditto.
3600         (vec_extract_evenv4hi): Ditto.
3601         (vec_extract_oddv4hi): Ditto.
3602         (vec_extract_evenv2si): Ditto.
3603         (vec_extract_oddv2si): Ditto.
3604         (vec_extract_evenv2sf): Ditto.
3605         (vec_extract_oddv2sf): Ditto.
3606         (vec_pack_trunc_v4hi: Ditto.
3607         (vec_pack_trunc_v2si): Ditto.
3608         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
3609         (vec_interleave_highv8qi): Ditto.
3610         (mix1_r): Ditto.
3611         (vec_extract_oddv8qi): Ditto.
3612         (vec_interleave_lowv4hi): Ditto.
3613         (vec_interleave_highv4hi): Ditto.
3614         (vec_interleave_lowv2si): Ditto.
3615         (vec_interleave_highv2si): Ditto.
3616
3617 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3618
3619         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
3620         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
3621         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
3622         (pa_c_mode_for_suffix): New.
3623         (TARGET_EXPAND_BUILTIN): Define.
3624         (TARGET_C_MODE_FOR_SUFFIX): Define.
3625         (pa_builtins): Define.
3626         (pa_init_builtins): Register __float128 type and init new support
3627         builtins.
3628         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
3629         * config/pa/quadlib.c (_U_Qfcopysign): New.
3630
3631 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
3632
3633         PR middle-end/46894
3634         * explow.c (allocate_dynamic_stack_space): Do not assume more than
3635         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
3636         are defined.
3637
3638 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3639
3640         PR tree-optimization/47179
3641         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
3642         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
3643
3644 2011-01-18  Richard Guenther  <rguenther@suse.de>
3645
3646         PR rtl-optimization/47216
3647         * emit-rtl.c: Include tree-flow.h.
3648         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
3649         of replicating it with different semantics.
3650         * Makefile.in (emit-rtl.o): Adjust.
3651
3652 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3653
3654         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
3655         (cortex_a9_dp): Handle neon types correctly.
3656
3657 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
3658
3659         PR rtl-optimization/47299
3660         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
3661         subtarget.  Use normal multiplication if both operands are constants.
3662         * expmed.c (expand_widening_mult): Don't try to optimize constant
3663         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
3664         before using it.
3665
3666 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3667
3668         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
3669         spacing after 'e.g.', typos, comma, hyphenation.
3670
3671 2011-01-17  Richard Henderson  <rth@redhat.com>
3672
3673         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
3674         (rx_restricted_mem_operand): New.
3675         (rx_shift_operand): Use register_operand.
3676         (rx_source_operand, rx_compare_operand): Likewise.
3677         * config/rx/rx.md (addsi3_flags): New expander.
3678         (adddi3): Rewrite as expander.
3679         (adc_internal, *adc_flags, adddi3_internal): New patterns.
3680         (subsi3_flags): New expander.
3681         (subdi3): Rewrite as expander.
3682         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
3683
3684         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
3685         (rx_init_builtins): Remove sat builtin.
3686         (rx_expand_builtin): Likewise.
3687         * config/rx/rx.md (ssaddsi3): New.
3688         (*sat): Rename from sat.  Represent the CC_REG input.
3689
3690         * config/rx/predicates.md (rshift_operator): New.
3691         * config/rx/rx.c (rx_expand_insv): Remove.
3692         * config/rx/rx-protos.h: Update.
3693         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
3694         operand to the canonical position.
3695         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
3696         (*bitclr, *bitclr_in_memory): Similarly.
3697         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
3698         (insv): Retain the zero_extract in the expansion.
3699
3700         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
3701         (bswaphi2, bitinvert, revw): Likewise.
3702
3703         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
3704         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
3705         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
3706         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
3707         (bitset, bitset_in_memory): Likewise.
3708         (bitinvert, bitinvert_in_memory): Likewise.
3709         (bitclr, bitclr_in_memory): Likewise.
3710         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
3711         (rx_strend, rx_cmpstrn): Likewise.
3712         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
3713         (bitop peep2 patterns): Remove.
3714
3715         * config/rx/rx.c (rx_match_ccmode): New.
3716         * config/rx/rx-protos.h: Update.
3717         * config/rx/rx.md (abssi2): Clobber, don't set flags.
3718         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
3719         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
3720         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
3721         (fix_truncsfsi2, floatsisf2): Likewise.
3722         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
3723         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
3724         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
3725         (*subsi3_flags, *xorsi3_flags): New.
3726
3727         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
3728
3729         * config/rx/rx.c (rx_print_operand): Remove workaround for
3730         unsplit comparison operations.
3731
3732         * config/rx/rx.md (movsicc): Split after reload.
3733         (*movsicc): Merge *movsieq and *movsine via match_operator.
3734         (*stcc): New pattern.
3735
3736         * config/rx/rx.c (rx_float_compare_mode): Remove.
3737         * config/rx/rx.h (rx_float_compare_mode): Remove.
3738         * config/rx/rx.md (cstoresi4): Split after reload.
3739         (*sccc): New pattern.
3740
3741         * config/rx/predicates.md (label_ref_operand): New.
3742         (rx_z_comparison_operator): New.
3743         (rx_zs_comparison_operator): New.
3744         (rx_fp_comparison_operator): New.
3745         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
3746         Validate that the flags are set properly for the comparison.
3747         (rx_gen_cond_branch_template): Remove.
3748         (rx_cc_modes_compatible): Remove.
3749         (mode_from_flags): New.
3750         (flags_from_code): Rename from flags_needed_for_conditional.
3751         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
3752         (rx_select_cc_mode): Likewise.
3753         (rx_split_fp_compare): New.
3754         (rx_split_cbranch): New.
3755         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
3756         (*cbranchsi4): Use match_operator and rx_split_cbranch.
3757         (*cbranchsf4): Similarly.
3758         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
3759         match_operator and rx_split_cbranch.
3760         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
3761         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
3762         (*cmpsi): Rename from cmpsi.
3763         (*tstsi): Rename from tstsi.
3764         (*cmpsf): Rename from cmpsf; use CC_Fmode.
3765         (*conditional_branch): Rename from conditional_branch.
3766         (*reveresed_conditional_branch): Remove.
3767         (b<code>): Remove expander.
3768         * config/rx/rx-protos.h: Update.
3769
3770         * config/rx/rx.c (rx_compare_redundant): Remove.
3771         * config/rx/rx.md (cmpsi): Don't use it.
3772         * config/rx/rx-protos.h: Update.
3773
3774         * config/rx/rx-modes.def (CC_F): New mode.
3775         * config/rx/rx.c (rx_select_cc_mode): New.
3776         * config/rx/rx.h (SELECT_CC_MODE): Use it.
3777         * config/rx/rx-protos.h: Update.
3778
3779 2011-01-17  Richard Henderson  <rth@redhat.com>
3780
3781         * except.c (dump_eh_tree): Fix stray ; after for statement.
3782
3783 2011-01-17  Richard Guenther  <rguenther@suse.de>
3784
3785         PR tree-optimization/47313
3786         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
3787         handling before copying the body.  Properly deal with
3788         by-reference result in SSA form.
3789
3790 2011-01-17  Ian Lance Taylor  <iant@google.com>
3791
3792         PR target/47219
3793         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
3794         (struct_value_alias_set): Don't define.
3795         (sparc_option_override): Don't set sparc_sr_alias_set and
3796         struct_value_alias_set.
3797         (save_or_restore_regs): Use gen_frame_mem rather than calling
3798         set_mem_alias_set.
3799         (sparc_struct_value_rtx): Likewise.
3800
3801 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
3802
3803         PR target/47318
3804         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
3805         __m128i.
3806         (_mm_maskstore_pd): Likewise.
3807         (_mm_maskload_ps): Likewise.
3808         (_mm_maskstore_ps): Likewise.
3809         (_mm256_maskload_pd): Change mask to __m256i.
3810         (_mm256_maskstore_pd): Likewise.
3811         (_mm256_maskload_ps): Likewise.
3812         (_mm256_maskstore_ps): Likewise.
3813
3814         * config/i386/i386-builtin-types.def: Updated.
3815         (ix86_expand_special_args_builtin): Likewise.
3816
3817         * config/i386/i386.c (bdesc_special_args): Update
3818         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
3819         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
3820         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
3821         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
3822
3823         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
3824         Use <avxpermvecmode> on mask register.
3825         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
3826
3827 2011-01-17  Olivier Hainque  <hainque@adacore.com>
3828             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
3829             Eric Botcazou  <ebotcazou@adacore.com>
3830
3831         PR target/46655
3832         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
3833         if <= USHRT_MAX in 32-bit mode.
3834
3835 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3836
3837         * doc/install.texi (Configuration, Specific): Wrap long
3838         lines in examples.  Allow line wrapping in long options
3839         and URLs where beneficial for PDF output.
3840
3841 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
3842
3843         * config/mips/mips.c (mips_classify_symbol): Don't return
3844         SYMBOL_PC_RELATIVE for nonlocal labels.
3845
3846 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
3847
3848         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
3849
3850 2011-01-15  Jan Hubicka  <jh@suse.cz>
3851
3852         PR tree-optimization/47276
3853         * ipa.c (function_and_variable_visibility): Do not try to mark alias
3854         declarations as needed.
3855
3856 2011-01-15  Martin Jambor  <mjambor@suse.cz>
3857
3858         * common.opt (fdevirtualize): New flag.
3859         * doc/invoke.texi (Option Summary): Document it.
3860         * opts.c (default_options_table): Add devirtualize flag.
3861         * ipa-prop.c (detect_type_change): Return immediately if
3862         devirtualize flag is not set.
3863         (detect_type_change_ssa): Likewise.
3864         (compute_known_type_jump_func): Likewise.
3865         (ipa_analyze_virtual_call_uses): Likewise.
3866
3867 2011-01-14  Martin Jambor  <mjambor@suse.cz>
3868
3869         PR tree-optimization/45934
3870         PR tree-optimization/46302
3871         * ipa-prop.c (type_change_info): New type.
3872         (stmt_may_be_vtbl_ptr_store): New function.
3873         (check_stmt_for_type_change): Likewise.
3874         (detect_type_change): Likewise.
3875         (detect_type_change_ssa): Likewise.
3876         (compute_complex_assign_jump_func): Check for dynamic type change.
3877         (compute_complex_ancestor_jump_func): Likewise.
3878         (compute_known_type_jump_func): Likewise.
3879         (compute_scalar_jump_functions): Likewise.
3880         (ipa_analyze_virtual_call_uses): Likewise.
3881         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
3882
3883 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3884
3885         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
3886         * config/i386/i386.opt (msse5): New Alias.
3887
3888 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3889
3890         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
3891         * config/sparc/linux64.h (CC1_SPEC): Likewise.
3892         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3893         * config/sparc/sparc.h (CC1_SPEC): Likewise.
3894
3895 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3896
3897         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
3898         -mcpu options.
3899         * config/sparc/linux64.h (CC1_SPEC): Likewise.
3900         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3901         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
3902         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
3903         Likewise.
3904         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
3905
3906 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3907
3908         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
3909
3910 2011-01-14  Mike Stump  <mikestump@comcast.net>
3911
3912         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
3913         * config/fr30/fr30.md: Likweise
3914         (movsi_push): Likewise.
3915         (movsi_pop): Likewise.
3916         (enter_func): Likewise.
3917         * config/moxie/moxie.md (movsi_push): Likewise.
3918         (movsi_pop): Likewise.
3919
3920 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3921
3922         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
3923         %{no_archive} %{exact_version}.
3924         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
3925         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
3926         %{no_archive} %{exact_version}.
3927         * config/mips/openbsd.h (LINK_SPEC): Likewise.
3928         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
3929         * config/mips/vxworks.h: Likewise.
3930
3931 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3932
3933         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
3934
3935 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3936
3937         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
3938         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
3939
3940 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3941
3942         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
3943         -nodefaultlib.
3944
3945 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3946
3947         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
3948         for mcpu not cpu.
3949         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
3950         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
3951         not cpu.
3952         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
3953         Don't handle -shlib.
3954
3955 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3956
3957         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
3958         (CC1_SPEC): Don't handle -profile.
3959
3960 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3961
3962         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
3963         * config/mips/mips.h (CC1_SPEC): Likewise.
3964
3965 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3966
3967         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
3968         * config/mips/mips.h (CC1_SPEC): Likewise.
3969
3970 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3971
3972         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
3973         * config/m32r/linux.h (LINK_SPEC): Likewise.
3974         * config/mips/linux.h (LINK_SPEC): Likewise.
3975         * config/mips/linux64.h (LINK_SPEC): Likewise.
3976         * config/sparc/linux.h (LINK_SPEC): Likewise.
3977         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3978         LINK_SPEC): Likewise.
3979         * config/xtensa/linux.h (LINK_SPEC): Likewise.
3980
3981 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3982
3983         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
3984         %{version:-v}.
3985         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
3986
3987 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3988
3989         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
3990         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
3991
3992 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
3993
3994         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
3995
3996 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3997
3998         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
3999         supports -Bstatic/-Bdynamic.
4000         * configure: Regenerate.
4001
4002 2011-01-14  Jan Hubicka  <jh@suse.cz>
4003             Jack Howarth  <howarth@bromo.med.uc.edu>
4004
4005         PR target/46037
4006         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
4007         when checking debug_info_level. Test write_symbols instead of
4008         debug_hooks->var_location when setting flag_var_tracking_uninit.
4009
4010 2011-01-14  Richard Guenther  <rguenther@suse.de>
4011
4012         PR tree-optimization/47179
4013         * target.def (ref_may_alias_errno): New target hook.
4014         * targhooks.h (default_ref_may_alias_errno): Declare.
4015         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
4016         (default_ref_may_alias_errno): New function.
4017         * target.h (struct ao_ref_s): Declare.
4018         * tree-ssa-alias.c: Include target.h.
4019         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
4020         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
4021         (targhooks.o): Likewise.
4022         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
4023         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
4024
4025 2011-01-14  Richard Guenther  <rguenther@suse.de>
4026
4027         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
4028
4029 2011-01-14  Richard Guenther  <rguenther@suse.de>
4030
4031         PR tree-optimization/47280
4032         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
4033         return CFG changes.
4034         (tree_ssa_forward_propagate_single_use_vars): Deal with
4035         CFG changes from associate_plusminus.
4036
4037 2011-01-14  Richard Guenther  <rguenther@suse.de>
4038
4039         PR middle-end/47281
4040         Revert
4041         2011-01-11  Richard Guenther  <rguenther@suse.de>
4042
4043         PR tree-optimization/46076
4044         * tree-ssa.c (useless_type_conversion_p): Conversions from
4045         unprototyped to empty argument list function types are useless.
4046
4047 2011-01-14  Richard Guenther  <rguenther@suse.de>
4048
4049         PR tree-optimization/47286
4050         * tree-ssa-structalias.c (new_var_info): Register variables are global.
4051
4052 2011-01-14  Martin Jambor  <mjambor@suse.cz>
4053
4054         PR middle-end/46823
4055         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
4056
4057 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
4058
4059         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
4060         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4061         * config/xtensa/xtensa.c (xtensa_libcall_value,
4062         xtensa_function_value_regno_p): New functions.
4063         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4064
4065 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
4066
4067         PR c++/47213
4068         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
4069         PE specific hook.
4070         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
4071         New function prototype.
4072         * config/i386/winnt.c (i386_pe_assemble_visibility):
4073         Warn only if attribute was specified by user.
4074
4075 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4076
4077         PR target/47251
4078         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
4079         floating point.
4080         (floatunsdidf2_fcfidu): Ditto.
4081
4082 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4083
4084         * config/s390/s390.c (print_operand_address): Replace 'error' with
4085         'output_operand_lossage'.
4086         (print_operand): Likewise.
4087
4088 2011-01-13  Jeff Law  <law@redhat.com>
4089
4090         PR rtl-optimization/39077
4091         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
4092         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
4093         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
4094         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
4095         * gcse.c (prune_insertions_deletions): New function.
4096         (compute_pre_data): Use it.
4097
4098 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
4099
4100         PR debug/PR46973
4101         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
4102         static function.
4103         (prune_unused_types_mark): Use it.
4104
4105 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
4106
4107         PR rtl-optimization/45352
4108         * sel-sched.c: Update copyright years.
4109         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
4110         in the advancing loop when we have issued issue_rate insns.
4111
4112 2011-01-12  Richard Henderson  <rth@redhat.com>
4113
4114         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
4115         (TARGET_MD_ASM_CLOBBERS): New.
4116
4117         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
4118         (TARGET_DELEGITIMIZE_ADDRESS): New.
4119
4120         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
4121         (clzsi2, *bsch): New patterns.
4122
4123         * config/mn10300/mn10300.md (INT): New mode iterator.
4124         (*mov<INT>_clr): New pattern, and peep2 to generate it.
4125
4126         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
4127         flag_split_wide_types.
4128
4129         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
4130         (mn10300_trampoline_init): Rewrite without a template, an immediate
4131         load and a direct branch.
4132         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
4133
4134 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
4135
4136         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4137         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
4138         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
4139         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4140
4141 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
4142
4143         PR debug/47209
4144         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
4145         of type.
4146
4147 2011-01-12  Jan Hubicka  <jh@suse.cz>
4148
4149         PR driver/47244
4150         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
4151         (PLUGIN_COND_CLOSE): New macro.
4152         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
4153
4154 2011-01-12  Richard Guenther  <rguenther@suse.de>
4155
4156         PR lto/47259
4157         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
4158         register variables in a MEM_REF.
4159
4160 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
4161
4162         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
4163         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
4164         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
4165         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4166         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4167         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
4168         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
4169         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
4170         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
4171         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
4172         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
4173         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
4174         * config/gnu-user.h: New.  Copied from linux.h.
4175         (LINUX_TARGET_STARTFILE_SPEC): Rename to
4176         GNU_USER_TARGET_STARTFILE_SPEC.
4177         (LINUX_TARGET_ENDFILE_SPEC): Rename to
4178         GNU_USER_TARGET_ENDFILE_SPEC.
4179         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
4180         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
4181         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
4182         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
4183         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
4184         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
4185         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
4186         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
4187         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
4188         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
4189         * config/arm/linux-eabi.h (CC1_SPEC): Use
4190         GNU_USER_TARGET_CC1_SPEC.
4191         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
4192         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
4193         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
4194         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
4195         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
4196         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
4197         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
4198         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
4199
4200 2011-01-12  Richard Guenther  <rguenther@suse.de>
4201
4202         PR other/46946
4203         * doc/invoke.texi (ffast-math): Document it is turned on
4204         with -Ofast.
4205
4206 2011-01-12  Jan Hubicka  <jh@suse.cz>
4207
4208         PR tree-optimization/47233
4209         * opts.c (common_handle_option): Disable ipa-reference with profile
4210         feedback.
4211
4212 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4213
4214         * c-parser.c (c_parser_objc_at_property_declaration): Improved
4215         error message.
4216
4217 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4218
4219         * c-parser.c (c_lex_one_token): Updated and reindented some
4220         comments.  No changes in code.
4221
4222 2011-01-11  Ian Lance Taylor  <iant@google.com>
4223
4224         * godump.c (go_output_var): Don't output the variable if there is
4225         already a type with the same name.
4226
4227 2011-01-11  Ian Lance Taylor  <iant@google.com>
4228
4229         * godump.c (go_format_type): Don't generate float80.
4230
4231 2011-01-11  Richard Henderson  <rth@redhat.com>
4232
4233         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
4234         declaration.  Rewrite for both speed and size.
4235         (mn10300_address_cost_1): Remove.
4236         (mn10300_register_move_cost): New.
4237         (mn10300_memory_move_cost): New.
4238         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
4239         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
4240         extensions, shifts, BSWAP, CLZ.
4241         (mn10300_wide_const_load_uses_clr): Remove.
4242         (TARGET_REGISTER_MOVE_COST): New.
4243         (TARGET_MEMORY_MOVE_COST): New.
4244         * config/mn10300/mn10300-protos.h: Update.
4245         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
4246
4247         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
4248         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
4249         * config/mn10300/mn10300-protos.h: Update.
4250         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
4251         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
4252         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
4253         (*test_int_bitfield, *test_byte_bitfield): Remove.
4254         (*bit_test, *subreg_bit_test): Remove.
4255         * config/mn10300/predicates.md (const_8bit_operand): Remove.
4256
4257         * config/mn10300/constraints.md ("c"): Rename from "A".
4258         ("A", "D"): New constraint letters.
4259         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
4260         (fmssf4, fnmasf4, fnmssf4): Likewise.
4261
4262         * config/mn10300/mn10300.md (isa): New attribute.
4263         (enabled): New attribute.
4264
4265         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
4266         (abssf2, negsf2): Define only for hardware fp.
4267         (sqrtsf2): Reformat.
4268         (addsf3, subsf3, mulsf3): Merge expander and insn.
4269
4270         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
4271         (DEBUGGER_AUTO_OFFSET): Remove.
4272         (DEBUGGER_ARG_OFFSET): Remove.
4273
4274         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
4275         Emit register stores with the same offsets as the hardware.
4276         (mn10300_store_multiple_operation): Don't check that the register
4277         save offsets are monotonic.
4278         * config/mn10300/mn10300-protos.h: Update.
4279
4280         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
4281
4282         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
4283         in terms of the value on the stack, not the MDR register.
4284
4285 2011-01-11  Jan Hubicka  <jh@suse.cz>
4286
4287         PR lto/45721
4288         PR lto/45375
4289         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
4290         (symbol_alias_set_destroy, symbol_alias_set_contains,
4291         propagate_aliases_backward): Declare.
4292         * lto-streamer-out.c (struct sets): New sturcture.
4293         (trivally_defined_alias): New function.
4294         (output_alias_pair_p): Rewrite.
4295         (output_unreferenced_globals): Fix output of alias pairs.
4296         (produce_symtab): Likewise.
4297         * ipa.c (function_and_variable_visibility): Set weak alias destination
4298         as needed in lto.
4299         * varasm.c (symbol_alias_set_t): Remove.
4300         (symbol_alias_set_destroy): Export.
4301         (propagate_aliases_forward, propagate_aliases_backward): New functions
4302         based on ...
4303         (compute_visible_aliases): ... this one; remove.
4304         (trivially_visible_alias): New
4305         (trivially_defined_alias): New.
4306         (remove_unreachable_alias_pairs): Rewrite.
4307         (finish_aliases_1): Reorganize code checking if alias is defined.
4308         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
4309         in LTO mode.
4310
4311 2011-01-11  Richard Guenther  <rguenther@suse.de>
4312
4313         PR tree-optimization/46076
4314         * tree-ssa.c (useless_type_conversion_p): Conversions from
4315         unprototyped to empty argument list function types are useless.
4316
4317 2011-01-11  Richard Guenther  <rguenther@suse.de>
4318
4319         PR middle-end/45235
4320         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
4321         volatile MEMs as MEM_READONLY_P.
4322
4323 2011-01-11  Richard Guenther  <rguenther@suse.de>
4324
4325         PR tree-optimization/47239
4326         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
4327
4328 2011-01-11  Jeff Law  <law@redhat.com>
4329
4330         PR tree-optimization/47086
4331         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
4332         IVs from statements that might throw.
4333
4334 2011-01-10  Jan Hubicka  <jh@suse.cz>
4335
4336         PR lto/45375
4337         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
4338
4339 2011-01-10  Jan Hubicka  <jh@suse.cz>
4340
4341         PR lto/45375
4342         * profile.c (read_profile_edge_counts): Ignore profile inconistency
4343         when correcting profile.
4344
4345 2011-01-10  Jan Hubicka  <jh@suse.cz>
4346
4347         PR lto/46083
4348         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
4349         DECL_FINI_PRIORITY.
4350         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
4351         Restore DECL_FINI_PRIORITY.
4352
4353 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4354
4355         * doc/gimple.texi: Fix quoting of multi-word return values in
4356         @deftypefn statements.  Ensure presence of return value.  Wrap
4357         overlong @deftypefn lines.
4358         (is_gimple_operand, is_gimple_min_invariant_address): Remove
4359         descriptions of removed functions.
4360         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
4361         of multi-word return value in @deftypefn statement.
4362
4363 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4364
4365         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
4366         (Conditional Expressions, Logical Operators)
4367         (Statement and operand traversals): Do not indent smallexample
4368         code.  Fix duplicate function argument in example.
4369
4370 2011-01-10  Jeff Law  <law@redhat.com>
4371
4372         PR tree-optimization/47141
4373         * ipa-split.c (split_function): Handle case where we are
4374         returning a value and the return block has a virtual operand phi.
4375
4376 2011-01-10  Jan Hubicka  <jh@suse.cz>
4377
4378         PR tree-optimization/47234
4379         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
4380         (pass_feedback_split_functions): Declare.
4381         * passes.c (init_optimization_passes): Add ipa-split as subpass of
4382         tree-profile.
4383         * ipa-split.c (gate_split_functions): Update comments; disable
4384         split-functions for profile_arc_flag and branch_probabilities.
4385         (gate_feedback_split_functions): New function.
4386         (execute_feedback_split_functions): New function.
4387         (pass_feedback_split_functions): New global var.
4388
4389 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
4390
4391         PR lto/46760
4392         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
4393         calling gimple_call_set_cannot_inline.
4394
4395 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
4396
4397         * config/darwin-sections.def: Remove unused section.
4398
4399 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
4400
4401         PR c++/47218
4402         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
4403
4404 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
4405
4406         PR objc/47232
4407         * c-parser.c (c_parser_declaration_or_fndef): Improved
4408         error message.
4409
4410 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
4411
4412         * config/i386/winnt.c (i386_pe_start_function): Make sure
4413         to switch back to function's section.
4414
4415 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
4416
4417         PR gcc/46902
4418         PR testsuite/46912
4419         * plugin.c: Move include of dlfcn.h from here...
4420         * system.h: ... to here.
4421
4422 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4423
4424         * doc/cpp.texi (C++ Named Operators): Fix markup for header
4425         file name.
4426         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
4427         two extra empty pages in PDF output.
4428
4429 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
4430
4431         PR objc/47078
4432         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
4433         for error recovery purposes behave as if it was not specified so
4434         that the default type is usd.
4435
4436 2011-01-07  Jan Hubicka  <jh@suse.cz>
4437
4438         PR tree-optmization/46469
4439         * ipa.c (function_and_variable_visibility): Clear needed flags on
4440         nodes with external decls; handle weakrefs merging correctly.
4441
4442 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
4443
4444         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
4445         not false.
4446
4447 2011-01-07  Jan Hubicka  <jh@suse.cz>
4448
4449         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
4450         and no longer claim that gold is required for linker plugin.
4451         * configure: Regenerate.
4452         * gcc.c (PLUGIN_COND): New macro.
4453         (LINK_COMMAND_SPEC): Use it.
4454         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
4455         * config.in (HAVE_LTO_PLUGIN): New.
4456         * configure.ac (--with-lto-plugin): New parameter; autodetect
4457         HAVE_LTO_PLUGIN.
4458
4459 2011-01-07  Jan Hubicka  <jh@suse.cz>
4460
4461         PR tree-optimization/46367
4462         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
4463         when we can update original.
4464         (cgraph_mark_inline_edge): Sanity check.
4465         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
4466
4467 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4468
4469         * config/spu/spu.h (ASM_COMMENT_START): Define.
4470
4471 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
4472
4473         PR driver/42445
4474         * gcc.c (%>S): New.
4475         (SWITCH_KEEP_FOR_GCC): Likewise.
4476         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
4477         (do_spec_1): Handle "%>".
4478
4479         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
4480
4481 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
4482
4483         PR target/47201
4484         * config/i386/i386.c (ix86_delegitimize_address): If
4485         simplify_gen_subreg fails, return orig_x.
4486
4487         PR bootstrap/47187
4488         * value-prof.c (gimple_stringop_fixed_value): Handle
4489         lhs of the call properly.
4490
4491 2011-01-07  Jan Hubicka  <jh@suse.cz>
4492
4493         PR lto/45375
4494         * lto-opt.c (lto_reissue_options): Set flag_shlib.
4495
4496 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
4497
4498         * target.def (function_switched_text_sections): New hook.
4499         * doc/tm.texi: Regenerated.
4500         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
4501         * final.c (default_function_switched_text_sections): New.
4502         (final_scan_insn): Call function_switched_text_sections when a
4503         mid-function section change occurs.
4504         * output.h (default_function_switched_text_sections): Declare.
4505         * config/darwin-protos.h (darwin_function_switched_text_sections):
4506         Likewise.
4507         * config/darwin.c (darwin_function_switched_text_sections): New.
4508         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
4509
4510 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
4511
4512         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
4513         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
4514         the secondary code fragment when outputting for DWARF == 2.
4515
4516 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
4517
4518         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4519         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
4520         Remove.
4521         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
4522         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4523
4524 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
4525
4526         PR debug/46704
4527         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
4528         when it is not empty.
4529
4530 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
4531
4532         Bobcat Enablement
4533         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
4534         (case ${target}): Add btver1.
4535         * config/i386/driver-i386.c (host_detect_local_cpu): Let
4536         -march=native recognize btver1 processors.
4537         * config/i386/i386-c.c (ix86_target_macros_internal): Add
4538         btver1 def_and_undef
4539         * config/i386/i386.c (struct processor_costs btver1_cost): New
4540         btver1 cost table.
4541         (m_BTVER1): New definition.
4542         (m_AMD_MULTIPLE): Includes m_BTVER1.
4543         (initial_ix86_tune_features): Add btver1 tune.
4544         (processor_target_table): Add btver1 entry.
4545         (static const char *const cpu_names): Add btver1 entry.
4546         (software_prefetching_beneficial_p): Add btver1.
4547         (ix86_option_override_internal): Add btver1 instruction sets.
4548         (ix86_issue_rate): Add btver1.
4549         (ix86_adjust_cost): Add btver1.
4550         * config/i386/i386.h (TARGET_BTVER1): New definition.
4551         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
4552         (enum processor_type): Add PROCESSOR_BTVER1.
4553         * config/i386/i386.md (define_attr "cpu"): Add btver1.
4554
4555 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4556
4557         PR target/43309
4558         * config/i386/i386.c (legitimize_tls_address)
4559         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
4560         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
4561         (tls_initial_exec_64_sun): New pattern.
4562
4563 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
4564
4565         * doc/invoke.texi (Overall Options): Improve wording and markup
4566         of the description of -wrapper.
4567
4568 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
4569
4570         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
4571         rdynamic, threads): New Driver options.
4572
4573 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4574
4575         PR target/38118
4576         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
4577         if coming from .tdata.
4578         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4579
4580 2011-01-06  Jan Hubicka  <jh@suse.cz>
4581
4582         PR lto/47188
4583         * collect2.c (main): Do not enable LTOmode when plugin is active.
4584
4585 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4586
4587         PR other/45915
4588         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
4589         --version output if supported.
4590         * configure: Regenerate.
4591
4592 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
4593
4594         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
4595         Driver options.
4596
4597 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
4598
4599         PR c/47150
4600         * c-convert.c (convert): When converting a complex expression
4601         other than COMPLEX_EXPR to a different complex type, ensure
4602         c_save_expr is called instead of save_expr, unless in_late_binary_op.
4603         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
4604         when converting COMPLEX_TYPE.
4605
4606 2011-01-06  Ira Rosen  <irar@il.ibm.com>
4607
4608         PR tree-optimization/47139
4609         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
4610         only the last reduction value is used outside the loop.  Update
4611         documentation.
4612
4613 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
4614
4615         * config/rtems.opt: New.
4616         * config.gcc (*-*-rtems*): Use rtems.opt.
4617
4618 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
4619
4620         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
4621         processors do not support 3DNow instructions.
4622
4623 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4624
4625         * config/spu/spu.c (spu_option_override): Set parameter
4626         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
4627
4628 2011-01-05  Jan Hubicka  <jh@suse.cz>
4629
4630         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
4631         at the command line.
4632
4633 2011-01-05  Martin Jambor  <mjambor@suse.cz>
4634
4635         PR lto/47162
4636         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
4637         deltas on streamed outgoing edges.
4638         (output_node_opt_summary): Output info for outgoing edges only when
4639         the node is in new parameter set.
4640         (output_cgraph_opt_summary): New parameter set, passed to the two
4641         aforementioned functions.  Update its forward declaration and its
4642         callee too.
4643
4644 2011-01-05  Tom Tromey  <tromey@redhat.com>
4645
4646         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
4647         operator to c_finish_omp_atomic.
4648         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
4649         (build_unary_op): Update.
4650         (build_modify_expr): Update.
4651         (build_asm_expr): Update.
4652
4653 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4654
4655         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
4656         newly inserted insns.
4657         (pad_bb): Likewise.
4658         (spu_emit_branch_hint): Likewise.
4659         (insert_hbrp_for_ilb_runout): Likewise.
4660         (spu_machine_dependent_reorg): Call df_finish_pass after
4661         schedule_insns returns.
4662
4663 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4664
4665         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
4666
4667 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
4668
4669         PR tree-optimization/47005
4670         * tree-sra.c (struct access): Add 'non_addressable' bit.
4671         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
4672         (decide_one_param_reduction): Return 0 if the parameter is passed by
4673         reference and one of the accesses in the group is non_addressable.
4674
4675 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
4676
4677         PR tree-optimization/47056
4678         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
4679         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
4680         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
4681
4682 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
4683
4684         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
4685         initializer.  Skip view conversions from aggregate types.
4686
4687 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
4688
4689         PR bootstrap/47055
4690         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
4691
4692 2011-01-04  Philipp Thomas  <pth@suse.de>
4693
4694         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
4695         obvious typo.
4696
4697 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4698
4699         * function.c (thread_prologue_and_epilogue_insns): Do not crash
4700         on empty epilogue sequences.
4701
4702 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
4703
4704         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
4705         non-static): New Driver options.
4706
4707 2011-01-04  Jie Zhang  <jie@codesourcery.com>
4708
4709         PR driver/47137
4710         * gcc.c (default_compilers[]): Set combinable field to 0
4711         for all assembly languages.
4712
4713 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
4714
4715         * config/mips/loongson3a.md: New file.
4716         * config/mips/mips.md: Include loongson3a.md.
4717         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
4718         TUNE_LOONGSON_3A.
4719
4720 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
4721
4722         PR middle-end/47017
4723         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
4724         instead of convert_memory_address_addr_space on the base expression.
4725
4726 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4727
4728         * config/spu/spu.c (spu_option_override): Update error text
4729         for bad -march= / -mtune= values.
4730
4731 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4732
4733         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
4734         if branch-hint optimization will be performed.
4735
4736 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
4737
4738         PR tree-optimization/47148
4739         * ipa-split.c (split_function): Convert arguments to
4740         DECL_ARG_TYPE if possible.
4741
4742         PR tree-optimization/47155
4743         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
4744         when computing uns.
4745
4746         PR rtl-optimization/47157
4747         * combine.c (try_combine): If undobuf.other_insn becomes
4748         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
4749         and set *new_direct_jump_p too.
4750
4751 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
4752
4753         PR tree-optimization/47021
4754         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
4755
4756 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
4757
4758         * gcc.c (process_command): Update copyright notice dates.
4759         * gcov.c (print_version): Likewise.
4760         * gcov-dump.c (print_version): Likewise.
4761         * mips-tfile.c (main): Likewise.
4762         * mips-tdump.c (main): Likewise.
4763
4764 2011-01-03  Martin Jambor  <mjambor@suse.cz>
4765
4766         PR tree-optimization/46801
4767         * tree-sra.c (type_internals_preclude_sra_p): Check whether
4768         aggregate fields start at byte boundary instead of the bit-field flag.
4769
4770 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
4771
4772         PR driver/47137
4773         * gcc.c (main): Revert revision 168407.
4774
4775 2011-01-03  Martin Jambor  <mjambor@suse.cz>
4776
4777         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
4778
4779 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4780
4781         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
4782         vector optab to expand vector/scalar shift, update gimple to vector.
4783
4784 2011-01-03  Martin Jambor  <mjambor@suse.cz>
4785
4786         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
4787         a thunk.
4788
4789 2011-01-03  Martin Jambor  <mjambor@suse.cz>
4790
4791         PR tree-optimization/46984
4792         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
4793         HOST_WIDE_INT.
4794         (cgraph_create_indirect_edge): Fixed line length.
4795         (cgraph_indirect_call_info): Declare.
4796         (cgraph_make_edge_direct) Update declaration.
4797         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
4798         (cgraph_create_indirect_edge): Use it.
4799         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
4800         callees.
4801         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
4802         the new thunk_delta representation.
4803         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
4804         HOST_WIDE_INT.
4805         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
4806         (ipa_read_indirect_edge_info): Likewise.
4807         * lto-cgraph.c (output_edge_opt_summary): New function.
4808         (output_node_opt_summary): Call it on all outgoing edges.
4809         (input_edge_opt_summary): New function.
4810         (input_node_opt_summary): Call it on all outgoing edges.
4811
4812 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
4813
4814         PR driver/47137
4815         * gcc.c (main): Don't check have_o when settting combine_inputs.
4816
4817 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
4818
4819         * regrename.c: Add general comment describing the pass.
4820         (struct du_head): Remove 'length' field.
4821         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
4822         (regrename_optimize): Do not sort chains.  Rework comments, add others.
4823         Force renaming to the preferred class (if any) in the first pass and do
4824         not consider registers that belong to it in the second pass.
4825         (create_new_chain): Do not set 'length' field.
4826         (scan_rtx_reg): Likewise.
4827
4828 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
4829
4830         PR tree-optimization/47140
4831         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
4832         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
4833         to bit_value_binop.
4834
4835         PR rtl-optimization/47028
4836         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
4837         parm_birth_insn instead of at the beginning of first bb.
4838
4839 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
4840
4841         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
4842         Remove the word "see" before "@pxref".
4843         * doc/rtl.texi: Remove the word "see" before "@pxref".
4844
4845 2011-01-01  Jan Hubicka  <jh@suse.cz>
4846
4847         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
4848         memory.
4849
4850 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
4851
4852         PR target/38662
4853         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
4854
4855 \f
4856 Copyright (C) 2011 Free Software Foundation, Inc.
4857
4858 Copying and distribution of this file, with or without modification,
4859 are permitted in any medium without royalty provided the copyright
4860 notice and this notice are preserved.