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