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