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