OSDN Git Service

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