OSDN Git Service

e46a0604085a5f70882dcb1d222187a39fb42249
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-02-07  Mike Stump  <mikestump@comcast.net>
2
3         PR target/47558
4         Add __ieee_divdc3 entry point.
5         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
6         entry point.
7         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
9         * config/darwin.c (darwin_rename_builtins): Add.
10         * config/darwin-protos.h (darwin_rename_builtins): Add.
11
12 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
13
14         PR target/47636
15         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16         for the condition.
17
18 2011-02-07  Mike Stump  <mikestump@comcast.net>
19
20         * config/darwin.opt (mmacosx-version-min): Update default OS
21         version.
22
23 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
24
25         PR target/47534
26         * config/avr/libgcc.S (exit): Move .endfunc
27
28 2011-02-07  Richard Guenther  <rguenther@suse.de>
29
30         PR tree-optimization/47615
31         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
32         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
33         (run_scc_vn): Initialize it.
34         (visit_reference_op_load): Use it.
35         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
36
37 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
38
39         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
40         DImode trapping arithmetic libfuncs.
41
42 2011-02-07  Richard Guenther  <rguenther@suse.de>
43
44         PR tree-optimization/47621
45         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
46         two duplicates ...
47         (execute_update_addresses_taken): ... here.  Make it more
48         conservative in what we accept.
49
50 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
51
52         * config/sparc/freebsd.h (ASM_SPEC): Define.
53         * config/sparc/vxworks.h (ASM_SPEC): Define.
54
55 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
56
57         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
58
59 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
60
61         * doc/invoke.texi: Remove reference to compiler internals from
62         user documentation.
63
64         * reg-notes.def: Remove REG_VALUE_PROFILE.
65         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
66
67 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
68
69         PR middle-end/47610
70         * varasm.c (default_section_type_flags): If decl is NULL,
71         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
72
73 2011-02-05  Jie Zhang  <jie@codesourcery.com>
74
75         PR debug/42631
76         * web.c (entry_register): Don't clobber the number of the
77         first uninitialized reference in used[].
78
79 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
80
81         PR tree-optimization/46194
82         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
83         (build_classic_dist_vector_1): Do not represent classic distance
84         vectors when the access functions are variating in different loops.
85
86 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
87
88         * config/mips/iris6.opt: New.
89         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
90
91 2011-02-04  Richard Henderson  <rth@redhat.com>
92             Steve Ellcey  <sje@cup.hp.com>
93
94         PR target/46997
95         * config/ia64/predicates.md (mux1_brcst_element): New.
96         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
97         * config/ia64/ia64.c (ia64_unpack_assemble): New.
98         (ia64_unpack_sign): New.
99         (ia64_expand_unpack): Rewrite using new routines.
100         (ia64_expand_widen_sum): Ditto.
101         (ia64_expand_dot_prod_v8qi): Ditto.
102         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
103         routines, add endian check.
104         (pmpy2_even): Rename from pmpy2_r, add endian check.
105         (pmpy2_odd): Rename from pmpy2_l, add endian check.
106         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
107         (vec_widen_smult_hi_v4hi): Ditto.
108         (vec_widen_umult_lo_v4hi): Ditto.
109         (vec_widen_umult_hi_v4hi): Ditto.
110         (mulv2si3): Change endian checks.
111         (sdot_prodv4hi): Rewrite with new calls.
112         (udot_prodv4hi): New.
113         (vec_pack_ssat_v4hi): Add endian check.
114         (vec_pack_usat_v4hi): Ditto.
115         (vec_pack_ssat_v2si): Ditto.
116         (max1_even): Rename from max1_r, add endian check.
117         (max1_odd): Rename from max1_l, add endian check.
118         (*mux1_rev): Format change.
119         (*mux1_mix): Ditto.
120         (*mux1_shuf): Ditto.
121         (*mux1_alt): Ditto.
122         (*mux1_brcst_v8qi): Use new predicate.
123         (vec_extract_evenv8qi): Remove endian check.
124         (vec_extract_oddv8qi): Ditto.
125         (vec_interleave_lowv4hi): Format change.
126         (vec_interleave_highv4hi): Ditto.
127         (mix2_even): Rename from mix2_r, add endian check.
128         (mix2_odd): Rename from mux2_l, add endian check.
129         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
130         (vec_extract_evenodd_helper): Format change.
131         (vec_extract_evenv4hi): Remove endian check.
132         (vec_extract_oddv4hi): Remove endian check.
133         (vec_interleave_lowv2si): Format change.
134         (vec_interleave_highv2si): Format change.
135         (vec_initv2si): Remove endian check.
136         (vecinit_v2si): Add endian check.
137         (reduc_splus_v2sf): Add endian check.
138         (reduc_smax_v2sf): Ditto.
139         (reduc_smin_v2sf): Ditto.
140         (vec_initv2sf): Remove endian check.
141         (fpack): Add endian check.
142         (fswap): Add endian check.
143         (vec_interleave_highv2sf): Add endian check.
144         (vec_interleave_lowv2sf): Add endian check.
145         (fmix_lr): Add endian check.
146         (vec_setv2sf): Format change.
147         (*vec_extractv2sf_0_be): Use shift to extract operand.
148         (*vec_extractv2sf_1_be): New.
149         (vec_pack_trunc_v4hi): Add endian check.
150         (vec_pack_trunc_v2si): Format change.
151
152 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
153
154         PR inline-asm/23200
155         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
156         do bb, locus and block comparison and disallow loads if it is not set.
157         (stmt_is_replaceable_p): New function.
158         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
159         callers.
160         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
161         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
162         SSA_NAME_DEF_STMT.
163         * tree-flow.h (stmt_is_replaceable_p): New prototype.
164
165 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
166
167         * config/rs6000/xilinx.opt: New.
168         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
169
170 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
171
172         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
173
174 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
175
176         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
177         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
178         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
179         secondary_reload_info, xtensa_secondary_reload): Remove.
180         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
181         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
182         (xtensa_preferred_reload_class): Make static. Change return and
183         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
184         Use CONST_DOUBLE_P predicate.
185         (xtensa_preferred_output_reload_class): New function.
186         (xtensa_secondary_reload): Make static.
187
188 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
189
190         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
191         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
192         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
193
194 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
195
196         PR middle-end/31490
197         * output.h (SECTION_RELRO): Define.
198         (SECTION_MACH_DEP): Adjust.
199         (get_variable_section): New prototype.
200         * varpool.c (varpool_finalize_named_section_flags): New function.
201         (varpool_assemble_pending_decls): Call it.
202         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
203         * cgraphunit.c (cgraph_output_in_order): Call
204         varpool_finalize_named_section_flags.
205         * varasm.c (get_section): Allow section flags conflicts between
206         relro and read-only sections if the section hasn't been declared yet.
207         Set SECTION_OVERRIDE after diagnosing section type conflict.
208         (get_variable_section): No longer static.
209         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
210         readonly sections that need relocations.
211         (decl_readonly_section_1): New function.
212         (decl_readonly_section): Use it.
213
214         Revert:
215         2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
216                     Steve Ellcey  <sje@cup.hp.com>
217
218         PR middle-end/31490
219         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
220         if section attribute used.
221
222 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
223
224         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
225         * config/darwin.c (SECTION_NO_ANCHOR): Define.
226         (darwin_init_sections): Remove assertion.
227
228 2011-02-03  Nick Clifton  <nickc@redhat.com>
229
230         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
231         lt and ge.
232         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
233         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
234         instead of "n" and "pz".
235         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
236         CC_FLAG_S.
237
238 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
239
240         PR target/47312
241         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
242         fma, expand FMA_EXPR as fma{,f,l} call.
243
244         PR lto/47274
245         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
246         copy them into a unsigned char variable and pass address of it to
247         lto_output_data_stream.
248
249         PR target/47564
250         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
251         around backend_init_target and lang_dependent_init_target calls.
252         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
253         (verify_cgraph_node): Don't call set_cfun here.  Use
254         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
255         Set error_found for incorrectly represented calls to thunks.
256
257 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
258
259         PR debug/43092
260         PR rtl-optimization/43494
261         * rtl.h (for_each_inc_dec_fn): New type.
262         (for_each_inc_dec): Declare.
263         * rtlanal.c (struct for_each_inc_dec_ops): New type.
264         (for_each_inc_dec_find_inc_dec): New fn.
265         (for_each_inc_dec_find_mem): New fn.
266         (for_each_inc_dec): New fn.
267         * dse.c (struct insn_size): Remove.
268         (replace_inc_dec, replace_inc_dec_mem): Remove.
269         (emit_inc_dec_insn_before): New fn.
270         (check_for_inc_dec): Use it, along with for_each_inc_dec.
271         (canon_address): Pass mem modes to cselib_lookup.
272         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
273         (cselib_lookup_from_insn): Likewise.
274         (cselib_subst_to_values): Likewise.
275         * cselib.c (find_slot_memmode): New var.
276         (cselib_find_slot): New fn.  Use it instead of
277         htab_find_slot_with_hash everywhere.
278         (entry_and_rtx_equal_p): Use find_slot_memmode.
279         (autoinc_split): New fn.
280         (rtx_equal_for_cselib_p): Rename and implement in terms of...
281         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
282         Deal with autoinc.  Special-case recursion into MEMs.
283         (cselib_hash_rtx): Likewise.
284         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
285         address and MEM modes.
286         (cselib_subst_to_values): Add memmode, pass it on.
287         Deal with autoinc.
288         (cselib_lookup): Add memmode argument, pass it on.
289         (cselib_lookup_from_insn): Add memmode.
290         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
291         (struct cselib_record_autoinc_data): New.
292         (cselib_record_autoinc_cb): New fn.
293         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
294         mode to cselib_lookup.  Reset autoinced REGs here instead of...
295         (cselib_process_insn): ... here.
296         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
297         to cselib_lookup.
298         (add_uses): Likewise, also to cselib_subst_to_values.
299         (add_stores): Likewise.
300         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
301         cselib_subst_to_values.
302         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
303         * gcse.c (do_local_cprop): Adjusted.
304         * postreload.c (reload_cse_simplify_set): Adjusted.
305         (reload_cse_simplify_operands): Adjusted.
306         * sel-sched-dump (debug_mem_addr_value): Pass mode.
307
308 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
309
310         PR tree-optimization/45122
311         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
312         unsafe assumptions when there's more than one loop exit.
313
314 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
315
316         PR target/47272
317         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
318         Document using vector double with the load/store builtins, and
319         that the load/store builtins always use Altivec instructions.
320
321         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
322         to use altivec memory instructions, even on VSX.
323         (vector_altivec_store_<mode>): Ditto.
324
325         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
326         function.
327
328         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
329         V2DF, V2DI support to load/store overloaded builtins.
330
331         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
332         altivec load/store builtins for V2DF/V2DI types.
333
334         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
335         set avoid indexed addresses on power6 if -maltivec.
336         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
337         vector_altivec_load/vector_altivec_store builtins.
338         (altivec_expand_st_builtin): Ditto.
339         (altivec_expand_builtin): Add VSX memory builtins.
340         (rs6000_init_builtins): Add V2DI types to internal types.
341         (altivec_init_builtins): Add support for V2DF/V2DI altivec
342         load/store builtins.
343         (rs6000_address_for_altivec): Insure memory address is appropriate
344         for Altivec.
345
346         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
347         vec_vsx_ld and vec_vsx_st.
348         (vsx_store_<mode>): Ditto.
349
350         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
351         variables to hold long long types for VSX vector memory builtins.
352         (RS6000_BTI_unsigned_long_long): Ditto.
353         (long_long_integer_type_internal_node): Ditti.
354         (long_long_unsigned_type_internal_node): Ditti.
355
356         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
357         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
358         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
359
360         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
361         short cuts.
362         (vec_vsx_st): Ditto.
363
364 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
365
366         * config/pa/pa-hpux10.opt: New.
367         * config/hpux11.opt (pthread): New Driver option.
368         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
369         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
370
371 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
372
373         * config/ia64/vms.opt: New.
374         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
375
376 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
377
378         PR target/47580
379         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
380         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
381         generator functions.
382         (vsx_floatuns<VSi><mode>2): Ditto.
383         (vsx_fix_trunc<mode><VSi>2): Ditto.
384         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
385
386 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
387
388         * config/i386/djgpp.opt (posix): New Driver option.
389
390 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
391
392         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
393         Move to the unsupported targets list.
394
395 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
396
397         PR rtl-optimization/47525
398         * df-scan.c: Update copyright years.
399         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
400         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
401
402 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
403
404         * config/i386/sysv4.h (TARGET_VERSION): Remove.
405         (SUBTARGET_RETURN_IN_MEMORY): Remove.
406         (ASM_OUTPUT_ASCII): Remove.
407         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
408
409 2011-02-02  Jeff Law  <law@redhat.com>
410
411         PR middle-end/47543
412         * reload.c (find_reloads_address): Handle reg+d address where both
413         components are invalid by reloading the entire address.
414
415 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
416             Richard Guenther  <rguenther@suse.de>
417
418         PR tree-optimization/40979
419         PR bootstrap/47044
420         * passes.c (init_optimization_passes): After LIM call copy_prop
421         and DCE to clean up.
422         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
423
424 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
425
426         PR tree-optimization/47576
427         PR tree-optimization/47555
428         * doc/invoke.texi (scev-max-expr-complexity): Documented.
429         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
430         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
431         * tree-scalar-evolution.c (follow_ssa_edge): Use
432         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
433
434 2011-02-02  Richard Guenther  <rguenther@suse.de>
435
436         PR tree-optimization/47566
437         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
438
439 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
440
441         PR debug/47106
442         PR debug/47402
443         * tree-inline.c (declare_return_variable): Remove unused caller
444         variable.
445
446         PR debug/47106
447         PR debug/47402
448         * tree-flow-inline.h (clear_is_used, is_used_p): New.
449         * cfgexpand.c (account_used_vars_for_block): Use them.
450         * tree-nrv.c (tree_nrv): Likewise.
451         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
452         (dump_scope_block): Likewise.
453         (remove_unused_locals): Likewise.
454
455         PR debug/47106
456         PR debug/47402
457         * tree-inline.c (declare_return_variable): Add result decl to
458         local decls only once.
459         * gimple-low.c (record_vars_into): Mark newly-created variables
460         as referenced.
461
462 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
463
464         PR debug/47498
465         PR debug/47501
466         PR debug/45136
467         PR debug/45130
468         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
469         debug insns.
470         (no_real_insns_p, schedule_block, set_priorities): Drop special
471         treatment of boundary debug insns.
472         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
473         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
474         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
475         (BOUNDARY_DEBUG_INSN_P): Likewise.
476         (SCHEDULE_DEBUG_INSN_P): Likewise.
477         * sched-rgn.c (init_ready_list): Drop special treatment of
478         boundary debug insns.
479         * final.c (rest_of_clean_state): Clear notes' BB.
480
481 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
482
483         * config/openbsd.opt (assert=): New Driver option.
484
485 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
486
487         * config/i386/nto.opt: New.
488         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
489
490 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
491
492         * config/i386/netware.opt: New.
493         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
494
495 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
496
497         * config/interix.opt (posix): New Driver option.
498
499 2011-02-01  DJ Delorie  <dj@redhat.com>
500
501         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
502
503         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
504         class for A0/A1.
505
506 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
507
508         PR tree-optimization/47561
509         * toplev.c (process_options): Print the Graphite flags.  Add
510         flag_loop_flatten to the list of options requiring Graphite.
511
512 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
513
514         * config/i386/cygming.opt (posix): New Driver option.
515
516 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
517
518         * config/arm/vxworks.opt: New.
519         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
520
521 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
522
523         * config/alpha/elf.opt: New.
524         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
525         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
526
527 2011-02-01  Richard Guenther  <rguenther@suse.de>
528
529         PR tree-optimization/47559
530         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
531         store-motion on references that can throw.
532
533 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
534
535         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
536         * tree-pass.h (TDF_CSELIB): New macro.
537         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
538         cselib_lookup): Check for it rather than for TDF_DETAILS.
539
540 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
541
542         PR driver/47547
543         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
544         is HOST_BIT_BUCKET.
545
546         * opts.c (finish_options): Don't add x_aux_base_name if it is
547         HOST_BIT_BUCKET.
548
549 2011-02-01  Richard Guenther  <rguenther@suse.de>
550
551         PR tree-optimization/47555
552         Revert
553         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
554
555         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
556
557 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
558
559         PR gcc/46692
560         * config/lm32/t-lm32: Add multilib for all CPU options.
561
562 2011-02-01  Richard Guenther  <rguenther@suse.de>
563
564         PR tree-optimization/47541
565         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
566         sure to have a field at offset zero.
567
568 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
569
570         * config/arc/arc.opt (EB, EL): New Driver options.
571
572 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
573
574         * config/alpha/osf5.opt: New.
575         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
576
577 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
578
579         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
580
581 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
582
583         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
584         -floop-interchange.
585         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
586         is an alias of -floop-interchange and that it requires the
587         Graphite infrastructure.
588         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
589         flag_loop_interchange based on the value of flag_tree_loop_linear.
590
591 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
592             Richard Guenther  <rguenther@suse.de>
593
594         PR tree-optimization/47538
595         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
596         type instead of r1type, except for comparisons.  For right
597         shifts and comparisons punt if there are mismatches in
598         sizetype vs. non-sizetype types.
599
600 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
601
602         * doc/sourcebuild.texi (Effective-Target Keywords): Document
603         avx_runtime.
604
605 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
606
607         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
608         version number.
609         * configure: Regenerate.
610
611 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
612
613         * configure.ac (gcc_cv_ld_static_option): Define.
614         (gcc_cv_ld_dynamic_option): Define.
615         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
616         instead.
617         (HAVE_LD_STATIC_DYNAMIC): Update message.
618         (LD_STATIC_OPTION): Define.
619         (LD_DYNAMIC_OPTION): Define.
620         * configure: Regenerate.
621         * config.in: Regenerate.
622         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
623         HAVE_LD_STATIC_DYNAMIC]: Use them.
624
625 2011-01-31  Nick Clifton  <nickc@redhat.com>
626
627         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
628         registers inside interrupt handlers if the handler is not a leaf
629         function.
630
631 2011-01-31  Nick Clifton  <nickc@redhat.com>
632
633         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
634         reg_renumber returning an INVALID_REGNUM.
635
636 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
637
638         PR libgcj/44341
639         * doc/install.texi: Document host options discarded when cross
640         configuring target libraries.
641
642 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
643
644         Reverted:
645         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
646         PR debug/45136
647         PR debug/45130
648         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
649         debug insns.
650         (no_real_insns_p, schedule_block, set_priorities): Drop special
651         treatment of boundary debug insns.
652         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
653         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
654         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
655         (BOUNDARY_DEBUG_INSN_P): Likewise.
656         (SCHEDULE_DEBUG_INSN_P): Likewise.
657         * sched-rgn.c (init_ready_list): Drop special treatment of
658         boundary debug insns.
659         * final.c (rest_of_clean-state): Clear notes' BB.
660
661 2011-01-31  Alan Modra  <amodra@gmail.com>
662
663         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
664         toc relative expressions as we do in print_operand_address.
665
666 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
667
668         * doc/extend.texi: Follow spelling conventions.
669         * doc/invoke.texi: Fix a typo.
670
671 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
672
673         * config/hpux11.opt: New.
674         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
675         ia64*-*-hpux*): Use hpux11.opt.
676
677 2011-01-30  Jonathan Yong <jon_y@users.sourceforge.net>
678
679         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
680         to tmake_file.
681
682 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
683
684         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
685         support sites.
686
687 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
688
689         * doc/install.texi (Binaries): Remove outdated reference for
690         Motorola 68HC11/68HC12 downloads.
691
692 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
693
694         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
695         Drepper's paper.
696
697 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
698
699         PR bootstrap/47147
700         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
701         used by NetBSD.
702
703 2011-01-28  Ahmad Sharif  <asharif@google.com>
704
705         * value-prof.c (check_counter): Corrected error message.
706
707 2011-01-29  Jie Zhang  <jie@codesourcery.com>
708
709         * config/arm/arm.c (arm_legitimize_reload_address): New.
710         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
711         arm_legitimize_reload_address.
712         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
713
714 2011-01-28  Ian Lance Taylor  <iant@google.com>
715
716         * godump.c (go_define): Ignore macros whose definitions include
717         two adjacent operands.
718
719 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
720
721         PR target/42894
722         * varasm.c (force_const_mem): Store copy of x in desc->constant
723         instead of x itself.
724         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
725         itself into REG_EQUAL note.
726
727 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
728
729         * config/freebsd.opt (posix, rdynamic): New Driver options.
730
731 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
732
733         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
734         -Bstatic/-Bdynamic.
735         * configure: Regenerate.
736
737 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
738
739         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
740         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
741
742 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
743
744         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
745         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
746         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
747         (s390_preferred_reload_class): Make static. Change return and
748         'rclass' argument type to reg_class_t.
749
750 2011-01-27  Jan Hubicka  <jh@suse.cz>
751
752         PR middle-end/46949
753         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
754         (process_function_and_variable_attributes): Check defined weakrefs.
755
756 2011-01-27  Martin Jambor  <mjambor@suse.cz>
757
758         PR tree-optimization/47228
759         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
760         build_ref_for_offset.
761
762 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
763
764         * config/spu/spu-elf.h (ASM_SPEC): Remove.
765
766 2011-01-26  Mikael Pettersson <mikpe@it.uu.se>
767
768         PR rtl-optimization/46856
769         * postreload.c (reload_combine_recognize_const_pattern): Do not
770         separate cc0 setter and user on cc0 targets.
771
772 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
773
774         PR c/43082
775         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
776         passed a VOID_TYPE expression, immediately emit an error and
777         return error_mark_node.
778
779 2011-01-26  Jeff Law  <law@redhat.com>
780
781         PR rtl-optimization/47464
782         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
783         rather than may_trap_p as needed.
784
785 2011-01-26  DJ Delorie  <dj@redhat.com>
786
787         PR rtl-optimization/46878
788         * combine.c (insn_a_feeds_b): Check for the implicit cc0
789         setter/user dependency as well.
790
791 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
792
793         PR rtl-optimization/44469
794         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
795         after removing trivially dead basic blocks.
796
797 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
798
799         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
800         * config/frv/frv.h (LINK_SPEC): Likewise.
801         * config/i386/netware.h (LINK_SPEC): Likewise.
802         * config/m68k/linux.h (ASM_SPEC): Likewise.
803         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
804         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
805         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
806         * config/sparc/linux.h (ASM_SPEC): Likewise.
807         * config/sparc/linux64.h (ASM_SPEC): Likewise.
808         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
809
810 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
811
812         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
813         * config/frv/frv.h (ASM_SPEC): Likewise.
814         * config/m68k/linux.h (ASM_SPEC): Likewise.
815         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
816         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
817         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
818         * config/sparc/linux.h (ASM_SPEC): Likewise.
819         * config/sparc/linux64.h (ASM_SPEC): Likewise.
820         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
821
822 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
823
824         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
825         * config/frv/frv.h (LINK_SPEC): Likewise.
826         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
827
828 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
829
830         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
831         * config/frv/frv.h (ASM_SPEC): Likewise.
832         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
833         * config/m68k/linux.h (ASM_SPEC): Likewise.
834         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
835         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
836         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
837         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
838         * config/sparc/linux.h (ASM_SPEC): Likewise.
839         * config/sparc/linux64.h (ASM_SPEC): Likewise.
840         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
841         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
842
843 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
844
845         PR target/46997
846         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
847         (*mux2): Ditto.
848         (vec_extract_evenodd_help): Ditto.
849         (vec_extract_evenv4hi): Ditto.
850         (vec_extract_oddv4hi): Ditto.
851         (vec_interleave_lowv2si): Ditto.
852         (vec_interleave_highv2si): Ditto.
853         (vec_extract_evenv2si): Ditto.
854         (vec_extract_oddv2si: Ditto.
855         (vec_pack_trunc_v2si): Ditto.
856
857 2011-01-22  Jan Hubicka  <jh@suse.cz>
858
859         PR target/47237
860         * cgraph.h (cgraph_local_info): New field can_change_signature.
861         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
862         signature can change.
863         (ipcp_estimate_growth): Call sequence simplify only if calle signature
864         can change.
865         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
866         (cgraph_function_versioning): We can not change signature of functions
867         that don't allow that.
868         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
869         (lto_input_node): Likewise.
870         * ipa-inline.c (compute_inline_parameters): Compute
871         local.can_change_signature.
872         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
873         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
874         functions that can not change signature.
875         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
876         init_cumulative_args): Do not use local calling conventions
877         for functions that can not change signature.
878
879 2011-01-22  Jan Hubicka  <jh@suse.cz>
880
881         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
882
883 2011-01-26  Richard Guenther  <rguenther@suse.de>
884
885         PR tree-optimization/47190
886         * cgraphunit.c (process_common_attributes): New function.
887         (process_function_and_variable_attributes): Use it.
888
889 2011-01-26  Richard Guenther  <rguenther@suse.de>
890
891         PR lto/47423
892         * cgraphbuild.c (record_eh_tables): Record reference to personality
893         function.
894
895 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
896
897         PR debug/45454
898         * sel-sched.c (moveup_expr): Don't let debug insns prevent
899         non-debug insns from moving up.
900
901 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
902
903         PR target/40125
904         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
905         t-dlldir{,-x} fragment for build and add it to tmake_file.
906         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
907         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
908         * config/i386/t-dlldir: New file.
909         (SHLIB_DLLDIR): Define.
910         * config/i386/t-dlldir-x: New file.
911         (SHLIB_DLLDIR): Define.
912         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
913         (SHLIB_INSTALL): Use it.
914
915 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
916
917         PR target/47246
918         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
919         lower bound of the allowed Thumb-2 coprocessor load/store
920         index range to -256. Add explaining comment.
921
922 2011-01-25  Ian Lance Taylor  <iant@google.com>
923
924         * godump.c (go_define): Improve lexing of macro expansion to only
925         accept expressions which match Go spec.
926
927 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
928
929         PR c++/43601
930         * tree.c (handle_dll_attribute): Handle it.
931         * doc/extend.texi (@item dllexport): Mention it.
932         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
933
934 2011-01-25  Ian Lance Taylor  <iant@google.com>
935
936         PR tree-optimization/26854
937         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
938         (decl_jump_unsafe): Move higher in file, with no other change.
939         (bind): Set has_jump_unsafe_decl if appropriate.
940         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
941         (check_earlier_gotos): Likewise.
942         (c_check_switch_jump_warnings): Likewise.
943
944 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
945
946         * doc/invoke.texi (Warning Options): Add missing hyphen.
947         (-fprofile-dir): Minor grammatical fixes.
948         (-fbranch-probabilities): Likewise.
949
950 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
951
952         PR debug/45136
953         PR debug/45130
954         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
955         debug insns.
956         (no_real_insns_p, schedule_block, set_priorities): Drop special
957         treatment of boundary debug insns.
958         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
959         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
960         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
961         (BOUNDARY_DEBUG_INSN_P): Likewise.
962         (SCHEDULE_DEBUG_INSN_P): Likewise.
963         * sched-rgn.c (init_ready_list): Drop special treatment of
964         boundary debug insns.
965         * final.c (rest_of_clean-state): Clear notes' BB.
966
967 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
968
969         * Makefile.in (LAMBDA_H): Removed.
970         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
971         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
972         lambda-trans.o, and tree-loop-linear.o.
973         (lto-symtab.o): Remove dependence on LAMBDA_H.
974         (tree-loop-linear.o): Remove rule.
975         (lambda-mat.o): Same.
976         (lambda-trans.o): Same.
977         (lambda-code.o): Same.
978         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
979         (tree-vect-slp.o): Same.
980         * hwint.h (gcd): Moved here.
981         (least_common_multiple): Same.
982         * lambda-code.c: Removed.
983         * lambda-mat.c: Removed.
984         * lambda-trans.c: Removed.
985         * lambda.h: Removed.
986         * tree-loop-linear.c: Removed.
987         * lto-symtab.c: Do not include lambda.h.
988         * omega.c (gcd): Removed.
989         * passes.c (init_optimization_passes): Remove pass_linear_transform.
990         * tree-data-ref.c (print_lambda_vector): Moved here.
991         (lambda_vector_copy): Same.
992         (lambda_matrix_copy): Same.
993         (lambda_matrix_id): Same.
994         (lambda_vector_first_nz): Same.
995         (lambda_matrix_row_add): Same.
996         (lambda_matrix_row_exchange): Same.
997         (lambda_vector_mult_const): Same.
998         (lambda_vector_negate): Same.
999         (lambda_matrix_row_negate): Same.
1000         (lambda_vector_equal): Same.
1001         (lambda_matrix_right_hermite): Same.
1002         * tree-data-ref.h: Do not include lambda.h.
1003         (lambda_vector): Moved here.
1004         (lambda_matrix): Same.
1005         (dependence_level): Same.
1006         (lambda_transform_legal_p): Removed declaration.
1007         (lambda_collect_parameters): Same.
1008         (lambda_compute_access_matrices): Same.
1009         (lambda_vector_gcd): Same.
1010         (lambda_vector_new): Same.
1011         (lambda_vector_clear): Same.
1012         (lambda_vector_lexico_pos): Same.
1013         (lambda_vector_zerop): Same.
1014         (lambda_matrix_new): Same.
1015         * tree-flow.h (least_common_multiple): Removed declaration.
1016         * tree-parloops.c (lambda_trans_matrix): Moved here.
1017         (LTM_MATRIX): Same.
1018         (LTM_ROWSIZE): Same.
1019         (LTM_COLSIZE): Same.
1020         (LTM_DENOMINATOR): Same.
1021         (lambda_trans_matrix_new): Same.
1022         (lambda_matrix_vector_mult): Same.
1023         (lambda_transform_legal_p): Same.
1024         * tree-pass.h (pass_linear_transform): Removed declaration.
1025         * tree-ssa-loop.c (tree_linear_transform): Removed.
1026         (gate_tree_linear_transform): Removed.
1027         (pass_linear_transform): Removed.
1028         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
1029         flag_loop_interchange.
1030
1031 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
1032
1033         PR tree-optimization/47265
1034         PR tree-optimization/47443
1035         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
1036         if name still has some uses.
1037
1038 2011-01-25  Martin Jambor  <mjambor@suse.cz>
1039
1040         PR tree-optimization/47382
1041         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
1042         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
1043
1044 2011-01-25  Joel Sherrill <joel.sherrill@oarcorp.com>
1045
1046         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
1047         sjlj_except_unwind_info.
1048
1049 2011-01-25  Richard Guenther  <rguenther@suse.de>
1050
1051         PR tree-optimization/47426
1052         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
1053         visible functions results escape.
1054
1055 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
1056
1057         PR target/45701
1058         * config/arm/arm.c (any_sibcall_uses_r3): New function.
1059         (arm_get_frame_offsets): Use it.
1060
1061 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1062             Jakub Jelinek  <jakub@redhat.com>
1063
1064         PR tree-optimization/47271
1065         * tree-if-conv.c (bb_postdominates_preds): New.
1066         (if_convertible_bb_p): Call bb_postdominates_preds.
1067         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
1068         (predicate_scalar_phi): Call bb_postdominates_preds.
1069
1070 2011-01-25  Nick Clifton  <nickc@redhat.com>
1071
1072         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
1073         * config/rx/rx.c (rx_function_value): Likewise.
1074         (rx_promote_function_mode): Likewise.
1075         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
1076         in order to make it legitimate.
1077         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
1078         make sure that the first operand is the same as the result register.
1079         (addsi3_unspec): Delete.
1080         (subdi3): Do not accept immediate operands.
1081         (subdi3_internal): Likewise.
1082
1083 2011-01-25  Jeff Law  <law@redhat.com>
1084
1085         PR rtl-optimization/37273
1086         * ira-costs.c (scan_one_insn): Detect constants living in memory and
1087         handle them like argument loads from stack slots.  Do not double
1088         count memory for memory constants and argument loads from stack slots.
1089
1090 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
1091
1092         PR tree-optimization/47427
1093         PR tree-optimization/47428
1094         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
1095         coalesce if the new root var would be TREE_READONLY.
1096
1097 2011-01-25  Richard Guenther  <rguenther@suse.de>
1098
1099         PR middle-end/47414
1100         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
1101         correct type for TBAA.
1102
1103 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1104
1105         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
1106         (close_phi_written_to_memory): Call for_each_index with
1107         dr_indices_valid_in_loop.
1108
1109 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1110
1111         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
1112         when it is initialized.
1113
1114 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1115
1116         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
1117         call to graphite_find_data_references_in_stmt.
1118         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
1119         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
1120         call to graphite_find_data_references_in_stmt.
1121         (analyze_drs_in_stmts): Same.
1122         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
1123         in which the scalar analysis of indices is performed.
1124         (create_data_ref): Same.  Update call to dr_analyze_indices.
1125         (find_data_references_in_stmt): Update call to create_data_ref.
1126         (graphite_find_data_references_in_stmt): Same.
1127         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
1128         declaration.
1129         (create_data_ref): Same.
1130         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
1131         call to create_data_ref.
1132
1133 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1134
1135         * graphite-sese-to-poly.c (build_poly_scop): Move
1136         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
1137
1138 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1139
1140         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
1141         VAR_DECL, PARM_DECL, and RESULT_DECL.
1142
1143 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1144
1145         * graphite-dependences.c (reduction_dr_1): Allow several reductions
1146         in a reduction PBB.
1147         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
1148         that have already been marked as PBB_IS_REDUCTION.
1149
1150 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1151
1152         * graphite-scop-detection.c (same_close_phi_node): New.
1153         (remove_duplicate_close_phi): New.
1154         (make_close_phi_nodes_unique): New.
1155         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
1156
1157 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1158
1159         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
1160         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
1161         of both data references to be the same.
1162
1163 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1164
1165         * graphite-dependences.c (build_lexicographical_constraint): Remove
1166         the gdim parameter.
1167         (build_lexicographical_constraint): Adjust call to
1168         ppl_powerset_is_empty.
1169         (dependence_polyhedron): Same.
1170         (graphite_legal_transform_dr): Same.
1171         (graphite_carried_dependence_level_k): Same.
1172         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
1173         parameter.
1174         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
1175
1176 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1177
1178         * graphite-sese-to-poly.c
1179         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
1180         (close_phi_written_to_memory): New.
1181         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
1182         and unshare_expr.
1183
1184 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1185
1186         * doc/install.texi: Update the expected version number of PPL to 0.11.
1187         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
1188         #if PPL_VERSION_MINOR < 11.
1189
1190 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1191
1192         * graphite-dependences.c: Include graphite-cloog-util.h.
1193         (new_poly_ddr): Inlined into dependence_polyhedron.
1194         (free_poly_ddr): Moved close by new_poly_ddr.
1195         (dependence_polyhedron_1): Renamed dependence_polyhedron.
1196         Early return NULL when ppl_powerset_is_empty returns true.
1197         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
1198         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
1199         (graphite_legal_transform_dr): Call new_poly_ddr.
1200         (graphite_carried_dependence_level_k): Same.
1201         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
1202         (dot_transformed_deps_stmt_1): Removed.
1203         (dot_deps_stmt_1): Call dot_deps_stmt_2.
1204         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
1205         (dot_deps_1): Call dot_deps_2.
1206         * Makefile.in (graphite-dependences.o): Add missing dependence on
1207         graphite-cloog-util.h.
1208
1209 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1210
1211         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
1212         (build_lexicographical_constraint): Same.
1213         (dependence_polyhedron_1): Same.
1214         (graphite_legal_transform_dr): Same.
1215         (graphite_carried_dependence_level_k): Same.
1216         * graphite-ppl.c (ppl_powerset_is_empty): New.
1217         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
1218         * tree-data-ref.c (dump_data_reference): Print the basic block index.
1219
1220 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1221
1222         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
1223         the "a followed by b" relation and document it.
1224
1225 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1226
1227         * graphite-dependences.c (build_lexicographical_constraint): Stop the
1228         iteration when the bag of constraints is empty.
1229
1230 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1231
1232         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
1233
1234 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1235
1236         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
1237         nest and two loop depths as parameters.
1238         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
1239         lst_perfect_nestify.
1240
1241 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1242
1243         * graphite-dependences.c (print_pddr): Call
1244         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
1245
1246 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
1247
1248         * graphite-ppl.c (debug_gmp_value): New.
1249         * graphite-ppl.h (debug_gmp_value): Declared.
1250
1251 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
1252
1253         * doc/install.texi: Document availability of cloog-0.16.
1254
1255 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
1256
1257         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
1258         invalid postdominance info.
1259
1260 2011-01-24  Jan Hubicka  <jh@suse.cz>
1261
1262         PR c/21659
1263         * doc/extend.texi (weak pragma): Drop claim that it must
1264         appear before definition.
1265         * varasm.c (merge_weak, declare_weak): Only sanity check
1266         that DECL is not output at a time it is declared weak.
1267
1268 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
1269
1270         * machmode.def: Fixed comments.
1271
1272 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
1273
1274         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
1275
1276 2011-01-24  Paul Koning  <ni1d@arrl.net>
1277
1278         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1279         WORDS_BIG_ENDIAN.
1280
1281 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
1282
1283         PR target/46519
1284         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
1285         (block_info): Add scanned and prev.
1286         (move_or_delete_vzeroupper_2): Return if the basic block
1287         has been scanned and the upper 128bit state is unchanged
1288         from the last scan.
1289         (move_or_delete_vzeroupper_1): Return true if the exit
1290         state is changed.
1291         (move_or_delete_vzeroupper): Visit basic blocks using the
1292         work-list based algorithm based on vt_find_locations in
1293         var-tracking.c.
1294
1295         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
1296
1297 2011-01-24  Nick Clifton  <nickc@redhat.com>
1298
1299         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
1300         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
1301         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
1302         then define __v850e1__.
1303         * doc/invoke.texi: Document -mv850es.
1304
1305 2011-01-24  Richard Henderson  <rth@redhat.com>
1306
1307         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
1308         compound unordered comparisons.
1309         * config/rx/rx.c (rx_split_fp_compare): Remove.
1310         * config/rx/rx-protos.h: Update.
1311         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
1312         (cbranchsf4): Don't call rx_split_fp_compare.
1313         (*cbranchsf4): Use rx_split_cbranch.
1314         (*cmpsf): Don't accept "i" constraint.
1315         (*conditional_branch): Only valid after reload.
1316         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
1317
1318 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1319
1320         PR target/47385
1321         * config/rs6000/altivec.md (vector constant splitters): Add
1322         support for creating vector single precision constants if -mvsx is
1323         used and we would create the constant using Altivec primitives.
1324
1325 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
1326             Richard Sandiford  <rdsandiford@googlemail.com>
1327
1328         PR rtl-optimization/47166
1329         * reload1.c (emit_reload_insns): Disable the spill_reg_store
1330         mechanism for PRE_MODIFY and POST_MODIFY.
1331         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
1332         reloadreg.
1333
1334 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
1335
1336         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
1337
1338 2011-01-22  Jan Hubicka  <jh@suse.cz>
1339
1340         PR lto/47333
1341         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
1342
1343 2011-01-22  Jan Hubicka  <jh@suse.cz>
1344
1345         PR tree-optimization/43884
1346         PR lto/44334
1347         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
1348         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
1349
1350 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
1351
1352         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1353         * config/s390/s390.c (s390_register_move_cost,
1354         s390_memory_move_cost): New.
1355         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1356
1357 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1358
1359         PR middle-end/47401
1360         * except.c (sjlj_assign_call_site_values): Move setting the
1361         crtl->uses_eh_lsda flag to ...
1362         (sjlj_mark_call_sites): ... here.
1363         (sjlj_emit_function_enter): Support NULL dispatch label.
1364         (sjlj_build_landing_pads): In a function with no landing pads
1365         that still has must-not-throw regions, generate code to register
1366         a personality function with empty LSDA.
1367
1368 2011-01-21  Richard Henderson  <rth@redhat.com>
1369
1370         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
1371
1372         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
1373
1374         * compare-elim.c: New file.
1375         * Makefile.in (OBJS-common): Add it.
1376         (compare-elim.o): New.
1377         * common.opt (fcompare-elim): New.
1378         * opts.c (default_options_table): Add OPT_fcompare_elim.
1379         * tree-pass.h (pass_compare_elim_after_reload): New.
1380         * passes.c (init_optimization_passes): Add it.
1381         * recog.h: Protect against re-inclusion.
1382         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
1383         * doc/invoke.texi (-fcompare-elim): Document it.
1384         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
1385         * doc/tm.texi: Rebuild.
1386
1387 2011-01-22  Nick Clifton  <nickc@redhat.com>
1388
1389         * config/rx/rx.md (cstoresf4): Pass comparison operator to
1390         rx_split_fp_compare.
1391
1392 2011-01-22  Nick Clifton  <nickc@redhat.com>
1393
1394         * config/rx/rx.md (UNSPEC_CONST): New.
1395         (deallocate_and_return): Wrap the amount popped off the stack in
1396         an UNSPEC_CONST in order to stop it being rejected by
1397         -mmax-constant-size.
1398         (pop_and_return): Add a "(return)" rtx.
1399         (call): Drop the immediate operand.
1400         (call_internal): Likewise.
1401         (call_value): Likewise.
1402         (call_value_internal): Likewise.
1403         (sibcall_internal): Likewise.
1404         (sibcall_value_internal): Likewise.
1405         (sibcall): Likewise.  Generate an explicit call using
1406         sibcall_internal.
1407         (sibcall_value): Likewise.
1408         (mov<>): FAIL if a constant operand is not legitimate.
1409         (addsi3_unpsec): New pattern.
1410
1411         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
1412         (ok_for_max_constant): New function.
1413         (gen_safe_add): New function.
1414         (rx_expand_prologue): Use gen_safe_add.
1415         (rx_expand_epilogue): Likewise.
1416         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
1417         UNSPEC CONSTs.
1418
1419 2011-01-21  Jeff Law  <law@redhat.com>
1420
1421         PR tree-optimization/47053
1422         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
1423         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
1424         statements are deleted.
1425         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
1426         is nonempty, then purge dead edges and cleanup the CFG.
1427
1428 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
1429
1430         PR debug/47402
1431         Temporarily revert:
1432         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
1433         PR debug/47106
1434         * tree-dfa.c (create_var_ann): Mark variable as used.
1435
1436 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
1437
1438         PR middle-end/45566
1439         * except.c (convert_to_eh_region_ranges): Emit queued no-region
1440         notes from other section in hot/cold partitioning even if
1441         last_action is -3.  Increment call_site_base.
1442
1443         PR rtl-optimization/47366
1444         * fwprop.c (forward_propagate_into): Return bool.  If
1445         any changes are made, -fnon-call-exceptions is used and
1446         REG_EH_REGION note is present, call purge_dead_edges
1447         and return true if it purged anything.
1448         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
1449         any EH edges were purged.
1450
1451 2011-01-21  Jeff Law  <law@redhat.com>
1452
1453         PR rtl-optimization/41619
1454         * caller-save.c (setup_save_areas): Break out code to determine
1455         which hard regs are live across calls by examining the reload chains
1456         so that it is always used.
1457         Eliminate code which checked REG_N_CALLS_CROSSED.
1458
1459 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
1460
1461         PR tree-optimization/47355
1462         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
1463         NOP has non-debug uses beyond PHIs in new_bb.
1464
1465 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
1466
1467         PR debug/47106
1468         * cfgexpand.c (account_used_vars_for_block): Only account vars
1469         that are annotated as used.
1470         (estimated_stack_frame_size): Don't set TREE_USED.
1471         * tree-dfa.c (create_var_ann): Mark variable as used.
1472
1473 2011-01-21  Richard Guenther  <rguenther@suse.de>
1474
1475         PR middle-end/47395
1476         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
1477
1478 2011-01-21  Richard Guenther  <rguenther@suse.de>
1479
1480         PR tree-optimization/47365
1481         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
1482         (vn_reference_lookup_pieces): Adjust.
1483         (vn_reference_lookup): Likewise.
1484         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
1485         (vn_reference_lookup_3): Only look through kills if in
1486         VN_WALKREWRITE mode.
1487         (vn_reference_lookup_pieces): Adjust.
1488         (vn_reference_lookup): Likewise.
1489         (visit_reference_op_load): Likewise.
1490         (visit_reference_op_store): Likewise.
1491         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
1492         (compute_avail): Likewise.
1493         (eliminate): Likewise.
1494
1495 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
1496
1497         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
1498         DECL_IGNORED_P non-reg vars if they are used.
1499
1500         PR tree-optimization/47391
1501         * varpool.c (const_value_known_p): Return false if
1502         decl is volatile.
1503
1504 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
1505
1506         PR bootstrap/47215
1507         * config/i386/i386.c (ix86_local_alignment): Handle
1508         case for va_list_type_node is nil.
1509         (ix86_canonical_va_list_type): Likewise.
1510
1511 2011-01-21  Alan Modra  <amodra@gmail.com>
1512
1513         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
1514         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
1515
1516 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1517
1518         * config/arm/arm.md (define_attr type): Rename f_load
1519         and f_store to f_fpa_load and f_fpa_store. Update.
1520         (write_conflict): Deal with rename fallout.
1521         (*push_fp_multi): Likewise.
1522         * config/arm/fpa.md (f_load): Use f_fpa_load.
1523         (f_store): Use f_fpa_store.
1524         (*movsf_fpa): Likewise.
1525         (*movdf_fpa): Likewise.
1526         (*movxf_fpa): Likewise.
1527         (*thumb2_movsf_fpa): Likewise.
1528         (*thumb2_movdf_fpa): Likewise.
1529         (*thumb2_movxf_fpa): Likewise.
1530         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
1531         f_loadd and f_stored.
1532         (*thumb2_movdi_vfp): Likewise.
1533         (*thumb2_movsf_vfp): Fix attribute to f_loads.
1534         (*thumb2_movsi_vfp): Likewise.
1535         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
1536         Use f_loads instead of f_load.
1537         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
1538
1539 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
1540
1541         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1542         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
1543         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1544         (xtensa_mode_dependent_address_p): New function.
1545         (constantpool_address_p): Make static. Change return type to bool.
1546         Change argument type to const_rtx. Use CONST_INT_P predicate.
1547
1548 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
1549
1550         PR debug/46583
1551         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
1552
1553 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
1554
1555         PR debug/47283
1556         * cfgexpand.c (expand_debug_expr): Instead of generating
1557         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
1558         etc. handling.
1559
1560 2011-01-20  Richard Guenther  <rguenther@suse.de>
1561
1562         PR middle-end/47370
1563         * tree-inline.c (remap_gimple_op_r): Recurse manually for
1564         the pointer operand of MEM_REFs.
1565
1566 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
1567
1568         PR tree-optimization/46130
1569         * ipa-split.c (consider_split): If return_bb contains non-virtual
1570         PHIs other than for retval or if split_function would not adjust it,
1571         refuse to split.
1572
1573 2011-01-20  Richard Guenther  <rguenther@suse.de>
1574
1575         PR tree-optimization/47167
1576         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
1577         Revert previous change, only avoid enumeral type changes.
1578
1579 2011-01-19  Mike Stump  <mikestump@comcast.net>
1580
1581         * doc/tm.texi.in (BRANCH_COST): Englishify.
1582         * doc/tm.texi (BRANCH_COST): Likewise.
1583
1584 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
1585
1586         PR c++/47291
1587         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
1588         (gen_scheduled_generic_parms_dies): New functions.
1589         (gen_struct_or_union_type_die): Schedule template parameters DIEs
1590         generation for the end of CU compilation.
1591         (dwarf2out_finish): Generate template parameters DIEs here.
1592
1593 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
1594
1595         PR debug/46240
1596         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
1597         debug bind stmt on merge edges.
1598
1599 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
1600
1601         PR debug/47079
1602         PR debug/46724
1603         * function.c (instantiate_expr): Instantiate incoming rtl of
1604         implicit arguments, and recurse on VALUE_EXPRs.
1605         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
1606         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
1607
1608 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
1609
1610         * c-parser.c (c_parser_for_statement): Initialize
1611         collection_expression.
1612
1613 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
1614
1615         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
1616
1617 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
1618
1619         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
1620         (LINK_SHLIB_SPEC): Don't use %(link_path).
1621         (SUBTARGET_EXTRA_SPECS): Remove link_path.
1622
1623 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
1624
1625         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
1626         (NO_SHARED_LIB_SUPPORT): Remove.
1627         (LINK_SHLIB_SPEC): Remove one conditional definition.
1628
1629 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
1630
1631         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
1632         %{call_shared}.
1633         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
1634         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
1635         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
1636         %{call_shared} and conditionals on these options not being passed.
1637         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
1638         %{call_shared}.
1639
1640 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
1641
1642         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
1643         simplify.
1644
1645         * ipa-split.c: Spelling fixes.
1646
1647 2011-01-19  Richard Henderson  <rth@redhat.com>
1648
1649         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
1650         (*mulsi3): Likewise.
1651
1652         * longlong.h [__mn10300__] (count_leading_zeros): New.
1653         [__mn10300__] (umul_ppmm, smul_ppmm): New.
1654         [__mn10300__] (add_ssaaaa, subddmmss): New.
1655         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
1656         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
1657
1658 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1659
1660         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
1661
1662 2011-01-19  Richard Henderson  <rth@redhat.com>
1663
1664         * config/mn10300/mn10300.md (addsi3_flags): New.
1665         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
1666         (subsi3_flags, subc_internal, subdi3): New.
1667         (subdi3_internal, *subdi3_degenerate): New.
1668         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
1669
1670         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
1671         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
1672         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
1673         * config/mn10300/mn10300-protos.h: Update.
1674         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
1675         (return_ret): Likewise.  Rename from return_internal_regs.
1676         (return_internal): Remove.
1677
1678         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
1679         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
1680         (mn10300_legitimate_constant_p): Likewise.
1681         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
1682         (mn10300_frame_size): New.
1683         (mn10300_expand_prologue): Use it.
1684         (mn10300_expand_epilogue): Likewise.
1685         (mn10300_initial_offset): Likewise.
1686         * config/mn10300/mn10300-protos.h: Update.
1687         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
1688         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
1689         (prologue, epilogue, return_internal): Tidy output code.
1690         (mn10300_store_multiple_operation, return): Likewise.
1691         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
1692         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
1693         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
1694         (load_pic, am33_load_pic): New.
1695         (mn10300_load_pic0, mn10300_load_pic1): New.
1696
1697         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
1698         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
1699         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
1700         (cc_flags_for_mode, cc_flags_for_code): New.
1701         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
1702         overflow flag is not valid.  Validate that the flags we need
1703         for the comparison are valid.
1704         (mn10300_output_cmp): Remove.
1705         (mn10300_output_add): New.
1706         (mn10300_select_cc_mode): Use cc_flags_for_code.
1707         (mn10300_split_cbranch): New.
1708         (mn10300_match_ccmode): New.
1709         (mn10300_split_and_operand_count): New.
1710         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
1711         to the function.
1712         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
1713         (addsi3): ... here.  Use mn10300_output_add.
1714         (*addsi3_flags): New.
1715         (*am33_subsi3, *mn10300_subsi3): Merge...
1716         (subsi3): ... here.  Use attribute isa.
1717         (*subsi3_flags): New.
1718         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
1719         when possible.
1720         (*am33_andsi3, *mn10300_andsi3): Merge...
1721         (andsi3): ... here.
1722         (*andsi3_flags): New.
1723         (andsi3 splitters): New.
1724         (*am33_iorsi3, *mn10300_iorsi3): Merge...
1725         (iorsi3): ... here.
1726         (*iorsi3_flags): New.
1727         (*am33_xorsi3, *mn10300_xorsi3): Merge...
1728         (xorsi3): ... here.
1729         (*xorsi3_flags): New.
1730         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
1731         (one_cmplsi2): ... here.
1732         (*one_cmplsi2_flags): New.
1733         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
1734         instead of "dax" in constraints.  Use mn10300_split_cbranch.
1735         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
1736         use matching constraints to eliminate a self-comparison.
1737         (*integer_conditional_branch): Rename from integer_conditional_branch.
1738         Use int_mode_flags to match CC_REG.
1739         (*cbranchsi4_btst, *btstsi): New.
1740         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
1741         mn10300_split_cbranch.
1742         (*am33_cmpsf): Rename from am33_cmpsf.
1743         (*float_conditional_branch): Rename from float_conditional_branch.
1744         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
1745         (zero_extendqisi2): ... here.
1746         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
1747         (zero_extendhisi2): ... here.
1748         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
1749         (extendqisi2): ... here.
1750         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
1751         (extendhisi2): ... here.
1752         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
1753         (ashlsi3): ... here.
1754         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
1755         (lshrsi3): ... here.
1756         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
1757         (ashrsi3): ... here.
1758         (consecutive add peephole): Remove.
1759         * config/mn10300/predicates.md (label_ref_operand): New.
1760         (int_mode_flags): New.
1761         (CCZN_comparison_operator): New.
1762
1763         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
1764         (throughput_42_latency_43): New reservation.
1765         (mulsidi3, umulsidi3): New expanders.
1766         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
1767         the MDR register to allocation; separately allocate the low and
1768         high parts of the DImode result.
1769         (umulsidi3_internal): Similarly.
1770         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
1771         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
1772         (udivsi3, umodsi3): Remove.
1773         (udivmodsi4, divmodsi4): New expanders.
1774         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
1775         (*divmodsi4): Simiarly.
1776         (ext_internal): New.
1777
1778         * config/mn10300/constraints.md ("z"): New constraint.
1779         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
1780         (FIXED_REGISTERS): Don't fix MDR.
1781         (CALL_USED_REGSITERS): Reformat nicely.
1782         (REG_ALLOC_ORDER): Add MDR.
1783         (enum regclass): Add MDR_REGS.
1784         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
1785         (IRA_COVER_CLASSES): Add MDR_REGS.
1786         (REGNO_REG_CLASS): Handle MDR_REG.
1787         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
1788         (mn10300_register_move_cost): Likewise.
1789         * config/mn10300/mn10300.md (MDR_REG): New.
1790         (*movsi_internal): Handle moves to/from MDR_REGS.
1791
1792         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
1793         POST_MODIFY.
1794         (mn10300_secondary_reload): Tidy combination reload classes.
1795         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
1796         addresses for AM33.  Allow symbolic offsets for reg+imm.
1797         (mn10300_regno_in_class_p): New.
1798         (mn10300_legitimize_reload_address): New.
1799         * config/mn10300/mn10300.h (enum reg_class): Remove
1800         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
1801         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
1802         SP_OR_GENERAL_REGS.
1803         (REG_CLASS_NAMES): Update to match.
1804         (REG_CLASS_CONTENTS): Likewise.
1805         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
1806         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
1807         (REGNO_IN_RANGE_P): Remove.
1808         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
1809         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
1810         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
1811         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
1812         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
1813         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
1814         (REGNO_GENERAL_P): New.
1815         (HAVE_POST_MODIFY_DISP): New.
1816         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
1817         (LEGITIMIZE_RELOAD_ADDRESS): New.
1818         * config/mn10300/mn10300-protos.h: Update.
1819
1820         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
1821         DATA_REGS for AM33 stack-pointer destination.
1822         (mn10300_preferred_output_reload_class): Likewise.
1823         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
1824         into a form appropriate for ...
1825         (TARGET_SECONDARY_RELOAD): New.
1826         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
1827         * config/mn10300/mn10300-protos.h: Update.
1828         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
1829         reload_insi; use the "A" constraint for the scratch; handle AM33
1830         moves of sp to non-address registers.
1831
1832         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
1833         (*movqi_internal): ... here.
1834         (*am33_movhi, *mn10300_movhi): Merge into...
1835         (*movhi_internal): ... here.
1836         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
1837         as the source/destination of moves from/to SP.
1838         (movsf): Only allow for AM33-2.
1839         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
1840         any integer constant constraint.  Only allow for AM33-2.  Tidy
1841         all of the alternative outputs.
1842         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
1843         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
1844         for MN103.
1845         (udivsi3, umodsi3): New patterns for MN103 only.
1846
1847 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
1848
1849         * doc/tm.texi.in: Spell out that a lack of register class unions
1850         can lead to ICEs.
1851         * doc/tm.texi: Regenerate.
1852
1853 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
1854
1855         PR rtl-optimization/47337
1856         * dce.c (check_argument_store): New function.
1857         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
1858
1859         PR tree-optimization/47290
1860         * tree-eh.c (infinite_empty_loop_p): New function.
1861         (cleanup_empty_eh): Use it.
1862
1863 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
1864
1865         PR target/46997
1866         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
1867         (a64_expand_widen_sum): Ditto.
1868         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
1869         (vec_extract_evenodd_help): Ditto.
1870         (vec_extract_evenv4hi): Ditto.
1871         (vec_extract_oddv4hi): Ditto.
1872         (vec_extract_evenv2si): Ditto.
1873         (vec_extract_oddv2si): Ditto.
1874         (vec_extract_evenv2sf): Ditto.
1875         (vec_extract_oddv2sf): Ditto.
1876         (vec_pack_trunc_v4hi: Ditto.
1877         (vec_pack_trunc_v2si): Ditto.
1878         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
1879         (vec_interleave_highv8qi): Ditto.
1880         (mix1_r): Ditto.
1881         (vec_extract_oddv8qi): Ditto.
1882         (vec_interleave_lowv4hi): Ditto.
1883         (vec_interleave_highv4hi): Ditto.
1884         (vec_interleave_lowv2si): Ditto.
1885         (vec_interleave_highv2si): Ditto.
1886
1887 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1888
1889         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
1890         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
1891         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
1892         (pa_c_mode_for_suffix): New.
1893         (TARGET_EXPAND_BUILTIN): Define.
1894         (TARGET_C_MODE_FOR_SUFFIX): Define.
1895         (pa_builtins): Define.
1896         (pa_init_builtins): Register __float128 type and init new support
1897         builtins.
1898         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
1899         * config/pa/quadlib.c (_U_Qfcopysign): New.
1900
1901 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
1902
1903         PR middle-end/46894
1904         * explow.c (allocate_dynamic_stack_space): Do not assume more than
1905         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
1906         are defined.
1907
1908 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1909
1910         PR tree-optimization/47179
1911         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
1912         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
1913
1914 2011-01-18  Richard Guenther  <rguenther@suse.de>
1915
1916         PR rtl-optimization/47216
1917         * emit-rtl.c: Include tree-flow.h.
1918         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
1919         of replicating it with different semantics.
1920         * Makefile.in (emit-rtl.o): Adjust.
1921
1922 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1923
1924         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
1925         (cortex_a9_dp): Handle neon types correctly.
1926
1927 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
1928
1929         PR rtl-optimization/47299
1930         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
1931         subtarget.  Use normal multiplication if both operands are constants.
1932         * expmed.c (expand_widening_mult): Don't try to optimize constant
1933         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
1934         before using it.
1935
1936 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1937
1938         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
1939         spacing after 'e.g.', typos, comma, hyphenation.
1940
1941 2011-01-17  Richard Henderson  <rth@redhat.com>
1942
1943         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
1944         (rx_restricted_mem_operand): New.
1945         (rx_shift_operand): Use register_operand.
1946         (rx_source_operand, rx_compare_operand): Likewise.
1947         * config/rx/rx.md (addsi3_flags): New expander.
1948         (adddi3): Rewrite as expander.
1949         (adc_internal, *adc_flags, adddi3_internal): New patterns.
1950         (subsi3_flags): New expander.
1951         (subdi3): Rewrite as expander.
1952         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
1953
1954         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
1955         (rx_init_builtins): Remove sat builtin.
1956         (rx_expand_builtin): Likewise.
1957         * config/rx/rx.md (ssaddsi3): New.
1958         (*sat): Rename from sat.  Represent the CC_REG input.
1959
1960         * config/rx/predicates.md (rshift_operator): New.
1961         * config/rx/rx.c (rx_expand_insv): Remove.
1962         * config/rx/rx-protos.h: Update.
1963         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
1964         operand to the canonical position.
1965         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
1966         (*bitclr, *bitclr_in_memory): Similarly.
1967         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
1968         (insv): Retain the zero_extract in the expansion.
1969
1970         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
1971         (bswaphi2, bitinvert, revw): Likewise.
1972
1973         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
1974         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
1975         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
1976         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
1977         (bitset, bitset_in_memory): Likewise.
1978         (bitinvert, bitinvert_in_memory): Likewise.
1979         (bitclr, bitclr_in_memory): Likewise.
1980         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
1981         (rx_strend, rx_cmpstrn): Likewise.
1982         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
1983         (bitop peep2 patterns): Remove.
1984
1985         * config/rx/rx.c (rx_match_ccmode): New.
1986         * config/rx/rx-protos.h: Update.
1987         * config/rx/rx.md (abssi2): Clobber, don't set flags.
1988         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
1989         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
1990         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
1991         (fix_truncsfsi2, floatsisf2): Likewise.
1992         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
1993         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
1994         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
1995         (*subsi3_flags, *xorsi3_flags): New.
1996
1997         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
1998
1999         * config/rx/rx.c (rx_print_operand): Remove workaround for
2000         unsplit comparison operations.
2001
2002         * config/rx/rx.md (movsicc): Split after reload.
2003         (*movsicc): Merge *movsieq and *movsine via match_operator.
2004         (*stcc): New pattern.
2005
2006         * config/rx/rx.c (rx_float_compare_mode): Remove.
2007         * config/rx/rx.h (rx_float_compare_mode): Remove.
2008         * config/rx/rx.md (cstoresi4): Split after reload.
2009         (*sccc): New pattern.
2010
2011         * config/rx/predicates.md (label_ref_operand): New.
2012         (rx_z_comparison_operator): New.
2013         (rx_zs_comparison_operator): New.
2014         (rx_fp_comparison_operator): New.
2015         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
2016         Validate that the flags are set properly for the comparison.
2017         (rx_gen_cond_branch_template): Remove.
2018         (rx_cc_modes_compatible): Remove.
2019         (mode_from_flags): New.
2020         (flags_from_code): Rename from flags_needed_for_conditional.
2021         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
2022         (rx_select_cc_mode): Likewise.
2023         (rx_split_fp_compare): New.
2024         (rx_split_cbranch): New.
2025         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
2026         (*cbranchsi4): Use match_operator and rx_split_cbranch.
2027         (*cbranchsf4): Similarly.
2028         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
2029         match_operator and rx_split_cbranch.
2030         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
2031         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
2032         (*cmpsi): Rename from cmpsi.
2033         (*tstsi): Rename from tstsi.
2034         (*cmpsf): Rename from cmpsf; use CC_Fmode.
2035         (*conditional_branch): Rename from conditional_branch.
2036         (*reveresed_conditional_branch): Remove.
2037         (b<code>): Remove expander.
2038         * config/rx/rx-protos.h: Update.
2039
2040         * config/rx/rx.c (rx_compare_redundant): Remove.
2041         * config/rx/rx.md (cmpsi): Don't use it.
2042         * config/rx/rx-protos.h: Update.
2043
2044         * config/rx/rx-modes.def (CC_F): New mode.
2045         * config/rx/rx.c (rx_select_cc_mode): New.
2046         * config/rx/rx.h (SELECT_CC_MODE): Use it.
2047         * config/rx/rx-protos.h: Update.
2048
2049 2011-01-17  Richard Henderson  <rth@redhat.com>
2050
2051         * except.c (dump_eh_tree): Fix stray ; after for statement.
2052
2053 2011-01-17  Richard Guenther  <rguenther@suse.de>
2054
2055         PR tree-optimization/47313
2056         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
2057         handling before copying the body.  Properly deal with
2058         by-reference result in SSA form.
2059
2060 2011-01-17  Ian Lance Taylor  <iant@google.com>
2061
2062         PR target/47219
2063         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
2064         (struct_value_alias_set): Don't define.
2065         (sparc_option_override): Don't set sparc_sr_alias_set and
2066         struct_value_alias_set.
2067         (save_or_restore_regs): Use gen_frame_mem rather than calling
2068         set_mem_alias_set.
2069         (sparc_struct_value_rtx): Likewise.
2070
2071 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
2072
2073         PR target/47318
2074         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
2075         __m128i.
2076         (_mm_maskstore_pd): Likewise.
2077         (_mm_maskload_ps): Likewise.
2078         (_mm_maskstore_ps): Likewise.
2079         (_mm256_maskload_pd): Change mask to __m256i.
2080         (_mm256_maskstore_pd): Likewise.
2081         (_mm256_maskload_ps): Likewise.
2082         (_mm256_maskstore_ps): Likewise.
2083
2084         * config/i386/i386-builtin-types.def: Updated.
2085         (ix86_expand_special_args_builtin): Likewise.
2086
2087         * config/i386/i386.c (bdesc_special_args): Update
2088         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
2089         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
2090         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
2091         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
2092
2093         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
2094         Use <avxpermvecmode> on mask register.
2095         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
2096
2097 2011-01-17  Olivier Hainque  <hainque@adacore.com>
2098             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
2099             Eric Botcazou  <ebotcazou@adacore.com>
2100
2101         PR target/46655
2102         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
2103         if <= USHRT_MAX in 32-bit mode.
2104
2105 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2106
2107         * doc/install.texi (Configuration, Specific): Wrap long
2108         lines in examples.  Allow line wrapping in long options
2109         and URLs where beneficial for PDF output.
2110
2111 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
2112
2113         * config/mips/mips.c (mips_classify_symbol): Don't return
2114         SYMBOL_PC_RELATIVE for nonlocal labels.
2115
2116 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
2117
2118         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
2119
2120 2011-01-15  Jan Hubicka  <jh@suse.cz>
2121
2122         PR tree-optimization/47276
2123         * ipa.c (function_and_variable_visibility): Do not try to mark alias
2124         declarations as needed.
2125
2126 2011-01-15  Martin Jambor  <mjambor@suse.cz>
2127
2128         * common.opt (fdevirtualize): New flag.
2129         * doc/invoke.texi (Option Summary): Document it.
2130         * opts.c (default_options_table): Add devirtualize flag.
2131         * ipa-prop.c (detect_type_change): Return immediately if
2132         devirtualize flag is not set.
2133         (detect_type_change_ssa): Likewise.
2134         (compute_known_type_jump_func): Likewise.
2135         (ipa_analyze_virtual_call_uses): Likewise.
2136
2137 2011-01-14  Martin Jambor  <mjambor@suse.cz>
2138
2139         PR tree-optimization/45934
2140         PR tree-optimization/46302
2141         * ipa-prop.c (type_change_info): New type.
2142         (stmt_may_be_vtbl_ptr_store): New function.
2143         (check_stmt_for_type_change): Likewise.
2144         (detect_type_change): Likewise.
2145         (detect_type_change_ssa): Likewise.
2146         (compute_complex_assign_jump_func): Check for dynamic type change.
2147         (compute_complex_ancestor_jump_func): Likewise.
2148         (compute_known_type_jump_func): Likewise.
2149         (compute_scalar_jump_functions): Likewise.
2150         (ipa_analyze_virtual_call_uses): Likewise.
2151         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
2152
2153 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2154
2155         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
2156         * config/i386/i386.opt (msse5): New Alias.
2157
2158 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2159
2160         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
2161         * config/sparc/linux64.h (CC1_SPEC): Likewise.
2162         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2163         * config/sparc/sparc.h (CC1_SPEC): Likewise.
2164
2165 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2166
2167         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
2168         -mcpu options.
2169         * config/sparc/linux64.h (CC1_SPEC): Likewise.
2170         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2171         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
2172         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
2173         Likewise.
2174         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
2175
2176 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2177
2178         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
2179
2180 2011-01-14  Mike Stump  <mikestump@comcast.net>
2181
2182         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
2183         * config/fr30/fr30.md: Likweise
2184         (movsi_push): Likewise.
2185         (movsi_pop): Likewise.
2186         (enter_func): Likewise.
2187         * config/moxie/moxie.md (movsi_push): Likewise.
2188         (movsi_pop): Likewise.
2189
2190 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2191
2192         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
2193         %{no_archive} %{exact_version}.
2194         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
2195         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
2196         %{no_archive} %{exact_version}.
2197         * config/mips/openbsd.h (LINK_SPEC): Likewise.
2198         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
2199         * config/mips/vxworks.h: Likewise.
2200
2201 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2202
2203         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
2204
2205 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2206
2207         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
2208         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
2209
2210 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2211
2212         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
2213         -nodefaultlib.
2214
2215 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2216
2217         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
2218         for mcpu not cpu.
2219         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
2220         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
2221         not cpu.
2222         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
2223         Don't handle -shlib.
2224
2225 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2226
2227         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
2228         (CC1_SPEC): Don't handle -profile.
2229
2230 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2231
2232         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
2233         * config/mips/mips.h (CC1_SPEC): Likewise.
2234
2235 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2236
2237         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
2238         * config/mips/mips.h (CC1_SPEC): Likewise.
2239
2240 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2241
2242         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
2243         * config/m32r/linux.h (LINK_SPEC): Likewise.
2244         * config/mips/linux.h (LINK_SPEC): Likewise.
2245         * config/mips/linux64.h (LINK_SPEC): Likewise.
2246         * config/sparc/linux.h (LINK_SPEC): Likewise.
2247         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
2248         LINK_SPEC): Likewise.
2249         * config/xtensa/linux.h (LINK_SPEC): Likewise.
2250
2251 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2252
2253         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
2254         %{version:-v}.
2255         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
2256
2257 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2258
2259         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
2260         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
2261
2262 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
2263
2264         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
2265
2266 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2267
2268         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
2269         supports -Bstatic/-Bdynamic.
2270         * configure: Regenerate.
2271
2272 2011-01-14  Jan Hubicka  <jh@suse.cz>
2273         Jack Howarth <howarth@bromo.med.uc.edu>
2274
2275         PR target/46037
2276         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
2277         when checking debug_info_level. Test write_symbols instead of
2278         debug_hooks->var_location when setting flag_var_tracking_uninit.
2279
2280 2011-01-14  Richard Guenther  <rguenther@suse.de>
2281
2282         PR tree-optimization/47179
2283         * target.def (ref_may_alias_errno): New target hook.
2284         * targhooks.h (default_ref_may_alias_errno): Declare.
2285         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
2286         (default_ref_may_alias_errno): New function.
2287         * target.h (struct ao_ref_s): Declare.
2288         * tree-ssa-alias.c: Include target.h.
2289         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
2290         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
2291         (targhooks.o): Likewise.
2292         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
2293         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
2294
2295 2011-01-14  Richard Guenther  <rguenther@suse.de>
2296
2297         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
2298
2299 2011-01-14  Richard Guenther  <rguenther@suse.de>
2300
2301         PR tree-optimization/47280
2302         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
2303         return CFG changes.
2304         (tree_ssa_forward_propagate_single_use_vars): Deal with
2305         CFG changes from associate_plusminus.
2306
2307 2011-01-14  Richard Guenther  <rguenther@suse.de>
2308
2309         PR middle-end/47281
2310         Revert
2311         2011-01-11  Richard Guenther  <rguenther@suse.de>
2312
2313         PR tree-optimization/46076
2314         * tree-ssa.c (useless_type_conversion_p): Conversions from
2315         unprototyped to empty argument list function types are useless.
2316
2317 2011-01-14  Richard Guenther  <rguenther@suse.de>
2318
2319         PR tree-optimization/47286
2320         * tree-ssa-structalias.c (new_var_info): Register variables are global.
2321
2322 2011-01-14  Martin Jambor  <mjambor@suse.cz>
2323
2324         PR middle-end/46823
2325         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
2326
2327 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
2328
2329         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
2330         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2331         * config/xtensa/xtensa.c (xtensa_libcall_value,
2332         xtensa_function_value_regno_p): New functions.
2333         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2334
2335 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
2336
2337         PR c++/47213
2338         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
2339         PE specific hook.
2340         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
2341         New function prototype.
2342         * config/i386/winnt.c (i386_pe_assemble_visibility):
2343         Warn only if attribute was specified by user.
2344
2345 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2346
2347         PR target/47251
2348         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
2349         floating point.
2350         (floatunsdidf2_fcfidu): Ditto.
2351
2352 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2353
2354         * config/s390/s390.c (print_operand_address): Replace 'error' with
2355         'output_operand_lossage'.
2356         (print_operand): Likewise.
2357
2358 2011-01-13  Jeff Law  <law@redhat.com>
2359
2360         PR rtl-optimization/39077
2361         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
2362         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
2363         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
2364         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
2365         * gcse.c (prune_insertions_deletions): New function.
2366         (compute_pre_data): Use it.
2367
2368 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
2369
2370         PR debug/PR46973
2371         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
2372         static function.
2373         (prune_unused_types_mark): Use it.
2374
2375 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
2376
2377         PR rtl-optimization/45352
2378         * sel-sched.c: Update copyright years.
2379         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
2380         in the advancing loop when we have issued issue_rate insns.
2381
2382 2011-01-12  Richard Henderson  <rth@redhat.com>
2383
2384         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
2385         (TARGET_MD_ASM_CLOBBERS): New.
2386
2387         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
2388         (TARGET_DELEGITIMIZE_ADDRESS): New.
2389
2390         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
2391         (clzsi2, *bsch): New patterns.
2392
2393         * config/mn10300/mn10300.md (INT): New mode iterator.
2394         (*mov<INT>_clr): New pattern, and peep2 to generate it.
2395
2396         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
2397         flag_split_wide_types.
2398
2399         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
2400         (mn10300_trampoline_init): Rewrite without a template, an immediate
2401         load and a direct branch.
2402         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
2403
2404 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
2405
2406         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2407         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
2408         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
2409         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2410
2411 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
2412
2413         PR debug/47209
2414         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
2415         of type.
2416
2417 2011-01-12  Jan Hubicka  <jh@suse.cz>
2418
2419         PR driver/47244
2420         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
2421         (PLUGIN_COND_CLOSE): New macro.
2422         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
2423
2424 2011-01-12  Richard Guenther  <rguenther@suse.de>
2425
2426         PR lto/47259
2427         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
2428         register variables in a MEM_REF.
2429
2430 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
2431
2432         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
2433         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
2434         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
2435         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2436         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2437         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
2438         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
2439         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
2440         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
2441         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
2442         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
2443         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
2444         * config/gnu-user.h: New.  Copied from linux.h.
2445         (LINUX_TARGET_STARTFILE_SPEC): Rename to
2446         GNU_USER_TARGET_STARTFILE_SPEC.
2447         (LINUX_TARGET_ENDFILE_SPEC): Rename to
2448         GNU_USER_TARGET_ENDFILE_SPEC.
2449         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
2450         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
2451         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
2452         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
2453         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
2454         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
2455         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
2456         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
2457         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
2458         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
2459         * config/arm/linux-eabi.h (CC1_SPEC): Use
2460         GNU_USER_TARGET_CC1_SPEC.
2461         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
2462         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
2463         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
2464         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
2465         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
2466         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
2467         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
2468         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
2469
2470 2011-01-12  Richard Guenther  <rguenther@suse.de>
2471
2472         PR other/46946
2473         * doc/invoke.texi (ffast-math): Document it is turned on
2474         with -Ofast.
2475
2476 2011-01-12  Jan Hubicka  <jh@suse.cz>
2477
2478         PR tree-optimization/47233
2479         * opts.c (common_handle_option): Disable ipa-reference with profile
2480         feedback.
2481
2482 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
2483
2484         * c-parser.c (c_parser_objc_at_property_declaration): Improved
2485         error message.
2486
2487 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
2488
2489         * c-parser.c (c_lex_one_token): Updated and reindented some
2490         comments.  No changes in code.
2491
2492 2011-01-11  Ian Lance Taylor  <iant@google.com>
2493
2494         * godump.c (go_output_var): Don't output the variable if there is
2495         already a type with the same name.
2496
2497 2011-01-11  Ian Lance Taylor  <iant@google.com>
2498
2499         * godump.c (go_format_type): Don't generate float80.
2500
2501 2011-01-11  Richard Henderson  <rth@redhat.com>
2502
2503         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
2504         declaration.  Rewrite for both speed and size.
2505         (mn10300_address_cost_1): Remove.
2506         (mn10300_register_move_cost): New.
2507         (mn10300_memory_move_cost): New.
2508         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
2509         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
2510         extensions, shifts, BSWAP, CLZ.
2511         (mn10300_wide_const_load_uses_clr): Remove.
2512         (TARGET_REGISTER_MOVE_COST): New.
2513         (TARGET_MEMORY_MOVE_COST): New.
2514         * config/mn10300/mn10300-protos.h: Update.
2515         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
2516
2517         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
2518         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
2519         * config/mn10300/mn10300-protos.h: Update.
2520         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
2521         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
2522         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
2523         (*test_int_bitfield, *test_byte_bitfield): Remove.
2524         (*bit_test, *subreg_bit_test): Remove.
2525         * config/mn10300/predicates.md (const_8bit_operand): Remove.
2526
2527         * config/mn10300/constraints.md ("c"): Rename from "A".
2528         ("A", "D"): New constraint letters.
2529         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
2530         (fmssf4, fnmasf4, fnmssf4): Likewise.
2531
2532         * config/mn10300/mn10300.md (isa): New attribute.
2533         (enabled): New attribute.
2534
2535         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
2536         (abssf2, negsf2): Define only for hardware fp.
2537         (sqrtsf2): Reformat.
2538         (addsf3, subsf3, mulsf3): Merge expander and insn.
2539
2540         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
2541         (DEBUGGER_AUTO_OFFSET): Remove.
2542         (DEBUGGER_ARG_OFFSET): Remove.
2543
2544         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
2545         Emit register stores with the same offsets as the hardware.
2546         (mn10300_store_multiple_operation): Don't check that the register
2547         save offsets are monotonic.
2548         * config/mn10300/mn10300-protos.h: Update.
2549
2550         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
2551
2552         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
2553         in terms of the value on the stack, not the MDR register.
2554
2555 2011-01-11  Jan Hubicka  <jh@suse.cz>
2556
2557         PR lto/45721
2558         PR lto/45375
2559         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
2560         (symbol_alias_set_destroy, symbol_alias_set_contains,
2561         propagate_aliases_backward): Declare.
2562         * lto-streamer-out.c (struct sets): New sturcture.
2563         (trivally_defined_alias): New function.
2564         (output_alias_pair_p): Rewrite.
2565         (output_unreferenced_globals): Fix output of alias pairs.
2566         (produce_symtab): Likewise.
2567         * ipa.c (function_and_variable_visibility): Set weak alias destination
2568         as needed in lto.
2569         * varasm.c (symbol_alias_set_t): Remove.
2570         (symbol_alias_set_destroy): Export.
2571         (propagate_aliases_forward, propagate_aliases_backward): New functions
2572         based on ...
2573         (compute_visible_aliases): ... this one; remove.
2574         (trivially_visible_alias): New
2575         (trivially_defined_alias): New.
2576         (remove_unreachable_alias_pairs): Rewrite.
2577         (finish_aliases_1): Reorganize code checking if alias is defined.
2578         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
2579         in LTO mode.
2580
2581 2011-01-11  Richard Guenther  <rguenther@suse.de>
2582
2583         PR tree-optimization/46076
2584         * tree-ssa.c (useless_type_conversion_p): Conversions from
2585         unprototyped to empty argument list function types are useless.
2586
2587 2011-01-11  Richard Guenther  <rguenther@suse.de>
2588
2589         PR middle-end/45235
2590         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
2591         volatile MEMs as MEM_READONLY_P.
2592
2593 2011-01-11  Richard Guenther  <rguenther@suse.de>
2594
2595         PR tree-optimization/47239
2596         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
2597
2598 2011-01-11  Jeff Law  <law@redhat.com>
2599
2600         PR tree-optimization/47086
2601         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
2602         IVs from statements that might throw.
2603
2604 2011-01-10  Jan Hubicka  <jh@suse.cz>
2605
2606         PR lto/45375
2607         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
2608
2609 2011-01-10  Jan Hubicka  <jh@suse.cz>
2610
2611         PR lto/45375
2612         * profile.c (read_profile_edge_counts): Ignore profile inconistency
2613         when correcting profile.
2614
2615 2011-01-10  Jan Hubicka  <jh@suse.cz>
2616
2617         PR lto/46083
2618         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
2619         DECL_FINI_PRIORITY.
2620         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
2621         Restore DECL_FINI_PRIORITY.
2622
2623 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2624
2625         * doc/gimple.texi: Fix quoting of multi-word return values in
2626         @deftypefn statements.  Ensure presence of return value.  Wrap
2627         overlong @deftypefn lines.
2628         (is_gimple_operand, is_gimple_min_invariant_address): Remove
2629         descriptions of removed functions.
2630         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
2631         of multi-word return value in @deftypefn statement.
2632
2633 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2634
2635         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
2636         (Conditional Expressions, Logical Operators)
2637         (Statement and operand traversals): Do not indent smallexample
2638         code.  Fix duplicate function argument in example.
2639
2640 2011-01-10  Jeff Law  <law@redhat.com>
2641
2642         PR tree-optimization/47141
2643         * ipa-split.c (split_function): Handle case where we are
2644         returning a value and the return block has a virtual operand phi.
2645
2646 2011-01-10  Jan Hubicka  <jh@suse.cz>
2647
2648         PR tree-optimization/47234
2649         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
2650         (pass_feedback_split_functions): Declare.
2651         * passes.c (init_optimization_passes): Add ipa-split as subpass of
2652         tree-profile.
2653         * ipa-split.c (gate_split_functions): Update comments; disable
2654         split-functions for profile_arc_flag and branch_probabilities.
2655         (gate_feedback_split_functions): New function.
2656         (execute_feedback_split_functions): New function.
2657         (pass_feedback_split_functions): New global var.
2658
2659 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2660
2661         PR lto/46760
2662         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
2663         calling gimple_call_set_cannot_inline.
2664
2665 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
2666
2667         * config/darwin-sections.def: Remove unused section.
2668
2669 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
2670
2671         PR c++/47218
2672         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
2673
2674 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
2675
2676         PR objc/47232
2677         * c-parser.c (c_parser_declaration_or_fndef): Improved
2678         error message.
2679
2680 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
2681
2682         * config/i386/winnt.c (i386_pe_start_function): Make sure
2683         to switch back to function's section.
2684
2685 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
2686
2687         PR gcc/46902
2688         PR testsuite/46912
2689         * plugin.c: Move include of dlfcn.h from here...
2690         * system.h: ... to here.
2691
2692 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2693
2694         * doc/cpp.texi (C++ Named Operators): Fix markup for header
2695         file name.
2696         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
2697         two extra empty pages in PDF output.
2698
2699 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
2700
2701         PR objc/47078
2702         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
2703         for error recovery purposes behave as if it was not specified so
2704         that the default type is usd.
2705
2706 2011-01-07  Jan Hubicka  <jh@suse.cz>
2707
2708         PR tree-optmization/46469
2709         * ipa.c (function_and_variable_visibility): Clear needed flags on
2710         nodes with external decls; handle weakrefs merging correctly.
2711
2712 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
2713
2714         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
2715         not false.
2716
2717 2011-01-07  Jan Hubicka  <jh@suse.cz>
2718
2719         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
2720         and no longer claim that gold is required for linker plugin.
2721         * configure: Regenerate.
2722         * gcc.c (PLUGIN_COND): New macro.
2723         (LINK_COMMAND_SPEC): Use it.
2724         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
2725         * config.in (HAVE_LTO_PLUGIN): New.
2726         * configure.ac (--with-lto-plugin): New parameter; autodetect
2727         HAVE_LTO_PLUGIN.
2728
2729 2011-01-07  Jan Hubicka  <jh@suse.cz>
2730
2731         PR tree-optimization/46367
2732         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
2733         when we can update original.
2734         (cgraph_mark_inline_edge): Sanity check.
2735         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
2736
2737 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2738
2739         * config/spu/spu.h (ASM_COMMENT_START): Define.
2740
2741 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
2742
2743         PR driver/42445
2744         * gcc.c (%>S): New.
2745         (SWITCH_KEEP_FOR_GCC): Likewise.
2746         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
2747         (do_spec_1): Handle "%>".
2748
2749         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
2750
2751 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
2752
2753         PR target/47201
2754         * config/i386/i386.c (ix86_delegitimize_address): If
2755         simplify_gen_subreg fails, return orig_x.
2756
2757         PR bootstrap/47187
2758         * value-prof.c (gimple_stringop_fixed_value): Handle
2759         lhs of the call properly.
2760
2761 2011-01-07  Jan Hubicka  <jh@suse.cz>
2762
2763         PR lto/45375
2764         * lto-opt.c (lto_reissue_options): Set flag_shlib.
2765
2766 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
2767
2768         * target.def (function_switched_text_sections): New hook.
2769         * doc/tm.texi: Regenerated.
2770         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2771         * final.c (default_function_switched_text_sections): New.
2772         (final_scan_insn): Call function_switched_text_sections when a
2773         mid-function section change occurs.
2774         * output.h (default_function_switched_text_sections): Declare.
2775         * config/darwin-protos.h (darwin_function_switched_text_sections):
2776         Likewise.
2777         * config/darwin.c (darwin_function_switched_text_sections): New.
2778         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2779
2780 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
2781
2782         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
2783         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
2784         the secondary code fragment when outputting for DWARF == 2.
2785
2786 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
2787
2788         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2789         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
2790         Remove.
2791         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
2792         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2793
2794 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2795
2796         PR debug/46704
2797         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
2798         when it is not empty.
2799
2800 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
2801
2802         Bobcat Enablement
2803         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
2804         (case ${target}): Add btver1.
2805         * config/i386/driver-i386.c (host_detect_local_cpu): Let
2806         -march=native recognize btver1 processors.
2807         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2808         btver1 def_and_undef
2809         * config/i386/i386.c (struct processor_costs btver1_cost): New
2810         btver1 cost table.
2811         (m_BTVER1): New definition.
2812         (m_AMD_MULTIPLE): Includes m_BTVER1.
2813         (initial_ix86_tune_features): Add btver1 tune.
2814         (processor_target_table): Add btver1 entry.
2815         (static const char *const cpu_names): Add btver1 entry.
2816         (software_prefetching_beneficial_p): Add btver1.
2817         (ix86_option_override_internal): Add btver1 instruction sets.
2818         (ix86_issue_rate): Add btver1.
2819         (ix86_adjust_cost): Add btver1.
2820         * config/i386/i386.h (TARGET_BTVER1): New definition.
2821         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
2822         (enum processor_type): Add PROCESSOR_BTVER1.
2823         * config/i386/i386.md (define_attr "cpu"): Add btver1.
2824
2825 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2826
2827         PR target/43309
2828         * config/i386/i386.c (legitimize_tls_address)
2829         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
2830         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
2831         (tls_initial_exec_64_sun): New pattern.
2832
2833 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
2834
2835         * doc/invoke.texi (Overall Options): Improve wording and markup
2836         of the description of -wrapper.
2837
2838 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
2839
2840         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
2841         rdynamic, threads): New Driver options.
2842
2843 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2844
2845         PR target/38118
2846         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
2847         if coming from .tdata.
2848         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2849
2850 2011-01-06  Jan Hubicka  <jh@suse.cz>
2851
2852         PR lto/47188
2853         * collect2.c (main): Do not enable LTOmode when plugin is active.
2854
2855 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2856
2857         PR other/45915
2858         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
2859         --version output if supported.
2860         * configure: Regenerate.
2861
2862 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
2863
2864         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
2865         Driver options.
2866
2867 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
2868
2869         PR c/47150
2870         * c-convert.c (convert): When converting a complex expression
2871         other than COMPLEX_EXPR to a different complex type, ensure
2872         c_save_expr is called instead of save_expr, unless in_late_binary_op.
2873         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
2874         when converting COMPLEX_TYPE.
2875
2876 2011-01-06  Ira Rosen  <irar@il.ibm.com>
2877
2878         PR tree-optimization/47139
2879         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
2880         only the last reduction value is used outside the loop.  Update
2881         documentation.
2882
2883 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
2884
2885         * config/rtems.opt: New.
2886         * config.gcc (*-*-rtems*): Use rtems.opt.
2887
2888 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
2889
2890         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
2891         processors do not support 3DNow instructions.
2892
2893 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2894
2895         * config/spu/spu.c (spu_option_override): Set parameter
2896         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
2897
2898 2011-01-05  Jan Hubicka  <jh@suse.cz>
2899
2900         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
2901         at the command line.
2902
2903 2011-01-05  Martin Jambor  <mjambor@suse.cz>
2904
2905         PR lto/47162
2906         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
2907         deltas on streamed outgoing edges.
2908         (output_node_opt_summary): Output info for outgoing edges only when
2909         the node is in new parameter set.
2910         (output_cgraph_opt_summary): New parameter set, passed to the two
2911         aforementioned functions.  Update its forward declaration and its
2912         callee too.
2913
2914 2011-01-05  Tom Tromey  <tromey@redhat.com>
2915
2916         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
2917         operator to c_finish_omp_atomic.
2918         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
2919         (build_unary_op): Update.
2920         (build_modify_expr): Update.
2921         (build_asm_expr): Update.
2922
2923 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2924
2925         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
2926         newly inserted insns.
2927         (pad_bb): Likewise.
2928         (spu_emit_branch_hint): Likewise.
2929         (insert_hbrp_for_ilb_runout): Likewise.
2930         (spu_machine_dependent_reorg): Call df_finish_pass after
2931         schedule_insns returns.
2932
2933 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2934
2935         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
2936
2937 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
2938
2939         PR tree-optimization/47005
2940         * tree-sra.c (struct access): Add 'non_addressable' bit.
2941         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
2942         (decide_one_param_reduction): Return 0 if the parameter is passed by
2943         reference and one of the accesses in the group is non_addressable.
2944
2945 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
2946
2947         PR tree-optimization/47056
2948         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
2949         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
2950         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
2951
2952 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
2953
2954         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
2955         initializer.  Skip view conversions from aggregate types.
2956
2957 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
2958
2959         PR bootstrap/47055
2960         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
2961
2962 2011-01-04  Philipp Thomas <pth@suse.de>
2963
2964         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
2965         obvious typo.
2966
2967 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2968
2969         * function.c (thread_prologue_and_epilogue_insns): Do not crash
2970         on empty epilogue sequences.
2971
2972 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
2973
2974         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
2975         non-static): New Driver options.
2976
2977 2011-01-04  Jie Zhang  <jie@codesourcery.com>
2978
2979         PR driver/47137
2980         * gcc.c (default_compilers[]): Set combinable field to 0
2981         for all assembly languages.
2982
2983 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
2984
2985         * config/mips/loongson3a.md: New file.
2986         * config/mips/mips.md: Include loongson3a.md.
2987         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
2988         TUNE_LOONGSON_3A.
2989
2990 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
2991
2992         PR middle-end/47017
2993         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
2994         instead of convert_memory_address_addr_space on the base expression.
2995
2996 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2997
2998         * config/spu/spu.c (spu_option_override): Update error text
2999         for bad -march= / -mtune= values.
3000
3001 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3002
3003         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
3004         if branch-hint optimization will be performed.
3005
3006 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
3007
3008         PR tree-optimization/47148
3009         * ipa-split.c (split_function): Convert arguments to
3010         DECL_ARG_TYPE if possible.
3011
3012         PR tree-optimization/47155
3013         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
3014         when computing uns.
3015
3016         PR rtl-optimization/47157
3017         * combine.c (try_combine): If undobuf.other_insn becomes
3018         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
3019         and set *new_direct_jump_p too.
3020
3021 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
3022
3023         PR tree-optimization/47021
3024         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
3025
3026 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
3027
3028         * gcc.c (process_command): Update copyright notice dates.
3029         * gcov.c (print_version): Likewise.
3030         * gcov-dump.c (print_version): Likewise.
3031         * mips-tfile.c (main): Likewise.
3032         * mips-tdump.c (main): Likewise.
3033
3034 2011-01-03  Martin Jambor  <mjambor@suse.cz>
3035
3036         PR tree-optimization/46801
3037         * tree-sra.c (type_internals_preclude_sra_p): Check whether
3038         aggregate fields start at byte boundary instead of the bit-field flag.
3039
3040 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
3041
3042         PR driver/47137
3043         * gcc.c (main): Revert revision 168407.
3044
3045 2011-01-03  Martin Jambor  <mjambor@suse.cz>
3046
3047         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
3048
3049 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3050
3051         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
3052         vector optab to expand vector/scalar shift, update gimple to vector.
3053
3054 2011-01-03  Martin Jambor  <mjambor@suse.cz>
3055
3056         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
3057         a thunk.
3058
3059 2011-01-03  Martin Jambor  <mjambor@suse.cz>
3060
3061         PR tree-optimization/46984
3062         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
3063         HOST_WIDE_INT.
3064         (cgraph_create_indirect_edge): Fixed line length.
3065         (cgraph_indirect_call_info): Declare.
3066         (cgraph_make_edge_direct) Update declaration.
3067         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
3068         (cgraph_create_indirect_edge): Use it.
3069         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
3070         callees.
3071         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
3072         the new thunk_delta representation.
3073         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
3074         HOST_WIDE_INT.
3075         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
3076         (ipa_read_indirect_edge_info): Likewise.
3077         * lto-cgraph.c (output_edge_opt_summary): New function.
3078         (output_node_opt_summary): Call it on all outgoing edges.
3079         (input_edge_opt_summary): New function.
3080         (input_node_opt_summary): Call it on all outgoing edges.
3081
3082 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
3083
3084         PR driver/47137
3085         * gcc.c (main): Don't check have_o when settting combine_inputs.
3086
3087 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
3088
3089         * regrename.c: Add general comment describing the pass.
3090         (struct du_head): Remove 'length' field.
3091         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
3092         (regrename_optimize): Do not sort chains.  Rework comments, add others.
3093         Force renaming to the preferred class (if any) in the first pass and do
3094         not consider registers that belong to it in the second pass.
3095         (create_new_chain): Do not set 'length' field.
3096         (scan_rtx_reg): Likewise.
3097
3098 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
3099
3100         PR tree-optimization/47140
3101         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
3102         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
3103         to bit_value_binop.
3104
3105         PR rtl-optimization/47028
3106         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
3107         parm_birth_insn instead of at the beginning of first bb.
3108
3109 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
3110
3111         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
3112         Remove the word "see" before "@pxref".
3113         * doc/rtl.texi: Remove the word "see" before "@pxref".
3114
3115 2011-01-01  Jan Hubicka  <jh@suse.cz>
3116
3117         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
3118         memory.
3119
3120 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
3121
3122         PR target/38662
3123         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
3124
3125 \f
3126 Copyright (C) 2011 Free Software Foundation, Inc.
3127
3128 Copying and distribution of this file, with or without modification,
3129 are permitted in any medium without royalty provided the copyright
3130 notice and this notice are preserved.