OSDN Git Service

* doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-05-08  Chao-ying Fu  <fu@mips.com>
2
3         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
4         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
5         (smsub_widen_optab, umsub_widen_optab): Define.
6         * optabs.c (init_optabs): Initialize smsub_widen_optab and
7         umsub_widen_optab.
8         * genopinit.c (optabs): Fill in smsub_widen_optab and
9         umsub_widen_optab.
10         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
11         and umsub_widen_optab to implement multiply-subtract sequences.
12         * config/mips/mips.md (*msac<u>_di): Rename to...
13         (<u>msubsidi4): ...this.  Extend condition to include
14         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
15         of operand 0 to "ka" and use the three-operand form of msub<u>
16         for TARGET_DSPR2.
17         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
18         to define_expands.
19
20 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
21
22         PR rtl-optimization/28011
23         * reload.c (push_reload): Set dont_share if IN appears in OUT
24         also when IN is a PLUS rtx.
25         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
26         are same PLUS rtx.
27
28 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
29
30         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
31         call unshare_all_decls.
32         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
33         (unshare_all_decls): Remove.
34
35 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
36
37         PR 31847
38         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
39         dumps.
40
41 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
42             Nigel Stephens  <nigel@mips.com>
43
44         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
45         Update comments and all uses.
46         (MIN_FPRS_PER_FMT): Define.
47         * config/mips/mips.c (function_arg): Fix to correctly handle
48         the -mips32r2 -mfp64 -mabi=32 case.
49         (override_options): Enable use of odd-numbered registers for
50         SFmode values on MIPS32.
51         (mips_save_reg_p): Save whole floating-point register pair if
52         either half is used.
53         (compute_frame_size): Fix comment.
54
55 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
56
57         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
58         argument of type bool.
59         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
60         argument. Safely select temporary P register according to it.
61         (do_link): Change call site of add_to_reg accordingly.
62         (do_unlink): Add epilogue_p as a fourth argument and pass it
63         to add_to_reg.
64         (expand_interrupt_handler_epilogue): Change call of do_unlink
65         accordingly.
66         (bfin_expand_prologue): Add a third argument sibcall_p.
67         * config/bfin/bfin.md (epilogue): Change call of
68         bfin_expand_epilogue accordingly.
69         (sibcall_epilogue): Likewise.
70         (eh_return_internal): Likewise.
71                 
72         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
73         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
74         * config/bfin/bfin.c (bfin_handle_option): Handle
75         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
76         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
77         Support bf534, bf536 and bf561.
78         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
79
80 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
81
82         PR target/31854
83         * config/i386/i386.c (ix86_function_regparm): Process local
84         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
85         
86 2007-05-07  Mike Stump  <mrs@apple.com>
87
88         * doc/invoke.texi (Warning Options): Document that -Wempty-body
89         also checks for and while statements in C++.
90
91 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
92
93         * gcc.c (at_file_supplied): New variable.
94         (main): Set it if we expanded argv.
95         (do_spec_1): Pass an @-file to the linker if we were called with
96         an @-file argument and HAVE_GNU_LD.
97         * collect2.c (at_file_supplied): New variable.
98         (response_file): New variable.
99         (collect_exit): Unlink response_file if necessary.
100         (handler): Likewise.
101         (do_wait): Likewise.
102         (main): Set at_file_supplied if we expanded argv.
103         (collect_execute): Pass an @-file to subprocesses if we were called
104         with an @-file argument.
105         * configure.ac: Add define for HAVE_GNU_LD.
106         * configure: Regenerate.
107         * config.in: Regenerate.
108
109 2007-05-07   Naveen.H.S  <naveen.hs@kpitcummins.com>
110
111         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
112         operand to HI mode.
113         (mulsi3): New.
114         (divsi3): New.
115         (udivsi3): New.
116
117 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
118
119         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
120         (TARGET_ENCODE_SECTION_INFO): Re-define.
121         (m32c_encode_section_info): New
122         (function_vector_handler): New
123         (current_function_special_page_vector): New
124         (m32c_special_page_vector_p): New.
125         * config/m32c/m32c-protos.h (m32c_special_page_vector_p): 
126         Prototype.
127         * config/m32c/jump.md: Added instruction JSRS for functions 
128         with attribute "function_vector".
129         * doc/extend.texi (function_vector): Added description 
130         for M16C, M32C targets.
131
132 2007-05-07  DJ Delorie  <dj@redhat.com>
133
134         PR 31794
135         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
136         ashrpsi3, lshrpsi3): Update shift count constraint.
137
138 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
139             Nathan Froyd  <froydnj@codesourcery.com>
140
141         PR 22133
142         * c-incpath.c (add_path): Strip trailing path separators.
143
144 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
145
146         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
147         Free dominance info before purging EH edges.
148         (eliminate_degenerate_phis): Likewise.
149         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
150
151 2007-05-07  Jan Hubicka  <jh@suse.cz>
152
153         * gimplify.c (gimplify_expr): Do not crash when folding
154         (void *)(int)&a + 4.
155
156 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
157
158         PR driver/31694
159         * c-opts.c (lang_fortran): Make it non static.
160         * c-common.h (lang_fortran): New prototype.
161         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
162         -lang-fortran option was passed by the driver.
163
164 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
165
166         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
167         of ASSERT_CHECKING.  Tweak message.
168
169 2007-05-06  Revital Eres  <eres@il.ibm.com>
170
171         PR 30957
172         * loop-unroll.c (insert_var_expansion_initialization):
173         Initialize the expansions with -zero instead of +zero.
174
175 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
176
177         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
178         into pic and non-pic versions. Mark r19 as used for 
179         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used 
180         for tgd_load, tld_load and tie_load .
181         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
182         version of tgd_load, tld_load and tie_load depending on the 
183         value of flag_pic.
184
185 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
186             Jakub Jelinek  <jakub@redhat.com>
187
188         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
189         (__do_global_dtors_aux): Use more paranoid loop to run
190         destructors if HIDDEN_DTOR_LIST_END.
191         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
192
193 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
194
195         * varasm.c (align_variable): Don't increase alignment for
196         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
197         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
198
199 2007-05-04  Josh Conner  <jconner@apple.com>
200
201         * basic-block.h (cdi_direction): Assign values to all enumeration
202         constants.
203         (dom_computed): Remove.
204         (dom_info_state): New.
205         (set_dom_info_availability): New.
206         * tree-ssa-loop-im.c (determine_invariantness): Initialize
207         walk_data.dom_direction.
208         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
209         instead of dom_computed[].
210         (split_edge): Likewise.
211         (create_basic_block): Likewise.
212         (merge_blocks): Likewise.
213         * ifcvt.c (find_if_header): Likewise.
214         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
215         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
216         * tree-ssa.c (verify_ssa): Likewise.
217         * tree-cfg.c (tree_verify_flow_info): Likewise.
218         (remove_edge_and_dominated_blocks): Likewise.
219         * dominance.c (dom_computed): Make static.
220         (calc_dfs_tree_nonrec): Change third param to a bool.
221         (calc_dfs_tree): Change second param to a bool.
222         (calc_idioms): Change second param to a bool.  Use
223         dom_convert_dir_to_idx.
224         (init_dom_info): Validate dir before using.
225         (dom_convert_dir_to_idx): New.
226         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
227         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
228         (free_dominance_info): Use dom_convert_dir_to_idx.
229         (get_immediate_dominator): Likewise.
230         (set_immediate_dominator): Likewise.
231         (get_dominated_by): Likewise.
232         (redirect_immediate_dominators): Likewise.
233         (nearest_common_denominator): Likewise.
234         (dominated_by_p): Likewise.
235         (bb_dom_dfs_in): Likewise.
236         (bb_dom_dfs_out): Likewise.
237         (recount_dominator): Likewise.
238         (iterate_fix_dominators): Likewise.
239         (add_to_dominance_info): Likewise.
240         (delete_from_dominance_info): Likewise.
241         (first_dom_son): Likewise.
242         (next_dom_son): Likewise.
243         (dom_info_available_p): Likewise.
244         (dom_info_state): New.
245         (set_dom_info_availability): New.
246
247 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
248
249         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
250         Expander removed.
251         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
252
253 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
254         
255         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
256         (subdi3, subdi_carry): Delete.
257         
258 2007-05-04  Jan Hubicka  <jh@suse.cz>
259             Richard Guenther  <rguenther@suse.de>
260
261         * opts.c (decode_options): Do not fiddle with inlining
262         parameters in case of optimizing for size.
263         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
264         for size do nothing.
265         (cgraph_decide_inlining_of_small_function): When optimizing for
266         size never inline functions increasing caller size.
267         (cgraph_early_inlining): Inline for size when optimizing for size.
268
269 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
270
271         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
272         logical operations piecewise.
273         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
274         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
275         subdi_sesidi_di): Delete.
276         (add_with_carry): Produce carry in CC instead of a DREG to shorten
277         the generated sequence.  Allow three-reg add in constraints.  Rewrite
278         the rtl expression for carry to avoid zero_extend of a constant.
279         (sub_with_carry): New pattern.
280         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
281         different sequence not involving jumps.
282         (notbi): Now a named pattern.
283
284 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
285
286         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
287         Add the note about a significant loss of accuracy of some
288         mathematical routines when these options are used.
289
290 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
291
292         * haifa-sched.c (rtx_vec_t): New typedef.
293         (contributes_to_priority_p): Extract piece of priority () into new
294         static function.
295         (priority): Use the function.  Add assertion.
296         (rank_for_schedule, set_priorities): Add assertion to check that
297         insn's priority is initialized.
298         (clear_priorities, calc_priorities): Change signature.  Make it update
299         all relevant insns.  Update all callers ('add_to_speculative_block ()'
300         and 'create_block_check_twin ()').
301         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
302         Add new field 'priority_status'.
303         (INSN_PRIORITY_STATUS): New macro.
304         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
305
306 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
307
308         * sched-ebb.c (debug_ebb_dependencies): New static function.
309         (init_ready_list): Use it.
310
311         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
312         with changed signature and 'debug_rgn_dependencies ()'.
313         (debug_rgn_dependencies): New static function.
314         (init_ready_list): Use it.
315         
316         * sched-int.h (debug_dependencies): Declare.
317
318 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
319
320         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
321
322 2007-05-04  Dirk Mueller  <dmueller@suse.de>
323
324         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
325
326 2007-05-03  Jan Hubicka  <jh@suse.cz>
327
328         * fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
329         for pointer type in more cases than before.
330
331         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
332
333         * tree-object-size.c (plus_expr_object_size): When operand size is
334         unknown, return unknown.
335
336 2007-05-03  Dirk Mueller  <dmueller@suse.de>
337
338         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
339
340         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
341         options.
342
343         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
344
345 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
346
347         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
348
349 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
350
351         * config/soft-fp/double.h, config/soft-fp/extended.h,
352         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
353         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
354         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
355         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
356         glibc CVS.
357
358 2007-05-03  Ian Lance Taylor  <iant@google.com>
359
360         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
361         MASK_PPC_GFXOPT for 8540 or 8548.
362
363 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
364
365         * tree-vect-transform.c (vect_update_inits_of_drs): Use
366         vect_print_dump_info() to output debug information.
367
368 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
369
370         PR target/31768
371         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
372         operands of size 2 when operand is not MEM_P.
373
374 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
375
376         PR tree-optimization/30565
377         * lambda-code.c (perfect_nestify): Fix updating of dominators.
378
379 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
380
381         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
382         (umulsi3_highpart): Use them.
383         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
384         for final accumulator to D regisster tranfser.
385
386 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
387
388         PR tree-optimization/31699
389         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove wrong
390         code.
391         (vect_enhance_data_refs_alignment): Compute peel amount using 
392         TYPE_VECTOR_SUBPARTS instead of vf.     
393         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
394
395 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
396
397         PR bootstrap/31776
398         * system.h: Remove inclusion of double-int.h
399         * tree.h: Include double-int.h
400         * gengtype.c: Likewise
401         * cfgloop.h: Likewise
402         * Makefile.in: Adjust dependencies on double-int.h
403
404 2007-05-02  Eric Christopher  <echristo@apple.com>
405
406         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
407         -shared to -Zdynamiclib.
408
409 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
410
411         PR c++/31663
412         * c-common.c (strip_pointer_or_array_types): New function.
413         * c-common.h (strip_pointer_or_array_types): New function declaration.
414
415 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
416
417         PR tree-optimization/31771
418         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
419
420 2007-05-02  Paul Brook  <paul@codesourcery.com>
421
422         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
423
424 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
425
426         PR middle-end/29715
427         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
428         transformation.
429
430 2007-05-02  Nick Clifton  <nickc@redhat.com>
431
432         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
433
434 2007-05-02  Richard Guenther  <rguenther@suse.de>
435
436         PR tree-optimization/31146
437         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
438         argument, single_use_p.  If we have a single use that is
439         a conversion to the definition rhs type, propagate that rhs.
440         (forward_propagate_addr_expr): Pass single_use_p argument
441         to forward_propagate_addr_expr_1.
442
443 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
444
445         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
446         variable.
447
448 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
449
450         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
451         'AMD Family 10 core'.
452
453 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
454
455         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
456         and athlon64-sse3 as improved versions of k8, opteron and athlon64
457         with SSE3 instruction set support.
458         * doc/invoke.texi: Likewise.
459
460 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
461
462         * config/i386/i386.c (override_options): Tuning 32-byte loop
463         alignment for amdfam10 architecture. Increasing the max loop
464         alignment to 24 bytes.
465
466 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
467
468         * config/m68k/constraints.md: New.
469         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
470         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
471         EXTRA_CONSTRAINT): Remove.
472         * config/m68k/m68k.md: Include constraints.md.
473         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
474
475 2007-05-01  Ian Lance Taylor  <iant@google.com>
476
477         PR tree-optimization/31739
478         * tree-vrp.c (vrp_val_is_max): New static function.
479         (vrp_val_is_min): New static function.
480         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
481         copying the node.
482         (set_value_range): Use vrp_val_is_{max,min}.
483         (extract_range_from_assert): Likewise.
484         (extract_range_from_binary_expr): Likewise.
485         (extract_range_from_unary_expr): Likewise.
486         (dump_value_range, vrp_meet): Likewise.
487         (vrp_visit_phi_node): Likewise.
488         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
489
490 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
491
492         * config/i386/gmon-sol2.c (size_t): New type.
493         (intptr_t): Likewise.
494         (s_textsize): Declare as size_t.
495         (sbrk): Declare.
496         (monstartup): Use size_t for sizes.
497         (_mcount): Save and restore registers.
498         (internal_mcount): Pass 0 as the first argument to monstartup
499         in 64-bit mode.
500         (moncontrol): Convert pointer to appropriately sized integer
501         before passing to profil.
502
503 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
504
505         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
506         __NO_FPRS__, not just if _SOFT_DOUBLE.
507         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
508         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
509         also for E500 double.
510         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
511         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
512         && !TARGET_FPRS).
513
514 2007-05-01  Richard Guenther  <rguenther@suse.de>
515
516         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
517         is NULL.
518
519 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
520
521         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
522
523 2007-05-01  Jan Hubicka  <jh@suse.cz>
524
525         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
526         invariant.
527
528 2007-05-01  Jan Hubicka  <jh@suse.cz>
529
530         * tree.h (maybe_fold_offset_to_component_ref): Remove.
531         (maybe_fold_offset_to_reference): Declare.
532         * fold-const.c (fold_unary): Do not fold
533         (type *)&A into &A->field_of_type_and_offset_0
534         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
535         size is unknown, give up.
536         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
537         offsets.
538         (maybe_fold_offset_to_reference): New.
539         (maybe_fold_stmt_indirect): Use it.
540         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
541         * gimplify.c (gimplify_conversion): Canonicalize conversions to
542         field references.
543         (gimplify_expr): Likewise for plus_expr.
544
545 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
546
547         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
548         bsi_after_labels.  Always insert statements before bsi.
549         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
550         * predict.c (apply_return_prediction): Check for empty blocks.
551         * cfgexpand.c (lab_rtx_for_bb): New variable.
552         (label_rtx_for_bb): Do not create new tree labels.
553         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
554         (tree_expand_cfg): Initialize lab_rtx_for_bb.
555         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
556         creating edges.
557         (label_for_bb): Add field used.
558         (update_eh_label, main_block_label): Mark the label used.
559         (cleanup_dead_labels): Remove unused labels.
560
561 2007-05-01  Richard Guenther  <rguenther@suse.de>
562
563         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
564         if it is not about to be set.
565         (get_value_range): Do not pre-allocate equiv bitmap.
566         (update_value_range): No need to clear equiv field.
567         (add_equivalence): Change prototype to get bitmap pointer.
568         Allocate bitmap here if it is not already.
569         (extract_range_from_assert): Do not allocate bitmap here.
570         Update callers to add_equivalence.
571         (extract_range_from_ssa_name): Likewise.
572         (get_vr_for_comparison): New static helper.
573         (compare_name_with_value): Handle NULL equiv bitmap by
574         peeling the first iteration of the comparison loop.
575         Use get_vr_for_comparison.
576         (compare_names): Handle NULL equiv bitmaps by using fake
577         ones.  Use get_vr_for_comparison.
578
579 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
580
581         * double-int.c (mpz_set_double_int): Moved from
582         tree-ssa-loop-niter.c.
583         (mpz_get_double_int): Likewise; also, add option to wrap
584         out-of-range integers.
585         * double-int.h: New prototypes for above.
586         * tree.c (get_static_type_bounds): Moved from
587         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
588         TYPE_MAX_VALUE if they exist..
589         * tree.h: New prototype for above.
590         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
591         get_type_bounds calls.
592         (mpz_set_double_int): Move to double-int.c.
593         (get_type_bounds): Move to tree.c, rename to
594         get_static_type_bounds.
595         (mpz_to_double_int): Move to double-int.c, rename to
596         mpz_get_double_int.
597
598 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
599
600         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
601         DIV0 exception can fall through to a normal return.
602
603 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
604
605         PR middle-end/22156
606         Temporarily revert:
607         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
608         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
609         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
610         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
611         initialize align to silence bogus warning.
612         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
613         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
614         all_no_warning.
615         (struct sra_walk_fns): Remove use_all parameter from use.
616         (sra_hash_tree): Handle BIT_FIELD_REFs.
617         (sra_elt_hash): Don't hash bitfld blocks.
618         (sra_elt_eq): Skip them in parent compares as well.  Handle
619         BIT_FIELD_REFs.
620         (sra_walk_expr): Don't maintain or pass down use_all_p.
621         (scan_use): Remove use_all parameter.
622         (scalarize_use): Likewise.  Re-expand assignment to
623         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
624         output, and re-scalarize after output.  Don't mark anything
625         for no warning.
626         (scalarize_ldst): Adjust.
627         (scalarize_walk_gimple_modify_statement): Likewise.
628         (build_element_name_1): Handle BIT_FIELD_REFs.
629         (instantiate_element): Don't warn for any element whose parent
630         is used as a whole.
631         (instantiate_missing_elements_1): Return the sra_elt.
632         (canon_type_for_field): New.
633         (try_instantiate_multiple_fields): New.
634         (instantiate_missing_elemnts): Use them.
635         (mark_no_warning): Removed.
636         (generate_one_element_ref): Handle BIT_FIELD_REFs.
637         (REPLDUP, sra_build_elt_assignment): New.
638         (generate_copy_inout): Use them.
639         (generate_element_copy): Likewise.  Handle bitfld differences.
640         (generate_element_zero): Don't recurse for blocks.  Use
641         sra_build_elt_assignment.
642         (generate_one_element_int): Take elt instead of var.  Use
643         sra_build_elt_assignment.
644         (generate_element_init_1): Adjust.
645         (scalarize_use, scalarize_copy): Use REPLDUP.
646         (scalarize_ldst): Move assert before dereference.
647         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
648
649 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
650
651         PR C++/31721
652         * tree.c (reconstruct_complex_type): Reconstruct a reference
653         correctly.
654         Also use the same mode for the pointer as the old pointer type.
655
656 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
657
658         * doc/trouble.texi (Interoperation): Remove note about Ultrix
659         Fortran compiler.
660
661 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
662
663         PR rtl-optimization/31676
664         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
665         (df_refs_record): Call it.
666
667 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
668
669         * rtl.def (SS_ABS): New code.
670         * config/bfin/bfin.c (print_operand): New modifier 'v'.
671         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
672         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
673         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
674         (bfin_init_builtins): Define them.
675         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
676         (bfin_expand_builtin): ... and handle the others here.
677         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
678         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
679         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
680         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
681         operand is only HImode.
682
683 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
684
685         * regclass.c (scan_one_insn): Remove splitting of
686         two address insns.
687
688 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
689             Nigel Stephens  <nigel@mips.com>
690
691         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
692
693 2007-04-28  Jan Hubicka  <jh@suse.cz>
694
695         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
696         insn_locators_alloc instead of insn_locators_initialize;
697         call reset_block_changes.
698         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
699         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
700         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
701         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
702         * config/score/score.c (th_output_mi_thunk): Likewise.
703         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
704         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
705         tolerate uninitialized locator info.
706
707         Re-apply:
708         * function.c (init_function_start): Don't init line number info.
709         (expand_function_end): Update.
710         (reset_block_changes, record_block_change, finalize_block_changes,
711         check_block_change, free_block_changes): Kill.
712         * function.h (reset_block_changes, record_block_change,
713         finalize_block_changes, check_block_change, free_block_changes): Remove
714         prototypes.
715         (struct function): Remove ib_boundaries_block.
716         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
717         Use curr_insn_locator to initialize locator.
718         (emit_line_note): Remove.
719         * cfgexpand.c (expand_gimple_cond_expr): Update.
720         (construct_exit_block): Likewise.
721         (tree_expand_cfg): Initialize/finalize locators.
722         * expr.c (expand_expr_real): Update.
723         * cfglayout.c (line_locators_locs, line_locators_lines,
724         file_locators_locs, file_locators_files): Remove.
725         (set_block_levels): Move to cfgexpand.c.
726         (insn_locators_initialize): Remove.
727         (pass_insn_locators_initialize): Remove.
728         (locations_locators_locs, locations_locators_vals): New static vars.
729         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
730         Likewise.
731         (insn_locators_alloc, insn_locators_finalize,
732         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
733         New functions.
734         (locator_location): New.
735         (locator_line, locator_file): Rewrite.
736         * rtl.h (emit_line_note): Kill.
737         (insn_locators_alloc, insn_locators_finalize,
738         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
739         Declare.
740         * tree-inline.c (initialize_cfun): Do not initialize
741         ib_boundaries_block.
742         * passes.c (pass_insn_locators_initialize): Remove.
743
744 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
745
746         * tree-cfg.c (move_block_to_fn): Release bb from dominance
747         info.  Update last_basic_block correctly.
748
749 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
750
751         PR target/31701
752         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
753         register itself to hold the offset constant.  Tell flow the use
754         of r4 and r5 when they are used.
755
756 2007-04-27  Richard Guenther  <rguenther@suse.de>
757
758         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
759         if we simplified anything.
760         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
761         warnings until we did a simplification and the stmt was not
762         marked as TREE_NO_WARNING.
763
764 2007-04-27  Mike Stump  <mrs@apple.com>
765
766         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
767
768 2007-04-27  Ian Lance Taylor  <iant@google.com>
769
770         PR middle-end/31710
771         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
772         TYPE_MAX_VALUE exist, convert them to the new type.
773
774 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
775
776         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
777         if it claims to be available.
778         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
779         edge is redirected.
780         (perform_tree_ssa_dce): Always free postdominators.
781
782 2007-04-27  Richard Henderson  <rth@redhat.com>
783
784         * config/alpha/predicates.md (aligned_memory_operand): Mark
785         as define_special_predicate.
786         (unaligned_memory_operand, normal_memory_operand): Likewise.
787         (reg_or_unaligned_mem_operand): Remove.
788         (any_memory_operand): Match the documentation and check for
789         non-renumbered pseudos during reload.
790         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
791         alpha_secondary_reload_class, update to new interface, make static.
792         Handle CQImode like HImode.  Remove FP subreg check.
793         (alpha_expand_mov): Use replace_equiv_address.
794         (alpha_expand_mov_nobwx): Use any_memory_operand.
795         (TARGET_SECONDARY_RELOAD): New.
796         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
797         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
798         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
799         * config/alpha/alpha.md: ... here.
800         (RELOAD12, reloadmode): New.
801         (movcqi): New.
802         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
803         Don't handle the aligned case here.
804         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
805         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
806         reload_inhi_help.  Don't expect a scratch register.
807         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
808         reload_outhi_help.
809         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
810
811 2007-04-27  Richard Guenther  <rguenther@suse.de>
812
813         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
814
815 2007-04-27  Richard Guenther  <rguenther@suse.de>
816
817         PR tree-optimization/30965
818         PR tree-optimization/30978
819         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
820         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
821         (find_equivalent_equality_comparison): Likewise.
822         (simplify_cond): Likewise.
823         (get_prop_source_stmt): New helper.
824         (get_prop_dest_stmt): Likewise.
825         (can_propagate_from): Likewise.
826         (remove_prop_source_from_use): Likewise.
827         (combine_cond_expr_cond): Likewise.
828         (forward_propagate_comparison): New function.
829         (forward_propagate_into_cond): Rewrite to use fold for
830         tree combining.
831         (tree_ssa_forward_propagate_single_use_vars): Call
832         forward_propagate_comparison to propagate comparisons.
833
834 2007-04-27  Richard Guenther  <rguenther@suse.de>
835
836         PR tree-optimization/31715
837         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
838         sure to do computation on the offset in an appropriate
839         signed type.
840
841 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
842
843         * reload.h (elimination_target_reg_p): Declare.
844         * reload.c (find_reloads): Don't apply the reg_rtx move
845         optimization if the SET_DEST satisfies elimination_target_reg_p.
846         * reload1.c (elimination_target_reg_p): New function.
847         (gen_reload): In the move/add2 fallback, make sure that op0
848         does not overlap the destination register.
849
850 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
851
852         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
853         transform only GIMPLE_MODIFY_STMTs.
854         * tree-complex.c (expand_complex_operations_1): Ditto.
855         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
856         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
857         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
858         branches.
859         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
860         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
861         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
862         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
863         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
864         slpeel_add_loop_guard): Ditto.
865         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
866         * lambda-code.c (perfect_nestify): Ditto.
867         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
868         before the first statement.
869         * tree-optimize.c (execute_free_datastructures): Fix comments.
870         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
871         * tree-flow.h (disband_implicit_edges): Declaration removed.
872         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
873         branches.
874         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle COND_EXPRs
875         without gotos.
876         (disband_implicit_edges, has_label_p): Removed.
877         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
878         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
879         branches.
880         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
881         side effects.
882         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
883         also for COND_EXPRs.
884         * cfgexpand.c (label_rtx_for_bb): New function.
885         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
886         Use label_rtx_for_bb to find the labels.
887         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
888         last block.  Detect fallthru edges.
889
890 2007-04-26  Ian Lance Taylor  <iant@google.com>
891
892         PR target/28675
893         * reload.c (find_reloads_subreg_address): If the address was valid
894         in the original mode but not in the new mode, reload the whole
895         address.
896
897 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
898
899         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
900         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
901         (cleanup_control_expr_graph): Do not invalidate dominance info.
902         Record altered blocks.
903         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
904         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
905         cleanup_tree_cfg_bb): New functions.
906         (remove_forwarder_block): Do not maintain the worklist of blocks.
907         Record altered blocks.
908         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
909         not over whole cfg.
910         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
911         delete_unreachable_blocks if dominators are not available.
912         * tree-inline.c (optimize_inline_calls): Free dominance information
913         earlier.
914         * tree-flow.h (remove_edge_and_dominated_blocks,
915         cfgcleanup_altered_bbs): Altered.
916         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
917         blocks.
918         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
919         functions.
920         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
921         do not invalidate dominators.
922
923 2007-04-26  Anatoly Sokolov <aesok@post.ru>
924
925         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
926         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
927         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
928         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
929
930 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
931
932         * config/ia64/ia64.md (ip_value):  Fix itanium_class attribute.
933
934 2007-04-26  Richard Guenther  <rguenther@suse.de>
935
936         PR tree-optimization/31703
937         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
938         the right type for the target of the bittest.
939
940 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
941
942         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
943         ix86_sol10_return_in_memory.
944
945 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
946
947         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
948         variables.
949
950 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
951
952         PR c++/31598
953         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
954
955         PR tree-optimization/30558
956         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
957         clear this_state.prev_try.
958
959 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
960             Mark Mitchell  <mark@codesourcery.com>
961
962         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
963         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
964         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
965
966 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
967
968         PR driver/31107
969         * doc/invoke.texi (%:print-asm-header): Document.
970         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
971         and -ftarget-help.
972         (static_spec_functions): Add print-asm-header.
973         (main): Print a banner before the --target-help linker options.
974         (print_asm_header_spec_function): New function.
975
976 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
977
978         PR target/31403
979         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
980         (movsf_ie): Likewise.
981
982 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
983
984         * doc/extend.texi ([Type Traits]): Adjust per N2255.
985
986 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
987
988         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an exception
989         for divide-by-zero.
990         (__umodsi3, __modsi3): Likewise.
991
992 2007-04-25  Dirk Mueller  <dmueller@suse.de>
993
994         * c-typeck.c (build_compound_expr): Annotate warning()
995         call with OPT_Wunused_value.
996         * tree-ssa.c (warn_uninit): Annotate warning with
997         OPT_Wunintialized.
998         * c-common.c (handle_sentinel_attribute): Annotate warning
999         call with OPT_Wattributes.
1000
1001 2007-04-25  Thiemo Seufer  <ths@mips.com>
1002
1003         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
1004         (mips16): Fix typo.
1005         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
1006         on to the assembler.  Improve handling of -mno-mips16.  Add handling
1007         of -mno-mips3d, -mno-dsp, -mno-dspr2.
1008         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
1009         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
1010         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
1011
1012 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
1013
1014         PR target/31680
1015         * config/i386/winnt.c (i386_pe_file_end): Strip only
1016         USER_LABEL_PREFIX when writing export name.
1017
1018 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
1019
1020         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
1021         sh/elf.h, vx-common.h and vxworks.h.
1022         * config/sh/sh.h: Include config/vxworks-dummy.h.
1023         (SUBTARGET_OVERRIDE_OPTIONS): Define.
1024         (OVERRIDE_OPTIONS): Use it.
1025         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
1026         (vxworks_picreg): New pattern.
1027         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
1028         VXWORKS_OS_CPP_BUILTINS.
1029         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
1030         to their VXWORKS_* equivalents.
1031         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
1032         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
1033         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
1034         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
1035         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
1036         -mrtp/-fPIC multilibs.
1037         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
1038         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
1039         (MULTILIB_OSDIRNAMES): Delete.
1040
1041 2007-04-25  Anatoly Sokolov <aesok@post.ru>
1042
1043         PR target/18989
1044         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
1045
1046 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
1047
1048         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
1049         rounding mode to be specified by the caller.
1050         (real_to_mpfr) Likewise.
1051         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
1052         include new arguments.
1053         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
1054
1055 2007-04-24  Ian Lance Taylor  <iant@google.com>
1056
1057         PR tree-optimization/31605
1058         * tree-vrp.c (set_value_range): Check that min and max are not
1059         both overflow infinities.
1060         (set_value_range_to_value): New static function.
1061         (extract_range_from_binary_expr): Call set_value_range_to_value.
1062         (extract_range_from_cond_expr): Likewise.
1063         (extract_range_from_expr): Likewise.
1064         (extract_range_from_unary_expr): Likewise.  Don't create a range
1065         which overflows on both sides.
1066         (vrp_meet): Check for a useless range.
1067         (vrp_visit_phi_node): If we see a constant which looks like an
1068         overflow infinity, turn off the TREE_OVERFLOW flag.
1069
1070 2007-04-24  Ian Lance Taylor  <iant@google.com>
1071
1072         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
1073
1074 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
1075
1076         PR diagnostic/25923
1077         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
1078         diagnostic message is being built.
1079         * tree-pretty-print.c (dump_generic_node): Only write the
1080         formatted text into BUFFER's stream if we are not building a
1081         diagnostic message.
1082         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
1083         dump_generic_node.
1084         * Makefile.in (toplev.o): Depend on tree-pass.h.
1085
1086 2007-04-24  Ian Lance Taylor  <iant@google.com>
1087
1088         PR tree-optimization/31602
1089         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
1090         conditionals in the copied loop header.
1091         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
1092         warnings if TREE_NO_WARNING is set.
1093         * doc/invoke.texi (Warning Options): Clarify that
1094         -Wstrict-overflow does not warn about loops.
1095
1096 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
1097
1098         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
1099         expand on the comment about _Decimal128 arguments and check the
1100         integer result of the modulus operation; for 64-bit ELF ABI, ensure
1101         that _Decimal128 argument uses even/odd register pair.
1102         (function_arg): Ditto.
1103
1104 2007-04-24  Hui-May Chang <hm.chang@apple.com>
1105
1106         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
1107         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
1108
1109 2007-04-24  Richard Guenther  <rguenther@suse.de>
1110             Olga Golovanevsky  <olga@il.ibm.com>
1111
1112         * fold-const.c (multiple_of_p): Check for bottom
1113         to be zero.
1114
1115 2007-04-24  Richard Henderson  <rth@redhat.com>
1116
1117         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
1118         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
1119         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
1120         looking for non-zero bits shifted out.  Avoid a recursive call
1121         when constructing the scalar.
1122         (__floatundisf): Likewise.
1123
1124 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
1125
1126         * dwarf2out.c (field_byte_offset): Move the existing logic
1127         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
1128         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
1129
1130 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
1131
1132         PR target/31641
1133         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant length
1134         argument of 0 for memset.
1135         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
1136         unsigned shift instead of the signed variant.
1137
1138 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
1139
1140         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
1141         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
1142         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
1143         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
1144         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
1145         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
1146         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
1147         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
1148         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
1149         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
1150         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
1151         "mul<mode>3", "div<mode>3"): Insn definitions added.
1152         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
1153         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
1154         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
1155         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
1156         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
1157         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
1158         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
1159         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
1160         TARGET_FLOAT_FORMAT): Macro definitions removed.
1161         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
1162         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
1163         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
1164         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
1165         (s390_gen_rtx_const_DI): Function removed.
1166         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
1167
1168 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
1169
1170         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
1171         over an external ffs function.
1172
1173 2007-04-24  Chao-ying Fu  <fu@mips.com>
1174             Richard Sandiford  <richard@nildram.co.uk>
1175
1176         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
1177         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
1178         (smadd_widen_optab, umadd_widen_optab): Define.
1179         * optabs.c (init_optabs): Initialize smadd_widen_optab and
1180         umadd_widen_optab.
1181         * genopinit.c (optabs): Fill in smadd_widen_optab and
1182         umadd_widen_optab.
1183         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
1184         and umadd_widen_optab to implement multiply-add sequences.
1185         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
1186         (<u>maddsidi4): ...this.  Extend condition to include
1187         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
1188         of operand 0 to "ka" and use the three-operand form of madd<u>
1189         for TARGET_DSPR2.
1190         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
1191         to define_expands.
1192         * config/mips/constraints.md (ka): New register constraint.
1193
1194 2007-04-24  Jan Hubicka  <j@suse.cz>
1195
1196         Revert:
1197
1198         2007-04-23  Jan Hubicka  <jh@suse.cz>
1199         * function.c (init_function_start): Don't init line number info.
1200         (expand_function_end): Update.
1201         (reset_block_changes, record_block_change, finalize_block_changes,
1202         check_block_change, free_block_changes): Kill.
1203         * function.h (reset_block_changes, record_block_change,
1204         finalize_block_changes, check_block_change, free_block_changes): Remove
1205         prototypes.
1206         (struct function): Remove ib_boundaries_block.
1207         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
1208         Use curr_insn_locator to initialize locator.
1209         (emit_line_note): Remove.
1210         * cfgexpand.c (expand_gimple_cond_expr): Update.
1211         (construct_exit_block): Likewise.
1212         (tree_expand_cfg): Initialize/finalize locators.
1213         * expr.c (expand_expr_real): Update.
1214         * cfglayout.c (line_locators_locs, line_locators_lines,
1215         file_locators_locs, file_locators_files): Remove.
1216         (set_block_levels): Move to cfgexpand.c.
1217         (insn_locators_initialize): Remove.
1218         (pass_insn_locators_initialize): Remove.
1219         (locations_locators_locs, locations_locators_vals): New static vars.
1220         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
1221         Likewise.
1222         (insn_locators_alloc, insn_locators_finalize,
1223         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
1224         New functions.
1225         (locator_location): New.
1226         (locator_line, locator_file): Rewrite.
1227         * rtl.h (emit_line_note): Kill.
1228         (insn_locators_alloc, insn_locators_finalize,
1229         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
1230         Declare.
1231         * tree-inline.c (initialize_cfun): Do not initialize
1232         ib_boundaries_block.
1233         * passes.c (pass_insn_locators_initialize): Remove.
1234
1235 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
1236
1237         * doc/invoke.texi: Removed leading '-' from option index entries.
1238
1239 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
1240
1241         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
1242         Use phi_nodes_ptr.
1243         (create_phi_node): Use set_phi_nodes.
1244         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
1245         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
1246         (combine_blocks):  Use bb_stmt_list and set_bb_stmt_list.
1247         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
1248         (bsi_start, bsi_last): Use bb_stmt_list.
1249         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
1250         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
1251         Traverse the statements using tsi iterator.
1252         * basic-block.h (struct basic_block_def): Fields stmt_list
1253         and phi_nodes moved to ...
1254         (struct tree_bb_info): ... new structure.
1255         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
1256         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
1257         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
1258         (tree_verify_flow_info): Verify that il.tree is not set for
1259         entry and exit block.
1260         (tree_split_block): Use set_bb_stmt_list.
1261
1262 2007-04-23  Mike Stump  <mrs@apple.com>
1263
1264         * config/i386/i386.c (ix86_tune_features
1265         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
1266         nocona and core2.
1267
1268 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1269
1270         * config/i386/i386.md (prefix_extra): New attribute.
1271         (length): Add prefix_extra.
1272
1273         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
1274         (sse2_movntv2di): Likewise.
1275         (sse2_cvtps2dq): Likewise.
1276         (sse2_cvtpd2pi): Likewise.
1277         (sse2_cvttpd2pi): Likewise.
1278         (*sse2_cvtpd2ps): Likewise.
1279         (*add<mode>3): Likewise.
1280         (sse2_ssadd<mode>3): Likewise.
1281         (sse2_usadd<mode>3): Likewise.
1282         (*sub<mode>3): Likewise.
1283         (sse2_sssub<mode>3): Likewise.
1284         (sse2_ussub<mode>3): Likewise.
1285         (*mulv8hi3): Likewise.
1286         (*smulv8hi3_highpart): Likewise.
1287         (*umulv8hi3_highpart): Likewise.
1288         (sse2_umulv2siv2di3): Likewise.
1289         (sse2_pmaddwd): Likewise.
1290         (ashr<mode>3): Likewise.
1291         (lshr<mode>3): Likewise.
1292         (ashl<mode>3): Likewise.
1293         (sse2_ashlti3): Likewise.
1294         (sse2_lshrti3): Likewise.
1295         (*umaxv16qi3): Likewise.
1296         (*smaxv8hi3): Likewise.
1297         (*uminv16qi3): Likewise.
1298         (*sminv8hi3): Likewise.
1299         (sse2_eq<mode>3): Likewise.
1300         (sse2_gt<mode>3): Likewise.
1301         (*and<mode>3): Likewise.
1302         (sse2_nand<mode>3): Likewise.
1303         (*ior<mode>3): Likewise.
1304         (*xor<mode>3): Likewise.
1305         (sse2_packsswb): Likewise.
1306         (sse2_packssdw): Likewise.
1307         (sse2_packuswb): Likewise.
1308         (sse2_punpckhbw): Likewise.
1309         (sse2_punpcklbw): Likewise.
1310         (sse2_punpckhwd): Likewise.
1311         (sse2_punpcklwd): Likewise.
1312         (sse2_punpckhdq): Likewise.
1313         (sse2_punpckldq): Likewise.
1314         (sse2_punpckhqdq): Likewise.
1315         (sse2_punpcklqdq): Likewise.
1316         (*sse2_pinsrw): Likewise.
1317         (*sse2_pextrw): Likewise.
1318         (sse2_pshufd_1): Likewise.
1319         (sse2_uavgv16qi3): Likewise.
1320         (sse2_uavgv8hi3): Likewise.
1321         (sse2_psadbw): Likewise.
1322         (sse2_pmovmskb): Likewise.
1323         (*sse2_maskmovdqu): Likewise.
1324         (*sse2_maskmovdqu_rex64): Likewise.
1325         (sse4a_extrqi): Likewise.
1326         (sse4a_extrq): Likewise.
1327         (sse3_lddqu): Set prefix_rep.
1328         (sse3_addsubv4sf3): Likewise.
1329         (sse3_haddv4sf3): Likewise.
1330         (sse3_hsubv4sf3): Likewise.
1331         (sse_cvtss2si): Likewise.
1332         (sse_cvtss2si_2): Likewise.
1333         (sse_cvtss2siq): Likewise.
1334         (sse_cvtss2siq_2): Likewise.
1335         (sse_cvttss2si): Likewise.
1336         (sse_cvttss2siq): Likewise.
1337         (sse2_cvttps2dq): Likewise.
1338         (sse3_movshdup): Likewise.
1339         (sse3_movsldup): Likewise.
1340         (sse2_cvtsd2si): Likewise.
1341         (sse2_cvtsd2si_2): Likewise.
1342         (sse2_cvtsd2siq): Likewise.
1343         (sse2_cvtsd2siq_2): Likewise.
1344         (sse2_cvttsd2si): Likewise.
1345         (sse2_cvttsd2siq): Likewise.
1346         (*sse2_cvtpd2dq): Likewise.
1347         (*sse2_cvttpd2dq): Likewise.
1348         (sse2_pshuflw_1): Likewise.
1349         (sse2_pshufhw_1): Likewise.
1350         (sse4a_insertqi): Likewise.
1351         (sse4a_insertq): Likewise.
1352         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
1353         (ssse3_phadddv4si3): Likewise.
1354         (ssse3_phaddswv8hi3): Likewise.
1355         (ssse3_phsubwv8hi3): Likewise.
1356         (ssse3_phsubdv4si3): Likewise.
1357         (ssse3_phsubswv8hi3): Likewise.
1358         (ssse3_pmaddubswv8hi3): Likewise.
1359         (ssse3_pmulhrswv8hi3): Likewise.
1360         (ssse3_pshufbv16qi3): Likewise.
1361         (ssse3_psign<mode>3): Likewise.
1362         (ssse3_palignrti): Likewise.
1363         (abs<mode>2): Likewise.
1364         (ssse3_phaddwv4hi3): Set prefix_extra.
1365         (ssse3_phadddv2si3): Likewise.
1366         (ssse3_phaddswv4hi3): Likewise.
1367         (ssse3_phsubwv4hi3): Likewise.
1368         (ssse3_phsubdv2si3): Likewise.
1369         (ssse3_phsubswv4hi3): Likewise.
1370         (ssse3_pmaddubswv4hi3): Likewise.
1371         (ssse3_pmulhrswv4hi3): Likewise.
1372         (ssse3_pshufbv8qi3): Likewise.
1373         (ssse3_psign<mode>3): Likewise.
1374         (ssse3_palignrdi): Likewise.
1375         (abs<mode>2): Likewise.
1376         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
1377         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
1378         (sse2_pmovmskb): Set mode to SI instead of V2DF.
1379
1380 2007-04-23  Nick Clifton  <nickc@redhat.com>
1381
1382         * params.def: Fix formatting of emacs local variables.
1383
1384 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1385
1386         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
1387         move if inter-unit move isn't allowed.
1388         Don't split moving the first element of V2DI to DI to inter-unit
1389         move if inter-unit move isn't allowed.
1390
1391 2007-04-23  Richard Guenther  <rguenther@suse.de>
1392
1393         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
1394         and CDI_POST_DOMINATORS separately.
1395
1396 2007-04-23  Nick Clifton  <nickc@redhat.com>
1397
1398         * c.opt (Wformat-contains-nul): Add warning attribute.
1399
1400 2007-04-23  Jan Hubicka  <jh@suse.cz>
1401
1402         * function.c (init_function_start): Don't init line number info.
1403         (expand_function_end): Update.
1404         (reset_block_changes, record_block_change, finalize_block_changes,
1405         check_block_change, free_block_changes): Kill.
1406         * function.h (reset_block_changes, record_block_change,
1407         finalize_block_changes, check_block_change, free_block_changes): Remove
1408         prototypes.
1409         (struct function): Remove ib_boundaries_block.
1410         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
1411         Use curr_insn_locator to initialize locator.
1412         (emit_line_note): Remove.
1413         * cfgexpand.c (expand_gimple_cond_expr): Update.
1414         (construct_exit_block): Likewise.
1415         (tree_expand_cfg): Initialize/finalize locators.
1416         * expr.c (expand_expr_real): Update.
1417         * cfglayout.c (line_locators_locs, line_locators_lines,
1418         file_locators_locs, file_locators_files): Remove.
1419         (set_block_levels): Move to cfgexpand.c.
1420         (insn_locators_initialize): Remove.
1421         (pass_insn_locators_initialize): Remove.
1422         (locations_locators_locs, locations_locators_vals): New static vars.
1423         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
1424         Likewise.
1425         (insn_locators_alloc, insn_locators_finalize,
1426         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
1427         New functions.
1428         (locator_location): New.
1429         (locator_line, locator_file): Rewrite.
1430         * rtl.h (emit_line_note): Kill.
1431         (insn_locators_alloc, insn_locators_finalize,
1432         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
1433         Declare.
1434         * tree-inline.c (initialize_cfun): Do not initialize
1435         ib_boundaries_block.
1436         * passes.c (pass_insn_locators_initialize): Remove.
1437
1438 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1439
1440         PR middle-end/31448
1441         * expr.c (reduce_to_bit_field_precision): Handle
1442         CONST_INT rtx's.
1443
1444 2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
1445
1446         PR tree-optimization/24659
1447         * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
1448         OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
1449         (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
1450         * genopinit.c (optabs): Rename vec_pack_mod_optab
1451         to vec_pack_trunc_optab.
1452         * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
1453         early for scalar floating point operands for NOP_EXPR.
1454         (vectorizable_type_promotion): Ditto.
1455         * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
1456         vec_pack_trunc_optab.
1457         (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
1458
1459         * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
1460         * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
1461         Rename from VEC_PACK_MOD_EXPR.
1462         (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
1463         * expr.c (expand_expr_real_1): Ditto.
1464         * tree-inline.c (estimate_num_insns_1): Ditto.
1465         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1466
1467         * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
1468         (vec_unpacks_lo_v4sf): Ditto.
1469         (vec_pack_trunc_v2df): Ditto.
1470         (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
1471         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
1472         (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
1473
1474         * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
1475         vec_pack_mod_v8hi.
1476         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
1477
1478         * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
1479         Rename from VEC_PACK_MOD_EXPR.  This expression also represent
1480         packing of floating point operands.
1481         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
1482         represent unpacking of floating point operands.
1483         * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
1484         [vec_unpacks_hi]: Ditto.
1485         [vec_unpacks_lo]: Ditto.
1486
1487 2007-04-22  Jan Hubicka  <jh@suse.cz>
1488
1489         * final.c (rest_of_handle_final): Call
1490         targetm.asm_out.constructor/targetm.asm_out.destructor
1491         * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
1492         proper priority via decl_*_priority_insert.
1493         * c-common.c (c_expand_body): Likewise.
1494
1495 2007-04-22  Richard Guenther  <rguenther@suse.de>
1496
1497         PR tree-optimization/29789
1498         * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
1499         (rewrite_reciprocal): New helper split out from
1500         determine_invariantness_stmt.
1501         (rewrite_bittest): Likewise.
1502         (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
1503         A & (1 << B) if (1 << B) is loop invariant but (A >> B)
1504         is not.
1505
1506 2007-04-22  Revital Eres  <eres@il.ibm.com>
1507
1508         * loop-unroll.c (var_to_expand): New field to support also
1509         insns of the form x = something + x.
1510         (analyze_insn_to_expand_var): Use it.
1511         (expand_var_during_unrolling): Likewise.
1512
1513 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
1514
1515         * predict.c: Include pointer-set.h.
1516         (bb_predictions): New variable.
1517         (tree_predicted_by_p, tree_predict_edge,
1518         remove_predictions_associated_with_edge): Use bb_predictions map
1519         instead of bb->predictions.
1520         (clear_bb_predictions, assert_is_empty): New functions.
1521         (combine_predictions_for_bb): Use bb_predictions map.  Call
1522         clear_bb_predictions.
1523         (tree_estimate_probability): Create and free bb_predictions map.
1524         * Makefile.in (predict.o): Add pointer-set.h dependency.
1525         * basic-block.h (struct basic_block_def): Remove predictions
1526         field.
1527         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
1528
1529 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1530
1531         PR target/31480
1532         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
1533         is null.
1534
1535 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1536
1537         * timevar.c (timevar_print): Change reference of --disable-checking to
1538         --enable-checking=release.  Also warn if assert checking is disabled.
1539
1540 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1541
1542         PR C/30265
1543         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
1544         decl as addressable if the compound literal was marked as
1545         addressable.
1546         Mark the decl as a gimple register if it is a complex or
1547         vector decl and does not live in memory.
1548
1549 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1550
1551         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
1552         (GENERIC_NEXT): New function macro.
1553         (PHI_CHAIN): Use phi_node's new chain variable.
1554         (tree_phi_node): Change tree_common to tree_base
1555         and add the chain field.
1556         * tree-phinodes.c (make_phi_node): Don't set
1557         TREE_TYPE on the new node.
1558         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
1559         instead of checking GIMPLE_TUPLE_P in chain_next.
1560         * tree-vect-transform.c
1561         (get_initial_def_for_induction): Look at
1562         PHI_RESULT_TREE for the type of the phi node.
1563         (update_vuses_to_preheader): Use PHI_CHAIN
1564         instead of TREE_CHAIN on the phi node.
1565         * tree-ssa-structalias.c (compute_points_to_sets):
1566         Likewise.
1567         (ipa_pta_execute): Likewise.
1568
1569 2007-04-21  Richard Guenther  <rguenther@suse.de>
1570
1571         PR middle-end/31136
1572         * fold-const.c (fold_unary): Call fold_convert_const on the
1573         original tree.
1574
1575 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
1576
1577         * gcse.c (store_killed_in_insn): Handle PARALLELs.
1578         (store_killed_in_pat): New.
1579
1580 2007-04-20  Richard Henderson  <rth@redhat.com>
1581
1582         PR target/31628
1583         * config/i386/i386.c (type_has_variadic_args_p): Look for any
1584         TREE_LIST with a void_type_node value, not void_list_node exactly.
1585
1586 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
1587
1588         * doc/standards.texi: Re-arrange into language-specific
1589         subsections. Add a C++ section, documenting which standards we
1590         support.
1591
1592 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
1593
1594         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
1595         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
1596
1597 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
1598
1599         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
1600         ecrti.o and crtbegin.o.
1601         (LIB_DEFAULT_SPEC): Include -lc.
1602         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
1603
1604 2007-04-20  Richard Henderson  <rth@redhat.com>
1605
1606         PR target/28623
1607         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
1608         argument; update all callers.
1609         (get_unaligned_offset): New.
1610         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
1611         get_unaligned_address, just pass on the address directly.
1612         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
1613         the subreg in the helper patterns.
1614         (unaligned_extendqidi_le): Use get_unaligned_offset.
1615         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
1616         (unaligned_extendhidi_be): Likewise.
1617         (unaligned_extendhidi): Tidy.
1618         * config/alpha/alpha-protos.h: Update.
1619
1620 2007-04-20  Richard Henderson  <rth@redhat.com>
1621
1622         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
1623         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1624         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
1625         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
1626         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
1627         (CPP_SPEC): Don't include %(cpp_subtarget).
1628         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
1629         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
1630         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
1631
1632 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
1633
1634         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
1635         for __builtin_ia32_cmpordss.
1636
1637         PR tree-optimization/31632
1638         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
1639         and arg1 for optimizations of comparison against min/max values.
1640         Fold arg0 to arg1's type for optimizations of comparison against
1641         min+1 and max-1 values.
1642
1643 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
1644
1645         * reload.c (combine_reloads): When trying to use a dying register,
1646         check whether it's uninitialized and don't use if so.
1647
1648 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
1649
1650         * fold-const.c: Remove prototypes for native_encode_expr and
1651         native_interpret_expr.
1652         (native_encode_expr): Make non-static.
1653         (native_interpret_expr): Likewise.
1654         * tree.h: Add prototypes for the above.
1655
1656 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
1657
1658         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
1659         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
1660         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
1661         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
1662         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
1663         Add length attributes.
1664
1665 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
1666
1667         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
1668         not that it is 1.
1669
1670         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
1671         __STDC_WANT_DEC_FP__.
1672
1673 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
1674
1675         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
1676         for long double compatibility.
1677         * configure: Regenerate.
1678
1679 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
1680
1681         PR rtl-optimization/29841
1682         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
1683         trap instructions.
1684         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
1685         that may cause control flow transfer from being moved.
1686
1687 2007-04-18  Jan Hubicka  <jh@suse.cz>
1688
1689         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
1690         types.
1691
1692 2007-04-18  Eric Christopher  <echristo@apple.com>
1693
1694         * config/rs6000/darwin.md (load_macho_picbase): Use link register
1695         only. Update operands.
1696         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
1697         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
1698         link register to pic register.
1699
1700 2007-04-18  Dirk Mueller  <dmueller@suse.de>
1701
1702         PR diagnostic/31227
1703         * tree-vrp.c (search_for_addr_array): New.
1704         (check_array_bounds): Suppress warning about
1705         address taken of array refs if its not de-referenced.
1706
1707 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
1708
1709         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
1710         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
1711
1712         * tree-vectorizer.h (NITERS_KNOWN_P): New.
1713         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
1714         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
1715
1716         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
1717         dump print.
1718         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
1719         print message.
1720         (vect_analyze_scalar_cycles): Fix indentation.
1721         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
1722         (vect_mark_relevant): Include phis in relevance analysis.
1723
1724         * tree-vect-transform.c (vect_transform_loop): Add an assert.
1725
1726 2007-04-18  Anatoly Sokolov <aesok@post.ru>
1727
1728         * config/avr/avr.c (ptrreg_to_str): Replace error() with
1729         output_operand_lossage().
1730
1731 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
1732
1733         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
1734         the unused code for reduction without adjust-in-epilog to simplify the
1735         function.
1736
1737 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
1738
1739         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
1740         (S390_TDC_NEGATIVE_ZERO): New constant.
1741         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
1742         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
1743         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
1744         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
1745         (S390_TDC_POSITIVE_INFINITY): New constant.
1746         (S390_TDC_NEGATIVE_INFINITY): New constant.
1747         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
1748         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
1749         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
1750         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
1751         (S390_TDC_INFINITY): New constant.
1752         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
1753         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
1754         optimization for UNSPEC_CCZ_TO_INT.
1755         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
1756         ("*ccz_to_int"): New insn.
1757         ("isinf<mode>2"): New insn.
1758         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
1759         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
1760         (UNSPEC_CCZ_TO_INT): New constant.
1761
1762 2007-04-18  Richard Guenther  <rguenther@suse.de>
1763
1764         PR tree-optimization/19431
1765         PR tree-optimization/21463
1766         * tree-pass.h (pass_phiprop): Declare.
1767         * passes.c (init_optimization_passes): New phiprop pass.
1768         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
1769         (phivn_valid_p): New helper function.
1770         (phiprop_insert_phi): Likewise.
1771         (propagate_with_phi): Likewise.
1772         (tree_ssa_phiprop): New propagator propagating loads
1773         through phi nodes if profitable.
1774
1775 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
1776
1777         * tree-vect-analyze.c (process_use): New function.
1778         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
1779         Check phis in all bbs.
1780         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
1781         assert.
1782
1783 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
1784
1785         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
1786         we use REG_EQUAL.
1787
1788 2007-04-17  Anatoly Sokolov <aesok@post.ru>
1789
1790         PR target/30483
1791         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
1792         error().
1793
1794 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
1795
1796         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
1797         on "0".
1798         (sse_vmmulv4sf3): Likewise.
1799         (sse2_vmaddv2df3): Likewise.
1800         (sse2_vmmulv2df3): Likewise.
1801
1802 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
1803
1804         PR rtl-optimization/31360
1805         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
1806         (target_reg_cost): New.
1807         (init_set_costs): Initialize target_reg_cost.  Add comments
1808         regarding the rationale of the costs.
1809         (global_cost_for_size): Renamed to...
1810         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
1811         of register pressure.
1812         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
1813         estimate_reg_pressure_cost.  Add number of ivs.
1814         (determine_set_costs): Dump target_reg_cost.
1815         * loop-invariant.c (gain_for_invariant):  Use
1816         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
1817         (best_gain_for_invariant, find_invariants_to_move): Remove
1818         n_inv_uses.
1819         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
1820         (target_reg_cost): Declare.
1821         (global_cost_for_size): Declaration removed.
1822         (estimate_reg_pressure_cost): Declare.
1823
1824 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
1825
1826         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
1827         regnos into even/odd register pairs.
1828         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
1829         TDmode similar to the other floating point modes.
1830         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
1831         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
1832         define_expand's.
1833         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
1834         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
1835         (movdd_hardfloat64): Use TARGET_MFPGPR.
1836
1837 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
1838
1839         * reload1.c (delete_output_reload): Don't count output in n_inherited.
1840
1841         Revert
1842         2005-01-05  Richard Henderson  <rth@redhat.com>
1843         PR rtl-opt/10692
1844         * reload1.c (do_input_reload): Restrict the optimization deleteing
1845         a previous output reload to RELOAD_FOR_INPUT.
1846
1847 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
1848
1849         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
1850         induc_vec_info_type.
1851         (vectorizable_induction): New function declaration.
1852         * tree-vect-transform.c (get_initial_def_for_induction): No need to
1853         check if already vectorized.  Find first place in BB where new stmts
1854         can be inserted.  Takes only one argument.
1855         (vectorizable_induction): New function.
1856         (vect_transform_stmt): Add case for induc_vec_info_type to call
1857         vectorizable_induction.
1858         (vect_transform_loop): Consider phis for vectorization.
1859         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
1860         condition.
1861         (analyze_operations): Call vectorizable_induction when analyzing phis.
1862         Fix comment.
1863         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
1864         (vect_mark_relevant): Include phis in relevance analysis.
1865         (vect_mark_stmts_to_be_vectorize): Likewise.
1866         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
1867
1868 2007-04-16  Lawrence Crowl  <crowl@google.com>
1869
1870         * doc/invoke.texi (Debugging Options): Add documentation for the
1871         -femit-struct-debug options -femit-struct-debug-baseonly,
1872         -femit-struct-debug-reduced, and
1873         -femit-struct-debug-detailed[=...].
1874
1875         * c-opts.c (c_common_handle_option): Add
1876         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
1877         and OPT_femit_struct_debug_detailed_.
1878         * c.opt: Add specifications for
1879         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
1880         and -femit-struct-debug-detailed[=...].
1881         * opts.c (set_struct_debug_option): Parse the
1882         -femit-struct-debug-... options.
1883         * opts.c (matches_main_base, main_input_basename,
1884         main_input_baselength, base_of_path, matches_main_base): Add
1885         variables and functions to compare header base name to compilation
1886         unit base name.
1887         * opts.c (should_emit_struct_debug): Add to determine to emit a
1888         structure based on the option.
1889         (dump_struct_debug) Also disabled function to debug this
1890         function.
1891         * opts.c (handle_options): Save the base name of the
1892         compilation unit.
1893
1894         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
1895         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
1896         This hook indicates if a type is generic.  Set it by default
1897         to "never generic".
1898         * langhooks.h (struct lang_hooks_for_types): Add a new hook
1899         to determine if a struct type is generic or not.
1900         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
1901         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
1902         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
1903         with live C++ hook.
1904
1905         * flags.h (enum debug_info_usage): Add an enumeration to describe
1906         a program's use of a structure type.
1907         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
1908         to indicate the program's usage of the type.  Filter structs based
1909         on the -femit-struct-debug-... specification.
1910         (gen_type_die): Split into two routines, gen_type_die and
1911         gen_type_die_with_usage.  gen_type_die is now a wrapper
1912         that assumes direct usage.
1913         (gen_type_die_with_usage): Replace calls to gen_type_die
1914         with gen_type_die_with_usage adding the program usage of
1915         the referenced type.
1916         (dwarf2out_imported_module_or_decl): Suppress struct debug
1917         information using should_emit_struct_debug when appropriate.
1918
1919 2007-04-16  Ian Lance Taylor  <iant@google.com>
1920
1921         PR tree-optimization/31522
1922         * tree-vrp.c (vr_phi_edge_counts): New static variable.
1923         (vrp_initialize): Allocate vr_phi_edge_counts.
1924         (vrp_visit_phi_node): Don't push to infinity if we saw a new
1925         executable edge.  Drop test for all constants.
1926         (vrp_finalize): Free vrp_phi_edge_counts.
1927
1928         * doc/cpp.texi (Common Predefined Macros): Clarify description of
1929         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
1930
1931         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
1932         predecessors at head rather than tail.
1933
1934 2007-04-16  Matthias Klose  <doko@debian.org>
1935
1936         * config/alpha/linux.h (CPP_SPEC): Define.
1937         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
1938
1939 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
1940
1941         * function.h: Remove sequence_stack extern declaration.
1942
1943 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
1944
1945         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
1946         TARGET_FIDOA.
1947         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
1948         defined.
1949
1950 2007-04-16  Anatoly Sokolov <aesok@post.ru>
1951
1952         * config/avr/avr.c (avr_arch_types): Rearranging  array.
1953         (enum avr_arch): Add.
1954         (avr_mcu_types): Use avr_arch enumeration constants instead of
1955         numbers.
1956         * config/avr/avr.h (LINK_SPEC): Simplify.
1957
1958 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
1959
1960         * config/m68k/m68k.c (m68k_libcall_value,
1961         m68k_function_value): Use macros for register names more.
1962
1963         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
1964         instead.
1965         (M68K_REGNAME): Use A6_REG.
1966         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
1967
1968 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1969
1970         PR middle-end/28071
1971         * sched-int.h (struct deps): Split field 'pending_lists_length' into
1972         'pending_read_list_length' and 'pending_write_list_length'.  Update
1973         comment.
1974         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
1975         to handle two length counters instead of one.  Update all uses.
1976         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
1977         two length counters instead of one.
1978         * sched-rgn.c (propagate_deps): Update to handle two length counters
1979         instead of one.
1980
1981 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
1982
1983         PR target/31582
1984         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
1985         copy of source, pass it to ix86_expand_vector_set and return
1986         it as target.
1987
1988 2007-04-16  David Ung  <davidu@mips.com>
1989             Joseph Myers  <joseph@codesourcery.com>
1990
1991         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
1992         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
1993         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
1994         Add 74K processor information.
1995         * config/mips/mips.md: Include 74k.md.
1996         (cpu): Add 74kc,74kf,74kx.
1997         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
1998         * config/mips/74k.md: New.
1999         * doc/invoke.texi (MIPS Options): Document 74K support.
2000
2001 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
2002
2003         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
2004         vectorizable_* functions.
2005         * tree-vect-transform.c (vectorizable_call): Add check for
2006         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
2007         (vectorizable_store): likewise.
2008         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
2009         Add comments.
2010         (vectorizable_operation, vectorizable_type_demotion): Likewise.
2011         (vectorizable_type_promotion, vectorizable_load): Likewise.
2012         (vectorizable_live_operation, vectorizable_condition): Likewise.
2013         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
2014         STMT_VINFO_LIVE_P.
2015         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
2016
2017 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
2018
2019         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
2020         register numbers more.
2021         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
2022         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
2023         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
2024         FUNCTION_VALUE_REGNO_P): Likewise.
2025         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
2026         STATIC_CHAIN_REGNUM): Likewise.
2027         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
2028         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
2029         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
2030         * config/m68k/m68k.md (FP_REG): New.
2031
2032 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
2033
2034         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
2035         alignment on fido.
2036
2037 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
2038
2039         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
2040         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
2041         comment typos.
2042
2043 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
2044
2045         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
2046         cold loops.
2047
2048 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2049
2050         PR c/31520
2051         * c-decl.c (finish_decl): Grab the type of the decl after the call
2052         to store_init_value.
2053
2054 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
2055
2056         * common.opt (fforward-propagate): Fix "Optimization" annotation.
2057
2058 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
2059
2060         PR c++/25874
2061         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
2062         post dominators and cleanup cfg before returning.
2063
2064 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
2065
2066         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
2067         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
2068
2069 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
2070
2071         * config.gcc: Recognize fido.
2072         * config/m68k/m68k-devices.def (fidoa): New.
2073         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
2074         __mfido__.
2075         (FL_FIDOA, TARGET_FIDOA): New.
2076         * config/m68k/m68k.opt (mfidoa): New.
2077
2078 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2079
2080         PR middle-end/31322
2081         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
2082         when a personality function is used.
2083
2084 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
2085
2086         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
2087
2088 2007-04-13  Mike Stump  <mrs@apple.com>
2089
2090         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
2091         we can...
2092         * config/darwin.opt (fapple-kext): Make C++ only.
2093         * config/darwin.c (darwin_override_options): Remove code to ensure
2094         -fapple-kext is given for C++ only.
2095
2096 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
2097
2098         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
2099         * config/mips/mips.c (override_options): Call
2100         SUBTARGET_OVERRIDE_OPTIONS, if defined.
2101
2102 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
2103
2104         * config/i386/i386.opt (msvr3-shlib): Removed.
2105
2106         * doc/invoke.texi: Remove -msvr3-shlib.
2107
2108 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
2109
2110         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
2111         with "popcnt" instruction.
2112
2113 2007-04-13  Richard Guenther  <rguenther@suse.de>
2114
2115         PR tree-optimization/21258
2116         * tree-vrp.c (compare_case_labels): New helper.
2117         (find_switch_asserts): New function.
2118         (find_assert_locations): Call it for SWITCH_EXPRs.
2119
2120 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
2121
2122         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
2123         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
2124         check is now implied in X87_FLOAT_MODE_P.
2125         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
2126         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
2127         (fix_trunc<mode>_i386_fisttp): Ditto.
2128         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
2129         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
2130         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
2131         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
2132         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
2133         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
2134         (unnamed_splitters): Ditto.
2135         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
2136         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
2137         FIRST_SSE_REG for local functions when SSE math is enabled or
2138         for functions with sseregparm attribute.
2139         (standard_80387_constant_p): Return -1 if mode is not
2140         X87_FLOAT_MODE_P.
2141         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
2142         (ix86_expand_compare): Ditto.
2143         (ix86_expand_carry_flag_compare): Ditto.
2144         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
2145         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
2146         DECIMAL_FLOAT_MODE_P.
2147         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
2148         of SCALAR_FLOAT_MODE_P.
2149         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
2150         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
2151         checks before FLOAT_MODE_P.
2152         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
2153         before FLOAT_MODE_P.
2154         [DIV]: Ditto.
2155         [NEG]: Ditto.
2156         [ABS]: Ditto.
2157         [SQRT]: Ditto.
2158         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
2159
2160 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
2161             Charles Wilson  <libtool@cwilson.fastmail.fm>
2162
2163         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
2164         (libgcc.mvars): Don't depend on them.
2165         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
2166         * exec-tool.in: New.
2167
2168 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
2169
2170         * doc/invoke.text (--help): Document --help=common.
2171
2172 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
2173
2174         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
2175
2176 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
2177
2178         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
2179         * genemit.c (main): Emit #include "integrate.h".
2180         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
2181         (LOADGP_RTP): New mips_loadgp_style.
2182         * config/mips/mips.h: Include config/vxworks-dummy.h.
2183         (TARGET_RTP_PIC): New macro.
2184         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
2185         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
2186         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
2187         for TARGET_RTP_PIC.
2188         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
2189         -mvxworks-pic when using -mrtp and a PIC option.
2190         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
2191         for RTP PIC.
2192         (mips_symbolic_constant_p, mips_symbolic_address_p)
2193         (mips_symbol_insns): Handle SYMBOL_HALF.
2194         (override_options): Warn about -G and -mrtp being used together.
2195         Initialize mips_lo_relocs[SYMBOL_HALF].
2196         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
2197         (mips_emit_loadgp): Handle LOADGP_RTP.
2198         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
2199         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
2200         (tablejump): Handle function-relative case table entries if
2201         TARGET_RTP_PIC.
2202         * config/mips/predicates.md (symbol_ref_operand): New predicate.
2203
2204 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
2205
2206         * config/mips/mips.md (load_call<mode>): Allow any general register.
2207         destination.
2208         (sibcall_value_internal, sibcall_value_multiple_internal)
2209         (call_value_internal, call_value_split, call_value_multiple_internal)
2210         (call_value_multiple_split): Remove constraints from operand 0.
2211
2212 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
2213
2214         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
2215         rather than loadgp_noshared.
2216         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
2217         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
2218         gen_loadgp.
2219         * config/mips/mips.md (loadgp): Rename to...
2220         (loadgp_newabi): ...this.
2221         (loadgp_noshared): Rename to...
2222         (loadgp_absolute): ...this.
2223
2224 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
2225
2226         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
2227         false for locally-binding symbols.
2228         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
2229
2230 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
2231
2232         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
2233         (SYMBOL_GOT_PAGE_OFST): ...this.
2234         (SYMBOL_GOT_GLOBAL): Rename to...
2235         (SYMBOL_GOT_DISP): ...this.
2236         (SYMBOL_GOTOFF_GLOBAL): Rename to...
2237         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
2238         * config/mips/mips.c (mips_global_symbol_p): New function.
2239         (mips_symbol_binds_local_p): Likewise.
2240         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
2241         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use mips_global_symbol_p
2242         and mips_symbol_binds_local_p.
2243         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
2244         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
2245         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
2246         SYMBOL_GOTOFF_DISP.
2247         (mips_ok_for_lazy_binding_p): New function.
2248         (mips_load_call_address, mips_expand_call): Use it.
2249         (mips_dangerous_for_la25_p): Likewise.
2250         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
2251         (*got_disp<mode>): Use got_disp_operand instead of
2252         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
2253         SYMBOL_GOTOFF_GLOBAL.
2254         (*got_page<mode>): Use got_page_ofst_operand instead of
2255         local_got_operand.
2256         * config/mips/predicates.md (const_call_insn_operand): Use
2257         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
2258         (global_got_operand): Rename to...
2259         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
2260         SYMBOL_GOT_GLOBAL.
2261         (local_got_operand): Rename to...
2262         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
2263         of SYMBOL_GOT_LOCAL.
2264
2265 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
2266
2267         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
2268         TARGET_CALL_CLOBBERED_GP.
2269         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
2270         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
2271         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
2272         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
2273         of TARGET_ABICALLS && !TARGET_NEWABI.
2274         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
2275         * config/mips/mips.c (mips_load_call_address): Check
2276         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
2277         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
2278         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
2279         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
2280         TARGET_ABICALLS && TARGET_NEWABI.
2281         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
2282         TARGET_ABICALLS.
2283         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
2284         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
2285         TARGET_ABICALLS && TARGET_NEWABI.
2286         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
2287         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
2288         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
2289         whether indirect calls must use $25.
2290         (mips_extra_live_on_entry): Check TARGET_GOT instead of
2291         TARGET_ABICALLS.
2292         * config/mips/mips.md (jal_macro): Check flag_pic and
2293         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
2294         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
2295         instead of TARGET_ABICALLS.
2296         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
2297         TARGET_ABICALLS && TARGET_OLDABI.
2298         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
2299         (sibcall): In the comment above the define_insn, mention
2300         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
2301         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
2302         instead of TARGET_ABICALLS.
2303
2304 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2305
2306         * doc/md.texi (Blackfin family constraints): Document PA and PB.
2307         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
2308         (MACFLAGS_MATCH_P): New macro.
2309         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
2310         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
2311         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
2312         the other MACFLAG constants.
2313         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
2314         (flag_machi): Tighten constraints.  Renumber some of the operands.
2315         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
2316         output template.
2317         (flag_machi_parts_acconly): New pattern.
2318         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
2319         used.
2320         (flag_macinit1hi): Tighten constraints.
2321         (flag_mul_macv2hi_parts_acconly): New pattern.
2322
2323         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
2324         Use a more efficient implementation.
2325         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
2326         inline sequences when not optimizing for size.
2327
2328         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
2329         movhi_high2low): Delete, merge functionality into...
2330         (packv2hi): ... this pattern.
2331
2332         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
2333         * config/bfin/bfin.opt (msim): New option.
2334         (mcpu=): New option.
2335         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
2336         (bfin_cpu_t): Typedef of enum bfin_cpu.
2337         (bfin_cpu_type): New declaration.
2338         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
2339         -msim and -mcpu= options.
2340         (LIB_SPEC): Likewise.
2341         * config/bfin/bfin.c (bfin_cpu_type): Define.
2342         (bfin_handle_option): Handle -mcpu= option.
2343         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
2344         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
2345         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
2346
2347 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
2348
2349         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
2350         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
2351         (powerpc-wrs-vxworksae): Use ${tm_file}.
2352         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
2353         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
2354         * config/i386/vx-common.h: New file.
2355
2356 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
2357
2358         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
2359         of crt0.o%s.
2360
2361 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
2362
2363         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
2364         ldxtr.
2365
2366 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
2367
2368         PR c++/31078
2369         PR c++/31103
2370         * c-common.c (c_build_qualified_type): Set canonical type
2371         appropriately.
2372
2373 2007-04-12  Richard Guenther  <rguenther@suse.de>
2374
2375         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
2376         lower bound and element size if lower bound is not zero
2377         or either of the ARRAY_REF operands is set.
2378
2379 2007-04-12  Richard Guenther  <rguenther@suse.de>
2380
2381         PR tree-optimization/24689
2382         PR tree-optimization/31307
2383         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
2384         indices by value.
2385         * gimplify.c (canonicalize_addr_expr): To be consistent with
2386         gimplify_compound_lval only set operands two and three of
2387         ARRAY_REFs if they are not gimple_min_invariant.  This makes
2388         it never at this place.
2389         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
2390
2391 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2392
2393         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
2394         null before emitting a .nsubspa directive.
2395
2396 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
2397
2398         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
2399         need_to_partition_p if there are no memory statements in the
2400         function.
2401
2402 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
2403
2404         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
2405         (gcd_of_steps_may_divide_p): New function.
2406         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
2407
2408 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2409
2410         * reload.c (find_reloads_toplev, find_reloads_address,
2411         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
2412         not a pointer equality test, to decide if we need to call
2413         push_reg_equiv_alt_mem.
2414
2415 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
2416
2417         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
2418         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
2419         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
2420
2421 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
2422
2423         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
2424         vector to be positive.
2425
2426 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
2427
2428         PR 30735
2429         PR 31090
2430         * doc/invoke.texi: Document --params max-aliased-vops and
2431         avg-aliased-vops.
2432         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
2433         debug_memory_partitions): Move to tree-flow.h
2434         * params.h (AVG_ALIASED_VOPS): Define.
2435         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
2436         users.
2437         (mp_info_t): Likewise.
2438         (get_mem_sym_stats_for): New.
2439         (set_memory_partition): Move from tree-flow-inline.h.
2440         (mark_non_addressable): Only clear the set of symbols for the
2441         partition if it exists.
2442         (dump_memory_partitions): Move from tree-ssa-operands.c
2443         (debug_memory_partitions): Likewise.
2444         (need_to_partition_p): New.
2445         (dump_mem_ref_stats): New.
2446         (debug_mem_ref_stats): New.
2447         (dump_mem_sym_stats): New.
2448         (debug_mem_sym_stats): New.
2449         (update_mem_sym_stats_from_stmt): New.
2450         (compare_mp_info_entries): New.
2451         (mp_info_cmp): Call it.
2452         (sort_mp_info): Change argument to a list of mem_sym_stats_t
2453         objects.
2454         (get_mpt_for): Move from tree-ssa-operands.c.
2455         (find_partition_for): New.
2456         (create_partition_for): Remove.
2457         (estimate_vop_reduction): New.
2458         (update_reference_counts): New.
2459         (build_mp_info): New.
2460         (compute_memory_partitions): Refactor.
2461         Document new heuristic.
2462         Call build_mp_info, update_reference_counts,
2463         find_partition_for and estimate_vop_reduction.
2464         (compute_may_aliases): Populate virtual operands before
2465         calling debugging dumps.
2466         (delete_mem_sym_stats): New.
2467         (delete_mem_ref_stats): New.
2468         (init_mem_ref_stats): New.
2469         (init_alias_info): Call it.
2470         (maybe_create_global_var): Remove alias_info argument.
2471         Get number of call sites and number of pure/const call sites
2472         from gimple_mem_ref_stats().
2473         (dump_alias_info): Call dump_memory_partitions first.
2474         (dump_points_to_info_for): Show how many times a pointer has
2475         been dereferenced.
2476         * opts.c (decode_options): For -O2 set --param
2477         max-aliased-vops to 500.
2478         For -O3 set --param max-aliased-vops to 1000 and --param
2479         avg-aliased-vops to 3.
2480         * fortran/options.c (gfc_init_options): Remove assignment to
2481         MAX_ALIASED_VOPS.
2482         * tree-flow-inline.h (gimple_mem_ref_stats): New.
2483         * tree-dfa.c (dump_variable): Dump memory reference
2484         statistics.
2485         Dump NO_ALIAS* settings.
2486         (referenced_var_lookup): Tidy.
2487         (mem_sym_stats): New.
2488         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
2489         and ORIG are different SSA names for a memory partition.
2490         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
2491         * tree-flow.h (struct mem_sym_stats_d): Define.
2492         (mem_sym_stats_t): Define.
2493         (struct mem_ref_stats_d): Define.
2494         (struct gimple_df): Add field mem_ref_stats.
2495         (enum noalias_state): Define.
2496         (struct var_ann_d): Add bitfield noalias_state.
2497         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
2498         debug_mem_ref_stats, debug_memory_partitions,
2499         debug_mem_sym_stats): Declare.
2500         * tree-ssa-structalias.c (update_alias_info): Update call
2501         sites, pure/const call sites and asm sites in structure
2502         returned by gimple_mem_ref_stats.
2503         Remove local variable IS_POTENTIAL_DEREF.
2504         Increase NUM_DEREFS if the memory expression is a potential
2505         dereference.
2506         Call update_mem_sym_stats_from_stmt.
2507         If the memory references memory, call
2508         update_mem_sym_stats_from_stmt for all the direct memory
2509         symbol references found.
2510         (intra_create_variable_infos): Set noalias_state field for
2511         pointer arguments according to the value of
2512         flag_argument_noalias.
2513         * tree-ssa-structalias.h (struct alias_info): Remove fields
2514         num_calls_found and num_pure_const_calls_found.
2515         (update_mem_sym_stats_from_stmt): Declare.
2516         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
2517         Set default value to 100.
2518         (PARAM_AVG_ALIASED_VOPS): Define.
2519
2520 2007-04-11  Richard Guenther  <rguenther@suse.de>
2521
2522         PR middle-end/31530
2523         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
2524         a * -b + c as c - a * b if we honor sign dependent rounding.
2525
2526 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2527
2528         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
2529         bfin_expand_strmov.
2530         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
2531         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
2532         variables.
2533         (initialize_trampoline): Don't use old-style function definition.
2534         (bfin_secondary_reload): Mark IN_P argument as unused.
2535
2536 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
2537
2538         PR tree-optimization/31343
2539         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
2540         (build_polynomial_chrec): Return a scalar when the evolution is zero.
2541         * testsuite/gcc.dg/vect/pr31343.c: New.
2542
2543 2007-04-10  Eric Christopher  <echristo@apple.com>
2544
2545         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
2546         * config/i386/i386.md (*cmpfp0): Use.
2547         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
2548         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
2549         (fix_trunc<mode>_i386_fisttp): Ditto.
2550         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
2551         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
2552         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
2553         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
2554         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
2555         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
2556         (unnamed_splitters): Ditto.
2557         * config/i386/i386.c (output_fix_trunc): Assert that
2558         we're not being passed a TFmode operand.
2559
2560 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
2561
2562         PR tree-optimization/31526
2563         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
2564         n_basic_blocks to find newly added blocks.
2565
2566 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
2567
2568         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
2569         alternative.
2570         (fix_trunc<mode>si_sse): Ditto.
2571         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
2572         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
2573         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
2574         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
2575         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
2576         expander using SSEMODEF mode macro.
2577         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
2578         expander using SSEMODEF mode macro.
2579         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
2580         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
2581         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
2582         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
2583         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
2584         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
2585         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
2586         Macroize insn using X87MODEF mode macro.
2587
2588 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
2589
2590         * config/i386/sse.md (sse2_pinsrw): Removed.
2591         (sse2_pextrw): Renamed to ...
2592         (*sse2_pextrw): This.
2593
2594 2007-04-09  Jan Hubicka  <jh@suse.cz>
2595
2596         PR target/27869
2597         * config/i386/sse.md
2598         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
2599         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
2600         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
2601         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
2602
2603 2007-04-09  Jan Hubicka  <jh@suse.cz>
2604
2605         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
2606         multiple fields of union.
2607
2608 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
2609
2610         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
2611         (create_preheaders): Check that loops are available.
2612         (fix_loop_structure): Clean up, improve comments.
2613         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
2614         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
2615         state flags.
2616         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
2617         * predict.c (tree_estimate_probability): Do not call
2618         calculate_dominance_info.  Call create_preheaders.
2619         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
2620         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
2621         flags.
2622         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
2623         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
2624         * tree-cfg.c (tree_split_edge): Make an assert more precise.
2625         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
2626         arguments.
2627
2628 2007-04-08  Jan Hubicka  <jh@suse.cz>
2629
2630         * tree.h (maybe_fold_offset_to_component_ref): Declare.
2631         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
2632         * fold-const.c (fold_unary): Use it.
2633
2634 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2635
2636         * varasm.c (assemble_variable): Remove call to
2637         lang_hooks.decls.prepare_assemble_variable.
2638         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
2639         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
2640         * langhooks.h (lang_hooks_for_decls): Remove
2641         prepare_assemble_variable.
2642
2643 2007-04-08  Mike Stump  <mrs@apple.com>
2644
2645         * config/i386/i386.c: Use inc/dec on Core2.
2646
2647 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
2648
2649         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
2650         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
2651         lhd_tree_inlining_end_inlining): Remove.
2652         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
2653         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
2654         end_inlining hooks.
2655         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
2656         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
2657         lhd_tree_inlining_end_inlining): Remove prototypes.
2658         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
2659         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
2660         LANG_HOOKS_TREE_INLINING_START_INLINING,
2661         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
2662
2663         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
2664         not set it.
2665
2666 2007-04-08  Anatoly Sokolov <aesok@post.ru>
2667
2668         PR target/29932
2669         * config/avr/predicates.md (io_address_operand): Delete predicate.
2670         (low_io_address_operand): Don't use 'mode' argument.
2671         (higth_io_address_operand): Rename ...
2672         (high_io_address_operand): ... to this. Don't use 'mode' argument.
2673         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
2674         for above change.
2675
2676 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
2677
2678         Revert change removing staticp.
2679
2680 2007-04-07  Anatoly Sokolov <aesok@post.ru>
2681
2682         PR target/30289
2683         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
2684         earlyclobber.
2685
2686 2007-04-07  Bruce Korb  <bkorb@gnu.org>
2687
2688         * c.opt: Add -Wformat-contains-nul.
2689         * c-format.c (set_Wformat):  Set warn_format_contains_nul to the
2690           -Wformat setting.
2691         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
2692         the NUL byte warning.
2693
2694 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2695
2696         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
2697
2698 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
2699
2700         * tree.c (staticp): No longer use staticp langhook.
2701         * langhooks.c (lhd_staticp): Removed.
2702         * langhooks.h (struct lang_hooks): Remove staticp.
2703         * c-common.c (c_staticp): Remove.
2704         * c-common.h (c_staticp): Ditto.
2705         * langhooks-defs.h (lhd_staticp): Ditto.
2706         (LHD_HOOKS_STATICP): Ditto
2707         * tree.h (gcc_assert_lowered): New macro.
2708
2709 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
2710
2711         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
2712         argument "reliable".
2713         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
2714         Add argument "reliable".  Propagate it through calls.
2715         (infer_loop_bounds_from_undefined):  Derive number of iterations
2716         estimates from references in blocks that do not dominate loop latch.
2717         (gcov_type_to_double_int): New function.
2718         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
2719         and expected_loop_iterations_unbounded.
2720         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
2721         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
2722         * tree-data-ref.c (estimated_loop_iterations): Export.
2723         (get_references_in_stmt): Fix -- do not return addresses of local
2724         objects.
2725         * cfgloop.h (expected_loop_iterations_unbounded,
2726         estimated_loop_iterations): Declare.
2727
2728 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
2729
2730         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
2731
2732 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
2733
2734         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
2735         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
2736         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
2737         Use output_387_reg_move().
2738         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
2739         expander using X87MODEF12 mode macro.
2740         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
2741         choosing register preferences.  Use output_387_reg_move().
2742         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
2743         instead of "x".  Use output_387_reg_move().
2744         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
2745         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
2746         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
2747         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
2748         Use output_387_reg_move().
2749         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
2750         mode macro.
2751         (*truncxf?f_i387 splitter): Ditto.
2752
2753 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
2754
2755         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
2756         LANG_HOOKS_SAFE_FROM_P.
2757         * expr.c (safe_from_p): Remove langhook call.
2758         * langhooks.h (lang_hooks): Remove safe_from_p.
2759         (lhd_safe_from_p): Remove prototype.
2760         * langhooks.c (lhd_safe_from_p): Remove.
2761
2762 2007-04-06  Jan Hubicka  <jh@suse.cz>
2763
2764         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
2765         functions.
2766
2767 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
2768
2769         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
2770         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
2771         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
2772         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
2773         alternative.
2774         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
2775         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
2776
2777 2007-04-05  Richard Henderson  <rth@redhat.com>
2778
2779         * config/alpha/alpha.c (print_operand) [+]: Remove.
2780         (alpha_end_function): Print nop if call at end of function.
2781         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
2782         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
2783         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
2784         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
2785         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
2786         the call pattern. Update peepholes to match.
2787
2788 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
2789
2790         * doc/extend.texi (Other Builtins): Add decimal float variants
2791         of signbit.
2792         * builtins.def: Ditto.
2793         * builtins.c (expand_builtin): Ditto.
2794
2795 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
2796             H.J. Lu  <hongjiu.lu@intel.com>
2797
2798         PR target/31478
2799         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
2800         of V8HImode when calling ix86_binary_operator_ok.
2801         (sse2_pmaddwd): Call ix86_binary_operator_ok.
2802         (sdot_prodv8hi): Operands 1 and 2 must be register.
2803
2804 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
2805
2806         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
2807         initialize align to silence bogus warning.
2808
2809 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
2810
2811         PR middle-end/22156
2812         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
2813         all_no_warning.
2814         (struct sra_walk_fns): Remove use_all parameter from use.
2815         (sra_hash_tree): Handle BIT_FIELD_REFs.
2816         (sra_elt_hash): Don't hash bitfld blocks.
2817         (sra_elt_eq): Skip them in parent compares as well.  Handle
2818         BIT_FIELD_REFs.
2819         (sra_walk_expr): Don't maintain or pass down use_all_p.
2820         (scan_use): Remove use_all parameter.
2821         (scalarize_use): Likewise.  Re-expand assignment to
2822         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
2823         output, and re-scalarize after output.  Don't mark anything
2824         for no warning.
2825         (scalarize_ldst): Adjust.
2826         (scalarize_walk_gimple_modify_statement): Likewise.
2827         (build_element_name_1): Handle BIT_FIELD_REFs.
2828         (instantiate_element): Don't warn for any element whose parent
2829         is used as a whole.
2830         (instantiate_missing_elements_1): Return the sra_elt.
2831         (canon_type_for_field): New.
2832         (try_instantiate_multiple_fields): New.
2833         (instantiate_missing_elemnts): Use them.
2834         (mark_no_warning): Removed.
2835         (generate_one_element_ref): Handle BIT_FIELD_REFs.
2836         (REPLDUP, sra_build_elt_assignment): New.
2837         (generate_copy_inout): Use them.
2838         (generate_element_copy): Likewise.  Handle bitfld differences.
2839         (generate_element_zero): Don't recurse for blocks.  Use
2840         sra_build_elt_assignment.
2841         (generate_one_element_int): Take elt instead of var.  Use
2842         sra_build_elt_assignment.
2843         (generate_element_init_1): Adjust.
2844         (scalarize_use, scalarize_copy): Use REPLDUP.
2845         (scalarize_ldst): Move assert before dereference.
2846         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
2847
2848 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2849
2850         * regmove.c: Fix unused variable warnings due to previous commit.
2851
2852 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2853
2854         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
2855         (regmove_bb_head): Remove.
2856         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
2857         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
2858         problems with fixup_match_1.
2859         Don't initialize/free regmove_bb_head.
2860
2861         (reg_is_remote_constant_p): If an insn is in the same basic block
2862         but not before INSN, consider it remote, too.
2863
2864 2007-04-05  Anatoly Sokolov <aesok@post.ru>
2865
2866         PR target/25448
2867         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
2868         DECL_ASSEMBLER_NAME, not the DECL_NAME.
2869
2870 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
2871
2872         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
2873         (CONDITIONAL_REGISTER_USAGE): Likewise.
2874
2875 2007-04-04  Richard Henderson  <rth@redhat.com>
2876
2877         * config/alpha/lib1funcs.asm: Remove unused file.
2878
2879 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
2880
2881         PR other/31356
2882         * opts.c (print_specific_help): Fix --help=<language>
2883         header line.
2884         (common_handle_option): Support --help=common.
2885
2886 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
2887
2888         PR other/31353
2889         * gcc.c (main): Do not run the linker if
2890         print_subprocess_help indicates that it shouldn't be
2891         run.
2892
2893 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
2894
2895         PR doc/31355
2896         * doc/invoke.texi (--help=): Document <languages> value, fix
2897         formatting in tables of values.
2898
2899 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
2900
2901         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
2902         dllimport attribute of virtual methods.
2903
2904 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
2905
2906         * config/score/crti.asm: Change _bss_start to __bss_start.
2907         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
2908         (OUTGOING_REG_PARM_STACK_SPACE) update.
2909         * config/score/score.opt: add options to make backend support
2910         score5, score5u, score7 and score7d.
2911         * config/score/score.md: Likewise.
2912         * config/score/misc.md: Likewise.
2913         * config/score/mac.md: Likewise.
2914         * doc/invoke.texi: Likewise.
2915         * doc/md.texi: update constraints define.
2916
2917 2007-04-03  Richard Henderson  <rth@redhat.com>
2918
2919         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
2920         an appropriate type, use the mode instead.
2921
2922 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
2923
2924         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
2925         Set the default --with-arch setting to mips2.
2926         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
2927         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
2928         (MULTILIB_OSDIRNAMES): Delete.
2929         (MULTILIB_DIRNAMES): Define.
2930         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
2931         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
2932         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
2933         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
2934         VXWORKS_OS_CPP_BUILTINS.
2935         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
2936         (MIPS_DEBUGGING_INFO): Undefine.
2937         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
2938
2939 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
2940
2941         PR middle-end/30704
2942         * fold-const.c (native_encode_real): Encode real.c provided longs
2943         as a series of 32-bit native integers.
2944         (native_interpret_real): Interpret buffer as a series of 32-bit
2945         native integers.
2946
2947 2007-04-03  Richard Guenther  <rguenther@suse.de>
2948
2949         * genpreds.c (write_insn_constraint_len): Write function
2950         optimized for CONSTRAINT_LEN implementation.
2951         (write_tm_preds_h): Output insn_constraint_len inline and
2952         use it for CONSTRAINT_LEN.
2953         (write_insn_preds_c): Don't output insn_constraint_len.
2954         * doc/md.texi (define_register_constraint): Document multi-letter
2955         constraints shall have the same length if they start with the same
2956         letter.
2957
2958 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
2959
2960         PR target/31175
2961         * config/i386/i386.md (isinf<mode>2): Expand only when
2962         TARGET_C99_FUNCTIONS is set.
2963
2964 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
2965
2966         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
2967         (x86_64-*-linux*): Ditto.
2968         * config/i386/i386.opt (mpc): New option.
2969         * config/i386/i386.c (overrride_options): Handle
2970         ix87_precision_string.
2971         * config/i386/crtprec.c: New file.
2972         * config/i386/t-crtpc: Ditto.
2973         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
2974         and -mpc80 options.
2975         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
2976         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
2977         crtprec32.o, crtprec64.o and crtprec80.o.
2978
2979         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
2980         and -mpc80 options.
2981         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
2982
2983 2007-04-02  Eric Christopher  <echristo@apple.com>
2984
2985         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
2986         limitations on darwin.
2987
2988 2007-04-02  Anatoly Sokolov <aesok@post.ru>
2989
2990         PR target/31137
2991         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
2992
2993 2007-04-02  Dave Korn  <dave.korn@artimi.com>
2994
2995         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
2996
2997 2007-04-02  Dave Korn  <dave.korn@artimi.com>
2998
2999         * libgcc2.h (exception_descriptor): Don't forward-declare.
3000         (__get_eh_table_language, __get_eh_table_version): Delete
3001         prototypes of long-dead functions.
3002
3003 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
3004
3005         * ebitmap.h: New file
3006         * ebitmap.c: New file
3007         * Makefile.in (ebitmap.o): New target.
3008
3009 2007-04-01  Jan Hubicka  <jh@suse.cz>
3010
3011         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
3012         before very first instruction.
3013
3014 2007-04-01  Jan Hubicka  <jh@suse.cz>
3015
3016         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
3017         waring on 64bit hosts.
3018         * bitmap.h: Fix typo in bitmap_head_def.
3019
3020 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
3021
3022         PR rtl-optimization/31391
3023         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
3024         into a DELETED_LABEL note, and the label is in an empty basic
3025         block, update BB_END as well as BB_HEAD.
3026
3027 2007-04-01  Richard Henderson  <rth@redhat.com>
3028
3029         PR tree-optimization/31169
3030         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
3031         to varying if the range is outside [0,  prec-1].
3032
3033 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
3034
3035         PR target/31388
3036         * config/mips/mips.md (load_const_gp): New insn.
3037         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
3038         the MIPS16 GP pseudo register if no_new_pseudos.
3039         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
3040
3041 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3042
3043         PR target/31364
3044         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
3045         secureplt.
3046         (call_value): Likewise.
3047
3048 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
3049             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3050
3051         PR 14737
3052         * doc/invoke.texi: (optimization options): Reword description
3053         of -ffast-math. Document its primary purpose.
3054
3055 2007-03-31  Richard Guenther  <rguenther@suse.de>
3056
3057         * omp-low.c (splay-tree.h): Include.
3058         (lookup_decl): Replace splay-tree usage by pointer-map.
3059         (maybe_lookup_decl): Likewise.
3060         (new_omp_context): Likewise.
3061         (delete_omp_context): Likewise.
3062         * gimplify.c (splay-tree.h): Include.
3063         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
3064         pointer-map.
3065         (remap_ssa_name): Likewise.
3066         (remap_decl): Likewise.
3067         (remap_type_1): Likewise.
3068         (remap_type): Likewise.
3069         (copy_body_r): Likewise.
3070         (expand_call_inline): Likewise.
3071         (clone_body): Likewise.
3072         (copy_tree_r): Likewise.
3073         (remap_save_expr): Likewise.
3074         (unsave_r): Likewise.
3075         (unsave_expr_now): Likewise.
3076         (tree_function_versioning): Likewise.
3077         (build_duplicate_type): Likewise.
3078         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
3079         (struct copy_body_data): Replace splay-tree by pointer-map.
3080         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
3081         not $(SPLAY_TREE_H).
3082         (gimplify.o): Depend on $(SPLAY_TREE_H).
3083         (omp-low.p): Likewise.
3084
3085 2007-03-31  Anatoly Sokolov <aesok@post.ru>
3086
3087         * config/avr/predicates.md (even_register_operand,
3088         odd_register_operand): New predicates.
3089         * config/avr/avr.md (movw peephole2): New.
3090         (movw_r peephole2): New.
3091
3092 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
3093
3094         * tree.h (get_signed_or_unsigned_type): New.
3095         * fold-const.c (operand_equal_for_comparison_p): Use
3096         get_signed_or_unsigned_type instead of
3097         lang_hooks.types.signed_or_unsigned_type.
3098         * expr.c (store_expr): Ditto.
3099         * langhooks.c (get_signed_or_unsigned_type): New.
3100         (lhd_signed_or_unsigned_type): New.
3101         * langhooks.h (lhd_signed_or_unsigned_type): New.
3102         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
3103
3104 2007-03-30  Richard Henderson  <rth@redhat.com>
3105
3106         * tree-ssa-loop-ivopts.c: Include target.h.
3107         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
3108         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
3109         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
3110         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
3111
3112 2007-03-30  Richard Henderson  <rth@redhat.com>
3113             Kai Tietz  <kai.tietz@onevision.com>
3114
3115         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
3116         default for 64-bit.
3117         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
3118         (TARGET_64BIT_MS_ABI): New.
3119         (DBX_REGISTER_NUMBER): Handle 64-bit.
3120         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
3121         (LONG_TYPE_SIZE): Force to 32.
3122         (REG_PARM_STACK_SPACE): New.
3123         (OUTGOING_REG_PARM_STACK_SPACE): New.
3124         (REGPARM_MAX, SSE_REGPARM_MAX): New.
3125         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
3126         (STACK_BOUNDARY): Use 128 for 64-bit.
3127         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
3128         Add 64-bit implementation.
3129         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
3130         argument unused.
3131         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
3132         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
3133         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
3134         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
3135         (ix86_handle_cconv_attribute): Don't warn when ignoring if
3136         TARGET_64BIT_MS_ABI.
3137         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
3138         (ix86_pass_by_reference): Likewise.
3139         (ix86_function_value_regno_p): Likewise.
3140         (ix86_build_builtin_va_list): Likewise.
3141         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
3142         (function_arg_advance_ms_64): New.
3143         (function_arg_advance): Call it.
3144         (function_arg_ms_64): New.
3145         (function_arg): Call it.
3146         (function_value_ms_64): New.
3147         (ix86_function_value_1): Call it.
3148         (return_in_memory_ms_64): New.
3149         (ix86_return_in_memory): Call it.
3150         (setup_incoming_varargs_ms_64): New.
3151         (ix86_setup_incoming_varargs): Call it.
3152         (ix86_expand_prologue): Handle 64-bit stack probing.
3153         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
3154         (output_pic_addr_const): Likewise.
3155         (x86_this_parameter): Likewise.
3156         (x86_output_mi_thunk): Likewise.
3157         (x86_function_profiler): Likewise.
3158         (TARGET_STRICT_ARGUMENT_NAMING): New.
3159         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
3160         (TARGET_64BIT_MS_ABI): New.
3161         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
3162         * config/i386/i386.md (allocate_stack_worker): Remove.
3163         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
3164         describe the clobber of eax without a match_scratch.
3165         (allocate_stack_worker_postreload): Remove.
3166         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
3167         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
3168         (allocate_stack_worker_rex64_postreload): Remove.
3169         (allocate_stack): Handle 64-bit.
3170         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
3171         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
3172         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
3173         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
3174         (STANDARD_STARTFILE_PREFIX_1): Likewise.
3175         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
3176         * config.build (x86_64-*-mingw*): New host.
3177         * config.host (x86_64-*-mingw*): New host.
3178         * config.gcc (x86_64-*-mingw*): New target.
3179         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
3180
3181 2007-03-30  Richard Henderson  <rth@redhat.com>
3182             Kai Tietz  <kai.tietz@onevision.com>
3183
3184         * c-pragma.c (struct def_pragma_macro_value): New.
3185         (struct def_pragma_macro): New.
3186         (pushed_macro_table): New.
3187         (dpm_hash, dpm_eq): New.
3188         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
3189         (init_pragma): Install them.
3190         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
3191
3192 2007-03-30  Anatoly Sokolov <aesok@post.ru>
3193
3194         * config/avr/avr.c (avr_override_options): Clear
3195         'flag_delete_null_pointer_checks'.
3196
3197 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
3198
3199         PR c++/26099
3200         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
3201         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
3202         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
3203         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
3204         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
3205         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
3206         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
3207         C++ extensions.
3208         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
3209
3210 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
3211
3212         * regmove.c: Move all of pass_stack_adjustments from here...
3213         * combine-stack-adj.c: ...to this new file.
3214         * Makefile.in: Add rules for combine-stack-adj.o.
3215
3216 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
3217
3218         PR tree-optimization/31383
3219         * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
3220         to have the same length.
3221
3222 2007-03-30  Jan Hubicka  <jh@suse.cz>
3223
3224         PR middle-end/30700
3225         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
3226         availablility; add more sanity checking; ask varpool only about
3227         VAR_DECL.
3228
3229 2007-03-29  Richard Henderson  <rth@redhat.com>
3230
3231         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
3232         to decide, but __SIZEOF_LONG_LONG__.
3233
3234 2007-03-29  Richard Henderson  <rth@redhat.com>
3235
3236         * emutls.c (struct __emutls_array): New.
3237         (emutls_destroy): Use it instead of casting element 0 from void*.
3238         (__emutls_get_address): Likewise.
3239
3240 2007-03-29  Richard Henderson  <rth@redhat.com>
3241
3242         * varasm.c (initializer_constant_valid_p): Don't deny
3243         DECL_DLLIMPORT_P on functions.
3244
3245         * config/i386/cygming.h: Remove function declarations.
3246         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
3247         (ASM_OUTPUT_LABELREF): Remove.
3248         (COMMON_ASM_OP): Remove.
3249         (ASM_OUTPUT_COMMON): Remove.
3250         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3251         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
3252         (ASM_DECLARE_FUNCTION_NAME): Likewise.
3253         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
3254         Rename from TARGET_ENCODE_SECTION_INFO.
3255         * config/i386/netware.h: Likewise.
3256         * config/i386/i386-protos.h: Update.
3257         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
3258         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
3259         (legitimate_constant_p): Reject dllimports.
3260         (dllimport_map, get_dllimport_decl): New.
3261         (legitimize_dllimport_symbol): New.
3262         (legitimize_address, ix86_expand_move): Use it.
3263         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
3264         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
3265         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
3266         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
3267         * config/i386/predicates.md (constant_call_address_operand): Only
3268         accept symbols; reject dllimport_p symbols.
3269         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
3270         i386_pe_maybe_record_exported_symbol.
3271         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
3272         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
3273         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
3274         trust the setting of DECL_DLLIMPORT_P.
3275         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
3276         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
3277         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
3278         tidy the argument scanning loop.
3279         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
3280         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
3281         (i386_pe_strip_name_encoding): Remove.
3282         (i386_pe_binds_local_p): New.
3283         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
3284         (i386_pe_output_labelref): Remove.
3285         (i386_pe_asm_output_aligned_decl_common): New.
3286         (i386_pe_maybe_record_exported_symbol): Rename from
3287         i386_pe_record_exported_symbol; check for dllexported symbols.
3288
3289 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
3290
3291         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
3292         add comment explaining why vsnprintf cannot be used.
3293
3294 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
3295
3296         PR tree-optimization/30666
3297         * tree.c (build_complex_type): When creating type names for DWARF2
3298         debug info, create TYPE_DECLs for TYPE_NAME instead of
3299         IDENTIFIER_NODEs.
3300         (build_common_tree_nodes_2): Use build_complex_type when building
3301         predefined complex types, to preserve canonical types.
3302
3303 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
3304
3305         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
3306         (noce_get_alt_condition): Look at it to determine whether to
3307         reverse the condition or not.
3308         (noce_get_condition): Substitute the truth for lies.
3309         (noce_find_if_block): Set the then_else_reversed field.
3310
3311 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
3312
3313         * config/fr30/fr30.md (movdi): Do not accept immediates as the
3314         destination of this insn.
3315         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
3316         than calling gen_rtx_SET directly.  Use r0 to hold the value of
3317         'address + 4' rather than a stack based temporary which can be
3318         mis-optimized away.
3319
3320 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
3321
3322         * config/s390/s390.c (s390_secondary_input_reload_class,
3323         s390_secondary_output_reload_class): Functions removed.
3324         (s390_secondary_reload): New function.
3325         (TARGET_SECONDARY_RELOAD): Target macro defined.
3326         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
3327         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
3328         * config/s390/s390.md ("reload_outti", "reload_outdi",
3329         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
3330         "reload_out<mode>"): Expanders removed.
3331         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
3332         "reload<mode>_nonoffmem_out"): Expanders added.
3333
3334 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
3335
3336         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
3337         SRC->DEST replacement failed anyway.
3338
3339 2007-03-28  Mike Stump  <mrs@apple.com>
3340
3341         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
3342         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
3343         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
3344
3345 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3346
3347         * config.gcc: Accept barcelona as a variant of amdfam10.
3348         * config/i386/i386.c (override_options): Likewise.
3349         * doc/invoke.texi: Likewise.
3350
3351 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3352
3353         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
3354         offsets for BIT_FIELD_REF and COMPONENT_REF.
3355
3356 2007-03-28  Richard Guenther  <rguenther@suse.de>
3357
3358         * tree.c (is_global_var): Move ...
3359         * tree-flow-inline.h (is_global_var): ... here.
3360         * tree.h (is_global_var): Remove declaration.
3361
3362 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
3363
3364         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
3365         option.
3366         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
3367         * config/i386/i386.c (ix86_tune_features): Initialize new
3368         tuning option.
3369         * config/i386/predicates.md (promotable_binary_operator): Use
3370         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
3371
3372 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
3373
3374         PR target/31380
3375         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
3376
3377 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
3378
3379         * config/fr30/fr30.md (movsi_internal): Change destination
3380         constraint from m to V and add m to the end.
3381
3382 2007-03-28  Christian Bruel  <christian.bruel@st.com>
3383
3384         * config/sh/sh.md (movsi_i): Fix type attribute.
3385
3386 2007-03-28  Christian Bruel  <christian.bruel@st.com>
3387
3388         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
3389         (movsf_ie): Likewise.
3390
3391 2007-03-28  Christian Bruel  <christian.bruel@st.com>
3392
3393         * config.gcc: Add sh4-300 to multilib.
3394         * config/sh/t-mlib-sh4-300: New file.
3395
3396 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
3397
3398         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
3399         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
3400         fix_trunc<mode>di2.
3401         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
3402         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
3403         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
3404         "fixuns_trunctddi2"): Whitespace fix.
3405
3406 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3407
3408         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
3409         the definition of struct sh_args.
3410         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
3411         CALL_COOKIE_INT_REG_GET): Likewise.
3412
3413 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3414
3415         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
3416         transformations are applied successfully.
3417
3418 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
3419
3420         * tree.c (tree_contains_struct): Permit 512 tree codes.
3421         * tree.h (tree_contains_struct): Ditto.
3422         (MAX_TREE_CODES): Ditto.
3423         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
3424         SPARE member to store remaining padding bits.
3425
3426 2007-03-27  Anatoly Sokolov <aesok@post.ru>
3427