OSDN Git Service

2006-09-11 Guenter Roeck <guenter@roeck-us.net>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-09-11  Guenter Roeck  <guenter@roeck-us.net>
2             David Edelsohn  <edelsohn@gnu.org>
3
4         PR target/27287
5         * config/rs6000/spe.md (frob_df_di): Remove %H.
6         (frob_di_df): Remove %H.  Change evmergelo to mr.
7         (frob_di_df_2): Remove %H.  Change evldd to two loads.
8
9 2006-09-11  Hideki Iwamoto  <h-iwamoto@kit.hi-ho.ne.jp>
10
11         * doc/cpp.texi: Fix names of charset options.
12
13 2006-09-10  Andrew Pinski  <pinskia@physics.uc.edu>
14
15         PR target/29009
16         * config/i386/i386.c (override_options): Use 128-bit
17         stack boundary always for 64bits.
18
19 2006-09-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
20
21         PR rtl-optimization/28636
22         * combine.c (force_to_mode): Test for side-effects before
23         substituting by zero.
24         (simplify_shift_const): Likewise for zero or other constants.
25
26 2006-09-10  Steven Bosscher  <steven@gcc.gnu.org>
27
28         PR middle-end/26983
29         * builtins.c (expand_builtin_setjmp): Force next_lab to be
30         preserved.
31
32 2006-09-10  Richard Sandiford  <richard@codesourcery.com>
33
34         PR target/29006
35         * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
36         * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
37         returned by mode_for_size, rather than the mode of src itself,
38         to choose between 32-bit and 64-bit patterns.
39         (mips_mem_fits_mode_p): New function.
40         * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
41         that the size of the source matches the size of the destination.
42         (mov_<store>l, mov_<store>r): Likewise.
43
44 2006-09-10  Eric Christopher  <echristo@apple.com>
45
46         * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
47         for literal16.
48
49 2006-09-09  Eric Christopher  <echristo@apple.com>
50
51         PR target/28995
52         * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
53         for literal16.
54
55 2006-09-09  Roger Sayle  <roger@eyesopen.com>
56             Nicolas Setton <setton@adacore.com>
57
58         * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
59
60 2006-09-10  Andreas Schwab  <schwab@suse.de>
61
62         * config/m68k/m68k.md (bungt_rev): New pattern.
63
64 2006-09-09  Paolo Bonzini  <bonzini@gnu.org>
65             Dale Johannesen  <dalej@apple.com>
66
67         PR target/26778
68         * regclass.c (struct reg_pref): Update documentation.
69         (regclass): Set prefclass to NO_REGS if memory is the best option.
70         (record_reg_classes): Cope with a prefclass set to NO_REGS.
71
72 2006-09-08  Eric Christopher  <echristo@apple.com>
73
74         * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
75         * config/t-slibgcc-darwin: Support x86_64 multilib.
76         * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
77         Return 1 for x86_64-darwin.
78         * config/i386/t-darwin: Add m64 multilib.
79         (LIB2_SIDITI_CONV_FUNCS): Use.
80         (LIB2FUNCS_EXTRA): Ditto.
81         * config/i386/darwin.h: Support x86_64.
82         * config/i386/i386.c (override_options): Turn on flag_pic
83         for x86_64-darwin. Disable flag_omit_pointer.
84         (get_pc_thunk_name): Assert !TARGET_64BIT.
85         (legitimate_address_p): Disable machopic addressing for
86         x86_64.
87         (legitimize_pic_address): Ditto.
88         (ix86_expand_move): Ditto.
89         (ix86_expand_call): Ditto.
90         (machopic_output_stub): Ditto.
91         * config/darwin.c (machopic_select_section): Support literal16.
92         (machopic_select_rtx_section): Ditto.
93         * config/darwin-sections.def: Ditto.
94         * config/darwin-64.c: New.
95
96 2006-09-08  Joseph S. Myers  <joseph@codesourcery.com>
97
98         PR c/28504
99         * c-tree.h (struct c_arg_info): Add pending_sizes.
100         * c-parser.c (c_parser_parms_declarator,
101         c_parser_parms_list_declarator): Initialize pending_sizes.
102         * c-decl.c (get_parm_info): Initialize pending_sizes.
103         (get_parm_info): Set pending_sizes.
104         (grokdeclarator): Call put_pending_sizes for parameters for
105         function definition only.
106
107 2006-09-07  Jason Merrill  <jason@redhat.com>
108
109         PR middle-end/27724
110         * varasm.c (output_constant): Only strip actual no-op conversions.
111
112         PR target/13685
113         * config/i386/i386.c (override_options): Use 128-bit
114         stack boundary if -msse.
115
116 2006-09-07  Eric Christopher  <echristo@apple.com>
117
118         * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
119         comment.
120         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
121         Redefine.
122
123 2006-09-07  Geoffrey Keating  <geoffk@apple.com>
124
125         * dwarf2out.c: Remove strange characters from comment above
126         dwarf2out_frame_debug_expr.
127
128 2006-09-07  Eric Christopher  <echristo@apple.com>
129
130         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
131         * config/darwin.h: ... to here.
132
133 2006-09-07  H.J. Lu  <hongjiu.lu@intel.com>
134
135         * config/i386/i386.c (x86_partial_flag_reg_stall): New.
136
137         * config/i386/i386.h (x86_partial_flag_reg_stall): New.
138         (TARGET_PARTIAL_FLAG_REG_STALL): New.
139
140         * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
141         TARGET_PARTIAL_FLAG_REG_STALL.
142         (*ashldi3_cconly_rex64): Likewise.
143         (*ashlsi3_cmp): Likewise.
144         (*ashlsi3_cconly): Likewise.
145         (*ashlsi3_cmp_zext): Likewise.
146         (*ashlhi3_cmp): Likewise.
147         (*ashlhi3_cconly): Likewise.
148         (*ashlqi3_cmp): Likewise.
149         (*ashlqi3_cconly): Likewise.
150         (*ashrdi3_cmp_rex64): Likewise.
151         (*ashrdi3_cconly_rex64): Likewise.
152         (*ashrsi3_cmp): Likewise.
153         (*ashrsi3_cconly): Likewise.
154         (*ashrsi3_cmp_zext): Likewise.
155         (*ashrhi3_cmp): Likewise.
156         (*ashrhi3_cconly): Likewise.
157         (*ashrqi3_cmp): Likewise.
158         (*ashrqi3_cconly): Likewise.
159         (*lshrdi3_cmp_rex64): Likewise.
160         (*lshrdi3_cconly_rex64): Likewise.
161         (*lshrsi3_cmp): Likewise.
162         (*lshrsi3_cconly): Likewise.
163         (*lshrsi3_cmp_zext): Likewise.
164         (*lshrhi3_cmp): Likewise.
165         (*lshrhi3_cconly): Likewise.
166         (*lshrqi2_cmp): Likewise.
167         (*lshrqi2_cconly): Likewise.
168
169 2006-09-07 Uros Bizjak <uros@kss-loka.si>
170
171         PR target/28946
172         * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
173         "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
174         "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
175         "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
176         "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
177         "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
178         "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
179         "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
180         "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
181         implement only CC setting effects of shift instructions.
182
183 2006-09-07  Martin Michlmayr  <tbm@cyrius.com>
184
185         * doc/contrib.texi: Add myself.
186
187 2006-09-07  Andrew Pinski  <pinskia@physics.uc.edu>
188
189         PR middle-end/28862
190         * stor-layout.c (relayout_decl): Don't zero the alignment if it
191         was set by the user.
192
193 2006-09-07  Paolo Bonzini  <bonzini@gnu.org>
194
195         PR target/27117
196         * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
197         (divsi_inv_m1): Use them.
198         (UNSPEC_DIV_INV_TABLE): New constant.
199
200 2006-09-06  James E Wilson  <wilson@specifix.com>
201
202         PR rtl-opt/27883
203         * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
204         then call count_or_remove_death_notes.
205
206 2006-09-06  Jason Merrill  <jason@redhat.com>
207
208         PR c++/27371
209         * tree-inline.c (copy_result_decl_to_var): New fn.
210         (declare_return_variable): Use it.  Call declare_inline_vars here.
211         (expand_call_inline): Not here.
212
213 2006-09-06  Diego Novillo  <dnovillo@redhat.com>
214
215         * doc/contrib.texi: Update my entry.
216
217 2006-09-06  Nick Clifton  <nickc@redhat.com>
218
219         * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
220
221 2006-09-05  Andrew Pinski  <pinskia@physics.uc.edu>
222
223         PR tree-opt/28937
224         * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
225         (canonicalize_induction_variables): Likewise.
226         (tree_unroll_loops_completely): Likewise.
227         (tree_ssa_prefetch_arrays): Likewise.
228         (remove_empty_loops): Likewise.
229         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
230         TODO_cleanup_cfg instead of directly calling
231         cleanup_tree_cfg_loop.
232         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
233         Likewise.
234         (tree_unroll_loops_completely): Likewise.
235         (remove_empty_loops): Likewise.
236         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
237         * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
238         of tree_ssa_unswitch_loops.
239         (tree_ssa_loop_ivcanon): Use the return value of
240         canonicalize_induction_variables.
241         (tree_ssa_empty_loop): Use the return value of
242         remove_empty_loops.
243         (tree_complete_unroll): Use the return value of
244         tree_unroll_loops_completely.
245         (tree_ssa_loop_prefetch): Use the return value of
246         tree_ssa_prefetch_arrays.
247         * passes.c (execute_todo): Before Cleanup CFG, set
248         updating_used_alone and after cleanup CFG, call
249         recalculate_used_alone.
250
251 2006-09-05  Andrew Pinski  <pinskia@physics.uc.edu>
252
253         PR tree-opt/28952
254         * tree-vect-transform.c (vectorizable_condition): Move the check
255         for the type after the check for simple condition.
256
257 2006-09-05  J"orn Rennecke  <joern.rennecke@st.com>
258             Kaz Kojima  <kkojima@gcc.gnu.org>
259
260         PR target/28764
261         * mode-switching.c (optimize_mode_switching): Make the destination
262         block of an abnormal edge have no anticipatable mode.  Don't
263         insert mode switching code at the end of the source block of
264         an abnormal edge.
265
266 2006-09-05  Paolo Bonzini  <bonzini@gnu.org>
267
268         PR rtl-optimization/26847
269         * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
270         (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
271         (simplify_plus_minus): Count n_constants while filling ops.  Replace
272         qsort with insertion sort.  Before going through the array to simplify
273         pairs, sort it.  Delay early exit until after the first sort, exiting
274         only if no swaps occurred.  Simplify pairs in reversed order, without
275         special-casing the first iteration.  Pack ops after simplifying pairs.
276
277 2006-09-05  Anatoly Sokolov <aesok@post.ru>
278
279         * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
280         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
281         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
282         (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
283
284 2006-09-05  Richard Guenther  <rguenther@suse.de>
285
286         PR tree-optimization/28900
287         * tree-if-conv.c (find_phi_replacement_condition): Gimplify
288         compound conditional before creating COND_EXPR condition.
289
290 2006-09-05  Richard Guenther  <rguenther@suse.de>
291
292         PR tree-optimization/28905
293         * tree-vrp.c (fix_equivalence_set): Manually implement
294         !value_ranges_intersect_p to also handle symbolic ranges.
295
296 2006-09-05  Richard Guenther  <rguenther@suse.de>
297
298         PR middle-end/28935
299         * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
300         of a COND_EXPR.
301
302 2006-09-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
303
304         PR rtl-optimization/27616
305         * cse.c (table_size): New static variable.
306         (new_basic_block): Initialize it to 0.
307         (remove_from_table): Decrement it.
308         (insert): Increment it.
309         (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
310         (fold_rtx_mem): Enforce a cap on the recursion depth.  Call
311         fold_rtx_mem_1 if under the cap.
312         (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
313         the lookup of the equivalent expression and test for equality of the
314         first operand of the equivalent expression before in turn looking up
315         an equivalent constant for the second operand.
316
317 2006-09-02  Geoffrey Keating  <geoffk@apple.com>
318
319         Revert this change:
320         2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
321         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
322         pointer, instead of assuming it is possible to derive the
323         correct args size from a call insn.
324
325 2006-09-02  Jakub Jelinek  <jakub@redhat.com>
326
327         PR middle-end/27567
328         * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
329         (fold_builtin_mempcpy): Rename to...
330         (fold_builtin_memory_op): ... this.  Optimize one element copy
331         into an assignment.
332         (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
333         functions.
334         (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
335         (expand_builtin_memcpy, expand_builtin_mempcpy,
336         expand_builtin_memmove): Likewise.  Use fold_builtin_memory_op.
337         (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
338         BUILT_IN_BCOPY.  Use fold_builtin_memory_op for
339         BUILT_IN_MEM{CPY,PCPY,MOVE}.
340
341 2006-09-01  DJ Delorie  <dj@redhat.com>
342
343         * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
344         (stzx_16): Likewise.
345         ("stzx_24_<mode>"): Likewise.
346         ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
347         ("cmp<mode>_op"): New.
348         (cmp<mode>): Change to expander; just save operands.
349         (b<code>_op): New.
350         (b<code>): Change to expander, emit compare here.
351         (s<code>_op): Change to use split and expander.
352         (s<code>_24_op): Likewise.
353         (s<code>_<mode>): New.
354         (s<code>_<mode>_24): New.
355         (movqicc_<code>_<mode): New.
356         (movhicc_<code>_<mode>): New.
357         (s<code>): New.
358         (s<code>_24): New.
359         * config/m32c/m32c.c (compare_op0, compare_op1): New.
360         (m32c_pend_compare): New.
361         (m32c_unpend_compare): New.
362         (m32c_expand_scc): New.
363         (m32c_expand_movcc): Emit the compare also.
364         * config/m32c/predicates.md (mra_nopp_operand): New.
365
366 2006-09-01  J"orn Rennecke  <joern.rennecke@st.com>
367         Richard Guenther  <rguenther@suse.de>
368         Adam Nemet  <anemet@caviumnetworks.com>
369
370         PR middle-end/27226
371         * builtins.c (get_pointer_alignment): Handle more forms
372         of base addresses that can be used to derive more precise
373         information about alignment.
374
375 2006-09-01  Jason Merrill  <jason@redhat.com>
376
377         PR c++/28899
378         * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
379         want_value.
380
381         * gimplify.c (voidify_wrapper_expr): Handle null type.
382
383 2006-09-01  Josh Conner  <jconner@apple.com>
384
385         PR c++/25505
386         * tree-nrv.c (dest_safe_for_nrv_p): New function.
387         (execute_return_slot_opt): Use it.
388
389 2006-08-31  Josh Conner  <jconner@apple.com>
390
391         PR c++/25505
392         * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
393         returning aggregates.
394
395 2006-08-31  Zdenek Dvorak <dvorakz@suse.cz>
396
397         PR tree-optimization/28839
398         * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
399         blocks in that phi arguments appear.
400
401 2006-08-31  Roger Sayle  <roger@eyesopen.com>
402
403         PR other/22313
404         * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
405         NULL, otherwise use an advance_loc4 to adjust relative to the
406         current label.
407         (output_cfi) <DW_CFA_set_loc>: Update the current label.
408         (dwarf2out_switch_text_section): Reset the current label to avoid
409         using advance_loc4 over section boundaries.
410
411 2006-08-31  Andreas Krebbel  <krebbel1@de.ibm.com>
412
413         PR target/24367
414         * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
415         r12 + SYMBOLIC_CONST.
416
417 2006-08-30  Richard Guenther  <rguenther@suse.de>
418
419         * Makefile.in (see.o): Add $(EXPR_H) dependency.
420
421 2006-08-30  Zdenek Dvorak <dvorakz@suse.cz>
422
423         PR rtl-optimization/27735
424         * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
425         Add new argument to keep track of whether an irreducible region
426         was affected.  All callers changed.
427         (fix_irreducible_loops): Removed.
428         (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
429         flags were invalidated.
430
431 2006-08-29  H.J. Lu  <hongjiu.lu@intel.com>
432
433         * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
434         instead of SF operands.
435         (*fop_df_comm_sse): Likewise.
436         (*fop_df_comm_i387): Likewise.
437         (*fop_df_1_mixed): Likewise.
438         (*fop_df_1_sse): Likewise.
439
440 2006-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
441             J"orn Rennecke  <joern.rennecke@st.com>
442
443         PR tree-optimization/17506
444         * tree-ssa.c (warn_uninit): If warning about a location outside of
445         the current function, note where the variable was declared.
446
447 2006-08-28  Zdenek Dvorak <dvorakz@suse.cz>
448
449         PR tree-optimization/28411
450         * double-int.c (double_int_div): Use double_int_divmod.
451         (double_int_divmod, double_int_sdivmod, double_int_udivmod,
452         double_int_mod, double_int_smod, double_int_umod): New functions.
453         * double-int.h (double_int_divmod, double_int_sdivmod,
454         double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
455         Declare.
456         * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
457         in double_int.
458         (get_computation_aff, get_computation_cost_at): Handle double_int
459         return type of constant_multiple_of.
460
461 2006-08-28  Kazu Hirata  <kazu@codesourcery.com>
462
463         PR middle-end/26632
464         * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
465         an implicit conversion.
466
467 2006-08-28  Prafulla Thakare  <prafullat@kpitcummins.com>
468
469         * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
470
471 2006-08-27  Roger Sayle  <roger@eyesopen.com>
472
473         * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
474         x87 instructions.
475
476 2006-08-27  Kazu Hirata  <kazu@codesourcery.com>
477
478         * config/i386/crtfastmath.c: Fix a comment typo.
479
480 2006-08-26  Roger Sayle  <roger@eyesopen.com>
481
482         * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
483         temporary visit flags on CASE_LABEL_EXPRs.
484         * c-common.c (match_case_to_enum): Add function comment.  Avoid
485         O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
486         (c_do_switch_warnings):  Reorganize to record CASE_LOW_SEEN and
487         CASE_HIGH_SEEN for enumerated types.  If the switch expression is
488         a constant, only warn if that constant value isn't handled.
489
490 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
491
492         PR c++/24009
493         * input.h (restore_input_file_stack): Declare.
494         (INPUT_FILE_STACK_BITS): Define.
495         * toplev.c (fs_p, input_file_stack_history,
496         input_file_stack_restored, restore_input_file_stack): New.
497         (push_srcloc, pop_srcloc): Check for input_file_stack_tick
498         overflowing INPUT_FILE_STACK_BITS bits.  Save new state of stack.
499         (pop_srcloc): Don't free old state of stack.
500
501 2006-08-26  David Edelsohn  <edelsohn@gnu.org>
502
503         PR target/27544
504         * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
505         (PowerPC Type Attributes): New.
506
507 2006-08-26  Bob Wilson  <bob.wilson@acm.org>
508
509         * config/xtensa/xtensa.c (function_arg_boundary): New.
510         (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
511         STACK_BOUNDARY.
512         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
513         function_arg_boundary function that limits alignment to STACK_BOUNDARY.
514
515 2006-08-26  Jakub Jelinek  <jakub@redhat.com>
516
517         PR middle-end/28683
518         * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
519         3 following insns.
520
521 2006-08-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
522
523         * flow.c (verify_wide_reg): Use internal_error for consistency failure.
524         (verify_local_live_at_start): Likewise.
525
526 2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>
527
528         PR c/27893
529         * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
530         omp_add_variable): Treat sizes as variable whenever not
531         INTEGER_CST.
532
533 2006-08-26  Richard Guenther  <rguenther@suse.de>
534
535         PR middle-end/28814
536         * fold-const.c (fold_binary): Fold temporary to correct
537         type before constructing new comparison.
538
539 2006-08-25  Fariborz Jahanian  <fjahanian@apple.com>
540
541         PR c/28418
542         * c-gimplify.c (gimplify_compound_literal_expr): Don't add
543         variable again if DECL_SEEN_IN_BIND_EXPR_P.
544
545 2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>
546
547         PR c/28299
548         * c-decl.c (start_function): Don't try to process prototype
549         information from old declaration that isn't a function.
550
551 2006-08-25  Jan Hubicka  <jh@suse.cz>
552
553         PR target/28621
554         * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
555
556 2006-08-25  Alan Modra  <amodra@bigpond.net.au>
557
558         PR target/27075
559         * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
560         for 8 byte objects.
561
562 2006-08-25  J"orn Rennecke  <joern.rennecke@st.com>
563
564         PR tree-optimization/16876
565         * c-typeck.c (c_convert_parm_for_inlining): Don't take early
566         exit if PARM doesn't match VALUE.
567
568 2006-08-25  Bob Wilson  <bob.wilson@acm.org>
569
570         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
571         literal_prefix directive.
572         (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
573         * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
574         * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
575
576 2006-08-25  David Edelsohn  <edelsohn@gnu.org>
577
578         PR target/28753
579         * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
580         predicate to general_operand.  Add 0->y and I->r alternatives.
581
582 2006-08-25  Kazu Hirata  <kazu@codesourcery.com>
583
584         * doc/tm.texi: Fix a typo.
585         * predict.c: Fix comment typos.
586
587 2006-08-25  Nick Clifton  <nickc@redhat.com>
588
589         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
590         assertions of "cpu" and "machine".
591
592 2006-08-24  Andrew Pinski  <pinskia@physics.uc.edu>
593
594         PR tree-opt/28807
595         * tree-ssa-operands.c (access_can_touch_variable): Don't say
596         the access through a base which has an alias set of 0 cannot
597         touch the variable.
598
599 2006-08-24  Bill Wendling  <wendling@apple.com>
600
601         * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
602
603 2006-08-24  Jan Hubicka  <jh@suse.cz>
604
605         * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
606
607 2006-08-24  Jan Hubicka  <jh@suse.cz>
608
609         PR debug/26881
610         * cgraph.c: Fix comments.
611         (cgraph_varpool_mark_needed_node): Mark only variables not already
612         output to file.
613         * cgraphunit.c: Update comments; include gt-cgraphunit.h
614         (cgraph_varpool_assembled_nodes_queue): New static variable.
615         (cgraph_varpool_assemble_decl): Record output decls for debug out code.
616         (cgraph_varpool_output_debug_info): New function.
617         (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
618         * Makefile.in: Add gt-cgraphunit.h
619
620 2006-08-24  Jan Hubicka  <jh@suse.cz>
621
622         * predict.c (probability_reliable_p): New predicate.
623         (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
624         (predict_loops): Do not predict loop exit with less than 2%
625         probability.
626         * basic-block.h (edge_probability_reliable_p,
627         br_prob_note_reliable_p): Declare.
628         * ia64.h (ia64_print_operand): Do not disable on-chip branch
629         prediction when static predictor is not reliable.
630         * rs6000.c (output_cbranch): Likewise.
631
632 2006-08-23  Stuart Hastings  <stuart@apple.com>
633
634         PR 28825
635         * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
636         ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
637
638 2006-08-21  Geoffrey Keating  <geoffk@apple.com>
639
640         PR debug/28692
641         * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
642         complex values, nor for generic vector values.
643
644 2006-08-22  Richard Guenther  <rguenther@suse.de>
645
646         PR middle-end/28776
647         * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
648         parameter.  Convert arguments to arithmetic expression to the
649         chrecs type.
650         (analyze_scalar_evolution_1): Adjust caller.
651
652 2006-08-22  Jan Hubicka  <jh@suse.cz>
653
654         Patch by Paolo Bonzini
655         * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
656         my previous patch.
657
658 2006-08-22  Daniel Berlin  <dberlin@dberlin.org>
659
660         PR tree-optimization/28003
661         * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
662         before grouping aliases.
663
664 2006-08-22  Roger Sayle  <roger@eyesopen.com>
665
666         * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
667         if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
668
669 2006-08-21  Jason Merrill  <jason@redhat.com>
670
671         PR c++/27115
672         * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
673         wrapper.  Loop to handle nested wrappers.
674         (gimplify_bind_expr): Remove temp parameter.
675         (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
676         and STATEMENT_LIST on the rhs.
677         (gimplify_statement_list): Voidify the STATEMENT_LIST.
678         (gimplify_expr): Pass pre_p to gimplify_statement_list.
679         (gimplify_target_expr): Remove special BIND_EXPR handling.
680
681 2006-08-21  J"orn Rennecke  <joern.rennecke@st.com>
682
683         * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
684         #if !__SHMEDIA__ .
685
686 2006-08-21  Olivier Hainque  <hainque@adacore.com>
687
688         * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
689         Arrange for the temporary captures of components overlapping the lhs
690         to happen before the lhs is possibly cleared.
691
692 2006-08-21  Mark Shinwell  <shinwell@codesourcery.com>
693
694         * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
695         necessary places to pass the correct "number of registers" values
696         to _Unwind_VRS_Pop.
697
698 2006-08-20  Jan Hubicka  <jh@suse.cz>
699
700         * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
701         (create_name_tags): Instead of quadratic checking use hashtable.
702         * bitmap.h: Include hashtab.h.
703         (bitmap_hash): Declare.
704         * bitmap.c (bitmap_hash): New function.
705
706 2006-08-20  Jan Hubicka  <jh@suse.cz>
707
708         PR rtl-optimization/28071
709         * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
710         twice.
711         * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
712         * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
713         (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
714         cgraph_decide_inlining_incrementally): Update use of
715         cgraph_check_inline_limits.
716         * cgraph.c (edge_hash, edge_eq): New function.
717         (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
718         cgraph_edge_remove_caller, cgraph_node_remove_callees,
719         cgraph_remove_node): Maintain call site hash.
720         * cgraph.h (struct cgraph_node): Add call_site_hash.
721         (cgraph_set_call_stmt): New function.
722
723 2006-08-20  Jan Hubicka  <jh@suse.cz>
724
725         PR rtl-optimization/28071
726         * reload1.c (reg_has_output_reload): Turn into regset.
727         (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
728         choose_reload_regs, emit_reload_insns): Update to new
729         reg_has_output_reload.
730
731 2006-08-20  Jan Hubicka  <jh@suse.cz>
732
733         PR middle-end/28779
734         * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
735         function body sizes.
736         * cgraphunit.c (cgraph_analyze_function): Don't do so.
737
738 2006-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
739
740         PR target/28648 c:
741         * tree.c (handle_dll_attribute): Return early if not a
742         var or function decl.
743
744 2006-08-18  Joseph Myers  <joseph@codesourcery.com>
745
746         PR target/27565
747         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
748         alignment of SPE vector types.
749
750 2006-08-18  Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
751
752         * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
753
754 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
755
756         PR c/28744
757         * cgraph.h (struct cgraph_node): Remove externally_visible
758         bitfield.
759         * cgraphunit.c (process_function_and_variable_attributes): Set
760         local.externally_visible rather than externally_visible.
761
762         PR c/28744
763         * c-common.c (handle_externally_visible_attribute): First look
764         at TREE_CODE and only if it is function or var decl, check for
765         non-public objects.  Don't warn for DECL_EXTERNAL.
766         * cgraphunit.c (process_function_and_variable_attributes): Warn
767         if externally_visible attribute is used on non-public object.
768
769 2006-08-17  Jan Hubicka  <jh@suse.cz>
770
771         PR tree-optimization/27865
772         * reload1.c (forget_marked_reloads): New function.
773         (forget_old_reloads_1): When data are passed, just mark the registers
774         for later removal.
775         (reload_as_needed): Use the new mechanizm.
776
777 2006-08-17  Alexandre Oliva  <aoliva@redhat.com>
778
779         PR target/28146
780         * reload.h (reg_equiv_alt_mem_list): New declaration.
781         * reload1.c (reg_equiv_alt_mem_list): New definition.
782         (reload): Initialize it and release it.
783         (delete_output_reload): Use it.
784         * reload.c (push_reg_equiv_alt_mem): New function.
785         (find_reloads_toplev): Call it.
786         (find_reloads_address, find_reloads_address_1): Likewise.
787         (find_reloads_subreg_address): Likewise.
788
789 2006-08-17  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
790
791         PR rtl-optimization/28489
792         * sched-ebb.c (begin_schedule_ready): Create basic block
793         at the right place.
794         (advance_target_bb): Skip empty blocks.
795         * haifa-sched.c (bb_note): Make global.
796         * sched-int.h (bb_note): Add prototype.
797
798 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
799
800         PR tree-optimization/27865
801         * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
802         for pointer types.
803         * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
804         fold_used_pointer, pointer_used_p): New functions.
805         (analyze_scalar_evolution_1): Use fold_used_pointer.
806         * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
807         * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
808         for pointers.
809
810 2006-08-17  Paolo Bonzini <bonzini@gnu.org>
811
812         PR c++/28573
813         * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
814         or the INTEGER_CST.  Fail on a CALL_EXPR.
815         (fold_offsetof): Pass new argument to fold_offsetof_1.
816         * c-parser.c (c_parser_postfix_expression): Don't include a NULL
817         operand into an INDIRECT_REF.
818         * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
819
820 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
821
822         PR gcov/profile/26570
823         * value-prof.c (static_values): Removed.
824         (tree_find_values_to_profile): Do not set static_values.
825         (find_values_to_profile): Do not free static_values.
826         * profile.c (instrument_values): Do not free the values.
827         (branch_prob): Free the values.
828
829 2006-08-16  Naveen.H.S  <naveenh@kpitcummins.com>
830
831         * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
832
833 2006-08-16  Joseph S. Myers  <joseph@codesourcery.com>
834
835         PR c/27697
836         * c-typeck.c (build_component_ref): Combine qualifiers of
837         structure or union and field.
838
839 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
840
841         PR rtl-optimization/28071
842         * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
843         * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
844         * tree-into-ssa.c (struct dom_dfsnum): New.
845         (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
846         functions.
847         (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
848         compute_global_livein.
849         (prepare_block_for_update, prepare_use_sites_for): Mark the uses
850         in phi nodes in the correct blocks.
851
852 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
853
854         PR tree-optimization/28364
855         * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
856         correctly.
857         (fold_affine_expr): New function.
858         (may_eliminate_iv): Use fold_affine_expr.
859
860 2006-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
861
862         PR c/27489
863         * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
864         Clean up.
865
866 2006-08-16  Mike Stump  <mrs@apple.com>
867
868         * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
869         * doc/cppopts.texi (-MD): Likewise.
870
871 2006-08-15  Danny Smith  <dannysmith@users.sourceforge.net>
872
873         PR c/28287
874         * c-common.c (handle_weak_attribute): Ignore and warn if
875         not a FUNCTION_ or VAR_DECL.
876
877 2006-07-15  Mike Stump  <mrs@apple.com>
878
879         PR c/28280
880         * c-parser.c (c_parser_typeof_specifier): Don't use
881         c_finish_expr_stmt, open code desired semantics instead.
882
883 2006-08-15  Nick Clifton  <nickc@redhat.com>
884
885         * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
886         fragment to tmake_file only if threads are enabled.
887         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
888         * config/i386/t-gthr-win32: New file. ... here.
889
890 2006-08-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
891
892         PR c/28649
893         * c-parser.c (c_parser_compound_statement_nostart): Reset
894         parser->error after each statement.
895
896 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
897
898         PR middle-end/28713
899         * omp-low.c (lower_omp_parallel): Convert t to
900         receiver_decl's type.
901         (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
902         source before comparison.
903
904         PR middle-end/28724
905         * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
906         to itype in assignment to oldival2.
907
908 2006-07-14  Andrew Pinski  <pinksia@physics.uc.edu>
909
910         PR c/27490
911         PR c/27489
912         * c-typeck.c (build_compound_expr): If the second expression
913         is an error mark, then just return an error mark instead of
914         creating a COMPOUND_EXPR.
915
916 2006-07-14  Mike Stump  <mrs@apple.com>
917
918         * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
919
920 2006-08-14  Kazu Hirata  <kazu@codesourcery.com>
921
922         * c-decl.c, var-tracking.c: Fix comment typos.
923
924 2006-08-14  Richard Sandiford  <richard@codesourcery.com>
925
926         PR rtl-optimization/28634
927         * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
928         for floating-point modes unless flag_unsafe_math_optimizations.
929
930 2006-08-13  Alexandre Oliva  <aoliva@redhat.com>
931             Andrew Pinski  <pinskia@physics.uc.edu>
932
933         PR c/27184
934         * tree.c (build_array_type): Unify array types with
935         unspecified index_type.
936         * c-decl.c (grokdeclarator): Make sure we do not modify a
937         unified incomplete array type.
938         * c-typeck.c (store_init_value): Create distinct type before
939         filling in the index type in an initializer from a compound
940         literal.
941
942         * c-decl.c (grokdeclarator): Remove code where we copy the
943         array type over.
944
945 2006-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
946
947         * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
948         into account for TODO_dump_cgraph.
949         (TODO_update_ssa_no_phi): Likewise.
950         (TODO_update_ssa_full_phi): Likewise.
951         (TODO_update_ssa_only_virtuals): Likewise.
952         (TODO_remove_unused_locals): Likewise.
953         (TODO_set_props): Likewise.
954         (TODO_update_stmt_usage): Likewise.
955
956 2006-08-13  Dirk Mueller  <dmueller@suse.de>
957
958         * c-common.c (strict_aliasing_warning): Fix formatting.
959
960 2006-08-13  Matthias Klose  <doko@debian.org>
961
962         * doc/invoke.texi: Fix spelling errors.
963
964 2006-08-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
965
966         PR rtl-optimization/23454
967         * reorg.c (relax_delay_slots): Update comment.
968
969 2006-08-11  Richard Guenther  <rguenther@suse.de>
970
971         PR middle-end/28651
972         * simplify-rtx.c (simplify_const_relational_operation):
973         Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
974         codes.
975
976 2006-08-10  Eric Botcazou  <ebotcazou@adacore.com>
977
978         * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
979         TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
980
981 2006-08-10  Paul Brook  <paul@codesourcery.com>
982
983         * final.c (final_scan_insn): Clear current_insn_predicate before
984         outputting inline asm.
985
986 2006-08-10  Dorit Nuzman  <dorit@il.ibm.com>
987
988         PR tree-optimization/26197
989         * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
990         get_ref_base_and_extent and overlap_subvar to add only relevant
991         subvars as may-aliases.
992         (add_may_alias_for_new_tag): New function, factored out of
993         new_type_alias.
994         * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
995         with additional argument.
996         * tree-flow.h (new_type_alias): Takes additional argument.
997
998 2006-08-09  Nathan Sidwell  <nathan@codesourcery.com>
999
1000         * gcov.c (no_data_file): New flag.
1001         (read_count_file): Set it if data file not present.  Assume counts
1002         zero if not found.
1003         (output_lines): Don't name the data file, if there wasn't one.
1004
1005 2006-08-09  Eric Botcazou  <ebotcazou@adacore.com>
1006
1007         * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
1008         (rs6000_generate_compare): Tweak comments.
1009         * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
1010
1011 2006-08-09  Alexandre Oliva  <aoliva@redhat.com>
1012
1013         * var-tracking.c (enum micro_operation_type): Add MO_COPY.
1014         (var_debug_decl): New function.
1015         (var_reg_set): Follow debug decl link.  Add location even if
1016         reg is already known to hold some other variable.
1017         (var_mem_set): Follow debug decl link.
1018         (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
1019         decl link.  Delete other known locations of the variable part
1020         if requested.
1021         (var_reg_delete, var_mem_delete): Delete other known locations
1022         of the variable part if requested.
1023         (same_variable_part_p): New function.
1024         (add_stores): Select MO_COPY when appropriate.
1025         (vt_initialize): Handle it.
1026         (compute_bb_dataflow, emit_notes_in_bb): Likewise.  Delete
1027         known locations for MO_SET and MO_CLOBBER.
1028         (find_variable_location_part): New function.
1029         (set_variable_part, delete_variable_part): Use it.
1030         (clobber_variable_part): New function.
1031         * dwarf2out.c (dwarf2out_var_location): Do not follow debug
1032         decl link.
1033
1034 2006-08-07  Victor Kaplansky <victork@il.ibm.com>
1035
1036         PR tree-optimization/26969
1037         * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
1038         with an empty list of PHIs.
1039
1040 2006-08-06  Paolo Bonzini  <bonzini@gnu.org>
1041
1042         PR target/27827
1043
1044         * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
1045         instructions.
1046
1047 2006-08-06  Andreas Schwab  <schwab@suse.de>
1048
1049         * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
1050         string.  Whitespace and comment fixup.
1051
1052 2006-08-05  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1053
1054         PR c/28502
1055         * c-decl.c (validate_proto_after_old_defn): Return false on invalid
1056         argument.
1057
1058         PR c/27721
1059         * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
1060
1061         PR c/28136
1062         * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
1063
1064 2006-08-04  Jan Hubicka  <jh@suse.cz>
1065
1066         PR target/26655
1067         PR target/28270
1068         * reload.c (push_reload): Patch out the mismatching instruction;
1069         return early.
1070         (find_reload): Bail out if the instruction was patched out.
1071
1072 2006-08-04  Jan Hubicka  <jh@suse.cz>
1073
1074         PR tree-optimization/24888
1075         * tree-inline.c (expand_call_inline): Do not re-record variables.
1076         (declare_inline_vars): Add variable to unexpanded_var_list.
1077
1078 2006-08-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1079             Roger Sayle  <roger@eyesopen.com>
1080
1081         PR rtl-optimization/26244
1082         * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
1083         inner_const are negative or greater than or equal to the bitsize of
1084         MODE.  If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
1085         Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
1086         Simplify complicated if statement.  For ASHIFT and LSHIFTRT, return
1087         CONST0_RTX (mode) when the new shift count is greater than or equal to
1088         to the bitsize of the object being shifted and XEXP (y, 0) has no side
1089         effects.
1090
1091 2006-08-04  Kazu Hirata  <kazu@codesourcery.com>
1092
1093         * tree-cfg.c: Fix a comment typo.
1094
1095 2006-08-03  Mark Mitchell  <mark@codesourcery.com>
1096
1097         PR c++/28148
1098         * varasm.c (output_constant): Give the front end another chance to
1099         expand constants, after stripping NOPs.
1100
1101 2006-08-03  Jan Hubicka  <jh@suse.cz>
1102
1103         * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
1104         implementation.
1105
1106 2006-08-03  Dorit Nuzman  <dorit@il.ibm.com>
1107
1108         PR tree-optimization/27770
1109         * tree-vectorizer.h (get_vectype_for_scalar_type): Function
1110         declaration removed (moved to tree-flow.h).
1111         (vect_can_force_dr_alignment_p): Likewise.
1112         * tree-flow.h (get_vectype_for_scalar_type): New function declaration
1113         (moved from tree-vectorizer.h).
1114         (vect_can_force_dr_alignment_p): Likewise.
1115         * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
1116         from outside the vectorizer - in particular from cgraph stage.
1117         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
1118         the alignment of global arrays when -fsection-anchors is enabled.
1119         * cgraphunit.c (cgraph_increase_alignment): New function.
1120         (cgraph_optimize): Call cgraph_increase_alignment.
1121
1122 2006-08-03  David Edelsohn  <edelsohn@gnu.org>
1123
1124         PR target/27566
1125         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1126         not reload a SPE symbol_ref into a lo_sum address.
1127
1128 2006-08-02  Daniel Jacobowitz  <dan@codesourcery.com>
1129
1130         PR debug/28063
1131         * dwarf2out.c (prune_unused_types_prune): Move call to
1132         prune_unused_types_update_strings to cover the parent DIE also.
1133
1134 2006-08-02  Jan Hubicka  <jh@suse.cz>
1135
1136         PR gcov/profile/28480
1137         * tree-cfg.c (change_bb_for_stmt): New function.
1138         (tree_merge_blocks, tree_split_blocks): Use it.
1139
1140 2006-08-01  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1141
1142         PR c++/28250
1143         PR c++/28257
1144         PR c++/28259
1145         PR c++/28267
1146         * toplev.c (compile_file): Return early on errorcount or sorrycount.
1147         * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
1148         (cgraph_optimize): Likewise.
1149
1150 2006-08-01  Stuart Hastings  <stuart@apple.com>
1151
1152         * rtl.h (UINTVAL) New.
1153         * config/rs6000/rs6000.c (SMALL_INT) Use it.
1154         * testsuite/gcc.dg/20060801-1.c: New.
1155
1156 2006-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
1157
1158         PR debug/23336
1159         * c-typeck.c (build_external_type): Mark used enum types.
1160         * dwarf2out.c (dwarf2out_abstract_function): Save and restore
1161         cfun also.
1162         (gen_subprogram_die): Whitespace fix.
1163
1164 2006-08-01  Jan Hubicka  <jh@suse.cz>
1165
1166         * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
1167         bitmap when not needed.
1168         * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
1169         bitmaps.
1170
1171 2006-08-01  Dirk Mueller  <dmueller@suse.de>
1172
1173         * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
1174
1175 2006-07-31  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1176
1177         * Makefile.in: Revert part of previous patch:
1178         Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
1179         and REGS_H.
1180
1181 2006-07-30  Eric Christopher  <echristo@apple.com>
1182
1183         PR target/27543
1184         * doc/extend.texi (i386 Variable Attributes): Add anchor.
1185         (PowerPC Variable Attributes): New section.
1186
1187 2006-07-30  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
1188
1189         PR target/28126 (partial fix)
1190         * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
1191
1192 2006-07-28  Jan Hubicka  <jh@suse.cz>
1193
1194         PR rtl-optimization/28071
1195         * cfgrtl.c (rtl_delete_block): Free regsets.
1196         * flow.c (allocate_bb_life_data): Re-use regsets if available.
1197
1198 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1199
1200         * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
1201         and variables used in dependencies.
1202
1203 2006-07-27  Arjan van de Ven <arjan@linux.intel.com>
1204
1205         * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
1206         %fs for -mcmodel=kernel.
1207         (stack_tls_protect_test_di): Likewise.
1208
1209 2006-07-27  Carlos O'Donell  <carlos@codesourcery.com>
1210
1211         * Makefile.in: Use mkinstalldirs.
1212
1213 2006-07-27  H.J. Lu  <hongjiu.lu@intel.com>
1214
1215         PR driver/28437
1216         * opts-common.c (prune_options): Skip joined switches.
1217
1218 2006-07-27  Jan Hubicka  <jh@suse.cz>
1219
1220         PR rtl-optimization/28071
1221         * cselib.c (cselib_process_insn): Don't remove useless values too
1222         often for very large hashtables.
1223
1224 2006-07-27  Jan Hubicka  <jh@suse.cz>
1225
1226         PR rtl-optimization/28071
1227         * global.c (greg_obstack): New obstack.
1228         (allocate_bb_info): Use it.
1229         (free_bb_info): Likewise.
1230         (modify_reg_pav): Likewise.
1231
1232 2006-07-27  Roger Sayle  <roger@eyesopen.com>
1233
1234         * builtins.c (fold_fixed_mathfn): When long and long long are the
1235         same size, canonicalize llceil*, llfloor*, llround* and llrint*
1236         functions to their lceil*, lfloor*, lround* and lrint* forms.
1237
1238 2006-07-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1239
1240         PR gcc/28508
1241         * config/m32r/m32r.md (branch_insn): Reduce pc range for short
1242         branch.
1243         (rev_branch_insn): Likewise.
1244
1245 2006-07-27  Jan Hubicka  <jh@suse.cz>
1246
1247         PR rtl-optimization/28071
1248         * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
1249         (reg_set_in_bb, max_reg_computed): New static variables.
1250         (regmove_optimize): Free the new array.
1251         (fixup_match_1): Update call of reg_is_remote_constant_p.
1252
1253 2006-07-26  Jan Hubicka  <jh@suse.cz>
1254
1255         PR tree-optimization/27882
1256         * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
1257         and decl fields.
1258         * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
1259         next pointer
1260         (cgraph_analyze_compilation_unit): Likewise.
1261         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
1262         * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
1263         (cgraph_early_inlinine): Make order garbage collected.
1264         * Makefile.in (gt-ipa-inline): New garbagecollected file.
1265
1266 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
1267
1268         * dbxout.c (output_types_sort): Add a comment.
1269         (output_used_types): Free the VEC.
1270
1271 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
1272
1273         * function.c (reorder_fix_fragments): Delete.
1274         (reorder_blocks): Don't call it.
1275         (reorder_blocks_1): Put all subblocks under the origin block.
1276
1277 2006-07-26  Zdenek Dvorak <dvorakz@suse.cz>
1278
1279         PR rtl-optimization/27907
1280         * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
1281         FLOAT_TRUNCATE.
1282
1283 2006-07-25  Roger Sayle  <roger@eyesopen.com>
1284
1285         PR middle-end/28473
1286         * convert.c (convert_to_integer): When transforming (T)foo(x) into
1287         bar(x) check that bar's result type can represent all the values of T.
1288
1289 2006-07-25  Zdenek Dvorak <dvorakz@suse.cz>
1290
1291         * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
1292
1293 2006-07-25  Nick Clifton  <nickc@redhat.com>
1294
1295         * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
1296         size_lookup[] array.
1297         (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
1298         (ggc_pch_count_object): Likewise.
1299         (ggc_pch_alloc_object): Likewise.
1300         (ggc_pch_write_object): Likewise.
1301         (init_ggc): Do not attempt to initialize entries in the
1302         size_lookup[] array for objects whose size is greater than than
1303         the length of the array.
1304
1305 2006-07-25  Daniel Jacobowitz  <dan@codesourcery.com>
1306
1307         * dbxout.c (output_used_types_helper): Push queued types
1308         on a VEC.
1309         (output_types_sort): New.
1310         (output_used_types): Collect used types on a VEC and sort them
1311         before emission.
1312
1313 2006-07-24  Richard Guenther  <rguenther@suse.de>
1314
1315         PR middle-end/28463
1316         * cgraph.c (cgraph_remove_node): Do not check if dumps
1317         are enabled.
1318         * cgraphunit.c (cgraph_optimize): Likewise.
1319
1320 2006-07-24  Jan Hubicka  <jh@suse.cz>
1321
1322         PR rtl-optimization/28071
1323         * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
1324         * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
1325         splitting before first stmt.
1326
1327 2006-07-24  Jan Hubicka  <jh@suse.cz>
1328
1329         PR rtl-optimization/28071
1330         * ipa-inline.c (update_caller_keys): Remove edges that
1331         are no longer inline candidates.
1332
1333 2006-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
1334
1335         PR debug/27473
1336         * dbxout.c (output_used_types_helper, output_used_types): New.
1337         (dbxout_symbol): Call output_used_types.
1338
1339 2006-07-23  Jan Hubicka  <jh@suse.cz>
1340
1341         PR c/25795
1342         PR c++/27369
1343         * cgraph.c (cgraph_varpool_nodes): Export.
1344         (decide_is_variable_needed): Ignored "used" attribute in
1345         unit-at-a-time mode.
1346         * cgraph.h (cgraph_varpool_nodes): Declare.
1347         * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
1348         unit-at-a-time mode.
1349
1350 2006-07-23  Roger Sayle  <roger@eyesopen.com>
1351
1352         PR target/28247
1353         * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
1354         mutex_destroy even when !_LIBOOBJC.  Remove duplicate prototype of
1355         the __gthrw form of thr_keycreate.
1356         (__gthread_key_delete): Silence the unused argument warning.
1357
1358 2006-07-23  Steven Bosscher  <steven@gcc.gnu.org>
1359
1360         PR debug/25468
1361         * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
1362         Cache the last found '\0' marker to avoid quadratic behavior.
1363
1364 2006-07-23  Jan Hubicka  <jh@suse.cz>
1365
1366         * i386.md (subsi_3_zext): Fix output template.
1367
1368 2006-07-21  Mike Stump  <mrs@apple.com>
1369
1370         * doc/invoke.texi (C++ Dialect Options): Note that
1371         -fvisibility-inlines-hidden doesn't affect explicitly
1372         instantiationed inline methods.
1373
1374 2006-07-20  Roger Sayle  <roger@eyesopen.com>
1375
1376         * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
1377         if the target assembler is GNU binutils' gas.
1378         * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
1379         whether to pass GNU gas or native as command line options.
1380
1381 2006-07-20  Jason Merrill  <jason@redhat.com>
1382
1383         * tree.c (remove_attribute): New fn.
1384         * tree.h: Declare it.
1385
1386 2006-07-20  Paul Brook  <paul@codesourcery.com>
1387
1388         PR 27363
1389         * cse.c (cse_insn): Add destination addresses to hash table. Check if
1390         they are invalidated by this instruction.
1391
1392 2006-07-21  Danny Smith  <dannysmith@users.sourceforge.net>
1393
1394         PR target/28427
1395         * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
1396
1397 2006-07-20  Eric Christopher  <echristo@apple.com>
1398
1399         PR target/26877
1400         * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
1401
1402 2006-07-19  Eric Christopher  <echristo@apple.com>
1403
1404         * config/t-slibgcc-darwin (stmp-lipo): Remove.
1405         Rewrite dependencies for libgcc_s.1.dylib.
1406
1407 2006-07-19  Jakub Jelinek  <jakub@redhat.com>
1408
1409         * except.c (duplicate_eh_regions_1): Clear next_peer.
1410
1411 2006-07-17  Nathan Sidwell  <nathan@codesourcery.com>
1412
1413         * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
1414         -mlongcall does not guarantee all calls will be long.
1415         * doc/extend.texi (long_call/short_call): Document that longcall
1416         does not guarantee a long call will be used.
1417         (longcall/shortcall): Likewise.
1418
1419 2006-07-18  Roger Sayle  <roger@eyesopen.com>
1420
1421         PR middle-end/28283
1422         * expmed.c (expand_shift): Additionally check that the shift_cost
1423         is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
1424         before implementing a LSHIFT_EXPR as a sequence of additions.
1425         * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
1426         middle-end that DImode shifts need to be synthesized by expand.
1427
1428 2006-07-18  Diego Novillo  <dnovillo@redhat.com>
1429
1430         PR 28410
1431         * tree-ssa-operands.c (access_can_touch_variable): Update
1432         comment.
1433         Return true if ALIAS is .GLOBAL_VAR.
1434
1435 2006-07-18  David Daney  <ddaney@avtrex.com>
1436
1437         * gcc.c (display_help): Fix typo in help text.
1438
1439 2006-07-18  Olivier Hainque  <hainque@adacore.com>
1440
1441         * tree.h (categorize_ctor_elements): Adjust prototype and add
1442         descriptive comment, both in accordance with the interface change
1443         described below.
1444         * varasm.c (constructor_static_from_elts_p): New function.
1445         Whether a constructor node is a valid static constant initializer
1446         if all its elements are.
1447         (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
1448         * output.h: Declare it.
1449         * expr.c (categorize_ctor_elements_1): Return whether the constructor
1450         is a valid constant initializer instead of computing the number of
1451         non-constant elements.  Use constructor_static_from_elts_p for this
1452         purpose.  Replace the head comment with an indication that this is a
1453         helper for categorize_ctor_elements.
1454         (categorize_ctor_elements): Same interface change as for the _1
1455         helper.  Former head comment from this helper moved here, adjusted to
1456         account for the interface changes.
1457         (mostly_zeros_p): Adjust call to categorize_ctor_elements.
1458         (all_zeros_p): Likewise.
1459         * gimplify.c (gimplify_init_constructor): Decide whether we can make
1460         static versions of the constructor from the categorize_ctor_elements
1461         return value instead of the formerly computed number of non-constant
1462         elements.
1463
1464 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
1465
1466         * configure: Regenerate.
1467         * Makefile.in (build_libsubdir): New configure substitution
1468         (build_libobjdir): New variable.
1469         (BUILD_LIBIBERTY): Use it.
1470
1471 2006-07-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1472
1473         PR c/28286
1474         * c-pragma.c (handle_pragma_pack): Handle invalid constants.
1475
1476 2006-07-18  Alexandre Oliva  <aoliva@redhat.com>
1477
1478         PR c/26993
1479         * c-common.c (handle_weakref_attribute): Ignore attribute in
1480         the same conditions the alias attribute is ignored.
1481
1482 2006-07-17  Carlos O'Donell  <carlos@codesourcery.com>
1483
1484         * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
1485         (dbxout_begin_prologue): Increment scope_labelno.
1486
1487 2006-07-17  Richard Henderson  <rth@redhat.com>
1488
1489         PR 27889
1490         * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
1491         if needed.
1492
1493 2006-07-17  Roger Sayle  <roger@eyesopen.com>
1494             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1495
1496         * config/i386/gmon-sol2.c: Silence compilation warnings by partially
1497         synchronizing code with config/sparc/gmon-sol2.c.  Remove #if 0
1498         blocks.  #include "tconfig.h" and "tsystem.h" to prototype system
1499         functions such as sbrk, write, etc..  Add function prototypes.
1500         Convert function declarations from K&R to ISO C.  Cast pointers
1501         to "long" and "unsigned long" instead of "int" and "unsigned int".
1502         Convert tokens following #endif into comments.
1503
1504 2006-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
1505
1506         * invoke.texi: Remove mention of f77; Reformat table for
1507         inline parameter options correctly; mention that -malign-double
1508         is default on x86-64 targets.
1509
1510 2006-07-17  Zdenek Dvorak <dvorakz@suse.cz>
1511
1512         * tree-chrec.c (avoid_arithmetics_in_type_p): New.
1513         (convert_affine_scev, chrec_convert_aggressive): Use
1514         avoid_arithmetics_in_type_p.  Do not check for the subtypes
1515         separately.
1516
1517 2006-07-17  Richard Sandiford  <richard@codesourcery.com>
1518
1519         PR middle-end/28403
1520         * optabs.c (expand_doubleword_shift): Wrap the call to
1521         do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
1522
1523 2006-07-17  Richard Sandiford  <richard@codesourcery.com>
1524
1525         PR middle-end/28402
1526         * optabs.c (expand_binop): Pass next_methods rather than methods
1527         to expand_doubleword_shift.
1528
1529 2006-07-17  J"orn Rennecke  <joern.rennecke@st.com>
1530
1531         PR other/28251
1532         * tree.h (dump_addr): Declare.
1533         * print-tree.c (dump_addr): New function.
1534         (print_node_brief, print_node): Use it.
1535         * print-rtl.c (print_rtx): Likewise.
1536         * common.opt (-fdump-noaddr): New option.
1537         * doc/invoke.texi (-fdump-noaddr): Document.
1538         * loop-unroll.c (si_info_hash): Make hash independent of addresses.
1539         (ve_info_hash): Likewise.
1540
1541 2006-07-13  Andrew Haley  <aph@redhat.com>
1542
1543         PR tree-optimization/19505
1544         * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
1545         edge leaving this block, make sure that the destination of this
1546         block has only one predecessor.
1547
1548 2006-07-17  Richard Guenther  <rguenther@suse.de>
1549
1550         PR tree-optimization/28238
1551         * tree-inline.c (copy_bb): Check if we produced valid
1552         gimple copying and substituting a stmt.  If not, gimplify
1553         it.
1554
1555 2006-07-16  Eric Botcazou  <ebotcazou@adacore.com>
1556
1557         * optabs.c (maybe_encapsulate_block): New function extracted from...
1558         (emit_libcall_block): ...here.  Invoke it on the block of insns to
1559         maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
1560         (emit_no_conflict_block): Likewise.
1561
1562 2006-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
1563
1564         * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
1565
1566 2006-07-15  Roger Sayle  <roger@eyesopen.com>
1567
1568         * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
1569         a new NOP_EXPR case of the switch statement.
1570
1571 2006-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1572
1573         PR middle-end/28160
1574         * stor-layout.c (place_field): Take the bit field with
1575         an excessive size into account in the ms-bitfiled case.
1576
1577         PR middle-end/28161
1578         * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
1579         the previous bit field.
1580
1581 2006-07-14  Eliot Dresselhaus  <eliot@sonic.net>
1582
1583         PR target/27287
1584         * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
1585
1586 2006-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
1587
1588         * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
1589         signal frames correctly even when the signal was installed with
1590         sa_restorer set.
1591
1592 2006-07-14  Carlos O'Donell  <carlos@codesourcery.com>
1593
1594         * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
1595         (dbxout_function_end): Use local label LFBB. Remove hook
1596         DBX_OUTPUT_NFUN.
1597         (dbxout_source_line): Use local label LFBB.
1598         (dbxout_block): Likewise.
1599         (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
1600         (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
1601         * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
1602         and DBX_OUTPUT_NFUN.
1603
1604 2006-07-13  Janis Johnson  <janis187@us.ibm.com>
1605
1606         * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
1607
1608 2006-07-13  Jan Hubicka  <jh@suse.cz>
1609
1610         * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
1611         align_variable.
1612         * output.h (align_variable): Declare.
1613         * varasm.c (align_variable): Export.
1614         * value-prof.c (tree_value_profile_transformations): Recompute iterator
1615         when basic block changed.
1616
1617 2006-07-13  Nick Clifton  <nickc@redhat.com>
1618
1619         * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
1620         walking the LOG_LINKS chain.
1621
1622 2006-07-12  Geoffrey Keating  <geoffk@apple.com>
1623
1624         * doc/invoke.texi (C++ Dialect Options): Explain difference
1625         between -fvisibility-inlines-hidden and setting hidden
1626         visibility explicitly.
1627
1628 2006-07-12  Eric Christopher  <echristo@apple.com>
1629
1630         * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
1631         (stmp-lipo): Depend on libgcc.a.
1632
1633 2006-07-12  Kazu Hirata  <kazu@codesourcery.com>
1634
1635         * tree.c: Fix a comment typo.
1636
1637 2006-07-12  Naveen.H.S  <naveenh@kpitcummins.com>
1638
1639         * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
1640         dest.
1641         (umulhisi3_r): Likewise.
1642
1643 2006-07-12  Paolo Carlini  <pcarlini@suse.de>
1644
1645         PR libstdc++/27878
1646         * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
1647         x < 19, vs wchar_t support.
1648
1649 2006-07-12  Nick Clifton  <nickc@redhat.com>
1650
1651         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
1652         instead of -isa=sh4.
1653
1654 2006-07-12  Mike Stump  <mrs@apple.com>
1655
1656         * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
1657
1658 2006-07-10  Eric Christopher  <echristo@apple.com>
1659
1660         * config/t-slibgcc-darwin: Rewrite.
1661
1662 2006-07-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1663
1664         PR bootstrap/20437
1665         * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
1666         dependencies.
1667
1668 2006-07-08  Matthias Klose  <doko@debian.org>
1669
1670         * doc/sourcebuild.texi: Fix typo.
1671
1672 2006-07-07  Mike Stump  <mrs@apple.com>
1673
1674         * toplev.c (process_options): Don't give -ffunction-sections may
1675         affect debugging warning for Mach-O.
1676
1677 2006-07-07  James E Wilson  <wilson@specifix.com>
1678
1679         * config/mips/mips.md (cpu): Add sb1a.
1680         * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
1681         addition to sb1.  Adjust comments to clarify SB-1A differences from
1682         SB-1.
1683         (ir_sb1a_load): New.  Modify bypasses to use it.
1684         (ir_sb1a_simple_alu): Likewise.
1685         * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
1686         (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
1687         (mips_issue_rate): Add PROCESSOR_SB1A.
1688         (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
1689         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
1690         (TARGET_SB1): Add PROCESSOR_SB1A check.
1691         (TUNE_SB1): Likewise.
1692
1693         * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
1694         * config/mips/mips.c (mips_store_data_bypass_p): New.
1695         * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
1696         store_data_bypass_p.
1697
1698 2006-07-08  Paul Brook  <paul@codesourcery.com>
1699
1700         PR target/27991
1701         * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
1702
1703 2006-07-07   Richard Guenther  <rguenther@suse.de>
1704
1705         PR middle-end/28268
1706         * tree.h (build_one_cst): Declare.
1707         * tree.c (build_one_cst): New function.
1708         * tree-ssa-math-opts.c (get_constant_one): Remove.
1709         (insert_reciprocals): Use build_one_cst.
1710         * fold-const.c (fold_plusminus_mult): Likewise.
1711
1712 2006-07-07  Roger Sayle  <roger@eyesopen.com>
1713
1714         * pointer-set.c (pointer_set_destroy): Correct whitespace.
1715         * cfgloopanal.c (dump_graph): Likewise.
1716         * dojump.c (discard_pending_stack_adjust): Likewise.
1717         * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
1718         Likewise.
1719         * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
1720         * function.c (finalize_block_changes): Likewise.
1721         * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
1722         * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
1723         * rtl.c (dump_rtx_statistics): Likewise.
1724         * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
1725         Likewise.
1726         * varray.c (dump_varray_statistics): Likewise.
1727         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
1728         decode_decimal64, encode_decimal128, decode_decimal128,
1729         decimal_real_to_decimal): Likewise.
1730
1731 2006-07-07  Richard Guenther  <rguenther@suse.de>
1732
1733         PR tree-optimization/28187
1734         * tree-vrp.c (vrp_operand_equal_p): New function.
1735         (vrp_bitmap_equal_p): Likewise.
1736         (update_value_range): Use them to compare old and new
1737         max and min values.
1738
1739 2006-07-06  Roger Sayle  <roger@eyesopen.com>
1740
1741         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
1742         a default case to switch statement to silence compiler warnings.
1743
1744 2006-07-06  Roger Sayle  <roger@eyesopen.com>
1745
1746         PR target/27968
1747         * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
1748         the configured assembler supports the x87's ffreep mnemonic.
1749         * configure: Regenerate.
1750         * config.in: Regenerate.
1751
1752         * config/i386/i386.c (output_387_ffreep): New function.
1753         (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
1754         (output_387_reg_move): Likewise.
1755
1756 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1757
1758         Port to hosts whose 'sort' and 'tail' implementations
1759         treat operands with leading '+' as file names, as POSIX
1760         has required since 2001.  However, make sure the code still
1761         works on pre-POSIX hosts.
1762         * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
1763         which says you should use "tail -c +N" rather than "tail +Nc".
1764         Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
1765
1766 2006-07-06  Zdenek Dvorak <dvorakz@suse.cz>
1767
1768         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
1769         argument name.
1770
1771 2006-07-06  David Edelsohn  <edelsohn@gnu.org>
1772
1773         PR target/28150
1774         * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
1775         PRE_{INC,DEC} of TFmode.
1776
1777 2006-07-06  David Edelsohn  <edelsohn@gnu.org>
1778             Alan Modra  <amodra@bigpond.net.au>
1779
1780         PR target/28170
1781         * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
1782         bounds. Simplify.
1783
1784 2006-07-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1785
1786         PR target/28285
1787         * config/alpha/predicates.md (alpha_swapped_comparison_operator):
1788         Remove duplicate gtu.
1789
1790 2006-07-05  Jason Merrill  <jason@redhat.com>
1791
1792         PR c++/13983
1793         PR c++/17519
1794         * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
1795         * c-common.c (handle_packed_attribute): So don't copy it here.
1796         * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
1797
1798 2006-07-05  Mike Stump  <mrs@apple.com>
1799
1800         * doc/invoke.texi (Invoking G++): Clarify prose for g++.
1801
1802 2006-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1803
1804         PR target/26146
1805         * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
1806
1807 2006-07-05  Richard Guenther  <rguenther@suse.de>
1808
1809         PR target/28158
1810         * config/i386/i386.md (*negdf2_1): Restrict pattern to
1811         TARGET_SSE2 targets if using SSE math.
1812         (*absdf2_1): Likewise.
1813
1814 2006-07-05  Richard Guenther  <rguenther@suse.de>
1815
1816         PR tree-optimization/28162
1817         * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
1818         make sure to convert the operands to the correct type.
1819
1820 2006-07-04  Paolo Bonzini  <bonzini@gnu.org>
1821
1822         PR tree-optimization/28218
1823
1824         * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
1825         to calculate and free the dominator information.
1826
1827 2006-07-04  Peter O'Gorman  <peter@pogma.com>
1828
1829         * mklibgcc.in: chmod 644 before ranlib during install.
1830
1831 2006-07-04  Andrew Stubbs <andrew.stubbs@st.com>
1832             J"orn Rennecke <joern.rennecke@st.com>
1833
1834         * configure.ac (.eh_frame data check): Use diff -b.
1835
1836 2006-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1837
1838         PR bootstrap/18058
1839         * Makefile.in (BUILD_RTL): Add build/vec.o.
1840         (build/gencondmd.o): Filter out -fkeep-inline-functions.
1841         (build/genextract): Delete.
1842         (build/genautomata): Likewise.
1843
1844 2006-07-04  Alan Modra  <amodra@bigpond.net.au>
1845
1846         PR target/28207
1847         * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
1848         128-bit IBM long doubles for ABI_V4.
1849
1850 2006-07-03  Eric Botcazou  <ebotcazou@adacore.com>
1851
1852         * tree.c (range_in_array_bounds_p): New predicate.
1853         * tree.h (range_in_array_bounds_p): Declare it.
1854         * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
1855         return a less conservative answer.
1856         * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
1857         and flag 'is_group'.
1858         (IS_ELEMENT_FOR_GROUP): New macro.
1859         (FOR_EACH_ACTUAL_CHILD): Likewise.
1860         (next_child_for_group): New helper function.
1861         (can_completely_scalarize_p): Take into account groups.
1862         (sra_hash_tree): Handle RANGE_EXPR.
1863         (sra_elt_eq): Likewise.
1864         (lookup_element): Be prepared for handling groups.
1865         (is_valid_const_index): Delete.
1866         (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
1867         instead of is_valid_const_index.
1868         <ARRAY_RANGE_REF>: New case.
1869         (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
1870         is_valid_const_index.
1871         <ARRAY_RANGE_REF>: Do not unconditionally punt.
1872         (scan_dump): Dump info for groups too.
1873         (decide_instantiation_1): Likewise.
1874         (decide_block_copy): Assert that the element is not a group.
1875         Propagate decision to groups.
1876         (generate_one_element_ref): Handle RANGE_EXPR.
1877         (mark_no_warning): Iterate over actual childs.
1878         (generate_copy_inout): Likewise.
1879         (generate_element_copy): Likewise.
1880         (generate_element_zero): Likewise.
1881         (generate_element_init_1): Likewise.
1882         (dump_sra_elt_name): Handle RANGE_EXPR.
1883
1884 2006-07-03  Roger Sayle  <roger@eyesopen.com>
1885
1886         PR tree-optimization/26251
1887         * tree-ssa-threadupdate.c (redirection_block_p): New function.
1888         (thread_block): When optimizing for size refuse to thread jumps
1889         that would require duplication of blocks other than redirection
1890         blocks.
1891
1892 2006-07-03  Paolo Bonzini  <bonzini@gnu.org>
1893
1894         * configure.ac: Fix thinko in previous check-in.
1895         * configure: Regenerate.
1896
1897 2006-07-03  Paolo Bonzini  <bonzini@gnu.org>
1898
1899         PR other/27063
1900         * configure.ac (for lang...): Simplify nesting of conditionals.
1901         Test subdir_requires for non-enabled languages.  Move processing
1902         of lang_opt_files and lang_tree_fiels below that test.
1903         * configure: Regenerate.
1904         * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
1905
1906 2006-07-01  Martin Michlmayr  <tbm@cyrius.com>
1907
1908         * doc/gcov.texi (Invoking Gcov): Add a missing word.
1909
1910 2006-06-30  Kazu Hirata  <kazu@codesourcery.com>
1911
1912         * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
1913         comment typos.
1914
1915 2006-06-29  Jason Merrill  <jason@redhat.com>
1916
1917         PR c++/26905
1918         PR c++/26612
1919         PR c++/27000
1920         PR c++/26984
1921         PR c++/19134
1922         * tree.c (build_decl_stat): Don't hande #pragma visibility here.
1923         * c-common.c (c_determine_visibility): Handle it here.
1924         * c-decl.c (finish_decl): Call c_determine_visibility for
1925         functions, too.
1926         * flags.h (enum symbol_visibility): Sort from most to least visibility.
1927         * tree.h: Likewise.
1928         * varasm.c (default_assemble_visibility): Likewise.
1929         * c-common.c (handle_visibility_attribute): Complain about trying
1930         to give visibility to an already defined class, or trying to change
1931         declared visibility. Always attach the attribute.
1932
1933         PR c++/26905
1934         PR c++/21675
1935         PR c++/17470
1936         * attribs.c (decl_attributes): Ignore type-in-place attributes
1937         once the type has been defined.
1938
1939 2006-06-29  Roger Sayle  <roger@eyesopen.com>
1940
1941         PR middle-end/27428
1942         * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
1943         to indicate the cpplib has issued an error message for us.
1944
1945 2006-06-29  Asher Langton  <langton2@llnl.gov>
1946
1947         PR target/25765
1948         * config/i386/i386.c (ix86_output_function_epilogue): Don't
1949         insert a label at the end of an function under Mach-O.
1950
1951 2006-06-29  Eric Christopher  <echristo@apple.com>
1952             Evan Cheng  <evan.cheng@apple.com>
1953
1954         * predicates.md (vector_all_ones_operand): New.
1955         (nonimmediate_or_sse_const_operand): Ditto.
1956         * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
1957         * config/i386/i386.c (standard_sse_constant_opcode): Define.
1958         (standard_sse_mode_p): Ditto.
1959         (standard_sse_constant_p): Add case for -1 vector.
1960         (ix86_expand_vector_move): Try to use.
1961         * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
1962         Call standard_sse_constant_opcode.
1963         (*movv4sf_internal): Ditto.
1964         (*movv2df_internal): Ditto.
1965
1966 2006-06-29  Roger Sayle  <roger@eyesopen.com>
1967
1968         * genpreds.c (write_match_code_switch): Correctly use XSTR instead
1969         of XEXP to extract the operands of a MATCH_CODE rtx.
1970
1971 2006-06-28  Andrew Pinski  <pinskia@gmail.com>
1972
1973         * tree.c (tree_size): Do not waste tail padding in
1974         struct tree_string and make the size be the same as
1975         build_string will generate.
1976
1977 2006-06-28  Jason Merrill  <jason@redhat.com>
1978
1979         PR c++/27768
1980         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1981         may_aliases already in the tag's annotations to the bitmap.
1982
1983 2006-06-28  Roger Sayle  <roger@eyesopen.com>
1984
1985         * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
1986
1987 2006-06-28  Roger Sayle  <roger@eyesopen.com>
1988
1989         * genpreds.c (generate_switch_p): New function.
1990         (add_mode_tests): Push the new mode test down inside an AND expr
1991         if this allows the switch-suitable MATCH_CODE to be near the root.
1992         (write_match_code_switch): New function to write a MATCH_CODE as
1993         a switch statement.
1994         (write_predicate_stmts): New function to write a predicate RTX
1995         expression as a sequence of statements.
1996         (write_one_predicate_function): Use write_predicate_stmts.
1997         (write_tm_constrs_h): Likewise.
1998
1999 2006-06-26  Fred Fish  <fnf@specifix.com>
2000
2001         * config/mips/t-sb1: New file.
2002         * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
2003         tmake_file list.
2004
2005 2006-06-26  DJ Delorie  <dj@redhat.com>
2006
2007         * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
2008
2009 2006-06-26  Naveen H.S  <naveenh@kpitcummins.com>
2010             Jayant Sonar  <jayants@kpitcummins.com>
2011             Jaydeep Vipradas  <jaydeepv@kpitcummins.com>
2012
2013         * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
2014         (subsi3, subsi3_1, subsi3_2): New.
2015         * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
2016         * config/m32c/mov.md (SI mov peephole): New.
2017         * config/m32c/m32.c (m32c_immd_dbl_mov): New.
2018         * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
2019
2020 2006-06-26  Olivier Hainque  <hainque@adacore.com>
2021
2022         * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
2023         a CALL_EXPR target function declaration.
2024
2025 2006-06-26  Richard Guenther  <rguenther@suse.de>
2026
2027         * tree.c (build_string): Do not waste tail padding in
2028         struct tree_string.
2029
2030 2006-06-26  Richard Guenther  <rguenther@suse.de>
2031
2032         * ggc-page.c (init_ggc): Add missing element to size_lookup
2033         table.
2034
2035         Revert
2036         2006-06-23  Richard Guenther  <rguenther@suse.de>
2037
2038         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2039         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
2040         alignment requests instead.  Add verification code.
2041         Add struct tree_function_decl and struct tree_binfo size to
2042         extra_order_size_table.  Add missing element to size_lookup
2043         table.
2044
2045 2006-06-25  Eric Botcazou  <ebotcazou@adacore.com>
2046
2047         PR middle-end/28151
2048         * fold-const.c (const_binop): Be prepared for self returning zero.
2049         Simplify code handling complex values.
2050
2051 2006-06-24  Olivier Hainque  <hainque@adacore.com>
2052
2053         * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
2054         (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
2055         aggregate types.
2056
2057 2006-06-24  Olivier Hainque  <hainque@adacore.com>
2058
2059         * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
2060         ARRAY_REF, so have the callback called for the low bound expression.
2061
2062 2006-06-23  Janis Johnson  <janis187@us.ibm.com>
2063
2064         * tree.h (DECIMAL_FLOAT_TYPE_P): New.
2065         * c-typeck.c (c_common_type): Disallow operations on decimal float
2066         types and other float types.
2067         * convert.c (convert_to_real): Don't ignore conversions involving
2068         decimal float types.
2069
2070 2006-06-23  Olivier Hainque  <hainque@adacore.com>
2071
2072         * tree.c (max_int_size_in_bytes): New function, inspired from
2073         code in function.c:assign_temp.
2074         * tree.h (max_int_size_in_bytes): Declare.
2075         * function.c (assign_temp): Use it.
2076         * gimplify.c (create_tmp_var): Relax the assertions on the type
2077         properties, not mandating constant size any more.
2078         (force_constant_size): New static function.
2079         (gimple_add_tmp_var): Use it, forcing variable size to a
2080         constant upper bound if it is not constant on entry.
2081
2082 2006-06-23  Danny Smith   <dannysmith@users.sourceforge.net>
2083
2084         PR target/27789
2085         * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
2086         for initialization and setting of one_only flag to ...
2087         (i386_pe_encode_section_info): ...here.
2088         (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
2089         Recheck that the symbol has not been defined.
2090
2091 2006-06-23  Richard Guenther  <rguenther@suse.de>
2092
2093         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2094         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
2095         alignment requests instead.  Add verification code.
2096         Add struct tree_function_decl and struct tree_binfo size to
2097         extra_order_size_table.  Add missing element to size_lookup
2098         table.
2099
2100 2006-06-22  Roger Sayle  <roger@eyesopen.com>
2101             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2102
2103         PR middle-end/28131
2104         * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
2105         call to lang_hooks.types.type_for_mode returned NULL_TREE.
2106
2107 2006-06-23  Ben Elliston  <bje@au.ibm.com>
2108
2109         * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
2110         negate dn -- manipulate it directly.
2111
2112 2006-06-22  Roger Sayle  <roger@eyesopen.com>
2113             Steven Bosscher  <stevenb.gcc@gmail.com>
2114
2115         PR target/27531
2116         * reload1.c (gen_reload): Call mark_jump_label on the new insns
2117         generated by gen_move_insn to add REG_LABEL notes if necessary.
2118
2119 2006-06-22  Bob Wilson  <bob.wilson@acm.org>
2120
2121         * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
2122         (leaf_entry): Remove use of MIN_ESA.
2123
2124 2006-06-22  Zdenek Dvorak <dvorakz@suse.cz>
2125
2126         PR rtl-optimization/28121
2127         * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
2128         the entry edge.
2129
2130 2006-06-21  DJ Delorie  <dj@redhat.com>
2131
2132         * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
2133         (TN-16C-A156A/E).
2134         (mulhisi3_r): Likewise.
2135
2136 2006-06-21  Richard Sandiford  <richard@codesourcery.com>
2137
2138         PR middle-end/28034
2139         * coverage.c (coverage_counter_alloc): Leave the index type
2140         unspecified.
2141         (coverage_counter_alloc): Use null arguments for operands 2 and 3
2142         of the ARRAY_REF.
2143
2144 2006-06-21  Andrew Pinski  <pinskia@physics.uc.edu>
2145
2146         * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
2147         section from the "Options for Code Generation Conventions".
2148
2149 2006-06-21  Richard Henderson  <rth@redhat.com>
2150
2151         PR target/26347
2152         PR target/27082
2153         * config/alpha/predicates.md (small_symbolic_operand): Deny weak
2154         symbols.
2155         (global_symbolic_operand): Allow weak symbols, even if local_p.
2156
2157 2006-06-21  Eric Botcazou  <ebotcazou@adacore.com>
2158
2159         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
2160         (find_interesting_uses_address): Punt if above function returns true.
2161
2162 2006-06-21  Richard Guenther  <rguenther@suse.de>
2163
2164         * configure: Regenerated.
2165
2166 2006-06-21  Joseph Myers  <joseph@codesourcery.com>
2167
2168         * config/mips/mips.c (function_arg): Where one part of a
2169         complex argument is in registers and the other part in the stack,
2170         return a REG not a PARALLEL.
2171
2172 2006-06-21  Mark Mitchell  <mark@codesourcery.com>
2173
2174         * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
2175         when cross-compiling.  Do not substitute libstdcxx_incdir.
2176         * configure: Regenerated.
2177
2178 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2179
2180         * varasm.c (mergeable_string_section): Check for embedded NULs and
2181         NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
2182         rather than TREE_STRING_LENGTH bytes.
2183
2184 2006-06-21  Richard Guenther  <rguenther@suse.de>
2185
2186         * ggc-page.c (extra_order_size_table): Add var_ann_d,
2187         tree_ssa_name, bitmap_element and phi_node with 4 arguments
2188         sizes.
2189
2190 2006-06-21  Richrad Guenther  <rguenther@suse.de>
2191
2192         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
2193         Limit iteration over the dominators.
2194
2195 2006-06-20  Roger Sayle  <roger@eyesopen.com>
2196
2197         * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
2198         (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
2199
2200 2006-06-20  Richard Guenther  <rguenther@suse.de>
2201         Michael Matz  <matz@suse.de>
2202
2203         * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
2204         function.
2205         * alloc-pool.c (free_alloc_pool_if_empty): New function.
2206         * et-forest.h (et_free_pools): Prototype new function.
2207         * et-forest.c (et_free_tree_force): Free parent occurrence.
2208         (et_free_pools): New function.
2209         * dominance.c (free_dominance_info): Free et-forest alloc
2210         pools.
2211
2212 2006-06-20  Roger Sayle  <roger@eyesopen.com>
2213
2214         * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
2215         integer modes, attempt to directly construct an integer constant.
2216
2217         * fold-const.c (native_encode_vector): Determine the size of each
2218         element from the vector type instead of the first vector element.
2219
2220         * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
2221         if all of its elements/components are constant.
2222         (build_constructor_from_list): Likewise.
2223
2224 2006-06-20  Zdenek Dvorak <dvorakz@suse.cz>
2225
2226         PR tree-optimization/27331
2227         * tree-data-ref.c (free_data_ref): New function.
2228         (create_data_ref): Fail if the data reference has unknown access
2229         function.
2230         (free_data_refs): Use free_data_ref.
2231
2232 2006-06-19  Andrew Pinski  <pinskia@gmail.com>
2233
2234         PR middle-end/28075
2235         * tree-inline.c (setup_one_parameter): Strip useless
2236         type conversion before adding it to the IR.
2237         (declare_return_variable): Likewise.
2238
2239 2006-06-19  Martin Michlmayr  <tbm@cyrius.com>
2240
2241         PR c/27149
2242         * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
2243
2244 2006-06-19  Mike Stump  <mrs@apple.com>
2245
2246         * tree.c (variably_modified_type_p): VM arguments don't make the
2247         type a VM type.
2248
2249 2006-06-19  Richard Guenther  <rguenther@suse.de>
2250
2251         * tree-ssa-pre.c (try_combine_conversion): Strip useless
2252         type conversions after folding.
2253
2254 2006-06-19  Richard Guenther  <rguenther@suse.de>
2255
2256         * ggc-page.c (extra_order_size_tab): Add entries with
2257         size of struct function and basic_block.
2258         (size_lookup): Extend to cover sizes up to 511.
2259         (ggc_alloc_stat): Adjust user.
2260         (ggc_pch_count_object): Likewise.
2261         (ggc_pch_alloc_object): Likewise.
2262         (ggc_pch_write_object): Likewise.
2263
2264 2006-06-19  Zdenek Dvorak <dvorakz@suse.cz>
2265
2266         * tree-ssa-loop-niter.c (implies_ge_p): New function.
2267         (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
2268         correctly.
2269
2270 2006-06-19  Denis Chertykov  <denisc@overta.ru>
2271
2272         * config/avr/libgcc.S : Correct my wrong previous commit.
2273
2274 2006-06-19  Roger Sayle  <roger@eyesopen.com>
2275
2276         PR target/27861
2277         * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
2278         have stripped a SUBREG from the shift count, so we may need to
2279         convert_to_mode back to the type's mode before calling make_tree.
2280         Use new_amount instead of amount to avoid expanding a tree twice.
2281
2282 2006-06-19  Richard Guenther  <rguenther@suse.de>
2283
2284         PR middle-end/28045
2285         * fold-const.c (operand_equal_p): Check if the argument types
2286         have the same precision before stripping NOPs.
2287
2288 2006-06-19  Daniel Berlin  <dberlin@dberlin.org>
2289
2290         Fix PR tree-optimization/27341
2291         * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
2292         statement we get.
2293         * tree-complex.c (pass_lower_complex): Update SMT usage.
2294
2295 2006-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2296
2297         * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
2298         Add a new alternative to the constraint strings. Add move of
2299         operand 1 to 3 to the splitter definition.
2300         ("doloop_si_long"): Second contraint alternative removed.
2301
2302 2006-06-08  Anatoly Sokolov <aesok@post.ru>
2303
2304         * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
2305         (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
2306         __AVR_HAVE_LPMX__.
2307         (AVR_HAVE_MOVW) Define.
2308         (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
2309         (ASM_SPEC): Add avr25.
2310         (LINK_SPEC): Add avr25.
2311         * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
2312         (base_arch_s): Add new member 'have_movw_lpmx'.
2313         (avr_arch_types): Init 'have_movw_lpmx'.
2314         (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
2315         attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
2316         attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
2317         (avr_override_options): Init 'avr_have_movw_lpmx_p'.
2318         (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
2319         AVR_HAVE_MOVW.
2320         (avr_file_start): Do not output '.arh' derective.
2321         * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
2322         (__do_copy_data): Use __AVR_HAVE_LPMX__.
2323         * config/avr/avr.md (mcu_enhanced): Delete.
2324         (mcu_have_movw): Define.
2325         (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
2326         (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
2327         * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
2328         (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
2329         attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
2330         attiny861 and at86rf401 devices.
2331
2332 2006-06-18  Jie Zhang  <jie.zhang@analog.com>
2333
2334         * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
2335         of 4096.
2336
2337 2006-06-17  Karl Berry  <karl@gnu.org>
2338
2339         * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
2340         doc/gccint.texi, doc/install.texi (@dircategory): Use
2341         "Software development" instead of "Programming", following
2342         the Free Software Directory.
2343
2344 2006-06-17  Alexandre Oliva  <aoliva@redhat.com>
2345
2346         * config/i386/i386.c (legitimate_tls_address)
2347         <TARGET_GNU2_TLS>: Add tp after DTPOFF.
2348         * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
2349         (*tls_dynamic_gnu2_combine_64): Likewise.
2350
2351 2006-06-16  Richard Guenther  <rguenther@suse.de>
2352
2353         PR middle-end/27116
2354         * fold-const.c (negate_expr_p): Do not introduce undefined
2355         overflow in negating INTEGER_CSTs.
2356         (fold_negate_expr): Rename from negate_expr.  Revert last
2357         change for folding BIT_NOT_EXPR.  Change semantics to
2358         return NULL_TREE for non-simplified negations.  Do not
2359         strip type conversions and unify type handling.
2360         (negate_expr): New function, wrap around fold_negate_expr
2361         but ensure building a tree always.  Strip type conversions
2362         here, fold to result type.
2363         (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
2364
2365 2006-06-16  Roger Sayle  <roger@eyesopen.com>
2366
2367         PR middle-end/27802
2368         * reg-stack.c (subst_stack_regs): Handle noreturn function calls
2369         that (would) return their results in stack registers.
2370
2371 2006-06-16  Michael Matz  <matz@suse.de>
2372         Richard Guenther  <rguenther@suse.de>
2373
2374         * fold-const.c (fold_truthop): Only return new tree node if
2375         we canonicalized something.
2376
2377 2006-06-16  Richard Guenther  <rguenther@suse.de>
2378
2379         * function.h (enum function_frequency): Move declaration
2380         out of struct function.
2381         (struct function): Move bool fields and the enum to the bitfield
2382         section.  Reorder elements to avoid padding.  Remove unused
2383         fields left over from the RTL inliner removal.
2384         * function.c (free_after_compilation): Do not zero removed fields.
2385         * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
2386         (ipa-type-escape.o): Likewise.
2387
2388 2006-06-16  Richard Guenther  <rguenther@suse.de>
2389
2390         * cgraph.h (struct cgraph_local_info): Turn bool elements
2391         into a bitfield.
2392         (struct cgraph_node): Likewise.
2393         (struct cgraph_varpool_node): Likewise.
2394
2395 2006-06-15  Richard Guenther  <rguenther@suse.de>
2396
2397         * fold-const.c (fold_truth_not_expr): Rename from
2398         invert_truthvalue.  Give it fold_* semantics to avoid
2399         generating garbage.
2400         (invert_truthvalue): New function.  Wrapper around
2401         fold_truth_not_expr.
2402         (optimize_minmax_comparison): Avoid creating garbage.
2403         (fold_unary): Use fold_truth_not_expr for folding
2404         TRUTH_NOT_EXPR.
2405         (fold_ternary): Replace uses of invert_truthvalue with
2406         fold_truth_not_expr where applicable.
2407         * tree.h (fold_truth_not_expr): Prototype.
2408
2409 2006-06-16  Richard Guenther  <rguenther@suse.de>
2410
2411         PR tree-optimization/27781
2412         * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
2413         * ipa-pure-const.c (target.h): Include.
2414         (analyze_function): Do not analyze functions that do not
2415         bind locally.
2416
2417 2006-06-15  Andrew MacLeod  <amacleod@redhat.com>
2418
2419         PR middle-end/27793
2420         * tree-dfa.c (referenced_vars_dup_list): Remove.
2421         (find_referenced_vars): Remove assert.
2422         (referenced_var_check_and_insert): Replace dup list with assert.
2423         * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
2424         * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
2425
2426 2006-06-15  Richard Guenther  <rguenther@suse.de>
2427
2428         * tree-ssa-structalias.c (alias_get_name): Avoid creating
2429         extra unused identifiers if not dumping.
2430         (create_variable_info_for): Likewise.
2431
2432 2006-06-15  Zdenek Dvorak <dvorakz@suse.cz>
2433
2434         * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
2435         (derive_constant_upper_bound): Derive more precise upper bound in
2436         common cases.  Return type changed to double_int.
2437         (record_estimate): Reflect the changed return type of
2438         derive_constant_upper_bound.
2439         * double-int.c (double_int_zext, double_int_sext): Fix.
2440
2441 2006-06-15  Paolo Bonzini  <bonzini@gnu.org>
2442
2443         * configure.ac (CFLAGS): Get them from the toplevel or from the
2444         configure invocation.
2445         * configure: Regenerate.
2446         * Makefile.in (CFLAGS): Substitute value provided by configure.
2447
2448 2006-06-14  Mark Mitchell  <mark@codesourcery.com>
2449
2450         PR c++/26559
2451         * c-common.h (c_finish_omp_atomic): Adjust declaration.
2452         * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
2453         rather than calling add_stmt on it.
2454         * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
2455
2456 2006-06-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2457
2458         PR middle-end/27959
2459         * reload1.c (reload): Remove registers returned by update_eliminables
2460         from used_spill_regs.
2461
2462 2006-06-13  DJ Delorie  <dj@redhat.com>
2463
2464         * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
2465
2466 2006-06-13  Carlos O'Donell  <carlos@codesourcery.com>
2467
2468         * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
2469         html__strip_dir, html__mkdir_p. Enhance install-html target.
2470         * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
2471         * configure: Regenerate.
2472
2473 2006-06-13  Fariborz Jahanian <fjahanian@apple.com>
2474
2475         * fold-const.c (fold_cond_expr_with_comparison): Check for
2476         Objective-C++ as language in deciding COND_EXPR transformation.
2477
2478 2006-06-06  J"orn Rennecke <joern.rennecke@st.com>
2479
2480         PR target/28014:
2481         * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
2482         * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
2483         * config/sh/lib1funcs.h (SL, SL1): Define.
2484         * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
2485         * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
2486         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
2487         (OBJS_Os_4_200): New variable.
2488         ($(T)libgcc-Os-4-200.a): Use it.
2489         * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
2490         when dividing 1 and/or by 0.
2491
2492 2006-06-13  Roger Sayle  <roger@eyesopen.com>
2493
2494         * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
2495         before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
2496         * configure: Regenerate.
2497
2498 2006-06-13  Jie Zhang  <jie.zhang@analog.com>
2499
2500         * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
2501         for real instruction.
2502
2503 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2504
2505         PR middle-end/26807
2506         * haifa-sched.c (check_cfg): Handle special case.
2507
2508 2006-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2509
2510         PR debug/26754
2511         * gimplify.c (declare_tmp_vars): Rename into declare_vars.
2512         Add debug_info parameter.  Chain the vars to the BLOCK instead
2513         of the BIND_EXPR if debug info are requested for them.
2514         (pop_gimplify_context): Adjust for above change.
2515         (gimple_add_tmp_var): Likewise.
2516         * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
2517         Add bool parameter.
2518         * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
2519         (convert_local_reference): Likewise.
2520         (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
2521         (finalize_nesting_tree_1): Request that debug info be emitted
2522         for debug_var_chain.
2523
2524 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2525
2526         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
2527         for PR target/27863.
2528
2529 2006-06-13  Richard Guenther  <rguenther@suse.de>
2530
2531         PR middle-end/27536
2532         * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
2533
2534 2006-06-13  Richard Guenther  <rguenther@suse.de>
2535
2536         PR tree-optimization/27830
2537         * tree-inline.c (copy_body_r): For copying the operand
2538         of an ADDR_EXPR make sure to fold &* afterwards.
2539
2540 2006-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2541
2542         * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
2543         lvalues in the fb_none case with side-effects.
2544
2545 2006-06-12  Kazu Hirata  <kazu@codesourcery.com>
2546
2547         * tree-flow.h: Remove the prototype for
2548         compute_phi_arg_on_exit.
2549         * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
2550         protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
2551         Remove.
2552
2553 2006-06-12  Mark Shinwell  <shinwell@codesourcery.com>
2554
2555         * builtins.c (expand_builtin_return_addr): Only use
2556         frame_pointer_rtx when count == 0 and we are expanding
2557         __builtin_return_address.
2558
2559 2006-06-12  Fred Fish  <fnf@specifix.com>
2560
2561         * config/mips/mips.c (mips_file_start): Create special section
2562         ".gcc_compiled_longXX" for o64 ABI as well as EABI.
2563
2564 2006-06-11  Eric Christopher  <echristo@apple.com>
2565
2566         PR middle-end/27948
2567         * stor-layout.c (place_field): Remove check for
2568         remaining_in_alignment when aligning at the end of a run.
2569
2570 2006-06-11  Eric Christopher  <echristo@apple.com>
2571
2572         PR 27542
2573         * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
2574         pragma.
2575
2576 2006-06-11  Roger Sayle  <roger@eyesopen.com>
2577
2578         PR target/27858
2579         Revert incorrect fix for PR target/27158
2580         2006-05-08  Roger Sayle  <roger@eyesopen.com>
2581         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
2582         of a reg_equiv_constant if the result is a legitimate constant.
2583
2584 2006-06-11  Roger Sayle  <roger@eyesopen.com>
2585
2586         PR target/27158
2587         * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
2588         extract a CONST_VECTOR element and interpret it as an integer.
2589         (vspltis_constant): Use const_vector_elt_as_int instead of the
2590         macro CONST_VECTOR_ELT in order to handle FP vector modes.
2591         * config/rs6000/predicates.md (easy_vector_const): Consider
2592         floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
2593
2594 2006-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2595
2596         PR middle-end/27942
2597         * stor-layout.c (update_alignment_for_field): Don't add extra
2598         alignment for packed non-bitfield fields in ms_bitfield_layout_p
2599         code.
2600
2601 2006-06-09  Ralf Corsepius  <ralf.corsepius@rtems.org>
2602
2603         * config/mips/t-rtems: Add EL/EB multilib variants.
2604
2605 2006-06-09  Mike Stump  <mrs@apple.com>
2606
2607         * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
2608
2609 2006-06-09  David Daney  <ddaney@avtrex.com>
2610
2611         * doc/install.texi: Add binutils version recommendation for mips-*-*.
2612
2613 2006-06-09  Andreas Krebbel  <krebbel1@de.ibm.com>
2614
2615         * reload.c (find_reloads): Unset force_reload for 'X' constraint.
2616
2617 2006-06-09  Richard Guenther  <rguenther@suse.de>
2618
2619         PR tree-optimization/26998
2620         * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
2621         of signed types, only TYPE_MIN_VALUE is special, but for both,
2622         minimum and maximum value.  Likewise VR_ANTI_RANGE is special
2623         in this case, as is -fwrapv.
2624
2625 2006-06-08  Mike Stump  <mrs@apple.com>
2626
2627         PR target/26427
2628         * config/darwin.c (darwin_asm_output_anchor): Disable
2629         -fsection-anchors on darwin for now.
2630         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
2631         * rs6000/rs6000.c (optimization_options): Likewise.
2632
2633 2006-06-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2634
2635         PR target/27421
2636         * config/i386/i386.c (classify_argument): Skip fields with invalid
2637         types in unions.
2638
2639 2006-06-08  Steven Bosscher  <steven@gcc.gnu.org>
2640
2641         * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
2642         (cse_insn): Likewise for the stack_pointer_rtx.
2643
2644 2006-06-08  Roger Sayle  <roger@eyesopen.com>
2645
2646         * tree-ssa-dom.c (record_conditions): Only record "unordered"
2647         conditions from floating point comparisons.
2648
2649 2006-06-08  Paolo Bonzini  <bonzini@gnu.org>
2650
2651         PR middle-end/27733
2652         * expmed.c (struct alg_hash_entry): Fix type of field T
2653         to match synth_mult argument.
2654         (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
2655
2656 2006-06-08  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2657
2658         PR target/27863
2659         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
2660         block boundaries.
2661
2662 2006-06-08  Richard Guenther  <rguenther@suse.de>
2663
2664         PR middle-end/27116
2665         * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
2666         only, if overflow is defined and not trapping.
2667         (negate_expr): Likewise.
2668
2669 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
2670
2671         PR tree-optimization/27872
2672         * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
2673         flag on the new exit edge of the unrolled loop.
2674
2675 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
2676
2677         PR rtl-optimization/26449
2678         * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
2679
2680 2006-06-07  Andrew MacLeod  <amacleod@redhat.com>
2681
2682         PR middle-end/27793
2683         * tree-dfa.c (referenced_vars_dup_list): New.  List of duplicate
2684         referenced_variables with matching DECL_UID's.
2685         (find_referenced_vars): Make sure duplicate list is empty to start.
2686         (referenced_var_p): Remove.
2687         (referenced_var_check_and_insert): Renamed from referenced_var_insert.
2688         Check if var is in the list, and add if needed.  Update the duplicate
2689         list if a different var is in the list with the same DECL_UID.
2690         (add_referenced_var): Call routine to check and insert.
2691         * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
2692         * tree-flow.h (referenced_vars_dup_list): External declaration.
2693
2694 2006-06-07  Fred Fish  <fnf@specifix.com>
2695
2696         * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
2697         into single entry.
2698
2699 2006-06-07  Paolo Bonzini  <bonzini@gnu.org>
2700
2701         PR target/27390
2702         * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
2703         the imaginary and real parts of a clobbered register.
2704         Emit insn to set the imaginary part.
2705
2706 2006-06-06  Peter Lemieszewski  <lemie@us.ibm.com>
2707
2708         * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
2709         in lieu of unwind-dw2-fde.c.
2710
2711 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2712
2713         * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
2714
2715 2006-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
2716
2717         PR target/27842
2718         * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
2719         ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
2720         ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
2721         V4SImode temporaries and operations instead.
2722
2723 2006-06-06  Joseph S. Myers  <joseph@codesourcery.com>
2724
2725         * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
2726         dp-bit.c.
2727
2728 2006-06-06  Mike Stump  <mrs@apple.com>
2729
2730         * Makefile.in: Rename to htmldir to build_htmldir to avoid
2731         installing during build.
2732
2733 2006-06-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2734
2735         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
2736         value to 0.
2737         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
2738         * config/ia64/ia64.c (params.h): New header.
2739         (ia64_optimization_options): New function to adjust parameters.
2740         * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
2741         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
2742         * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
2743
2744 2006-06-05  Kazu Hirata  <kazu@codesourcery.com>
2745
2746         * stor-layout.c (debug_rli): Fix a typo in a debug message.
2747
2748 2006-06-05  Steve Ellcey  <sje@cup.hp.com>
2749
2750         PR target/27051
2751         * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
2752
2753 2006-06-05  Dorit Nuzman  <dorit@il.ibm.com>
2754             Victor Kaplansky  <victork@il.ibm.com>
2755
2756         PR tree-optimization/26360
2757         * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
2758         stmts.
2759
2760 2006-06-04  Roger Sayle  <roger@eyesopen.com>
2761             Andrew Pinski  <pinskia@physics.uc.edu>
2762
2763         PR middle-end/27382
2764         * c-common.c (c_common_truthvalue_conversion): Explicitly check
2765         for LABEL_DECL before calling DECL_WEAK.
2766
2767         PR c/27150
2768         * c-typeck.c (build_binary_op): Likewise, explicitly check for
2769         LABEL_DECL and PARM_DECL.
2770
2771 2006-06-05  Joseph S. Myers  <joseph@codesourcery.com>
2772
2773         PR c/25161
2774         PR c/27020
2775         * c-decl.c (grokdeclarator): Disallow variably modified types at
2776         file scope.  Avoid marking shared array type of constant size as
2777         VLA.
2778
2779 2006-06-04  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2780
2781         PR c++/27601
2782         * c-common.c (fold_offsetof_1): Handle static members.
2783
2784 2006-06-04 Eric Christopher <echristo@apple.com>
2785
2786         * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
2787         (debug_rli): Output value for remaining_in_alignment.
2788         (update_alignment_for_field): Unconditionalize
2789         ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
2790         extra alignment code.
2791         (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
2792         ms_bitfield_layout_p code. Rewrite handling of structure fields.
2793         * tree.h (record_layout_info_s): Remove prev_packed.
2794         * doc/extend.texi (ms_struct): Add documentation of format.
2795
2796 2006-06-04  Mark Shinwell  <shinwell@codesourcery.com>
2797
2798         * tree.h: Declare folding_initializer.
2799         * builtins.c (fold_builtin_constant_p): Give definite answer
2800         if folding inside an initializer.
2801         * fold-const.c: Define folding_initializer.
2802         (START_FOLD_INIT): Save and then set folding_initializer.
2803         (END_FOLD_INIT): Restore folding_initializer.
2804
2805 2006-06-04  Richard Guenther  <rguenther@suse.de>
2806
2807         PR tree-optimization/27039
2808         * fold-const.c (fold_comparison): Handle pointer comparison
2809         again for all comparison codes.  Compare offsets in signed
2810         size type.
2811         (fold_binary): Move code from here.
2812
2813 2006-06-03  Roger Sayle  <roger@eyesopen.com>
2814
2815         PR target/26223
2816         * config/i386/i386.c (construct_container): Split static issued_error
2817         flag into issued_sse_arg_error, issued_sse_ret_error and
2818         issued_x87_ret_error.  Issue a daignostic if the x86-64 ABI
2819         requires the use of x87 registers and the user explicitly
2820         specified the -mno-80387 command line option.
2821
2822 2006-06-02  Geoffrey Keating  <geoffk@apple.com>
2823
2824         * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
2825         HAVE_DECL_SIGALTSTACK.
2826         (MC_FLD): New.
2827         (segv_handler): Use MC_FLD.
2828         * configure.ac: Check for a sigaltstack declaration.
2829         Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
2830         * configure: Regenerate.
2831         * config.in: Regenerate.
2832
2833 2006-06-03  J"orn Rennecke <joern.rennecke@st.com>
2834
2835         PR other/27850
2836         * Makefile.in (stmp-fixinc): Fix typo.
2837
2838 2006-06-02  Roger Sayle  <roger@eyesopen.com>
2839
2840         * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
2841         are type correct.  Clean-up.
2842         <REALPART_EXPR>: Likewise.  Optimize creal(~z) as creal(z).
2843         <IMAGPART_EXPR>: Likewise.  Optimize cimag(~z) as -cimag(z).
2844
2845 2006-06-01  DJ Delorie  <dj@redhat.com>
2846
2847         * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
2848         shift, as we've disabled the "switch" insn that needs it.
2849
2850 2006-06-01  Per Bothner  <bothner@bothner.com>
2851
2852         Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
2853         * c-opts.c (finish_options): Use internal line 0 for <command-line>.
2854         * c-ppoutput.c (cb_define): Don't increment line 0.
2855
2856 2006-06-01  Pete Steinmetz  <steinmtz@us.ibm.com>
2857
2858         * doc/invoke.texi: Add cpu_type power6.
2859         * config.gcc: Add cpu_type power6.
2860         * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
2861         to power5+ with Altivec.
2862         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
2863         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
2864
2865 2006-05-30  Anatoly Sokolov <aesok@post.ru>
2866
2867         * config/avr/avr.h (SET_ASM_OP): Define.
2868
2869 2006-06-01  Kazu Hirata  <kazu@codesourcery.com>
2870
2871         * config/bfin/bfin.c: Fix comment typos.
2872
2873 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
2874
2875         PR 25453
2876         * doc/install.texi: Document --enable-bootstrap and
2877         --disable-bootstrap.
2878
2879 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
2880
2881         * doc/install.texi: Document that InfoZIP can replace jar.
2882
2883 2006-05-31  Roger Sayle  <roger@eyesopen.com>
2884
2885         * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
2886         isn't available, directly generate the simpler x87 patterns without
2887         the (use (const_int 0)).
2888         * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
2889         implementation isn't available.
2890         (*negdf2_1): Likewise.
2891         (*negxf2_1): XF mode negation is always done using the x87.
2892         (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
2893
2894 2006-05-31  Roger Sayle  <roger@eyesopen.com>
2895
2896         * builtins.c (fold_builtin_cabs): Delete prototype.  Require an
2897         additional FNDECL argument.  Optimize cabs(-z) and cabs(~z) as
2898         cabs(z).
2899         (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
2900
2901 2006-05-31  Jie Zhang  <jie.zhang@analog.com>
2902
2903         * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
2904         * config/bfin/bfin.c (basic-block.h): Include.
2905         (struct machine_function): New.
2906         (bfin_init_machine_status): New.
2907         (override_options): Initialize init_machine_status.
2908         (bfin_hardware_loop): New.
2909         (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
2910         (DEF_VEC_P (loop_info)): New.
2911         (DEF_VEC_ALLOC_P (loop_info,heap)): New.
2912         (struct loop_info): New.
2913         (loop_info): New typedef.
2914         (struct loop_work): New.
2915         (loop_work): New typedef.
2916         (DEF_VEC_O (loop_work)): New.
2917         (DEF_VEC_ALLOC_O (loop_work,heap)): New.
2918         (bfin_dump_loops): New.
2919         (bfin_bb_in_loop): New.
2920         (bfin_scan_loop): New.
2921         (bfin_optimize_loop): New.
2922         (bfin_reorg_loops): New.
2923         (bfin_reorg): Use bfin_reorg_loops.
2924         * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
2925         loop registers.
2926         (I_REGNO_P): Simplify.
2927         (DP_REGNO_P, DPREG_P): New macros.
2928         (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
2929         REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
2930         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
2931         Add LT_REGS, LC_REGS, LB_REGS.
2932         (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
2933         'l' for LB_REGS.
2934         (REGNO_REG_CLASS): Deal with loop registers.
2935         * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
2936         letters.
2937         (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
2938         New constants for loop registers.
2939         (UNSPEC_LSETUP_END): New.
2940         (seq_insns): New define_attr. Set it for appropriate insns.
2941         (movsi_insn): Add alternatives for move from/to
2942         loop count registers.
2943         (doloop_end): New define_expand.
2944         (loop_end): New define_insn.
2945         (define_split for bad doloop_end): New.
2946         (lsetup_with_autoinit): New define_insn.
2947         (lsetup_without_autoinit): New define_insn.
2948         (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
2949         * config/bfin/predicates.md (lc_register_operand): New.
2950         (lt_register_operand): New.
2951         (lb_register_operand): New.
2952         (nondp_register_operand): New.
2953         (nondp_reg_or_memory_operand): New.
2954         * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
2955
2956 2006-05-31  Jie Zhang  <jie.zhang@analog.com>
2957
2958         * config/bfin/bfin.c (bfin_delegitimize_address): New.
2959         (TARGET_DELEGITIMIZE_ADDRESS): Define.
2960
2961 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
2962
2963         * Makefile.in (CATALOGS): Add po/ prefix.
2964         * configure: Regenerated.
2965
2966 2006-05-31  Richard Earnshaw  <richard.earnshaw@arm.com>
2967
2968         PR target/27829
2969         * arm.c (arm_print_operand case 'S'): Validate that the operand is
2970         a shift operand before calling shift_op.  Avoid redundant call of
2971         shift_op.
2972
2973 2006-05-30  Naveen.H.S  <naveenh@kpitcummins.com>
2974             DJ Delorie  <dj@redhat.com>
2975
2976         * config/m32c/m32c.c (m32c_expand_insv): Check that the value
2977         we're inserting is a singlt-bit constant.
2978
2979 2006-05-30  Roger Sayle  <roger@eyesopen.com>
2980
2981         * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
2982         width to HOST_WIDE_INT to avoid comparison warnings on some targets.
2983
2984 2006-05-30  Roger Sayle  <roger@eyesopen.com>
2985
2986         PR tree-optimization/23452
2987         * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
2988         to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
2989         (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
2990         complex values and with -ffast-math for FP complex values.
2991
2992 2006-05-30  Kazu Hirata  <kazu@codesourcery.com>
2993
2994         * c-common.h: Remove the prototype for yyparse.
2995         * rtl.h: Remove the prototype for init_loop.
2996
2997 2006-05-30  Andreas Krebbel  <krebbel1@de.ibm.com>
2998
2999         * cse.c (validate_canon_reg, cse_insn): Don't change insns without
3000         calling recog.
3001
3002 2006-05-30  Roger Sayle  <roger@eyesopen.com>
3003
3004         * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
3005         and rotate cases.
3006         <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
3007         log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
3008
3009 2006-05-30  Dirk Mueller  <dmueller@suse.de>
3010
3011         PR c/27273
3012         * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
3013         for CONSTANT_CLASS_P expresisons.
3014
3015 2006-05-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3016
3017         PR c/27718
3018         * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
3019
3020 2006-05-30  Zdenek Dvorak <dvorakz@suse.cz>
3021
3022         PR tree-optimization/27779
3023         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
3024         initial_condition instead of CHREC_LEFT.
3025
3026 2006-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
3027
3028         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
3029         * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
3030         Make prototypes ISO C90.
3031
3032 2006-05-30  Mircea Namolaru  <namolaru@il.ibm.com>
3033             Leehod Baruch    <leehod.baruch@weizmann.ac.il>
3034
3035         * see.c (see_analyze_one_def): Correct check.
3036         (see_get_extension_data): Check if extension is parallel.
3037         (see_get_extension_reg): Likewise.
3038
3039 2006-05-30  Uros Bizjak  <uros@kss-loka.si>
3040
3041         PR target/27790
3042         * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
3043         into register for (code == GTU).
3044
3045 2006-05-29  Roger Sayle  <roger@eyesopen.com>
3046
3047         PR tree-optimization/24964
3048         * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
3049         <MULT>: Minor clean-up.  Don't convert x*-1.0 into -x if we honor
3050         signaling NaNs.  Optimize -x*-x as x*x for all float modes, and
3051         abs(x)*abs(x) as x*x for scalar floating point modes.
3052
3053 2006-05-29  Sebastian Pop  <pop@cri.ensmp.fr>
3054
3055         PR middle-end/27745
3056         * lambda-code.c (perfect_nestify): Don't copy statements
3057         in the inner loop: move them to the inner loop header.
3058
3059 2006-05-29  Diego Novillo  <dnovillo@redhat.com>
3060
3061         PR 26237
3062         * c-tree.texi: Document OpenMP directives and clauses.
3063
3064 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
3065
3066         * varasm.c (globalize_decl): Fix indentation.
3067
3068 2006-05-29  Diego Novillo  <dnovillo@redhat.com>
3069
3070         PR 26242
3071         * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
3072         pass_fre, pass_store_ccp, pass_copy_prop,
3073         pass_store_copy_prop, pass_merge_phi, pass_nrv,
3074         pass_return_slot, pass_object_size, pass_lim,
3075         pass_linear_transform, pass_empty_loop, pass_complete_unroll,
3076         pass_loop_prefetch and pass_stdarg.
3077
3078 2005-05-29  Bernd Schmidt  <bernd.schmidt@analog.com>
3079
3080         * config/bfin/bfin.opt (mfdpic): New option.
3081         * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
3082         (EXTRA_MULTILIB_PARTS): Likewise.
3083         (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
3084         (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
3085         multilib.
3086         * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
3087         (CRT_CALL_STATIC_FUNCTION): New.
3088         * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
3089         -shared.
3090         (CRT_CALL_STATIC_FUNCTION): New.
3091         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Handle
3092         FD-PIC moves.
3093         (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
3094         (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
3095         (initialize_trampoline): Changed to handle FD-PIC code generation.
3096         (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
3097         (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
3098         (override_options): Disallow -mid-shared-library -mfdpic combination.
3099         Can't do unaligned ops if FD-PIC.
3100         Turn off flag_pic if trying to generate non-id-shared-library
3101         non-fdpic code, since it's not supported.
3102         (bfin_assemble_integer): New function.
3103         (TARGET_ASM_INTEGER): Define.
3104         * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
3105         __BFIN_FDPIC__.
3106         * config/bfin/crtn.s: Restore them.
3107         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
3108         if TARGET_FDPIC.
3109         (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3110         LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
3111         (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
3112         (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
3113         (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
3114         call-used.
3115         (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
3116         FDPIC_REGS and FDPIC_FPTR_REGS.
3117         (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
3118         * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
3119         UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
3120         (load_funcdescsi): New pattern.
3121         (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
3122         sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
3123         call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
3124
3125 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
3126
3127         * gcse.c, rtlanal.c: Remove obsolete comments associated with
3128         loop.c.
3129
3130         * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
3131
3132         * tree-flow.h: Remove the prototype for add_type_alias.
3133         * tree-ssa-alias.c (add_type_alias): Remove.
3134
3135 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
3136
3137         * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
3138         config/fr30/fr30.md, config/i386/i386-interix.h,
3139         config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
3140         config/sh/superh64.h, config/v850/v850.c, df-core.c,
3141         df-problems.c, df.h, except.c, final.c, haifa-sched.c,
3142         lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
3143         reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
3144         tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
3145         Follow spelling conventions.
3146         * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
3147         Follow spelling conventions.
3148
3149 2006-05-27  Richard Guenther  <rguenther@suse.de>
3150
3151         PR middle-end/27773
3152         * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
3153         to produce a constant of value 1 of generic type.
3154
3155 2006-05-27  Dirk Mueller  <dmueller@suse.de>
3156
3157         * cgraphunit.c (decide_is_function_needed): Fix wrong
3158         PR reference.
3159
3160 2006-05-26  Ulrich Weigand  <uweigand@de.ibm.com>
3161
3162         PR rtl-optimization/27661
3163         * reload.c (find_reloads): When reloading a VOIDmode constant
3164         as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
3165         use Pmode as mode of the reload register.
3166
3167 2006-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3168
3169         * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
3170         is enabled at -O and above.
3171
3172 2006-05-26  Steven Bosscher  <steven@gcc.gnu.org>
3173
3174         PR target/27571
3175         * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
3176         table data.
3177
3178 2006-05-25  Mark Mitchell  <mark@codesourcery.com>
3179
3180         PR c++/20103
3181         * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
3182         for anonymous variables explicitly declared by front ends.
3183
3184 2006-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3185
3186         * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
3187         (struct alias_info): Add new field ref_all_symbol_mem_tag.
3188         * tree-ssa-alias.c (compute_may_aliases): If the program contains
3189         ref-all pointers, run a finalization pass for them.
3190         (compute_flow_insensitive_aliasing): Skip ref-all pointers.
3191         (finalize_ref_all_pointers): New function.
3192         (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
3193         regular pointer type to a ref-all pointer type.
3194         (get_tmt_for): Return the special memory tag for ref-all pointers.
3195
3196 2006-05-25  Richard Guenther  <rguenther@suse.de>
3197
3198         PR middle-end/27743
3199         * fold-const.c (fold_binary): Do not look at the stripped
3200         op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
3201
3202 2006-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3203
3204         * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
3205         for LT and GT if the computed range is effectively empty.
3206
3207 2006-05-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3208
3209         PR target/27627
3210         * pa/pa-modes.def: Use mips_single_format, mips_double_format and
3211         mips_quad_format formats instead of ieee_single_format,
3212         ieee_double_format and ieee_quad_format formats, respectively.
3213
3214 2006-05-24  Zdenek Dvorak <dvorakz@suse.cz>
3215
3216         PR tree-optimization/27639
3217         PR tree-optimization/26719
3218         * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
3219         call to scev_probably_wraps_p.
3220         * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
3221         used_in_pointer_arithmetic_p, convert_step): Removed.
3222         (nowrap_type_p): New function.
3223         (scev_probably_wraps_p): Rewritten.
3224         * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
3225         chrec_convert if chrec_convert_aggressive might have been used.
3226         * tree-chrec.c (convert_affine_scev, chrec_convert_1,
3227         scev_direction): New functions.
3228         (chrec_convert): Changed to a wrapper over chrec_convert_1.
3229         * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
3230         instead of convert_step.
3231         * tree-flow.h (scev_probably_wraps_p): Declaration changed.
3232         (convert_step): Declaration removed.
3233         (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
3234
3235 2006-05-23  Kenneth Zadeck <zadeck@naturalbridge.com>
3236
3237         * df-core.c: Added to header comments.
3238         * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
3239         df_ur_bb_info, df_urec_bb_info): Added comments.
3240         * df-problems (df_ref_bitmap, ru, rd, lr, ur,
3241         urec, ri problems): Fixed header comments.
3242         (df_ru_transfer_function): Fixed in-out set dyslexia when copying
3243         code from df_rd_transfer_function.
3244
3245 2006-05-23  Richard Sandiford  <richard@codesourcery.com>
3246
3247         * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
3248         (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
3249         MIN_UNITS_PER_WORD to set the default.  Also use it in the guard.
3250
3251 2006-05-23  Joseph Myers  <joseph@codesourcery.com>
3252
3253         * expr.c (undefined_operand_subword_p): New.
3254         (emit_move_multi_word): Do not generate move from undefined bits
3255         of a paradoxical subreg.
3256
3257 2006-05-23  Richard Sandiford  <richard@codesourcery.com>
3258
3259         PR rtl-optimization/27736
3260         * combine.c (replaced_rhs_value): New variable.
3261         (combine_instructions): Set it.
3262         (distribute_notes): When distributing a note in replaced_rhs_insn,
3263         check whether the value was used in replaced_rhs_value.
3264
3265 2006-05-23  Andrew MacLeod  <amacleod@redhat.com>
3266
3267         PR c++/26757
3268         * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
3269         add_referenced_var instead of add_referenced_tmp_var.
3270         * tree-complex.c (create_one_component_var): Use add_referenced_var.
3271         * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
3272         add_referenced_var.
3273         * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
3274         tree_optimize_tail_calls_1): Use add_referenced_var.
3275         * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
3276         * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
3277         Use add_referenced_var.
3278         * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
3279         * gimplify.c (force_gimple_operand): Use add_referenced_var.
3280         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
3281         Use add_referenced_var.
3282         * tree-dfa.c (struct walk_state): Remove.
3283         (find_referenced_vars): Remove walk state and vars_found hash table.
3284         (make_rename_temp): Use add_referenced_var.
3285         (find_vars_r): Pass less parameters to add_referenced_var.
3286         (referenced_var_p): New.  Is var in referenced_var hash table.
3287         (referenced_var_insert): Assert var isn't already in hash table.
3288         (add_referenced_var): Don't need walk_state parameter.  Add var if it
3289         isn't already in the hash table.
3290         (add_referenced_tmp_var): Remove.
3291         (find_new_referenced_vars_1): Use add_referenced_var.
3292         * tree-ssa-pre.c (create_expression_by_pieces,
3293         insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
3294         Use add_referenced_var.
3295         * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
3296         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
3297         lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
3298         add_referenced_var.
3299         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
3300         vect_create_data_ref_ptr, vect_create_destination_var,
3301         vect_init_vector, vect_build_loop_niters,
3302         vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
3303         vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
3304         Use add_referenced_var.
3305         * tree-outof-ssa.c (create_temp): Use add_referenced_var.
3306         * tree-flow.h (add_referenced_tmp_var): Remove prototype
3307         (add_referenced_var): Add prototype.
3308         * tree-ssa-structalias.c (get_constraint_for,
3309         intra_create_variable_infos): Use add_referenced_var.
3310
3311 2006-05-23  Alexandre Oliva  <aoliva@redhat.com>
3312
3313         * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
3314         big-endian paradoxical subregs.
3315         * var-tracking.c (struct micro_operation_def): Document that,
3316         for modify micro operations, insn is the subsequent instruction.
3317         (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
3318         (var_reg_set, var_mem_set): ... new functions.
3319         (add_stores): Record subsequent insn.
3320         (compute_bb_dataflow): Use new functions for MO_USE.
3321         (emit_notes_in_bb): Use new functions for MO_USE.  Emit use
3322         notes after the insn, and modify notes before the insn known
3323         to be the subsequent one.
3324         (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
3325
3326 2006-05-23  Kazu Hirata  <kazu@codesourcery.com>
3327
3328         PR target/27696
3329         * config/i386/i386.c (ix86_expand_builtin): Use
3330         gen_sse3_monitor64 for TARGET_64BIT.
3331
3332 2006-05-22  Kenneth Zadeck <zadeck@naturalbridge.com>
3333
3334         PR rtl-optimization/26375
3335         PR rtl-optimization/26855
3336         * df-problems (df_ru_bb_local_compute_process_def): Removed update
3337         to gen set.
3338         (df_ru_bb_local_compute): Reversed statements and removed bogus
3339         comment explaining why they should be in wrong order.
3340         (df_ru_dump, df_rd_dump): Enhanced debug info.
3341         * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
3342         debug info.
3343         * ddg.c (add_deps_for_def): Converted use of reaching defs to
3344         reaching uses and fixed space problem.
3345
3346 2006-05-23  Jan Hubicka  <jh@suse.cz>
3347
3348         * cgraphunit.c (decide_is_function_needed): Also nested functions
3349         and functions declared inline can be optimized out at -O0.
3350
3351 2006-05-22  Gerald Pfeifer  <gerald@pfeifer.com>
3352
3353         * doc/install.texi (Configuration): Remove reference to CrossGCC
3354         FAQ which was gone.
3355         (Building): Ditto.
3356
3357 2006-05-22  Kazu Hirata  <kazu@codesourcery.com>
3358
3359         PR target/27266
3360         * config/i386/i386.c (ix86_expand_branch): Jump to simple if
3361         ix86_compare_emitted is non-NULL.
3362
3363 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3364
3365         PR c++/27451
3366         * stmt.c (expand_asm_operands): Skip asm statement with erroneous
3367         clobbers.
3368
3369 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
3370
3371         PR rtl-optimization/25514
3372         * combine.c (replaced_rhs_insn): New variable.
3373         (combine_instructions): Set replaced_rhs_insn when trying to replace
3374         a SET_SRC with a REG_EQUAL note.
3375         (distribute_notes): Use replaced_rhs_insn when determining the live
3376         range of a REG_DEAD register.
3377
3378 2006-18-05  Joerg Wunsch <j.gnu@uriah.heep.sax.de>
3379             Anatoly Sokolov <aesok@post.ru>
3380
3381         * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
3382         attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
3383         attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
3384         atmega164p, atmega324p, atmega644p, atmega644, atmega329,
3385         atmega3290, atmega649, atmega6490, atmega406, atmega640,
3386         atmega1280, atmega1281, at90can32, at90can64, at90usb646,
3387         at90usb647, at90usb1286 and at90usb1287 devices.
3388         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3389         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3390
3391 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
3392
3393         * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
3394
3395 2006-05-22  Richard Guenther  <rguenther@suse.de>
3396
3397         Revert
3398         2006-01-31  Richard Guenther  <rguenther@suse.de>
3399         Paolo Bonzini  <bonzini@gnu.org>
3400
3401         * doc/install.texi (--disable-libgcc-math): Document.
3402
3403 2006-05-22  Richard Guenther  <rguenther@suse.de>
3404
3405         Revert
3406         2006-01-31  Richard Guenther  <rguenther@suse.de>
3407
3408         * doc/invoke.texi (-msselibm): Document.
3409         * target.h (expand_library_builtin): New target hook.
3410         * builtins.c (expand_builtin): Use expand_library_builtin.
3411         (default_expand_library_builtin): New function.
3412         * gcc.c (LINK_GCC_MATH_SPEC): Define.
3413         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
3414         (link_gcc_math_spec): Declare.
3415         (static_specs): Add link_gcc_math_spec.
3416         * expr.h (default_expand_library_builtin): Declare.
3417         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
3418         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
3419         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
3420         * config/i386/i386.opt (msselibm): New target option.
3421         * config/i386/i386.c (ix86_builtin_function_variants): New array.
3422         (ix86_init_sse_abi_builtins): New function.
3423         (ix86_expand_library_builtin): Likewise.
3424         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
3425         (override_options): Handle error conditions wrt -msselibm.
3426         (ix86_builtins): Add function codes for SSE2 ABI builtins.
3427         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
3428         * doc/extend.texi (__builtin_sse2_*): Document new target specific
3429         builtins.
3430
3431 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3432
3433         PR c/27420
3434         * c-common.c (self_promoting_args_p): Skip erroneous args.
3435
3436         PR c/26818
3437         * c-decl.c (finish_struct): Skip erroneous fields.
3438
3439 2006-05-22  Nick Clifton  <nickc@redhat.com>
3440
3441         * config/cris/cris.opt (march): Remove VarExists attribute.
3442         (max-stackframe=): Likewise.
3443
3444 2006-05-22  Kazu Hirata  <kazu@codesourcery.com>
3445
3446         * doc/rtl.texi: Fix a typo.
3447         * see.c: Fix comment typos.
3448
3449         * tree-ssa-structalias.h (alias_info): Remove num_references.
3450
3451 2006-05-21  Mike Stump  <mrs@apple.com>
3452
3453         * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
3454         (BAD2): Add.
3455         (darwin_pragma_options): Use BAD instead.
3456         (darwin_pragma_unused): Likewise.
3457         (darwin_pragma_ms_struct): Likewise.
3458
3459 2006-05-21  David Edelsohn  <edelsohn@gnu.org>
3460
3461         * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
3462
3463 2006-05-21  Kazu Hirata  <kazu@codesourcery.com>
3464
3465         PR rtl-optimization/27671
3466         * simplify-rtx.c (simplify_relational_operation_1): Fix
3467         simplifications of (eq/ne (xor x y) y) and
3468         (eq/ne (xor x y) x).
3469
3470         PR tree-optimization/26622.
3471         * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
3472         on arg1.
3473
3474 2006-05-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3475
3476         * tree-cfg.c: Prune whitespace.
3477         (debug_tree_cfg): Point to correct header containing the
3478         TDF_* defines.
3479
3480 2006-05-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3481
3482         PR middle-end/25776
3483         * cgraphunit.c (verify_cgraph_node): Typo in error message.
3484
3485 2006-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
3486
3487         PR middle-end/25776
3488         * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
3489         or sorry count is non zero.
3490
3491 2006-05-20  Andreas Schwab  <schwab@suse.de>
3492
3493         * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
3494
3495 2006-05-19  Daniel Berlin  <dberlin@dberlin.org>
3496             Kenneth Zadeck <zadeck@naturalbridge.com>
3497
3498         PR rtl-optimization/26855
3499
3500         * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
3501         multiword refs.
3502         (df_scan_alloc): Added code to properly handle multiword hard
3503         registers and add all_blocks parameter.
3504         (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
3505         code to properly handle multiword hard registers.
3506         (df_rescan_blocks): Added code to remove deleted blocks from
3507         bitmap.
3508         (df_ref_create_structure, df_ref_record): Added code to properly
3509         handle subregs.
3510         (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
3511         and set DF_REF_PARTIAL.
3512         (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
3513         (df_uses_record): Added DF_REF_PARTIAL for subreg.
3514         (df_scan_add_problem): Added flags parameter.
3515         (df_ref_create_structure): Changed switching structure.
3516         (df_bb_refs_record): Fixed case where duplicate artificial refs
3517         were created.  Changed location of flags.
3518         (df_record_entry_block_defs): Added code to make stack pointer
3519         live in entry block.  Refined cases where frame pointer is needed.
3520         Changed location of flags.
3521         (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
3522         (df_set_state): Removed function.
3523         (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
3524         df_insn_create_insn_record, df_insn_refs_delete,
3525         df_ref_create_structure): Formatting changes.
3526         * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
3527         df_delete_basic_block): New function.
3528         (df_init): Changed location of flags.
3529         (df_add_problem): Added flags parameter and the way flags are
3530         processed.
3531         (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
3532         debug_df_chain): Improved debugging output.
3533         (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
3534         (df_refs_chain_dump): Removed df parameter.
3535         (df_iterative_dataflow): Added consistency check.
3536         (df_prune_to_subcfg): Made public.
3537         (df_analyze_problem): Added blocks_to_init parameter and made
3538         public.
3539         (df_ref_record, df_bb_refs_record, df_mark_reg,
3540          df_record_exit_block_uses): Whitespace changes.
3541         (df_dump): Whitespace changes.
3542         * df.h: Some reordering to remove forward references.
3543         (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
3544         DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
3545         (df_ref_flags.DF_REF_CLOBBER): Deleted field.
3546         (dataflow.flags): New field.
3547         (df.flag): Deleted field.
3548         (df_alloc_function): Added additional bitmap parameter.
3549         (df_dependent_problem_function): New type.
3550         (df_problem.changeable_flags): New field.
3551         (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
3552         DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
3553         (df_mw_hardreg): New struct.
3554         (DF_INSN_UID_MWS): New macro.
3555         (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
3556         parameter.
3557         (df_add_problem, df_ru_add_problem, df_rd_add_problem,
3558         df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
3559         df_ri_add_problem, df_scan_add_problem): Added flags parameter.
3560         (df_set_state): Removed function.
3561         (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
3562         * df-problems.c (df_chain_dump): Removed df parameter.
3563         (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
3564         df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
3565         parameter.
3566         (df_ru_alloc, df_rd_alloc): Now resets all blocks.
3567         (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
3568         df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
3569         Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
3570         DF_REF_MUST_CLOBBER cases.
3571         (df_ru_bb_local_compute_process_def,
3572         df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
3573         df_lr_bb_local_compute, df_ur_bb_local_compute,
3574         df_chain_create_bb): Made subreg aware.
3575         (df_ru_bb_local_compute, df_rd_bb_local_compute,
3576         df_lr_bb_local_compute, df_lr_bb_local_compute,
3577         df_chain_create_bb): Cleanup to use proper macros.
3578         (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
3579         code to fixup bitvectors.
3580         (df_ri_alloc): Cleared lifetime.
3581         (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
3582         df_create_unused_note): New function.
3583         (df_ri_bb_compute, df_ri_compute): Added code to create/update
3584         REG_DEAD and REG_UNUSED notes as well as register information.
3585         (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
3586         df_chains_dump): Fixed crash if problem was never run.
3587         (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
3588         df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
3589         df_ri_add_problem): Processes flags in uniform manner.
3590         (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
3591         df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
3592         df_rd_dump, df_urec_free_bb_info): Formatting changes.
3593         (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
3594         df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
3595         df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
3596         df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
3597         df_ur_dump, df_urec_free_bb_info, df_urec_dump,
3598         df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
3599         * modulo-sched.c (sms_schedule): Added flag parameter to calls.
3600         * see.c (see_initialize_data): Ditto.
3601         * final.c (rest_of_clean_state) Added regstack_completed.
3602         * rtl.h (regstack_completed): Ditto.
3603         * reg-stack.c (regstack_completed): Ditto.
3604
3605 2006-05-19  Mike Stump  <mrs@apple.com>
3606
3607         * c-tree.h (default_conversion): Remove.
3608         * c-common.h (default_conversion): Add.
3609
3610 2006-05-19  Zdenek Dvorak <dvorakz@suse.cz>
3611
3612         * tree-vrp.c (valid_value_p): New function.
3613         (adjust_range_with_scev): Fail if the value of bound is not
3614         simple.
3615
3616 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
3617
3618         * config/mips/linux-unwind.h: Include <asm/unistd.h>
3619         (mips_fallback_frame_state): Use syscall numbers to determine
3620         the appropriate li instruction for the current ABI.  Only use
3621         __NR_sigreturn for o32.
3622
3623 2006-05-19  Nicolas Setton  <setton@adacore.com>
3624
3625         * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
3626         * langhooks.c (lhd_dwarf_name): New function.
3627         * langhooks-def.h (lhd_dwarf_name): Declare.
3628         (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
3629         * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
3630         * ada/misc.c (gnat_dwarf_name): New function.
3631         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
3632
3633 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
3634
3635         * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
3636         libgcc2.h.
3637         (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
3638         MIN_UNITS_PER_WORD logic from libgcc2.h.  Do nothing if
3639         LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
3640         * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
3641         Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
3642         determine the size of Wtype, etc.
3643         * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
3644         (swfloatfuncs): New variable.
3645         (dwfloatfuncs): Likewise.
3646         (lib2funcs): Remove floating-point conversion functions from
3647         initial assignment.  Use LIB2_SIDITI_CONV_FUNCS to determine
3648         the set of conversion routines needed.  Allow entries to specify
3649         an object name, filename and word size.  Update users accordingly.
3650         * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
3651         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
3652
3653         Revert:
3654
3655         2006-02-08  Roger Sayle  <roger@eyesopen.com>
3656
3657         PR target/22209
3658         * config/fixtfdi.c: New libgcc source file.
3659         * config/fixunstfdi.c: New source file.
3660         * config/floatditf.c: New source file.
3661         * config/floatunditf.c: New souce file.
3662         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
3663         files above instead of config/mips/_tilib.c.
3664         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
3665
3666 2006-05-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3667
3668         * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
3669         * pa/pa-hpux11.h (LIB_SPEC): Update comment.
3670
3671 2006-05-18  Mike Stump  <mrs@apple.com>
3672
3673         Fix up vla, vm and [*] sematics.
3674
3675         PR c/18740
3676         PR c/7948
3677         PR c/25802
3678         PR c/27673
3679         * c-tree.h (struct c_arg_info): Add had_vla_unspec.
3680         (c_vla_unspec_p): Add.
3681         (c_vla_type_p): Add.
3682         * c-decl.c (struct c_scope): Add had_vla_unspec.
3683         (build_array_declarator): Add support for [*].
3684         (grokdeclarator): Likewise.
3685         (grokparms): Likewise.
3686         (get_parm_info): Likewise.
3687         * c-objc-common.c (c_vla_unspec_p): Likewise.
3688         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
3689         * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
3690         typeof when argument is a variably modified type not inside sizeof or alignof.
3691         (c_parser_direct_declarator_inner): Propagate errors.
3692         (c_parser_sizeof_expression): Add support for [*].
3693         (c_parser_parms_declarator): Initialize had_vla_unspec.
3694         (c_parser_parms_list_declarator): Likewise.
3695         * c-typeck.c (c_vla_type_p): Add.
3696         (composite_type): Add support for vla compositing.
3697         (comptypes_internal): Add support for vla compatibility.
3698         (c_expr_sizeof_expr): Evaluate vla arguments.
3699         * tree.c (variably_modified_type_p): Update comment for [*].
3700
3701 2006-05-18  Michael Matz  <matz@suse.de>
3702
3703         PR target/27599
3704         * config.host: Make assignments to host_xmake_file cumulative.
3705         * config.host (*-darwin*): Test $host, not $target.
3706
3707 2006-05-12  Stuart Hastings  <stuart@apple.com>
3708
3709         * config/i386/i386.opt (-mstackrealign): New flag.
3710         * config/i386/i386.c (force_align_arg_pointer): New attribute.
3711         (ix86_handle_cconv_attribute): Emit error when
3712         force_align_arg_pointer attribute collides with too many regparms.
3713         (ix86_function_regparm): Limit regparms when used with
3714         force_align_arg_pointer attribute.  (ix86_internal_arg_pointer):
3715         Support stack-realigning prologue in non-main functions.  Emit
3716         warning for nested functions under -mstackrealign, emit error for
3717         nested functions with force_align_arg_pointer attribute.
3718         * doc/extend.texi (force_align_arg_pointer): Document it.
3719         * doc/invoke.texi (-mstackrealign): Document it.
3720
3721 2006-05-17  Kazu Hirata  <kazu@codesourcery.com>
3722
3723         PR rtl-optimization/27477
3724         * combine.c (try_combine): Don't split a parallel consisting
3725         of two sets into two individual sets if both sets reference
3726         cc0.
3727
3728 2006-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3729
3730         * config/arm/arm.opt (target_fpe_name): Remove VarExists.
3731         * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
3732
3733         * doc/options.texi (VarExists): Updated.
3734
3735 2006-05-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3736
3737         * unwind-dw2.c: Add declarations for uw_update_context and
3738         uw_frame_state_for.
3739         * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
3740         detected, advance frame state and context once to skip over stub.
3741
3742 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
3743
3744         PR middle-end/20256
3745         PR middle-end/26435
3746         * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
3747         Call rewrite_into_loop_closed_ssa only when something changed.
3748         * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
3749         * lambda-code.c (can_convert_to_perfect_nest): Declared.
3750         (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
3751         Test for perfect_nest_p here.  Fix formating.
3752         (replace_uses_equiv_to_x_with_y): Fix formating.
3753         (stmt_uses_op): Removed.
3754         (can_convert_to_perfect_nest): Removed loopivs parameter.
3755         Complete the test by checking the scalar dependences.
3756         (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
3757         Fix formating.
3758
3759 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
3760
3761         PR bootstrap/22541
3762         From Dan Kegel <dank@kegel.com>:
3763         * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
3764
3765 2006-05-17  Eric Botcazou  <ebotcazou@adacore.com>
3766
3767         * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
3768         if the element type is variably modified without recursing.
3769
3770 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
3771
3772         PR middle-end/27332
3773         * tree-loop-linear.c (try_interchange_loops): Test for
3774         no data dependences.
3775
3776 2006-05-17  Zdenek Dvorak <dvorakz@suse.cz>
3777
3778         PR tree-optimization/27548
3779         * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
3780         range of ssa names that appear on abnormal edges.
3781         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
3782         * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
3783
3784 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
3785
3786         PR middle-end/27620
3787         * expr.c (safe_from_p): Handle CONSTRUCTOR again.
3788
3789 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
3790
3791         PR middle-end/27415
3792         * tree.h (OMP_PARALLEL_COMBINED): Define.
3793         * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
3794         (new_omp_context): Add is_combined_parallel argument.
3795         (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
3796         new_omp_context caller.
3797         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3798         Adjust gimplify_scan_omp_clauses callers.
3799         (omp_is_private): Issue errors if iteration variable is firstprivate
3800         or reduction in the current context.
3801         * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
3802         on combined parallel workshare constructs.
3803
3804 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3805
3806         * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
3807         (gcc-options.o): New rule.
3808
3809         * optc-gen.awk: Protect variables for gcc-options.o with
3810         #ifdef GCC_DRIVER/#endif.
3811
3812 2006-05-16  Daniel Berlin <dberlin@dberlin.org>
3813
3814         Fix PR tree-optimization/27373
3815         * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
3816          (forward_propagate_addr_expr): Update call.
3817
3818 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3819
3820         * doc/options.texi: Move the Negative option.
3821
3822 2006-05-16  Richard Guenther  <rguenther@suse.de>
3823
3824         PR tree-optimization/22303
3825         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
3826         from STRING_CSTs.
3827         (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
3828         ccp_fold did not simplify the statement.
3829
3830 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3831
3832         PR driver/26885
3833         * Makefile.in (GCC_OBJS): New.
3834         (OBJS-common): Add opts-common.o.
3835         (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
3836         (cpp$(exeext)): Likewise.
3837         (gcc.o): Also depend on opts.h.
3838         (opts-common.o): New.
3839
3840         * common.opt (gcoff): Add Negative(gdwarf-2).
3841         (gdwarf-2): Add Negative(gstabs).
3842         (gstabs): Add Negative(gstabs+).
3843         (gstabs+): Add Negative(gvms).
3844         (gvms): Add Negative(gxcoff).
3845         (gxcoff): Add Negative(gxcoff+).
3846         (gxcoff+): Add Negative(gcoff).
3847         * config/i386/i386.opt (m32): Add Negative(m64).
3848         (m64): Add Negative(m32).
3849
3850         * doc/options.texi: Document the Negative option.
3851
3852         * gcc.c: Include "opts.h".
3853         (main): Call prune_options after expandargv.
3854
3855         * optc-gen.awk: Generate common declarations for all flag
3856         variables in options.c. Output the neg_index field.
3857
3858         * opts.c (find_opt): Moved to ...
3859         * opts-common.c: Here. New file.
3860
3861         * opts.h (cl_option): Add a neg_index field.
3862         (find_opt): New.
3863         (prune_options): Likewise.
3864
3865 2006-05-16  Jakub Jelinek  <jakub@redhat.com>
3866
3867         PR middle-end/27573
3868         * omp-low.c (expand_omp_parallel): Don't assert
3869         .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
3870         instead search for it.
3871
3872         PR c/27499
3873         * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
3874         is signed.
3875
3876 2006-05-16  Andreas Schwab  <schwab@suse.de>
3877
3878         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
3879         defmac.
3880
3881 2006-05-15  Roger Sayle  <roger@eyesopen.com>
3882
3883         PR target/26600
3884         * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
3885         integer constants other than zero are only legitimate on TARGET_64BIT.
3886         <CONST_VECTOR> Only zero vectors are legitimate.
3887         (ix86_cannot_force_const_mem): Integral and vector constants can
3888         always be put in the constant pool.
3889
3890 2006-05-16  DJ Delorie  <dj@redhat.com>
3891
3892         * crtstuff.c (__dso_handle): Set section from
3893         TARGET_LBIGCC_SDATA_SECTION if defined.
3894         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
3895         * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
3896
3897 2006-05-16  Danny Smith  <dannysmith@users.sourceforge.net>
3898
3899         PR target/27599
3900         * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
3901         host_xmake_file.
3902
3903 2006-05-16  Ben Elliston  <bje@au.ibm.com>
3904
3905         * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
3906
3907 2006-05-15  Per Bothner  <per@bothner.com>
3908
3909         * tree.c: (last_annotated_node): Use source_locus typedef.
3910         This permits bootstrapping with --enable-mapped-location.
3911
3912 2006-05-15  Zdenek Dvorak <dvorakz@suse.cz>
3913
3914         PR tree-optimization/26830
3915         * tree-into-ssa.c (struct ssa_name_info): Add age field.
3916         (info_for_ssa_name, current_info_for_ssa_name_age,
3917         blocks_to_update): New variables.
3918         (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
3919         (clear_ssa_name_info, initialize_flags_in_bb,
3920         mark_block_for_update): New functions.
3921         (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
3922         (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
3923         prepare_def_site_for): Use mark_block_for_update.
3924         (mark_def_interesting): Assert that the processed block is marked in
3925         blocks_to_update.  Do not take blocks argument.
3926         (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
3927         argument.
3928         (rewrite_update_init_block, rewrite_update_stmt): Only process
3929         blocks with statements to rewrite.
3930         (delete_update_ssa): Do not clear SSA_NAME_AUX.
3931         (update_ssa): Initialize and free blocks_to_update.  Do not
3932         clear flags on statements.  Do not use blocks bitmap.
3933         * tree.h (SSA_NAME_AUX): Removed.
3934         (struct tree_ssa_name): Removed aux field.
3935         * print-tree.c (print_node): Do not print SSA_NAME_AUX.
3936
3937 2006-05-15  Richard Guenther  <rguenther@suse.de>
3938
3939         PR tree-optimization/27603
3940         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
3941         Do computations in original type.
3942
3943 2006-05-15  Mircea Namolaru  <namolaru@il.ibm.com>
3944
3945         * see.c: Code style changes such as redundant paranthesis,
3946         redundant intialization of local variables etc.
3947         (see_main): Declared now as static.
3948         * doc/invoke.texi: Update that -fsee is not enabled by
3949         default at -O3.
3950
3951 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
3952
3953         * omp-low.c (check_omp_nesting_restrictions): New function.
3954         (scan_omp_1): Call it.
3955
3956         PR middle-end/27416
3957         * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
3958         construct, return *VAR.
3959
3960 2006-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
3961
3962         PR rtl-optimization/27406
3963         * bt-load.c (migrate_btr_def): Skip the block having abnormal
3964         edges.
3965
3966 2006-05-14  Roger Sayle  <roger@eyesopen.com>
3967
3968         PR rtl-optimization/27538
3969         * combine.c (expand_compound_operation): Call gen_lowpart
3970         before calling simplify_shift_const.
3971
3972 2006-05-14  Roger Sayle  <roger@eyesopen.com>
3973
3974         PR rtl-optimization/22563
3975         * expmed.c (store_fixed_bit_field): When using AND and IOR to store
3976         a fixed width bitfield, always force the intermediates into psuedos.
3977
3978 2006-05-14  Bernhard Fischer  <aldot@gcc.gnu.org>
3979
3980         PR 27501
3981         * mkconfig.sh: Use operator = instead of == for test.
3982
3983 2006-05-13  Nick Clifton  <nickc@redhat.com>
3984
3985         * dwarf2out.c (dbx_reg_number): Check return value from
3986         LEAF_REG_REMAP and only use it if it is valid.
3987         (multiple_reg_loc_descriptor): Likewise.
3988
3989 2006-05-13  Richard Guenther  <rguenther@suse.de>
3990
3991         * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
3992         host_xmake_file.
3993
3994 2006-05-13  Steven Bosscher  <stevenb.gcc@gmail.com>
3995
3996         * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
3997         information attached to non-INSNs such as NOTEs.
3998         (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
3999
4000 2006-05-12  Andreas Krebbel  <krebbel1@de.ibm.com>
4001
4002         * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
4003         On contraint.
4004         * config/s390/s390.md: Adjust comment describing On constraint.
4005
4006 2006-05-11  Jan Hubicka  <jh@suse.cz>
4007
4008         * cgraphunit.c (decide_is_function_needed): Don't force always_inline
4009         to be output at -O0.
4010
4011 2006-05-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4012
4013         PR middle-end/27384
4014         * fold-const.c (size_binop): Move sanity check for arguments to
4015         the beginning of the function.
4016
4017         PR middle-end/27488
4018         * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
4019         expression.
4020
4021 2006-05-11  Richard Guenther  <rguenther@suse.de>
4022
4023         PR middle-end/27529
4024         * fold-const.c (fold_unary): Handle intermediate conversion
4025         to a pointer type like intermediate conversion to an integer
4026         type in folding of (T1)(T2)var to var.
4027         Match the code to the comment in the final conversion for
4028         (T1)(T2)var to (T1)var regarding to type precision.  Rather
4029         than disallow T1 being of pointer type, assert that both T1
4030         and var are of pointer type or not.  Make sure not to fall
4031         over the frontends lazyness wrt array to pointer decay though.
4032
4033 2006-05-10  Richard Earnshaw  <rearnsha@arm.com>
4034
4035         * arm.c (arm_struct_value_rtx): Delete.
4036         (TARGET_STRUCT_VALUE_RTX): Use the default definition.
4037         (arm_init_cumulative_args): Always initialize nregs to zero.
4038
4039 2006-05-10  Richard Guenther  <rguenther@suse.de>
4040
4041         PR tree-optimization/27532
4042         * tree-object-size.c (plus_expr_object_size): Fix typo.
4043
4044 2006-05-10  Kazu Hirata  <kazu@codesourcery.com>
4045
4046         PR target/24949
4047         * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
4048         ashrdi_const, ashrdi3): Use a scratch register.
4049
4050 2006-05-10  Richard Guenther  <rguenther@suse.de>
4051
4052         PR tree-optimization/27302
4053         * fold-const.c (operand_equal_p): For two comparisons,
4054         try comparison of one comparison code swapped if that yields
4055         the same code.
4056
4057 2006-05-10  Ben Elliston  <bje@au.ibm.com>
4058
4059         * tree-pretty-print.c (pretty_print_string): No need to handle
4060         '\0' as a special character.
4061
4062         * tree.h: Include "hashtab.h".
4063         (iterative_hash_expr): Use hashval_t in its prototype.
4064         * Makefile.in (TREE_H): Add $(HASHTAB_H).
4065
4066 2006-05-09  Steve Ellcey  <sje@cup.hp.com>
4067
4068         PR bootstrap/26872
4069         * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
4070         (hppa*64*-*-hpux11*): Ditto.
4071         (hppa[12]*-*-hpux11*): Ditto.
4072
4073 2006-05-09  David Edelsohn  <edelsohn@gnu.org>
4074
4075         PR target/26545
4076         * config/rs6000/aix41.h (TARGET_64BIT): Define.
4077
4078 2006-05-09  Michael Matz  <matz@suse.de>
4079
4080         * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
4081         host_extra_gcc_objs and host_xmake_file.
4082         (<*-*-linux*>): Don't overwrite host_xmake_file.
4083         * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
4084         * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
4085         (host_detect_local_cpu): Declare.
4086         (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
4087         * config/i386/i386.c (override_options): Handle -mtune=native
4088         as -mtune=generic.
4089         * config/i386/x-i386: New file.
4090         * config/i386/driver-i386.c: New file.
4091         * doc/invoke.texi (<i386 and x86-64 Options>): Describe
4092         cpu-type "native".
4093
4094 2006-05-09  Dirk Mueller  <dmueller@suse.de>
4095         Richard Guenther  <rguenther@suse.de>
4096
4097         PR middle-end/27498
4098         * fold-const.c (fold_read_from_constant_string): Relax check
4099         for matching types to matching modes.
4100
4101 2006-05-09  Zdenek Dvorak <dvorakz@suse.cz>
4102
4103         PR rtl-optimization/27335
4104         * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
4105         loops.
4106
4107 2006-05-08  Chao-ying Fu  <fu@mips.com>
4108             Richard Sandiford  <richard@codesourcery.com>
4109
4110         * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
4111         (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
4112         * config/mips/mips.md (UNSPEC_SCC): New constant.
4113         * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
4114         * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
4115         (mips_emit_compare): Use it.
4116         (mips_expand_vcondv2sf): New function.
4117
4118 2006-05-08  Daniel Berlin  <dberlin@dberlin.org>
4119
4120         Fix PR tree-optimization/27093
4121         * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
4122         renaming when they become not-used_alone.
4123
4124 2006-05-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4125
4126         * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
4127         relocation and relocation stubs.
4128
4129 2006-05-08  Eric Christopher  <echristo@apple.com>
4130
4131         * unwind-dw2-fde-darwin.c (examine_objects): Only check data
4132         section for ppc.
4133
4134 2006-05-08  Jan Hubicka  <jh@suse.cz>
4135
4136         PR middle-end/24561
4137         * cgraphunit.c (decide_is_function_needed): When not optimizing even
4138         unused static functions are needed.
4139
4140 2006-05-08  Roger Sayle  <roger@eyesopen.com>
4141
4142         PR target/27158
4143         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
4144         of a reg_equiv_constant if the result is a legitimate constant.
4145
4146 2006-05-08  Uros Bizjak  <uros@kss-loka.si>
4147
4148         PR target/27277
4149         * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
4150         standard 80387 constants, raise the cost to prevent
4151         compress_float_constant() to generate load from memory.
4152
4153 2006-05-08  Kazu Hirata  <kazu@codesourcery.com>
4154
4155         * config/arm/constraints.md (c): Fix a typo.
4156
4157         * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
4158         typos.
4159
4160 2006-05-07  H.J. Lu  <hongjiu.lu@intel.com>
4161
4162         PR target/24879
4163         * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
4164         inline function.
4165         (_mm_mwait): Likewise.
4166
4167         * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
4168         "mwait".
4169         (sse3_monitor): Make it 32bit only.
4170         (sse3_monitor64): New. 64bit monitor.
4171
4172 2006-05-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4173
4174         PR target/27421
4175         * config/i386/i386.c (classify_argument): Skip fields with invalid
4176         types.
4177
4178 2006-05-07  Richard Guenther  <rguenther@suse.de>
4179
4180         PR tree-optimization/27409
4181         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4182         Do not try to find zero-sized subvars.
4183
4184 2006-05-07  Richard Guenther  <rguenther@suse.de>
4185
4186         PR tree-optimization/27136
4187         * tree-ssa-loop-niter.c (get_val_for): Correct function
4188         comment, assert requirements.
4189         (loop_niter_by_eval): Stop processing if the iterated
4190         value did not simplify.
4191
4192 2006-05-07  Mircea Namolaru  <namolaru@il.ibm.com>
4193
4194         * opts.c (flag_see): remove its setting at -O3.
4195
4196 2006-05-07  Richard Earnshaw  <rearnsha@arm.com>
4197
4198         * genpeep.c (main): Make insn-peep.c depend on flags.h.
4199         * arm/constraints.md: New file.
4200         * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
4201         (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
4202         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
4203         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
4204         (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
4205         (EXTRA_MEMORY_CONSTRAINT): Likewise.
4206         * arm.md: Include constraints.md.
4207         (thumb_movsi_insn): Use satisfies_constraint_J.
4208         (movhi, movqi): Use satisfies_constraint_I.
4209
4210 2006-04-29 Anatoly Sokolov <aesok@post.ru>
4211
4212         * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
4213         for atmeg a645 device.
4214
4215 2006-05-06   Richard Guenther  <rguenther@suse.de>
4216
4217         PR tree-optimization/27151
4218         * tree-vect-transform.c (vectorizable_condition): Punt on
4219         values that have a different type than the condition.
4220
4221 2006-05-03  Aldy Hernandez  <aldyh@redhat.com>
4222
4223         PR/21391
4224         * c-parser.c (c_parser_cast_expression): Only insert casts into
4225         hash table if pointer.
4226         * function.c (used_types_insert_helper): Rename from
4227         used_types_insert.
4228         (used_types_insert): Call used_types_insert_helper.
4229         * function.h (used_types_insert): Accept only one argument.
4230
4231 2006-05-05  David Edelsohn  <edesohn@gnu.org>
4232
4233         * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
4234         scratch with output modifier.
4235
4236 2006-05-04  David Edelsohn  <edelsohn@gnu.org>
4237
4238         PR target/26481
4239         * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
4240         with output modifier.
4241
4242 2006-05-04  Richard Sandiford  <richard@codesourcery.com>
4243
4244         PR target/26765
4245         * config/mips/mips.c (mips_symbolic_address_p): Return true
4246         for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
4247         SYMBOL_GOTTPREL, and SYMBOL_TLS.
4248
4249 2006-05-04  Richard Guenther  <rguenther@suse.de>
4250
4251         PR tree-optimization/14287
4252         PR tree-optimization/14844
4253         PR tree-optimization/19792
4254         PR tree-optimization/21608
4255         PR tree-optimization/27090
4256         * tree-ssa-pre.c (try_combine_conversion): New function.
4257         (compute_avail): After constructing the value-handle
4258         expression, use try_combine_conversion to combine NOP_EXPRs
4259         with previous value-handle expressions and use the result if it
4260         is available.
4261
4262 2006-05-04  Joseph S. Myers  <joseph@codesourcery.com>
4263
4264         * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
4265
4266 2006-05-04  Jan Hubicka  <jh@suse.cz>
4267
4268         PR middle-end/25962
4269         * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
4270
4271 2006-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
4272
4273         * config/bfin/predicates.md (const01_rtx): Tell generator programs
4274         that this only matches CONST_INTs.  All users changed to VOIDmode
4275         operands.
4276
4277         * config/bfin/bfin.c: Include "optabs.h".
4278         (bfin_rtx_costs): Some costs for vector operations, to allow combine
4279         to do more work.
4280         (enum bfin_builtins): Add a number of fractional and vector builtins.
4281         (bfin_init_builtins): Likewise.
4282         (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
4283         (safe_vector_operand, bfin_expand_binop_builtin,
4284         bfin_expand_unop_builtin): New functions.
4285         (bfin_expand_builtin): Handle the new builtins.
4286         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4287         __ADSPBLACKFIN__.
4288
4289 2006-05-04  Leehod Baruch  <leehod@il.ibm.com>
4290
4291         * see.c: New file.
4292         * Makefile.in (OBJS-common): Add see.o.
4293         (see.o): Add dependencies.
4294         * common.opt (fsee): New flag for the see optimization was added.
4295         * opts.c (flag_see): Initialized.
4296         * passes.c (init_optimization_passes, pass_see): New pass.
4297         * rtl.h (see_main): Declaration as extern.
4298         * timevar.def (TV_SEE): New.
4299         * tree-pass.h (pass_see): Declaration as extern.
4300         * invoke.texi (-fsee): Document.
4301         * recog.c (validate_simplify_insn): New function.
4302         * recog.h (validate_simplify_insn): Declaration as extern.
4303         * df-problems.c (df_chain_dump): Check for NULL.
4304
4305 2006-05-04  Kenneth Zadeck <zadeck@naturalbridge.com>
4306             Daniel Berlin  <dberlin@dberlin.org>
4307
4308         * cfgrtl.c (insert_insn_bb_end_new): New function.
4309         * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
4310
4311 2006-05-04  Leehod Baruch  <leehod.baruch@weizmann.ac.il>
4312
4313         * df.h (struct web_entry): Moved from web.c.
4314         (union_defs): Declaration as extern.
4315         (unionfind_root): Likewise.
4316         (unionfind_union): Likewise.
4317         * web.c (struct web_entry): Moved to df.h.
4318         (unionfind_root): Remove static declaration.
4319         (unionfind_union): Likewise.
4320         (union_defs): Likewise and generalize to use callback function.
4321         (web_main): Update arguments for union_defs function call.
4322
4323 2006-05-04  Richard Guenther  <rguenther@suse.de>
4324
4325         PR tree-optimization/26447
4326         * tree-ssa-pre.c (realify_fake_stores): For necessary loads
4327         produce SSA_NAME copies before the store stmt to avoid
4328         breaking exception handling.
4329
4330 2006-05-04  Jakub Jelinek  <jakub@redhat.com>
4331
4332         PR middle-end/27388
4333         * gimplify.c (omp_is_private): If var is shared in some outer context,
4334         return false instead of true.  Stop searching on parallel context
4335         boundary.
4336
4337 2006-05-03  Alexandre Oliva  <aoliva@redhat.com>
4338
4339         PR java/8260
4340         * coverage.c: Use get_gcov_unsigned_t() instead of
4341         unsigned_type_node all over.
4342
4343 2006-05-02  Andrew MacLeod  <amacleod@redhat.com>
4344
4345         PR tree-optimization/27381
4346         * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
4347         maintain the same immediate_use links.
4348         * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
4349         node rather than segfaulting.
4350
4351 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
4352
4353         PR fortran/27395
4354         * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
4355         rather than TREE_CODE to OMP_CLAUSE_REDUCTION.  Set also GOVD_SEEN
4356         bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
4357
4358 2006-05-02  Daniel Berlin  <dberlin@dberlin.org>
4359
4360         Fix PR tree-optimization/26626
4361         * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
4362         always.
4363         * tree-ssa-operands.c (access_can_touch_variable): Allow
4364         typecasting through union pointers.
4365
4366 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
4367
4368         PR c++/26943
4369         * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
4370         (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
4371         to find if var will be a global variable even in the nested context.
4372         (omp_copy_decl): Only check for global variable at the end, it might
4373         be overridden in outer contexts.
4374         (scan_sharing_clauses): For global variables don't create a field.
4375         (lower_rec_input_clauses): Do nothing for global shared variables.
4376         Emit a barrier at the end of ILIST if there were any decls in both
4377         firstprivate and lastprivate clauses.
4378         (lower_send_clauses): Do nothing for global variables except for
4379         COPYIN.
4380
4381 2006-05-02  Zdenek Dvorak <dvorakz@suse.cz>
4382
4383         * tree.c (unsigned_type_for, signed_type_for): Make sure a type
4384         of the correct signedness is returned.
4385
4386 2006-05-02  Jeff Law  <law@redhat.com>
4387
4388         PR tree-optimization/27364
4389         * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
4390         multiply expressions.
4391
4392 2006-05-02  Tom Tromey  <tromey@redhat.com>
4393
4394         * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
4395
4396 2006-05-02  Kazu Hirata  <kazu@codesourcery.com>
4397
4398         PR target/27387
4399         * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
4400         -mthumb -fPIC are used.
4401
4402 2006-05-02  Stanislaw Skowronek  <skylark@linux-mips.org>
4403             Joshua Kinard  <kumba@gentoo.org>
4404
4405         PR target/25871
4406         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
4407         with 64-bit pointers.
4408
4409 2006-05-02  Paul Brook  <paul@codesourcery.com>
4410
4411         * config/arm/arm.c (add_minipool_forward_ref): Check if insn
4412         and pool overlap.
4413         (create_fix_barrier): Check that a suitable barrier location is
4414         found.
4415         (arm_reorg): Include ftmp->address in allowable range of addresses.
4416
4417 2006-05-02  David Billinghurst <David.Billinghurst@riotinto.com>
4418
4419         PR ada/27366
4420         * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
4421         on Cygwin.
4422
4423 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
4424
4425         PR middle-end/27337
4426         * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
4427         around RESULT_DECL for result passed by reference.
4428         (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
4429         * omp-low.c (use_pointer_for_field): Don't look at
4430         DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
4431         (scan_omp_1): Call remap_decl on RESULT_DECLs.
4432         (lower_rec_input_clauses): Don't allocate VLA memory for the second
4433         time or var for passing by reference for
4434         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses.  Allow creation of
4435         TREE_ADDRESSABLE variables when passing by reference.
4436
4437         * omp-low.c (dump_omp_region): Fix output formatting.
4438
4439         PR middle-end/27328
4440         * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
4441         (expand_omp_parallel): Likewise.
4442         * tree-cfg.c (move_sese_region_to_fn): Likewise.
4443
4444         PR middle-end/27325
4445         * omp-low.c (lower_omp_sections): Call maybe_catch_exception
4446         on statement list containing also constructors and destructors.
4447         (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
4448
4449         PR middle-end/27310
4450         * except.c (duplicate_eh_regions): Fix clearing of
4451         cfun->eh->region_array entries.
4452
4453 2006-05-01  DJ Delorie  <dj@redhat.com>
4454
4455         * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
4456         build!=host.
4457         (gcc_cv_objdump): Likewise.
4458         * configure: Regenerated.
4459
4460 2006-05-01  Kazu Hirata  <kazu@codesourcery.com>
4461
4462         PR target/27374
4463         * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
4464         templates for case 3 and 4.
4465
4466 2006-05-01  DJ Delorie  <dj@redhat.com>
4467
4468         * vec.c: Include bconfig.h when appropriate.
4469         * Makefile.in (build/vec.o): Adjust dependencies.
4470         * mkconfig.sh: Make sure config.h isn't used for build machine
4471         compiles.
4472
4473 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
4474
4475         * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
4476         variables.
4477         (mark_phi_for_rewrite): New function.
4478         (insert_phi_nodes_for, mark_use_interesting): Call
4479         mark_phi_for_rewrite.
4480         (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
4481         (update_ssa): Initialize and free phis_to_rewrite.
4482
4483 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
4484
4485         PR rtl-optimization/27291
4486         * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
4487         folded to a constant.
4488
4489 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
4490
4491         PR tree-optimization/27283
4492         * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
4493         not whole # of iteration descriptions.
4494         (niter_for_exit): Return just # of iterations.  Fail if # of iterations
4495         uses abnormal ssa name.
4496         (niter_for_single_dom_exit): Ditto.
4497         (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
4498         return just the number of iterations.
4499
4500 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
4501
4502         PR tree-optimization/27144
4503         * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
4504         (record_estimate): Only record constant upper bound.
4505         (infer_loop_bounds_from_undefined): Call
4506         compute_estimated_nb_iterations just once.
4507         (proved_non_wrapping_p): Renamed to ...
4508         (n_of_executions_at_most): ... this.  Expect bound to be a constant.
4509         (convert_step_widening, scev_probably_wraps_p): Call
4510         n_of_executions_at_most instead of proved_non_wrapping_p.
4511         (substitute_in_loop_info): Do not replace values in bounds.
4512         * cfgloop.h (struct nb_iter_bound): Remove "additional" field.  Update
4513         comments.
4514
4515 2006-05-01  Richard Henderson  <rth@redhat.com>
4516
4517         PR c/27358
4518         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
4519         c_parser_skip_to_pragma_eol.  Convert to switch statement.  Handle
4520         CPP_PRAGMA.
4521
4522 2006-05-01  Roger Sayle  <roger@eyesopen.com>
4523
4524         * c-typeck.c (parser_build_binary_op): Don't call the function
4525         unsigned_conversion_warning to spot operand/result type overflow.
4526         (build_binary_op): Instead, call convert_and_check instead of
4527         convert to report the problem when the operands are promoted.
4528         * c-common.c (unsigned_conversion_warning): Make static.
4529         * c-common.h (unsigned_conversion_warning): Delete prototype.
4530
4531 2006-05-01  Richard Guenther  <rguenther@suse.de>
4532
4533         PR tree-optimization/26726
4534         * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
4535         problem ...
4536         (find_interesting_uses_address): ... we work around here
4537         by folding INDIRECT_REFs in the substituted base.
4538
4539 2006-05-01  Diego Novillo  <dnovillo@redhat.com>
4540
4541         * omp-low.c (dump_omp_region): Add newlines.
4542
4543 2006-04-30  Roger Sayle  <roger@eyesopen.com>
4544
4545         * common.opt (Woverflow): New command line option.
4546         * c-common.c (constant_expression_warning): Check warn_overflow.
4547         (overflow_waring): Pass OPT_Woverflow to warning.
4548         (unsigned_conversion_warning): Likewise.
4549         (convert_and_check): Likewise.
4550         * doc/invoke.texi: Document new command line option.
4551
4552 2006-04-30  David Edelsohn  <edelsohn@gnu.org>
4553
4554         * config/rs6000/rs6000.c (rs6000_override_options): Enable
4555         TARGET_NO_FP_IN_TOC for section anchors.
4556         (optimization_options): Enable section anchors for all
4557         non-"Objective" languages.
4558
4559 2006-04-28  Eric Christopher  <echristo@apple.com>
4560
4561         * config/darwin-c.c (darwin_ms_struct): Move this
4562         (darwin_set_default_type_attributes): and this...
4563         * config/darwin.c: ... here.
4564         * config/darwin.h (darwin_ms_struct): Declare.
4565
4566 2006-04-28  Andrew MacLeod  <amacleod@redhat.com>
4567
4568         * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
4569
4570 2006-04-28  Roger Sayle  <roger@eyesopen.com>
4571
4572         PR c/25309
4573         * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
4574         (push_array_bounds): Delete prototype.  Change BOUNDS argument to
4575         an unsigned HOST_WIDE_INT.
4576         (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
4577         array index.
4578         (really_start_incremental_init): No need to call convert because
4579         bitsize_zero_node is already of type bitsizetype.
4580         (push_init_level): Extract the value of constructor_index as an
4581         unsigned HOST_WIDE_INT quantity, using tree_low_cst.
4582         (process_init_element): Likewise.
4583
4584 2006-04-28  Joseph S. Myers  <joseph@codesourcery.com>
4585
4586         * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
4587         value before passing to make_relative_prefix.
4588
4589 2006-04-28  Alan Modra  <amodra@bigpond.net.au>
4590
4591         PR middle-end/27260
4592         * builtins.c (expand_builtin_memset): Expand val in original mode.
4593
4594 2006-04-27  Eric Christopher  <echristo@apple.com>
4595
4596         * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
4597         with #ifndef/#endif.
4598         * config/darwin-c.c (darwin_ms_struct): New.
4599         (darwin_pragma_ms_struct): Ditto.
4600         (darwin_set_default_type_attributes): Ditto.
4601         * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
4602         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
4603         Register ms_struct pragma.
4604         * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
4605         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
4606         * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
4607         darwin_set_default_type_attributes if TARGET_MACHO.
4608
4609 2006-04-27  Andrew MacLeod  <amacleod@redhat.com>
4610
4611         PR tree-optimization/26854
4612         * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
4613         * doc/tree-ssa.texi: Update immuse iterator documentation.
4614         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
4615         * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
4616         * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
4617         first_safe_imm_use, next_safe_imm_use): Remove.
4618         (end_imm_use_stmt_p): New.  Check for end of immuse stmt traversal.
4619         (end_imm_use_stmt_traverse): New.  Terminate immuse stmt traversal.
4620         (move_use_after_head): New.  Helper function to sort immuses in a stmt.
4621         (link_use_stmts_after): New.  Link all immuses in a stmt consescutively.
4622         (first_imm_use_stmt): New.  Get first stmt in an immuse list.
4623         (next_imm_use_stmt): New.  Get next stmt in an immuse list.
4624         (first_imm_use_on_stmt): New.  Get first immuse on a stmt.
4625         (end_imm_use_on_stmt_p): New.  Check for end of immuses on a stmt.
4626         (next_imm_use_on_stmt): New.  Move to next immuse on a stmt.
4627         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
4628         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
4629         (perfect_nestify): Use new iterator.
4630         * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
4631         iterator.
4632         * tree-flow.h (struct immediate_use_iterator_d): Add comments.
4633         (next_imm_name): New field in struct immediate_use_iterator_d.
4634         (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
4635         (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
4636         FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
4637         * tree-cfg.c (replace_uses_by): Use new iterator.
4638         * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
4639         * tree-ssa-operands.c (correct_use_link): Remove.
4640         (finalize_ssa_use_ops): No longer call correct_use_link.
4641
4642 2006-04-27  Stuart Hastings  <stuart@apple.com>
4643
4644         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
4645         * config/t-darwin (crt3.o): Use it.
4646         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
4647         'pmode', use Pmode instead of SImode for SYMBOL_REF.
4648         * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
4649         call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
4650         call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
4651         support.
4652
4653 2006-04-27  Roger Sayle  <roger@eyesopen.com>
4654
4655         * expmed.c (store_fixed_bit_field): If we're not optimizing for
4656         size, force the intermediate into a new pseudo rather instead of
4657         performing both a bitwise AND and a bitwise IOR in memory.
4658
4659 2006-04-27  Richard Guenther  <rguenther@suse.de>
4660
4661         PR rtl-optimization/26685
4662         * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
4663         this one "max-flow-memory-locations".
4664
4665 2006-04-27  Richard Guenther  <rguenther@suse.de>
4666
4667         PR tree-optimization/25148
4668         * tree-vrp.c (compare_values): Remove code dealing with
4669         comparisons against type min/max value.  Honour overflow
4670         and negative constants in code dealing with comparisons
4671         of plus and minus expressions.
4672         (value_inside_range): Use fold_binary with LE_EXPR and
4673         GE_EXPR rather than compare_values.
4674
4675 2006-04-27  Dirk Mueller  <dmueller@suse.de>
4676
4677         * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
4678         prototype for SSE.
4679
4680 2006-04-26  Kenneth Zadeck <zadeck@naturalbridge.com>
4681
4682         * basic-block.h (safe_insert_insn_on_edge): Removed.
4683         * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
4684
4685 2006-04-26  David Edelsohn  <edelsohn@gnu.org>
4686             Paolo Bonzini  <bonzini@gnu.org>
4687
4688         PR middle-end/27282
4689         * combine.c (simplify_and_const_int_1): Use gen_int_mode.
4690         (simplify_and_const_int): Same.
4691
4692 2006-04-26  Aldy Hernandez  <aldyh@redhat.com>
4693
4694         * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
4695
4696 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
4697
4698         PR c/26171
4699         * cgraph.c (cgraph_varpool_finalize_decl): Don't call
4700         cgraph_varpool_assemble_pending_decls if -fopenmp, unless
4701         cgraph_global_info_ready.
4702
4703         PR middle-end/26913
4704         * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
4705
4706         PR c/25996
4707         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
4708         either decl or init is error_mark_node.
4709
4710         PR middle-end/25989
4711         * tree-flow.h (struct omp_region): Add sched_kind.
4712         * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
4713         instead of extracting omp for data.
4714         (expand_omp_for): Save extracted sched_kind.
4715
4716 2006-04-25  Roger Sayle  <roger@eyesopen.com>
4717
4718         * expmed.c (store_bit_field): Also check whether the bitsize is
4719         valid for the machine's "insv" instruction before moving the
4720         target into a pseudo for use with the insv.
4721         * config/i386/predicates.md (const8_operand): New predicate.
4722         * config/i386/i386.md (extv, extzv, insv): Use the new
4723         const8_operand predicate where appropriate.
4724
4725 2006-04-25  DJ Delorie  <dj@redhat.com>
4726
4727         * doc/install.texi (Specific): Clarify that this is not a list of
4728         supported hosts or targets.
4729
4730 2006-04-25  Richard Sandiford  <richard@codesourcery.com>
4731
4732         PR rtl-optimization/26725
4733         * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
4734         block's BB_DIRTY flag.
4735
4736 2006-04-25  Geoffrey Keating  <geoffk@apple.com>
4737
4738         * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
4739         are no branches.
4740
4741         * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
4742         to print an integer.
4743
4744 2006-04-25  David Edelsohn  <edelsohn@gnu.org>
4745
4746         * varasm.c (align_variable): New function.
4747         (get_block_for_decl): Apply align_variable to DECL before
4748         calculating section information.
4749         (assemble_variable): Split out alignment computation.
4750
4751 2006-04-25  Andreas Krebbel  <krebbel1@de.ibm.com>
4752
4753         * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
4754         machines.
4755
4756 2006-04-25  Bernd Schmidt  <bernd.schmidt@analog.com>
4757
4758         * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
4759         MODE_PARTIAL_INT mode.
4760         * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
4761         * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
4762         for CONST_INTs.
4763         (hard_regno_mode_ok): V2PDImode is ok for accumulators.
4764         * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
4765         V2PDImode.
4766         * config/bfin/predicates.md (const01_operand, vec_shift_operand):
4767         New predicates.
4768         * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
4769         New constants.
4770         (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
4771         MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
4772         MACFLAG_IH): Likewise.
4773         (movstricthi_1): Renamed from "*movstricthi".
4774         (load_accumulator, load_accumulator_pair, movsi_insv, insv,
4775         ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
4776         abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
4777         movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
4778         movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
4779         movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
4780         addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
4781         sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
4782         addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
4783         mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
4784         ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
4785         flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
4786         flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
4787         flag_macv2hi_parts, flag_macv2hi_parts_acconly,
4788         flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
4789
4790         * doc/rtl.texi (ss_ashift): Improve wording.
4791
4792 2006-04-24  Geoffrey Keating  <geoffk@apple.com>
4793
4794         * dwarf2out.c (verify_marks_clear): New.
4795         (prune_unused_types): Call verify_marks_clear initially, not
4796         prune_unmark_dies.
4797
4798 2006-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
4799
4800         * rtl.def (SS_ASHIFT, SS_NEG): New codes.
4801         * doc/rtl.texi: Document them.
4802         * simplify-rtx.c (simplify_unary_operation,
4803         simplify_binary_operation_1): Don't abort when we see them.
4804
4805 2006-04-24  Mark Mitchell  <mark@codesourcery.com>
4806
4807         Revert:
4808         2006-04-23  Mark Mitchell  <mark@codesourcery.com>
4809         * configure.ac: Completely disregard languages that are not
4810         enabled.
4811         * configure: Regenerated.
4812
4813 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
4814         Richard Guenther  <rguenther@suse.de>
4815
4816         PR tree-optimization/27236
4817         * tree-inline.c (copy_body_r): Make sure to copy
4818         TREE_THIS_VOLATILE flag.
4819
4820 2006-04-24  Richard Guenther  <rguenther@suse.de>
4821
4822         PR middle-end/26869
4823         * tree-complex.c (update_parameter_components): Don't handle
4824         unused parameters which have no default def.
4825
4826 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
4827         Richard Guenther  <rguenther@suse.de>
4828
4829         PR tree-optimization/27218
4830         * tree-inline.c (expand_call_inline): Strip useless type
4831         conversions for the return slot address.
4832
4833 2006-04-24  Richard Guenther  <rguenther@suse.de>
4834
4835         * cfgloop.h (struct loops): Remove unused field array.  Reorder
4836         state after num.
4837         (LOOP_PREFETCH): Remove.
4838
4839 2006-04-24  Richard Guenther  <rguenther@suse.de>
4840
4841         PR tree-optimization/22525
4842         * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
4843         variable, adjust types of generated expressions.
4844
4845 2006-04-23  H.J. Lu  <hongjiu.lu@intel.com>
4846
4847         * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
4848         (tree-vect-patterns.o): Likewise.
4849         (jump.o): Likewise.
4850         (cselib.o): Likewise.
4851         (loop-doloop.o): Likewise.
4852         (regclass.o): Likewise.
4853         (reload1.o): Likewise.
4854         (explow.o): Replace target.h with $(TARGET_H).
4855         (ipa-prop.o): Likewise.
4856         (ipa-cp.o): Likewise.
4857         (ipa-inline.o): Likewise.
4858         (reorg.o): Likewise.
4859         (reg-stack.o): Likewise.
4860
4861 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
4862
4863         * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
4864
4865 2006-04-23  Mark Mitchell  <mark@codesourcery.com>
4866
4867         * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
4868
4869         * configure.ac: Completely disregard languages that are not
4870         enabled.
4871         * configure: Regenerated.
4872
4873         PR c++/26534
4874         * c-common.h (c_build_bitfield_integer_type): Declare.
4875         * c-decl.c (c_build_bitfield_integer_type): Move to ...
4876         * c-common.c (c_build_bitfield_integer_type): ... here.
4877
4878 2006-04-23  Roger Sayle  <roger@eyesopen.com>
4879
4880         PR target/21283
4881         * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
4882         a SImode SUBREG of a floating point register after no_new_pseudos.
4883
4884 2006-04-23  Roger Sayle  <roger@eyesopen.com>
4885
4886         * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
4887         identify potentially eliminable registers to additionally catch
4888         VIRTUAL_INCOMING_ARGS_REGNUM.
4889         (addsi3): Update the conditions on when to use addsi_small_int.
4890
4891 2006-04-23  Roger Sayle  <roger@eyesopen.com>
4892
4893         PR target/16641
4894         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
4895         STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
4896         rtx to stack_pointer_rtx or frame_pointer_rtx directly.
4897
4898 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
4899
4900         * fold-const.c (range_predecessor): Use operand_equal_p
4901         as the predicate for equality.
4902         (range_successor): Likewise.
4903
4904 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
4905
4906         Revert:
4907         * config/soft-fp/op-common.h: Fix a typo.
4908
4909 2006-04-22  Frank Ch. Eigler  <fche@redhat.com>
4910
4911         PR libmudflap/26864
4912         * common.opt (flag_mudflap_threads): Overload flag_mudflap.
4913         * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
4914
4915 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
4916
4917         * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
4918         Fix comment typos.
4919         * doc/tm.texi: Fix a typo.
4920
4921 2006-04-21  Geoffrey Keating  <geoffk@apple.com>
4922
4923         * dwarf2out.c (struct die_struct): Document that die_sib makes
4924         a circular linked list.
4925         (FOR_EACH_CHILD): New.
4926         (reverse_die_lists): Delete.
4927         (reverse_all_dies): Delete.
4928         (add_dwarf_attr): Correct documentation.
4929         (remove_child_with_prev): New.
4930         (remove_child_TAG): Update for change to die_struct, use
4931         remove_child_with_prev.
4932         (add_child_die): Update for change to die_struct.
4933         (splice_child_die): Use remove_child_with_prev and add_child_die.
4934         (print_die): Use FOR_EACH_CHILD.
4935         (die_checksum): Likewise.
4936         (assign_symbol_names): Likewise.
4937         (output_location_lists): Likewise.
4938         (build_abbrev_table): Likewise.
4939         (calc_die_sizes): Likewise.
4940         (mark_dies): Likewise.
4941         (unmark_dies): Likewise.
4942         (unmark_all_dies): Likewise.
4943         (output_die): Likewise.
4944         (prune_unused_types_mark): Likewise.
4945         (prune_unused_types_walk): Likewise.
4946         (same_die_p): Update for change to die_struct.
4947         (break_out_includes): Likewise.
4948         (prune_unused_types_prune): Likewise.
4949         (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
4950         (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
4951         it's already clear.
4952         (dwarf2out_finish): Don't call reverse_all_dies.
4953
4954 2006-04-21  Eric Christopher  <echristo@apple.com>
4955
4956         * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
4957         in comments and function names.
4958
4959 2006-04-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4960
4961         PR c/25875
4962         * c-typeck.c (digest_init): Robustify.
4963
4964         * c-typeck.c (pop_init_level): Simplify.
4965
4966 2006-04-21  Steve Ellcey  <sje@cup.hp.com>
4967
4968         * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
4969
4970 2006-04-21  Paul Brook  <paul@codesourcery.com>
4971
4972         * config/arm/arm.c (arm_override_options): Error on iWMMXt and
4973         hardware floating point.
4974
4975 2006-04-21  David Edelsohn  <edelsohn@gnu.org>
4976
4977         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
4978         NON_FLOAT_REGS.
4979
4980 2006-04-21  Nick Clifton  <nickc@redhat.com>
4981
4982         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
4983         OPT_EXTRA_PARTS.
4984
4985 2006-04-21  Alan Modra  <amodra@bigpond.net.au>
4986
4987         PR target/27230
4988         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
4989         C++ lang type in traceback table for Objective-C++.
4990
4991         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
4992
4993 2006-04-20  H.J. Lu  <hongjiu.lu@intel.com>
4994
4995         * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
4996
4997 2006-04-20  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4998
4999         PR mudflap/26789
5000         * tree-mudflap.c (mudflap_finish_file): Skip function when there
5001         were errors.  Remove check for erroneous objects.
5002
5003 2006-04-20  Jeff Law  <law@redhat.com>
5004
5005         PR tree-optimization/26854
5006         * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
5007         checking for zero or one use.
5008         * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
5009         * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
5010         * tree-ssa-reassoc.c (negate_value): Similarly.
5011         (reassociate_bb): Similarly.
5012
5013 2006-04-20  Jakub Jelinek  <jakub@redhat.com>
5014
5015         * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
5016         TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
5017         than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
5018
5019 2006-04-20  Alan Modra  <amodra@bigpond.net.au>
5020
5021         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
5022         fp regs if the last fp arg doesn't fit in regs.
5023
5024 2006-04-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5025
5026         PR target/27182
5027         * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
5028         that the last insn has the REG_INC note.
5029
5030 2006-04-19  Carlos O'Donell  <carlos@codesourcery.com>
5031             Nathan Sidwell  <nathan@codesourcery.com>
5032
5033         PR c/26774
5034         * stor-layout.c (update_alignment_for_field): Do not align
5035         ERROR_MARK nodes.
5036         (place_union_field): Place union field at the start of the union.
5037         (place_field): Move ERROR_MARK check later, and use the current
5038         allocation position to maintain monotonicity.
5039
5040 2006-04-19  Zdenek Dvorak <dvorakz@suse.cz>
5041
5042         * dominance.c: Include timevar.h.
5043         (calculate_dominance_info): Use TV_DOMINANCE.
5044         * timevar.def (TV_DOMINANCE): New timevar.
5045         * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
5046
5047 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5048
5049         PR rtl-optimization/14261
5050         * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
5051         move would be an INSV insn.
5052         (noce_process_if_block): Don't optimize if the destination is a
5053         ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
5054
5055 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5056
5057         * config/s390/s390.md: Add comments with the instructions emitted
5058         by an insn pattern if macros are used.
5059
5060 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
5061
5062         PR rtl-optimization/26026
5063         * fold-const.c (fold_binary): Optimize div and mod where the divisor
5064         is a known power of two shifted left a variable amount.
5065
5066 2006-04-18  Geoffrey Keating  <geoffk@apple.com>
5067
5068         * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
5069         to hash table twice when the debug_str section has SECTION_MERGE.
5070
5071 2006-04-18  Joseph S. Myers  <joseph@codesourcery.com>
5072
5073         * config/soft-fp: New directory.  From glibc.
5074         * config/soft-fp/t-softfp: New.
5075         * config/soft-fp/README: New.
5076         * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
5077         * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
5078         (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
5079         (LIBGCC_DEPS): Add $(SFP_MACHINE).
5080         * config.gcc: Use rs6000/t-fprules-fpbit or
5081         rs6000/t-fprules-softfp and soft-fp/t-softfp together with
5082         rs6000/t-fprules.
5083         * config/rs6000/sfp-machine.h: New.  Based on glibc.
5084         * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
5085         New.
5086         * config/rs6000/t-fprules: Remove fp-bit rules.
5087         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
5088         * config/rs6000/t-linux64: Likewise.  Remove duplicates from
5089         LIB2FUNCS_EXTRA.  Remove fp-bit rules.
5090         (softfp_wrap_start, softfp_wrap_end): New.
5091
5092 2006-04-18  DJ Delorie  <dj@redhat.com>
5093
5094         * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
5095
5096 2006-04-18  Devang Patel  <dpatel@apple.com>
5097
5098         * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
5099
5100 2006-04-18  Nick Clifton  <nickc@redhat.com>
5101
5102         * config/sh/t-symbian: Add rule to build sh-c.o
5103         * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
5104         of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
5105         (sh_symbian_encode_section_info): Likewise.
5106
5107 2006-04-18  Andreas Krebbel  <krebbel1@de.ibm.com>
5108
5109         * builtins.c (expand_builtin_strcmp): Cover label definition of
5110         do_libcall with HAVE_cmpstrnsi.
5111
5112 2006-04-18  Kazu Hirata  <kazu@codesourcery.com>
5113
5114         * function.c (temp_slots_at_level, max_slot_level): Use VEC
5115         instead of VARRAY.
5116         * function.h (temp_slot_p): New.
5117         (function): Change the type of x_used_temp_slots to
5118         VEC(temp_slot_p,gc) *.
5119
5120 2006-04-18  Nick Clifton  <nickc@redhat.com>
5121
5122         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
5123         flag_strength_reduce.
5124
5125         * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
5126
5127 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
5128
5129         PR target/27117
5130
5131         Partial revert of revision 112637
5132         2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
5133                     Dale Johannesen  <dalej@apple.com>
5134
5135         PR target/19653
5136         * regclass.c (struct reg_pref): Update documentation.
5137         (regclass): Set prefclass to NO_REGS if memory is the best option.
5138         (record_reg_classes): Cope with a prefclass set to NO_REGS.
5139
5140 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
5141
5142         PR tree-optimization/26821
5143         * tree-ssa-math-opts.c (get_constant_one): New.
5144         (insert_reciprocals): Use it.
5145
5146 2006-04-17  Geoffrey Keating  <geoffk@apple.com>
5147
5148         * dwarf2out.c (free_AT): Delete.
5149         (remove_AT): Update string ref counts.
5150         (remove_child_TAG): Don't call free_die.
5151         (free_die): Delete.
5152         (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
5153         or DW_TAG_GNU_EINCL.
5154         (prune_unused_types_walk_attribs): Reset string refcounts.
5155         (prune_unused_types_update_strings): New.
5156         (prune_unused_types_prune): Don't make unnecessary stores.  Don't
5157         call free_die.  Do call prune_unused_types_update_strings.
5158         (prune_unused_types): Empty debug_str_hash.
5159
5160 2006-04-17  Roger Sayle  <roger@eyesopen.com>
5161
5162         * expr.c (expand_assignment): Optimize away no-op moves where the
5163         source and destination are equal and have no side-effects.
5164
5165 2006-04-17  Richard Guenther  <rguenther@suse.de>
5166
5167         PR target/26826
5168         * reload.c (push_reload): Guard calls to get_secondary_mem
5169         for memory subregs.
5170
5171 2006-04-16  Kazu Hirata  <kazu@codesourcery.com>
5172
5173         * alias.c (reg_base_value, old_reg_base_value): Change the
5174         type to VEC(rtx,gc) *.
5175         (REG_BASE_VALUE, find_base_value, record_set,
5176         init_alias_analysis): Use VEC instead of VARRAY.
5177
5178         * alias.c (alias_sets): Change the type to
5179         VEC(alias_set_entry,gc) *.
5180         (get_alias_set_entry, new_alias_set, record_alias_subset): Use
5181         VEC instead of VARRAY.
5182         (last_alias_set): Remove.
5183
5184         * cgraph.h (cgraph_edge_p): New.
5185         Update the prototype of cgraph_function_versioning.
5186         * cgraphunit.c (cgraph_copy_node_for_versioning,
5187         cgraph_function_versioning): Use VEC instead of VARRAY.
5188         * ipa-cp.c (ipcp_insert_stage): Likewise.
5189
5190 2006-04-16  Roger Sayle  <roger@eyesopen.com>
5191
5192         PR target/26961
5193         * fold-const.c (fold_ternary): When converting "A ? B : C" into either
5194         "A op B" or "A op C", we may need to convert A to the type of B and C.
5195
5196 2006-04-16  Adam Nemet  <anemet@caviumnetworks.com>
5197
5198         * target.h (struct gcc_target): Add mode_rep_extended.
5199         * rtlanal.c (num_sign_bit_copies_in_rep): New global.
5200         (init_num_sign_bit_copies_in_rep): Initialize it using
5201         mode_rep_extended.
5202         (truncate_to_mode): Use it.
5203         (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
5204         * targhooks.h (default_mode_rep_extended): Declare it.
5205         * targhooks.c (default_mode_rep_extended): Define it.
5206         * target-def.h (TARGET_MODE_REP_EXTENDED): New macro.  Default to
5207         default_mode_rep_extended.
5208         (TARGET_INITIALIZER): Include it.
5209         * doc/tm.texi (Misc): Document it.
5210         * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
5211         (mips_truncated_to_mode): New function.
5212
5213 2006-04-16  Roger Sayle  <roger@eyesopen.com>
5214
5215         PR middle-end/25474
5216         * expr.c (compress_float_constant): Copy the narrow constant into
5217         a new pseudo before extending it to its final width.
5218
5219 2006-04-16  Roger Sayle  <roger@eyesopen.com>
5220             Andrew Pinski  <pinskia@gcc.gnu.org>
5221             Dale Johannesen  <dalej@apple.com>
5222
5223         PR target/24076
5224         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
5225         special case code to implement V8HImode and V16QImode with SSE2.
5226
5227 2006-04-15  Roger Sayle  <roger@eyesopen.com>
5228
5229         * config/i386/i386.c (ix86_va_start): Ensure all integer constant
5230         trees are constructed with a suitable tree type.
5231
5232 2006-04-15  Roger Sayle  <roger@eyesopen.com>
5233
5234         * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
5235         (integer_onep): Likewise.
5236         (integer_all_onesp): Likewise.
5237         (integer_pow2p): Likewise.
5238         (integer_nonzerop): Likewise.
5239         (real_zerop): Likewise.
5240         (real_onep): Likewise.
5241         (real_twop): Likewise.
5242         (real_minus_onep): Likewise.
5243         (int_size_in_bytes): Likewise.
5244         (host_integerp): Likewise.
5245
5246 2006-04-15  Kazu Hirata  <kazu@codesourcery.com>
5247
5248         * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
5249         jump.c, mips-tfile.c, omp-low.c, sched-int.h,
5250         tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
5251
5252         * tree-ssa-structalias.h (alias_info): Remove num_references.
5253
5254 2006-04-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5255
5256         * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
5257         (output_bvb patterns): Likewise.
5258         * pa.c (output_bb): Use 'bb' insn for long branch case.
5259         (output_bvb): Likewise use '{bvb|bb}' for long branch case.
5260         (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
5261         1.  Correct length operand for alternatives 1 and 2.
5262         (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
5263         1, 2 and 3.  Correct length operand for alternatives 1, 2 and 3.
5264
5265 2006-04-14  Roger Sayle  <roger@eyesopen.com>
5266
5267         * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
5268         is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
5269         were accidentally reverted by r112959.
5270
5271 2006-04-15  Jakub Jelinek  <jakub@redhat.com>
5272
5273         PR middle-end/26823
5274         * except.h (eh_region_outermost): New prototype.
5275         * except.c (eh_region_outermost): New function.
5276         * tree-cfg.c (find_outermost_region_in_block): Use it.
5277
5278 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
5279
5280         * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
5281         of VARRAY.
5282         * reload1.c (reg_equiv_memory_loc_varray): Rename to
5283         reg_equiv_memory_loc_vec.  Change the type to VEC(rtx,gc) *.
5284         (init_reload, reload): Use VEC instead of VARRAY.
5285         * reload.h: Update the prototype for
5286         reg_equiv_memory_loc_varray.
5287
5288 2006-04-14  Alexey Starovoytov  <alexey.starovoytov@sun.com>
5289             Eric Botcazou  <ebotcazou@libertysurf.fr>
5290
5291         * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
5292         register save area.
5293
5294 2005-04-13  Uros Bizjak  <uros@kss-loka.si>
5295
5296         PR middle-end/27134
5297         * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
5298         to expand fallback builtin function call.
5299
5300 2006-04-14  Alan Modra  <amodra@bigpond.net.au>
5301
5302         PR middle-end/27095
5303         * builtins.c: (expand_builtin_memset): Stabilize args before expansion
5304         and emit libcall here in case the builtin fails.
5305         (expand_builtin_strcmp): Always emit the libcall here on failure.
5306
5307 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
5308
5309         * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
5310         * flow.c (reg_n_info): Change the type to
5311         VEC(reg_info_p,heap) *.
5312         * regclass.c (allocate_reg_info, free_reg_info): Use VEC
5313         instead of VARRAY.
5314         * regs.h (reg_info_p): New.
5315         (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
5316         REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
5317         REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
5318         instead of VARRAY.
5319
5320 2006-04-13  Eric Botcazou  <ebotcazou@adacore.com>
5321
5322         * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
5323         defaulting to 100.
5324         * params.h (MAX_SCHED_READY_INSNS): New macro.
5325         * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
5326         past MAX_SCHED_READY_INSNS during the first scheduling pass.
5327         (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
5328         the ready list for 1 cycle during the first scheduling pass.
5329         * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
5330
5331 2006-04-13  Richard Henderson  <rth@redhat.com>
5332
5333         PR libgomp/26651
5334         * gimple-low.c (lower_omp_directive): Remove dead code.
5335         (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
5336         * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
5337         * omp-low.c (struct omp_region): Move to tree-flow.h.
5338         (root_omp_region): Export.
5339         (omp_regions, lookup_omp_region): Remove.
5340         (determine_parallel_type): Update for struct omp_region changes.
5341         (dump_omp_region): Dump regions with block numbers.
5342         (new_omp_region): Take type and block instead of stmt; malloc
5343         instead of ggc.
5344         (free_omp_region_1, free_omp_regions): New.
5345         (expand_parallel_call): Take entry_stmt as argument; update for
5346         changes to omp_region.
5347         (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
5348         (remove_exit_barriers): New.
5349         (expand_omp_parallel): Update for struct omp_region changes.
5350         (expand_omp_synch): Likewise.
5351         (expand_omp): Likewise.
5352         (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
5353         (expand_omp_for_static_chunk): Likewise.
5354         (expand_omp_for): Likewise.
5355         (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
5356         (expand_omp_sections): Similarly, with GOMP_sections_end.
5357         (expand_omp_single): New.
5358         (build_omp_regions_1): Update for OMP_CONTINUE.
5359         (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
5360         (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
5361         OMP_SECTIONS_SECTIONS.
5362         (lower_omp_single_simple): Don't emit barrier here.
5363         (lower_omp_single_copy): Likewise.
5364         (lower_omp_single): Fix bindings, and lower to straightline now.
5365         (lower_omp_master, lower_omp_ordered): Likewise.
5366         (lower_omp_critical): Likewise.
5367         (lower_omp_for): Likewise.  Emit OMP_CONTINUE.
5368         * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
5369         omp edges, free it afterward.
5370         (make_omp_sections_edges): Remove.
5371         (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
5372         (move_stmt_r): Handle OMP_CONTINUE.
5373         * tree-flow.h (struct omp_region): Move from omp-low.c.  Switch
5374         statement pointers to basic blocks.  Add type member.
5375         (root_omp_region, new_omp_region, free_omp_regions): Declare.
5376         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
5377         * tree-inline.c (estimate_num_insns_1): Likewise.
5378         * tree-pretty-print.c (dump_generic_node): Likewise.
5379         * tree-ssa-operands.c (get_expr_operands): Likewise.
5380         * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
5381         (OMP_RETURN): Rename from OMP_RETURN_EXPR.
5382         (OMP_CONTINUE): New.
5383         * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
5384         (OMP_SECTIONS_SECTIONS): Remove.
5385         (OMP_SECTION_LAST): New.
5386         (OMP_RETURN_NOWAIT): New.
5387
5388 2006-04-13  Roger Sayle  <roger@eyesopen.com>
5389
5390         * fold-const.c (native_encode_vector, native_interpret_real):
5391         Correct obvious mistakes in the previous check-in.
5392
5393 2006-04-13  Roger Sayle  <roger@eyesopen.com>
5394
5395         * fold-const.c (native_encode_expr): New function to encode
5396         the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
5397         or VECTOR_CST into a specified buffer.
5398         (native_encode_int): New function.
5399         (native_encode_real): New function.
5400         (native_encode_complex): New function.
5401         (native_encode_vector): New function.
5402         (native_interpret_expr): Inverse of native_encode_expr to convert
5403         a target representation into an INTEGER_CST, REAL_CST etc...
5404         (native_interpret_int): New function.
5405         (native_interpret_real): New function.
5406         (native_interpret_complex): New function.
5407         (native_interpret_vector): New function.
5408         (fold_view_convert_expr): New function to constant fold/evaluate
5409         a VIEW_CONVERT_EXPR of a suitable constant expression.
5410         (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
5411         Change call of build1 to fold_build1 when constructing a
5412         VIEW_CONVERT_EXPR.
5413
5414 2006-04-13  Paolo Bonzini  <bonzini@gnu.org>
5415             Ulrich Weigand  <uweigand@de.ibm.com>
5416
5417         PR target/27006
5418         * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
5419         to be even.
5420
5421 2006-04-13  Alan Modra  <amodra@bigpond.net.au>
5422
5423         PR target/26459
5424         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5425         optimize to lo_sum for DFmode if !TARGET_FPRS.
5426
5427 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
5428
5429         * tree-ssa-alias.c (set_initial_properties, init_alias_info,
5430         delete_alias_info, compute_flow_sensitive_aliasing,
5431         group_aliases): Use VEC instead of VARRAY.
5432         * tree-ssa-structalias.c (update_alias_info): Likewise.
5433         * tree-ssa-structalias.h (alias_info): Change the type of
5434         processed_ptrs to VEC(tree,heap) *.
5435
5436 2006-04-12  J"orn Rennecke <joern.rennecke@st.com>
5437
5438         PR target/27060
5439         * config/sh/lib1funcs.h: New file, broken out of:
5440         * config/sh/lib1funcs.asm.
5441         * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
5442         New macros.
5443         * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
5444         * config/sh/lib1funcs-Os-4-200.asm: New file.
5445         * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
5446         * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
5447         (EXTRA_MULTILIB_PARTS): Include it.
5448         ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
5449         ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
5450         * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
5451         * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
5452         TARGET_SH2.
5453
5454 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
5455
5456         * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
5457         * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
5458         tpa_compact, root_var_init, type_var_init): Use VEC instead of
5459         VARRAY.
5460         * tree-ssa-live.h: Include vecprim.h.
5461         (tree_partition_associator_d): Change the type of
5462         first_partition to VEC(int,heap) *.
5463         (tpa_first_partition): Use VEC instead of VARRAY.
5464
5465         * Makefile.in (GTFILES): Move functions.h after tree.h.
5466         * function.c (reset_block_changes, record_block_change,
5467         check_block_change, free_block_changes): Use VEC instead of
5468         VARRAY.
5469         * function.h (function): Change the type of
5470         ib_boundaries_block to VEC(tree,gc) *.
5471         * tree-inline.c (copy_cfg_body): Initialize
5472         ib_boundaries_block to NULL instead of (varray_type) 0.
5473
5474 2006-04-12  Roger Sayle  <roger@eyesopen.com>
5475
5476         * expr.c (emit_group_store): Correct operand order in call to
5477         subreg_lowpart_offset.  Always create paradoxical SUBREGs with
5478         a SUBREG_BYTE of zero.
5479
5480 2006-04-12  Richard Guenther  <rguenther@suse.de>
5481
5482         * profile.c (compute_branch_probabilities): Remove code
5483         encapsulated in !ir_type (), which are remanents of the
5484         removed RTL profiling code.
5485         * rtl-profile.c: Remove.
5486
5487 2006-04-12  Alan Modra  <amodra@bigpond.net.au>
5488
5489         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
5490         magic NULL_RTX comment.
5491         (function_arg): Store entire fp arg to mem if any part should go
5492         on stack.
5493         (rs6000_arg_partial_bytes): Adjust for above change.
5494
5495 2006-04-11  Roger Sayle  <roger@eyesopen.com>
5496
5497         * dwarf2out.c (output_call_frame_info): Create debug_frame_section
5498         if it hasn't been initialized by dwarf2out_init.
5499
5500 2006-04-11  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
5501
5502         * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
5503         symbolic constants in branch patterns.
5504
5505 2006-04-11  Roger Sayle  <roger@eyesopen.com>
5506
5507         * caller-save.c: #include "addresses.h" after #include "tm_p.h".
5508
5509 2006-04-11  Richard Sandiford  <richard@codesourcery.com>
5510
5511         PR rtl-optimization/27073
5512         * gcse.c (try_replace_reg): Revert last change.  Continue to search
5513         for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
5514         on the former.
5515
5516 2006-04-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
5517
5518         * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
5519         aggregate types other than record and union types.
5520         (function_arg): Likewise.
5521         (function_arg_pass_by_reference): In 64-bit mode, return 0 for
5522         small arrays.
5523         (function_value): In 64-bit mode, return objects that require it
5524         in FP registers.
5525
5526 2006-04-11  Roger Sayle  <roger@eyesopen.com>
5527
5528         * dwarf2out.c (premark_used_types): Remove problematic prototype.
5529
5530 2006-04-11  Jakub Jelinek  <jakub@redhat.com>
5531
5532         * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
5533
5534 2006-04-03  Jeff Law  <law@redhat.com>
5535
5536         PR/27087
5537         * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
5538         alias information too.
5539
5540 2006-04-10  Mike Frysinger  <vapier@gentoo.org>
5541
5542         * Makefile.in (gcc-cross): Add $(exeext) to target name.
5543
5544 2006-04-10  Aldy Hernandez  <aldyh@redhat.com>
5545
5546         PR/21391
5547         * dwarf2out.c (struct die_struct): Add die_perennial_p field.
5548         (premark_used_types_helper): New.
5549         (premark_used_types): New.
5550         (gen_subprogram_die): Call premark_used_types.
5551         (prune_unused_types_walk): Do not prune perennial dies.
5552         * function.c (used_types_insert): New.
5553         * function.h (struct function): Add used_types_hash field.
5554         (used_types_insert): Add prototype.
5555         * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
5556         * c-parser.c (c_parser_cast_expression): Save casted types in used
5557         types hash table.
5558
5559 2006-04-11  Mark Mitchell  <mark@codesourcery.com>
5560
5561         PR target/26459
5562         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
5563         rs6000_explicit_options.float_gprs.
5564
5565 2006-04-10  Roger Sayle  <roger@eyesopen.com>
5566
5567         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
5568         from ix86_expand_vector_init_low_nonzero.  Take an additional
5569         one_var argument indicating which element is non-zero.  Support
5570         one_var != 0 for V4SFmode and V4SImode by permuting the result.
5571         (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
5572         with one_var instead of ix86_expand_vector_init_low_nonzero.
5573
5574 2006-04-10  Kazu Hirata  <kazu@codesourcery.com>
5575
5576         * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
5577         tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
5578         global.o, cfglayout.o, lambda-code.o, reg-stack.o,
5579         build/genextract.o): Depend on vecprim.h.
5580         * cfglayout.c, df-problems.c, function.c, genextract.c,
5581         global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
5582         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
5583         vecprim.h.
5584         * vecprim.h: New.
5585
5586 2006-04-10  Geoffrey Keating  <geoffk@apple.com>
5587
5588         * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
5589         Declare VECs of this type.
5590         (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
5591         (remove_children): Delete.
5592         (add_dwarf_attr): Use VEC routines.
5593         (add_AT_flag): Update for changes to add_dwarf_attr.
5594         (add_AT_int): Likewise.
5595         (add_AT_unsigned): Likewise.
5596         (add_AT_long_long): Likewise.
5597         (add_AT_vec): Likewise.
5598         (add_AT_string): Likewise.
5599         (add_AT_die_ref): Likewise.
5600         (add_AT_fde_ref): Likewise.
5601         (add_AT_loc): Likewise.
5602         (add_AT_loc_list): Likewise.
5603         (add_AT_addr): Likewise.
5604         (add_AT_lbl_id): Likewise.
5605         (add_AT_lineptr): Likewise.
5606         (add_AT_macptr): Likewise.
5607         (add_AT_offset): Likewise.
5608         (add_AT_range_list): Likewise.
5609         (get_AT): Use VEC_iterate.
5610         (remove_AT): Use VEC_ordered_remove.
5611         (free_die): Fold remove_children into here; have it use VEC_iterate.
5612         (print_die): Use VEC_iterate on attrs.
5613         (reverse_die_lists): Don't reverse attr lists.
5614         (die_checksum): Use VEC_iterate on attrs.
5615         (same_die_p): Likewise.
5616         (output_location_lists): Likewise.
5617         (build_abbrev_table): Likewise.
5618         (size_of_die): Likewise.
5619         (unmark_all_dies): Likewise.
5620         (output_abbrev_section): Likewise.
5621         (output_die): Likewise.
5622         (prune_unused_types_walk_attribs): Likewise.
5623
5624 2006-04-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
5625
5626         * doc/install.texi (*-*-solaris2*): Point to the configure page.
5627
5628 2006-04-10  Jakub Jelinek  <jakub@redhat.com>
5629
5630         PR debug/27057
5631         * dwarf2out.c (is_symbol_die): Return true also for namespaces.
5632
5633 2006-04-09  Roger Sayle  <roger@eyesopen.com>
5634
5635         * expr.c (store_constructor): Don't bother clearing target if
5636         we're about to assign a vector to it using vec_init_optab.
5637
5638 2006-04-10 Daniel Berlin  <dberlin@dberlin.org>
5639
5640         * tree-ssa-alias.c (lhs_may_store_to): New function.
5641         (recalculate_used_alone): Handle LHS of calls.
5642
5643 2006-04-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5644
5645         PR target/27034
5646         PR target/26508
5647         * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
5648         * pa64-hpux.h (LIB_SPEC): Correct typo.  Don't append milli.a.
5649         (LINK_GCC_C_SEQUENCE_SPEC): Define.  Append milli.a here.
5650         (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
5651         (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
5652         (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
5653         section.  Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
5654         stubs.  Add ".align 8" directives before all ".dword" directives.
5655         (GTHREAD_USE_WEAK): Revise comment.
5656         (TARGET_ATTRIBUTE_WEAK): Define.
5657         * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
5658         dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
5659         * stublib.c: New file.
5660
5661         PR target/26743
5662         PR target/11254
5663         PR target/10274
5664         * pa.md (cbranch patterns): Revise arguments used in calls to
5665         output_cbranch, output_bb and output_bvd.  Add long branch length
5666         attributes.
5667         (fbranch patterns): Handle long branches.
5668         (jump): Revise length check.  Revise arguments for output_lbranch call.
5669         Add long branch length attributes.
5670         (decrement_and_branch_until_zero): Add long branch length attributes.
5671         (output_movb, output_parallel_addb and output_parallel_movb patterns):
5672         Likewise.  Revise arguments for output_parallel_addb and
5673         output_parallel_movb calls.
5674         * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
5675         output_parallel_movb and output_parallel_addb): Update prototypes.
5676         * pa.c (output_cbranch): Revise arguments.  Correct handling of
5677         nullification in long branches.
5678         (output_lbranch): Add new argument to control extraction of delay
5679         instruction.
5680         (output_bb): Handle long branches.
5681         (output_bvb, output_dbra, output_movb, output_parallel_movb,
5682         output_parallel_addb): Likewise.
5683
5684 2006-04-09  Richard Sandiford  <richard@codesourcery.com>
5685
5686         PR rtl-optimization/27073
5687         * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
5688         not REG_EQUIVs.
5689
5690 2006-04-08  Daniel Berlin  <dberlin@dberlin.org>
5691
5692         * tree.h (tree_memory_tag): Add old_used_alone.
5693         (SMT_OLD_USED_ALONE): New macro.
5694         * tree-ssa-alias.c (recalculate_used_alone): Stop
5695         marking things for renaming unnecessarily.
5696
5697 2006-04-08  Kazu Hirata  <kazu@codesourcery.com>
5698
5699         * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
5700         config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
5701         config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
5702         haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
5703         sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
5704         tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
5705         tree-vect-patterns.c, tree-vrp.c: Fix comment typos.  Follow
5706         spelling convensions.
5707         * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
5708         doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
5709         typos.  Follow spelling conventions.
5710
5711 2006-04-07  DJ Delorie  <dj@redhat.com>
5712
5713         * config/m32c/m32c.c (m32c_function_arg): Structures are always
5714         passed on the stack.
5715         (m32c_init_cumulative_args): When a function returns a structure,
5716         always pass the pointer to that return area on the stack.
5717         (m32c_function_arg_advance): Don't increment the parameter number
5718         if we're processing the returned structure pointer.
5719         (pushm_info): Reverse order of registers.
5720
5721 2006-04-07  Sebastian Pop  <pop@cri.ensmp.fr>
5722
5723         * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
5724         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
5725         number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
5726         estimate_numbers_of_iterations_loop): Use build_int_cst instead of
5727         build_int_cst_type.
5728         * tree-chrec.c (chrec_fold_multiply_poly_poly,
5729         chrec_fold_multiply): Same.
5730         * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
5731         force_expr_to_var_cost): Same.
5732         * tree-mudflap.c (mf_xform_derefs_1): Same.
5733         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
5734
5735 2006-04-07  David Edelsohn  <edelsohn@gnu.org>
5736
5737         * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
5738         treat CONST_DOUBLE as INTVAL.  and64_2_operands require an extra
5739         insn.
5740
5741 2006-04-07  Jan Hubicka  <jh@suse.cz>
5742
5743         * ipa-inline.c (cgraph_early_inlining): Collect garbage.
5744
5745 2006-04-07  Richard Guenther  <rguenther@suse.de>
5746
5747         PR tree-optimization/26135
5748         * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
5749         loads for store copy-prop.
5750         (copy_prop_visit_stmt): Likewise.
5751
5752 2006-04-05  Robert Millan  <robertmh@gnu.org>
5753
5754         * config/i386/linux.h: Add a comment to mark macros that are
5755         being overriden in config/k*bsd-gnu.h.
5756         * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
5757         DYNAMIC_LINKER.
5758         * config/knetbsd-gnu.h: Ditto.
5759
5760 2006-04-06  Jan Hubicka  <jh@suse.cz>
5761
5762         PR profile/20815
5763         PR profile/26399
5764         * coverage.c (coverage_checksum_string): Reorganize loop to not read
5765         after buffer.
5766
5767 2006-04-06  Mike Stump  <mrs@apple.com>
5768
5769         * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
5770         for HAVE_nonlocal_goto to be consistent.
5771         (expand_builtin_nonlocal_goto): Likewise.
5772         (expand_builtin_strcmp): Use #ifdef instead of #if
5773         for HAVE_cmpstrnsi to be consistent.
5774
5775 2006-04-05  DJ Delorie  <dj@redhat.com>
5776
5777         * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
5778         vs m32c.
5779
5780 2006-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
5781
5782         * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
5783         got-relative addressing for anything but SImode.
5784
5785         * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
5786         even if the calling function doesn't modify them.
5787
5788 2006-04-05  Richard Guenther  <rguenther@suse.de>
5789
5790         PR tree-optimization/26919
5791         * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
5792         to cgraph_estimate_size_after_inlining.
5793
5794 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
5795
5796         * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
5797
5798 2006-04-05  Sebastian Pop  <pop@cri.ensmp.fr>
5799
5800         PR tree-optimization/26996
5801         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
5802         VECTOR_TYPE variables.
5803
5804 2006-04-05  Richard Guenther  <rguenther@suse.de>
5805
5806         PR tree-optimization/26763
5807         * fold-const.c (fold_comparison): Move folding of
5808         PTR + CST CMP PTR + CST ...
5809         (fold_binary): ... here.  Fold only for EQ_EXPR and NE_EXPR.
5810
5811 2006-04-05  Gerald Pfeifer  <gerald@pfeifer.com>
5812
5813         * doc/install.texi (Prerequisites): Refine some wording on
5814         bootstrapping and ksh.
5815         Move the version numbers of DejaGnu here from the testing section
5816         and fix casing of names.
5817         Fix markup and clarify wording for autogen requirements.
5818         Refer to GCJ instead of just java.
5819         Refer to SVN instead of CVS.
5820         Describe diffutils as useful instead of necessary.
5821         (Downloading the source): Refer to SVN instead of CVS.
5822         Adjust a link to our web site accordingly.
5823         (Configuration): Fix casing of Bison.
5824         (Building): Refer to SVN instead of CVS.
5825         Fix a sentence on the use of Bison and remove duplicate (and
5826         incorrect) version number of Bison requirement.
5827         Remove one redundant list of packages needed for building.
5828         (Specific): Avoid reference to CVS.
5829
5830 2006-04-04  Eric Christopher  <echristo@apple.com>
5831
5832         * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
5833         (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
5834         (rs6000_handle_struct_attribute): New.
5835         (rs6000_ms_bitfield_layout_p): Ditto.
5836
5837 2006-04-04  Geoffrey Keating  <geoffk@apple.com>
5838
5839         * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
5840         NULL for dso parameter to atexit_common.
5841
5842 2006-04-04  Eric Christopher  <echristo@apple.com>
5843
5844         * config/i386/i386.c (machopic_output_stub): Output \t
5845         between instructions and operands.
5846
5847 2006-04-04  David Edelsohn  <edelsohn@gnu.org>
5848
5849         * config/rs6000/rs6000.c (num_insns_constant_wide): Change
5850         satisfies_constraint_[IL] to explicit tests on value.
5851
5852 2006-04-04  Sebastian Pop  <pop@cri.ensmp.fr>
5853
5854         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
5855         set_nb_iterations_in_loop): Use build_int_cst instead of
5856         build_int_cst_type.
5857         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
5858         build_int_cst instead of convert.
5859
5860 2006-04-04  Carlos O'Donell  <carlos@codesourcery.com>
5861
5862         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
5863         new value 2 for incoming.
5864         * function.c (expand_function_start): Call struct_value_rtx
5865         with incoming as 2.
5866         * config/sparc/sparc.md: Comment updated_return.
5867         * config/sparc/sparc.opt: Add -mstd-struct-return option.
5868         * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
5869         struct return if sparc_std_struct_return and incoming is 2.
5870         (print_operand): Do not adjust return if
5871         sparc_std_struct_return.
5872
5873 2006-04-04  Roger Sayle  <roger@eyesopen.com>
5874
5875         * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
5876         convert in the middle-end.
5877         * expr.c (store_expr, store_constructor, get_inner_reference,
5878         expand_expr_real_1, string_constant, try_casesi, try_tablejump):
5879         Likewise.
5880         * tree.c (build_range_type): Likewise.
5881
5882 2006-04-04  Tom Tromey  <tromey@redhat.com>
5883
5884         * doc/install.texi (Prerequisites): Mention jar.
5885
5886 2006-04-04  Daniel Berlin  <dberlin@dberlin.org>
5887
5888         * doc/tree-ssa.texi (Preserving the virtual ssa form): New
5889         subsection.
5890
5891 2006-04-04  Matthias Klose  <doko@debian.org>
5892
5893         * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
5894         * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
5895         strings.
5896
5897 2006-04-03  Geoffrey Keating  <geoffk@apple.com>
5898
5899         * doc/extend.texi (Function Attributes): Rewrite visibility
5900         attribute documentation.
5901         * doc/invoke.texi (C++ Dialect Options): Rewrite
5902         -fvisibility-inlines-hidden documentation to describe something
5903         entirely different, although in practise compatible.
5904         (Code Gen Options): Warn about system headers in -fvisibility=
5905         documentation.
5906
5907         * doc/extend.texi (Other Builtins): Document that
5908         __builtin_nan is a compile-time constant only when its argument
5909         is valid.
5910
5911 2006-04-03  Adam Nemet  <anemet@caviumnetworks.com>
5912
5913         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
5914         trying to remove TRUNCATE check if all bits outside the new mode
5915         are identical to the sign bit.
5916
5917 2006-04-03  Jeff Law  <law@redhat.com>
5918
5919         * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
5920         and operand scanning in some common cases.
5921
5922 2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
5923             Dale Johannesen  <dalej@apple.com>
5924
5925         PR target/19653
5926         * regclass.c (struct reg_pref): Update documentation.
5927         (regclass): Set prefclass to NO_REGS if memory is the best option.
5928         (record_reg_classes): Cope with a prefclass set to NO_REGS.
5929         * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
5930         into account.  For non-registers, equate an empty preferred
5931         reload class to a `!' in the constraint; move the if clause to
5932         do so after those that reject the insn.
5933         (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
5934         return NO_REGS.
5935         (find_dummy_reload): Likewise.
5936         * doc/tm.texi (Register Classes): Document what it means
5937         if PREFERRED_*_RELOAD_CLASS return NO_REGS.
5938         * config/i386/i386.c (ix86_preferred_reload_class): Force
5939         using SSE registers (and return NO_REGS for floating-point
5940         constants) if math is done with SSE.
5941         (ix86_preferred_output_reload_class): New.
5942         * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
5943         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
5944         * config/i386/i386.md: Remove # register preferences.
5945
5946 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
5947
5948         PR bootstrap/26992
5949         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
5950         chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
5951         the type of nb_iter.
5952         (instantiate_parameters_1): Convert the operands before calling
5953         chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
5954         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
5955
5956 2006-04-02  Roger Sayle  <roger@eyesopen.com>
5957
5958         * builtins.c (dummy_object): Use build_int_cst instead of convert.
5959         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
5960         instead of convert.
5961         * dojump.c (do_jump): Likewise.
5962         * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
5963         * gimplify.c (gimple_boolify, gimplify_init_constructor,
5964         gimplify_boolean_expr): Likewise.
5965         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5966         * varasm.c (array_size_for_constructor): Likewise.
5967         * tree-object-size.c (compute_object_offset): Likewise.
5968
5969 2006-04-02  Roger Sayle  <roger@eyesopen.com>
5970
5971         PR middle-end/26977
5972         * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
5973         NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
5974
5975 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
5976
5977         PR tree-optimization/26939
5978         * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
5979
5980 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
5981
5982         * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
5983         at_stmt.  Convert the type of operands before calling
5984         build_polynomial_chrec.
5985         (add_to_evolution): Pass an extra argument at_stmt.  Adjust the call to
5986         add_to_evolution_1.
5987         (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
5988         (instantiate_parameters_1): Convert the type of operands before calling
5989         build_polynomial_chrec.
5990         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
5991         chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
5992         reset_evolution_in_loop): Insert asserts to check the types of the
5993         operands.
5994         (chrec_type): Moved...
5995         (eq_evolutions_p): Use operand_equal_p.
5996         * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
5997         the types of the operands.
5998         (chrec_type): ...here.
5999         * tree-data-ref.c (create_data_ref): Convert the operands before
6000         calling chrec_replace_initial_condition.
6001         (same_access_functions, analyze_subscript_affine_affine,
6002         analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
6003         (compute_subscript_distance, analyze_ziv_subscript,
6004         analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
6005         analyze_miv_subscript): Convert the operands before calling
6006         chrec_fold_minus or chrec_fold_plus.
6007
6008 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
6009
6010         * tree-data-ref.c (compute_all_dependences): Use a pointer to
6011         the dependence_relations vector.
6012         (compute_data_dependences_for_loop): Adjust call to
6013         compute_all_dependences.
6014
6015 2006-04-01  Roger Sayle  <roger@eyesopen.com>
6016             Richard Henderson  <rth@redhat.com>
6017
6018         * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
6019         gimple_boolify on the condition before calling gimplify_expr.
6020
6021 2006-03-31  Bob Wilson  <bob.wilson@acm.org>
6022
6023         * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
6024         to leaf_entry/leaf_return.  Change leaf_entry to add 16 bytes to
6025         the frame size.  Update to use the new macros.
6026         * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
6027         * config/xtensa/ieee754-df.S: Likewise.
6028
6029 2006-03-31  Richard Henderson  <rth@redhat.com>
6030
6031         * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
6032         (make_edges): ... here.  Control fallthru creation with a local
6033         variable.  Do not play with fake edges.
6034         (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
6035         (make_goto_expr_edges): Don't play with fake edges.  Make for_call
6036         a boolean.
6037
6038 2006-04-01  Joseph S. Myers  <joseph@codesourcery.com>
6039
6040         * dwarf2.h (DW64_CIE_ID): Define.
6041         * dwarf2out.c (DWARF_CIE_ID): Define.
6042         (output_call_frame_info): Output 0xffffffff before standard 8-byte
6043         length header.  Use DWARF_CIE_ID.
6044         (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
6045         dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
6046
6047 2006-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6048
6049         * config/sh/linux-atomic.asm: New file.
6050         * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
6051
6052 2006-03-31  DJ Delorie  <dj@redhat.com>
6053
6054         * config/m32c/cond.md: Set condition flags properly throughout.
6055         * config/m32c/minmax.md: Likewise.
6056         * config/m32c/prologue.md: Likewise.
6057         * config/m32c/bitops.md: Likewise.
6058         * config/m32c/muldiv.md: Likewise.
6059         * config/m32c/mov.md: Likewise.
6060         * config/m32c/addsub.md: Likewise.
6061         * config/m32c/m32c.md: Likewise.
6062         * config/m32c/jump.md: Likewise.
6063         * config/m32c/shift.md: Likewise.
6064
6065         * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
6066         conditionally output the pattern for this.
6067         * config/m32c/m32c.c (flags_needed_for_conditional): New.
6068         (m32c_compare_redundant): New.
6069         (m32c_output_compare): New.
6070         * config/m32c/m32c-protos.h (m32c_output_compare): New.
6071
6072         * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
6073         dest, not src.  Allow other 4-byte modes.
6074
6075 2006-03-30  Denis Chertykov  <denisc@overta.ru>
6076
6077         * doc/md.texi: Refer to avr/constraints.md instead of
6078         avr/avr.h.
6079
6080 2006-03-30  Roger Sayle  <roger@eyesopen.com>
6081
6082         * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
6083         signed vs. unsigned comparison failures on some hosts.
6084
6085 2006-03-31  Alan Modra  <amodra@bigpond.net.au>
6086
6087         PR target/26459
6088         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
6089         change to FLOAT_REGS.
6090
6091         * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
6092         (rs6000_override_options): Use it.
6093         (rs6000_handle_option): Set it.  Set rs6000_explicit_options.abi
6094         only for -mabi=spe/no-spe and -mabi=altivec.
6095
6096 2006-03-30  Geoffrey Keating  <geoffk@apple.com>
6097
6098         * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
6099         !Zdynamiclib.
6100
6101 2006-03-30  Carlos O'Donell  <carlos@codesourcery.com>
6102
6103         * Makefile.in: Rename docdir to gcc_docdir.
6104
6105 2006-03-30  Roger Sayle  <roger@eyesopen.com>
6106
6107         PR target/17959
6108         * expr.c (emit_group_store): Optimize group stores into a pseudo
6109         register by using a paradoxical subreg to initialize the destination
6110         if the first or last member of the group specifies a "low part".
6111
6112 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6113
6114         PR target/26734
6115         * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
6116         * target.h (struct gcc_target.speculate_insn): Change type of the
6117         second parameter to 'int'.
6118         * lists.c (alloc_DEPS_LIST): Change signature.  Update reference to
6119         the second operand of the DEPS_LIST.
6120         (copy_DEPS_LIST_list): Update reference to the second operand of the
6121         DEPS_LIST.
6122         * rtl.h (alloc_DEPS_LIST): Update signature.
6123         * sched-int.h (ds_t): Change typedef to 'int'.
6124         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
6125
6126 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6127
6128         * haifa-sched.c (try_ready): Change condition to restore
6129         non-speculative pattern of the instruction.
6130         (process_insn_depend_be_in_spec): Code to keep probability of the
6131         speculative dependence non-decreasing.
6132
6133 2006-03-30  Jie Zhang  <jie.zhang@analog.com>
6134
6135         * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
6136         (single_move_for_movmem): ... this. Also change all uses.
6137         (bfin_expand_strmov): Renamed to...
6138         (bfin_expand_movmem): ... this. Also change all uses.
6139         * config/bfin/bfin.md (movstrsi): Renamed to...
6140         (movstrsi): ...this.
6141
6142 2006-03-30  Paolo Bonzini  <bonzini@gnu.org>
6143
6144         PR tree-optimization/26830
6145
6146         * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
6147         (copy_prop_visit_stmt): Remove write-only variable ann.
6148         (init_copy_prop): Check variable loop depth here.  Do not simulate
6149         memory-tag and virtual operand PHIs except for store copy prop.
6150
6151 2006-03-30  Richard Guenther  <rguenther@suse.de>
6152
6153         * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
6154         variants with double arguments.
6155
6156 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
6157
6158         * genpreds.c (write_tm_constrs_h): Delete variable p.
6159         * genconditions.c (write_header): Add tm-constrs.h to included
6160         headers.
6161         * genpeep.c (main): Add toplev.h to included headers.
6162         * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
6163         (build/genpeep.o): Add toplev.h dependency.
6164         * config/rs6000/constraints.md: Add "W" constraint.
6165
6166 2006-03-29  Roger Sayle  <roger@eyesopen.com>
6167
6168         * stor-layout.c (mode_for_size_tree): Remove restiction on type
6169         sizes by correctly testing whether the size fits a host integer.
6170         (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
6171         to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
6172         SImode range for the default sizetype and bitsizetype.
6173
6174 2006-03-29  Roger Sayle  <roger@eyesopen.com>
6175
6176         * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
6177         and TREE_CONSTANT_OVERFLOW bits of the argument.  Return
6178         quickly if the argument is already of the correct type.
6179         Call fold_build1 instead of build1.  Tidy up blank lines.
6180
6181 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
6182
6183         * genemit.c (main): Add tm-constrs.h to included headers.
6184         * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
6185         * genpeep.c (main): Add tm-constrs.h to included headers.
6186         * genpreds.c (write_satisfies_constraint_fns): Rename to ...
6187         (write_tm_constrs_h): this and write complete file.
6188         (write_tm_preds_h): Do not emit satisfies_constraint fns.
6189         (write_insn_preds_c): Add tm-constrs.h to included headers.
6190         (gen_constrs): New variable.
6191         (parse_option): Parse "-c".
6192         (main): Invoke write_tm_constrs_h.
6193         * genrecog.c (write_header): Add tm-constrs.h to included headers.
6194         * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
6195         (object_out_file): Add tm-constrs.h dependency.
6196         (insn-emit.o): Same.
6197         (insn-output.o): Same.
6198         (insn-peep.o): Same.
6199         (insn-preds.o): Same.
6200         (insn-recog.o): Same.
6201         (tm-constsr.h): New target.
6202         (s-constrs-h): New target.
6203
6204         * config/rs6000/constraints.md: New file.
6205         * config/rs6000/rs6000.c: Include tm-constrs.h.
6206         (num_insn_constant_wide): Convert to satisfies_constraint.
6207         (rs6000_rtx_costs): Convert to satisfies_constraint.
6208         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
6209         (CONST_OK_FOR_LETTER_P): Delete.
6210         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6211         (EXTRA_CONSTRAINT): Delete.
6212         (EXTRA_MEMORY_CONSTRAINT): Delete.
6213         (EXTRA_ADDRESS_CONSTRAINT): Delete.
6214         * config/rs6000/predicates.md: Convert to satisfies_constraint.
6215         * config/rs6000/rs6000.md: Include constraints.md.  Convert to
6216         satisfies_constraint.
6217
6218         * config/i386/i386.c: Include tm-constrs.h.
6219
6220 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
6221
6222         * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
6223         * tree-data-ref.c (find_data_references_in_loop,
6224         compute_data_dependences_for_loop): Use pointers to VEC.
6225         (analyze_all_data_dependences): Adjust calls.
6226         * tree-data-ref.h (find_data_references_in_loop,
6227         compute_data_dependences_for_loop): Adjust declarations.
6228         * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
6229         compute_data_dependences_for_loop.
6230
6231 2006-03-29  Paul Brook  <paul@codesourcery.com>
6232
6233         * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
6234         (movdf_vfp): Ditto.
6235
6236 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
6237
6238         PR tree-optimization/26859
6239         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
6240         division by zero.
6241         (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
6242         for the step after fold_convert.
6243
6244 2006-03-29  Paul Brook  <paul@codesourcery.com>
6245
6246         * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
6247         (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
6248
6249 2006-03-29  Paul Brook  <paul@codesourcery.com>
6250
6251         PR middle-end/23623
6252         * targhooks.c (default_narrow_bitfield): New fuction.
6253         * targhooks.h (default_narrow_bitfield): add prototype.
6254         * target.h (gcc_target): Add narrow_volatile_bitfield.
6255         * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
6256         * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
6257         * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
6258         * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
6259
6260 2006-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
6261
6262         * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
6263         tmake_file.
6264         * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
6265         (NR_C_MODES): Add TDmode, DDmode and SDmode.
6266         (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
6267         (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
6268         (s390_function_arg_float): Allow SDmode and DDmode values to be
6269         passed in floating point registers.
6270         (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
6271         check with SCALAR_FLOAT_MODE_P.
6272         (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
6273
6274 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
6275
6276         PR tree-optimization/25985
6277         * tree-ssa-loop-niter.c (number_of_iterations_le,
6278         number_of_iterations_ne): Make comments more precise.
6279         (number_of_iterations_cond): Add only_exit argument.  Use the
6280         fact that signed variables do not overflow only when only_exit
6281         is true.
6282         (loop_only_exit_p): New.
6283         (number_of_iterations_exit): Pass result of loop_only_exit_p to
6284         number_of_iterations_cond.
6285
6286 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
6287
6288         PR tree-optimization/26643
6289         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
6290         bit_field_refs.
6291
6292 2006-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
6293
6294         * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
6295         (divsi3_i4_int): Likewise.
6296
6297 2006-03-28  Roger Sayle  <roger@eyesopen.com>
6298
6299         * expr.c (emit_group_store): Only create a new pseudo reg if the
6300         quantity it needs to hold isn't already a suitable pseudo.
6301
6302 2006-03-28  Jeff Law  <law@redhat.com>
6303
6304         * timevar.def (TV_TREE_PHI_CPROP): New timevar.
6305         * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
6306
6307 2006-03-28  Roger Sayle  <roger@eyesopen.com>
6308
6309         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
6310         the equivalent ~X & Y, and the symmetry related transformations.
6311         (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
6312         ~X & Y, and symmetry related transforms.
6313
6314 2006-03-28  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6315
6316         Revert my 2006-03-27 patches.
6317
6318 2006-03-28  Roger Sayle  <roger@eyesopen.com>
6319
6320         * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
6321         ~(T1)X, when T1 and T2 are integer types of the same precision
6322         and (T2)X isn't an extension.
6323
6324 2006-03-28  Jeff Law  <law@redhat.com>
6325
6326         PR tree-optimization/26796
6327         * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
6328         need EH edge cleanups rather than purging them immediately.
6329         (eliminate_degenerate_phis): Handle queued EH cleanups.
6330
6331 2006-03-28  Daniel Berlin  <dberlin@dberlin.org>
6332
6333         * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
6334         from parent_var.
6335
6336 2006-03-27  Roger Sayle  <roger@eyesopen.com>
6337
6338         PR middle-end/22524
6339         * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
6340         cast BIT_NOT_EXPR operand to the correct type.
6341
6342 2006-03-27  Sebastian Pop  <pop@cri.ensmp.fr>
6343
6344         * tree-loop-linear.c: Don't include varray.h.
6345         (gather_interchange_stats, try_interchange_loops,
6346         linear_transform_loops): Use VEC instead of VARRAY.
6347         * lambda-mat.c: Don't include varray.h.
6348         * tree-chrec.c: Same.
6349         * lambda-trans.c: Same.
6350         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
6351         VEC instead of VARRAY.
6352         * tree-vectorizer.h: Idem.
6353         * tree-data-ref.c (dump_data_references,
6354         dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
6355         initialize_data_dependence_relation, finalize_ddr_dependent,
6356         compute_all_dependences, find_data_references_in_loop,
6357         compute_data_dependences_for_loop, analyze_all_data_dependences,
6358         free_dependence_relation, free_dependence_relations,
6359         free_data_refs): Idem.
6360         * tree-data-ref.h (data_reference_p, subscript_p): New.
6361         (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
6362         VEC instead of VARRAY.
6363         (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
6364         (find_data_references_in_loop, compute_data_dependences_for_loop,
6365         dump_ddrs, dump_dist_dir_vectors, dump_data_references,
6366         dump_data_dependence_relations, free_dependence_relations,
6367         free_data_refs): Adjust declaration.
6368         (lambda_transform_legal_p): Move declaration here...
6369         * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
6370         vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
6371         vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
6372         vect_analyze_data_refs): Use VEC instead of VARRAY.
6373         * lambda.h (lambda_transform_legal_p): ...from here.
6374         * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
6375         * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
6376         * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
6377         tree-chrec.o): Don't depend on VARRAY_H.
6378
6379 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6380
6381         * rtl.def (Copyright): Update date.
6382         (DEPS_LIST): Change type of the second operand to 'int'.
6383         * target.h (Copyright): Update date.
6384         (struct gcc_target.speculate_insn): Change type of the second parameter
6385         to 'int'.
6386         * lists.c (Copyright): Update date.
6387         (alloc_DEPS_LIST): Change signature.  Update reference to the second
6388         operand of the DEPS_LIST.
6389         (copy_DEPS_LIST_list): Update reference to the second operand of the
6390         DEPS_LIST.
6391         * rtl.h (Copyright): Update date.
6392         (alloc_DEPS_LIST): Update signature.
6393         * sched-int.h (Copyright): Update date.
6394         (ds_t): Change typedef to 'int'.
6395         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
6396
6397 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6398
6399         * haifa-sched.c (Copyright): Update date.
6400         (try_ready): Change condition to restore non-speculative pattern
6401         of the instruction.
6402         (process_insn_depend_be_in_spec): Code to keep probability of the
6403         speculative dependence non-decreasing.
6404
6405 2006-03-27  Bernd Schmidt  <bernd.schmidt@analog.com>
6406
6407         * regrename.c (replace_oldest_value_addr): Initialize a variable to
6408         shut up the compiler.
6409
6410 2006-03-27  J"orn Rennecke <joern.rennecke@st.com>
6411
6412         * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
6413         to use lib prefix for target.
6414         ($(T)libic_invalidate_array_4-200.a): Likewise.
6415         ($(T)libic_invalidate_array_4a.a): Likewise.
6416
6417 2006-03-27  Andrew Stubbs <andrew.stubbs@st.com>
6418             J"orn Rennecke <joern.rennecke@st.com>
6419
6420         * superh.opt: New file.
6421         * sh.c (boardtype, osruntime): Remove.
6422         * superh.h (SUBTARGET_OPTIONS): Remove.
6423         * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
6424
6425         * config.gcc (sh*-*-*): Don't use c-c ranges for tr.  Quote sed
6426         arguments with ^ and/or [].
6427
6428         * config.gcc (sh-*-*): Add quoting to account for quirk of
6429         Solaris /bin/sh.
6430         Replace == with = in enable_incomplete_targets test.
6431
6432         * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
6433         with MASK_LITTLE_ENDIAN.
6434
6435         * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
6436         * config/sh/sh.opt: Added to some comments.
6437         * config/sh/superh.h: Removed some chaff.
6438
6439         * config/sh/sh.opt: Add m4-[1234]00* options.
6440         * config/sh/sh.c (sh_handle_option): Likewise.
6441         * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
6442         (ic_invalidate_array_4-100.o): New rule.
6443         ($(T)libic_invalidate_array_4-100.a): Likewise.
6444         (ic_invalidate_array_4-200.o): Likewise.
6445         ($(T)libic_invalidate_array_4-200.a): Likewise.
6446         (ic_invalidate_array_4a.o): Likewise.
6447         ($(T)libic_invalidate_array_4a.a): Likewise.
6448         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
6449         * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
6450         m4-200*, and m4a*.
6451         * config/sh/crt1.asm: Merged in profiling code.
6452         * config/sh/superh.h (STARTFILE_SPEC): Override.
6453         * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
6454         Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
6455         * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
6456
6457         * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
6458         * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
6459         MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
6460
6461         * sh.opt (mpretend-cmove): New option.
6462         * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
6463         * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
6464         (movsicc): Add TARGET_PRETEND_CMOVE code.
6465
6466 2006-03-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6467
6468         * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
6469         s390_class_max_nregs): New function prototypes.
6470         * config/s390/s390.c (REGNO_PAIR_OK): New macro.
6471         (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
6472         * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
6473         CLASS_MAX_NREGS): Macro bodies replaced by function calls.
6474
6475 2006-03-26  Geoffrey Keating  <geoffk@apple.com>
6476
6477         * dwarf2out.c (add_location_or_const_value_attribute): Call
6478         tree_add_const_value_attribute if nothing else works.
6479         (reference_to_unused): New.
6480         (rtl_for_decl_init): Use reference_to_unused to decide whether
6481         to output an initializer.
6482
6483 2006-03-27  Alan Modra  <amodra@bigpond.net.au>
6484
6485         PR target/26459
6486         * config/rs6000/rs6000.md (DF reg move peephole): Prevent
6487         peephole removing spe frob_di_df_2.
6488
6489 2006-03-26  Sebastian Pop  <pop@cri.ensmp.fr>
6490
6491         * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
6492         (subscript_dependence_tester_1): Declared.
6493         (print_dir_vectors, print_dist_vectors): New.
6494         (debug_data_dependence_relation): New.
6495         (dump_data_dependence_relation): Print more details.
6496         (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
6497         (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
6498         (save_dist_v, save_dir_v, add_outer_distances,
6499         build_classic_dist_vector_1): New.
6500         (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
6501         Don't test for lambda_vector_lexico_pos.
6502         (same_access_functions, add_multivariate_self_dist,
6503         add_other_self_distances, dir_from_dist): New.
6504         (build_classic_dir_vector): Replace implementation almost identical to
6505         build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
6506         dir_from_dist.
6507         (subscript_dependence_tester_1): New.
6508         (subscript_dependence_tester): Handle the lexicographically negative
6509         distance vectors by recomputing the dependence relation.
6510         (compute_affine_dependence): Remove parameter loop_nest_depth.
6511         (compute_self_dependence): Don't call compute_subscript_distance.
6512         (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
6513         Add a parameter for the loop_nest.
6514         (find_loop_nest_1, find_loop_nest): New.
6515         (compute_data_dependences_for_loop): Compute the loop nest, and give
6516         up if the nest is not well formed.
6517         * tree-data-ref.h (loop_p): New.
6518         (struct data_dependence_relation): Replace size_vect field with
6519         loop_nest, a vec of loops.
6520         (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
6521         (DDR_LOOP_NEST): New.
6522         (print_dir_vectors, print_dist_vectors,
6523         debug_data_dependence_relation): Declared.
6524         (index_in_loop_nest): New.
6525         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
6526         DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
6527         distance.
6528
6529 2006-03-25  Adam Nemet  <anemet@caviumnetworks.com>
6530
6531         * simplify-rtx.c (simplify_relational_operation): Call
6532         simplify_relational_operation_1 even if mode is VOIDmode.
6533
6534 2006-03-25  Daniel Berlin  <dberlin@dberlin.org>
6535
6536         PR tree-optimization/26804
6537         * tree.h (DECL_CALL_CLOBBERED): New macro.
6538         (tree_decl_common): Add call_clobbered_flag.
6539         * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
6540         (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
6541         (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
6542         (mark_non_addressable): Ditto.
6543         * tree-ssa.c (verify_call_clobbered): New function.
6544         (verify_alias_info): Use it.
6545         * tree-pass.h (pass_reset_cc_flags): New prototype.
6546         * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
6547         (reset_cc_flags): New function.
6548         * passes.c (init_optimization_passes): Call reset_cc_flags after
6549         initializing referenced_vars.
6550
6551 2006-03-25  Uros Bizjak  <uros@kss-loka.si>
6552             Roger Sayle  <roger@eyesopen.com>
6553
6554         PR middle-end/26717
6555         * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
6556         to 1.0 for non-real operands. Implement A / A optimization for
6557         complex operands.
6558
6559 2006-03-25  H.J. Lu  <hongjiu.lu@intel.com>
6560
6561         * config/i386/i386.c (size_cost): Correct the comment for
6562         cost of storing fp registers.
6563         (i386_cost): Likewise.
6564         (i486_cost): Likewise.
6565         (pentium_cost): Likewise.
6566         (pentiumpro_cost): Likewise.
6567         (k6_cost): Likewise.
6568         (athlon_cost): Likewise.
6569         (k8_cost): Likewise.
6570         (pentium4_cost): Likewise.
6571         (nocona_cost): Likewise.
6572         (generic64_cost): Likewise.
6573         (generic32_cost): Likewise.
6574
6575 2006-03-24  Denis Chertykov  <denisc@overta.ru>
6576
6577         * config/avr/avr-protos.h (extra_constraint): Delete.
6578         (extra_constraint_Q): New declaration.
6579         * config/avr/constraints.md: New file.
6580         * config/avr/avr.md: Include it.
6581         (REG_X, REG_Y, REG_Z, REG_W): New constants.
6582         (TMP_REGNO, ZERO_REGNO): Likewise.
6583         (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
6584         * config/avr/avr.c (avr_reg_class_from_letter): Delete.
6585         (extra_constraint): Delete.
6586         (extra_constraint_Q): Test for memory constraint 'Q'.
6587         * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
6588         (REG_CLASS_FROM_LETTER): Delete.
6589         (CONST_OK_FOR_LETTER_P): Delete.
6590         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6591         (EXTRA_CONSTRAINT): Delete.
6592         (TMP_REGNO): Delete.
6593         (ZERO_REGNO): Delete.
6594
6595 2006-03-24  Jeff Law  <law@redhat.com>
6596
6597         * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
6598         directly.  Call mark_new_vars_to_rename slightly earlier.
6599
6600 2006-03-24  Geoffrey Keating  <geoffk@apple.com>
6601
6602         * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
6603         (is_cxx): Likewise.
6604         (gen_compile_unit_die): Use new language types for Objective-C and
6605         Objective-C++.
6606         (dwarf2out_decl): Use is_cxx rather than testing explicitly against
6607         DW_LANG_C_plus_plus.
6608
6609         PR 26793
6610         * config/t-darwin (crt3.o): Work around bug 26840.
6611         * config/darwin-crt3.c: Rewrite.
6612         * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
6613
6614 2006-03-24  Carlos O'Donell  <carlos@codesourcery.com>
6615
6616         * doc/invoke.texi: Document -femit-class-debug-always
6617         * common.opt: Add -femit-class-debug-always.
6618
6619 2006-03-24  Andreas Krebbel  <krebbel1@de.ibm.com>
6620
6621         * config/s390/s390.c (s390_decompose_address): Allow SImode for
6622         index and base register.
6623         (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
6624         print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
6625         with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
6626         REGNO_OK_FOR_INDEX_P.
6627         * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
6628         ADDR_REGNO_P.
6629         (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
6630         REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
6631         REG_OK_FOR_BASE_P): Definitions removed.
6632
6633 2006-03-24  Jakub Jelinek  <jakub@redhat.com>
6634
6635         PR middle-end/26611
6636         * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
6637         non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
6638         set yet or weren't marked as local yet.
6639
6640 2006-03-24  Bernd Schmidt  <bernd.schmidt@analog.com>
6641
6642         * regrename.c (scan_rtx_address): Initialize a variable to shut up
6643         the compiler.
6644
6645 2006-03-24  Eric Botcazou  <ebotcazou@adacore.com>
6646
6647         * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
6648         (rs6000_legitimate_small_data_p): Delete.
6649         * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
6650         (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
6651         and make static.  Add forward declaration.  Update uses.
6652         (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
6653         of offsettable_memref_p.
6654         * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
6655         Use rs6000_offsettable_memref_p instead of a less accurate predicate.
6656
6657 2006-03-24  Jeff Law  <law@redhat.com>
6658
6659         * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
6660         around bug in immediate-use iterator.
6661
6662 2006-03-24  Alan Modra  <amodra@bigpond.net.au>
6663
6664         PR target/26607
6665         * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
6666         or __LITTLE_ENDIAN__.
6667
6668 2006-03-23  J"orn Rennecke <joern.rennecke@st.com>
6669
6670         * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
6671         * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
6672         * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
6673         * config/sh/sh.opt (mdiv=): Amend description.
6674         * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
6675         (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
6676         (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
6677         SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
6678         (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
6679         Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
6680         * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
6681         (udivsi3, divsi3): Use them.  Check TARGET_DIVIDE_CALL_TABLE /
6682         TARGET_DIVIDE_CALL_FP.
6683
6684 2006-03-23  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6685
6686         * haifa-sched.c (choose_ready): Fix type of the local variable.
6687         Move local variables.  Add comment.
6688         (check_reg_live): Change signature.  Make callable from debugger.
6689         * sched-int.h (check_reg_live): Update signature.
6690         * sched-ebb.c (check_reg_live): Update parameters.
6691         * sched-rgn.c (check_reg_live): Ditto.
6692         (region_head_or_leaf_p): Check pointer before dereferencing.
6693         * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
6694         before reload on optimization levels below 1.
6695
6696 2006-03-23  Richard Henderson  <rth@redhat.com>
6697
6698         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
6699         tls symbols.
6700
6701         PR target/26347
6702         * config/alpha/predicates.md (local_symbolic_operand): Reject
6703         weak symbols.
6704
6705 2006-03-23  Andrew Pinski  <pinskia@physics.uc.edu>
6706
6707         PR tree-opt/26795
6708         * tree-ssa-pre.c (create_value_expr_from): Don't reject
6709         expressions which have overflowed constants.
6710
6711 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
6712
6713         * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
6714
6715 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
6716
6717         * cfgloopmanip.c (create_loop_notes): Removed.
6718         * final.c (final_scan_insn): Do not handle loop notes.
6719         * jump.c (squeeze_notes): Ditto.
6720         * cfglayout.c (skip_insns_after_block,
6721         duplicate_insn_chain): Ditto.
6722         * cfgcleanup.c (rest_of_handle_jump2): Do not call
6723         create_loop_notes.
6724         * cfgloop.h (create_loop_notes): Declaration removed.
6725
6726 2006-03-23  Richard Sandiford  <richard@codesourcery.com>
6727
6728         * varasm.c (output_constant_pool): Restore fnname and fndecl
6729         arguments.
6730         (assemble_start_function): Adjust call accordingly.
6731         (assemble_end_function): Likewise.
6732
6733 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6734
6735         PR mudflap/26789
6736         * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
6737
6738         PR mudflap/26790
6739         * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
6740
6741 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6742
6743         PR driver/22600
6744         * system.h (ICE_EXIT_CODE): New macro.
6745         * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
6746         (diagnostic_action_after_output): Likewise.
6747         * gcc.c (fatal_ice): New function.
6748         (execute): Use it instead of fatal.
6749         (fancy_abort): Likewise.
6750         * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
6751
6752 2006-03-22  Jeff Law  <law@redhat.com>
6753
6754         * loop-unroll.c (analyze_iv_to_split_insn): Handle
6755         iv_analyze_result returning false.
6756
6757 2006-03-22  Jie Zhang  <jie.zhang@analog.com>
6758
6759         * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
6760
6761 2006-03-22  Richard Henderson  <rth@redhat.com>
6762
6763         PR middle-end/26084
6764         * except.c (duplicate_eh_regions_0): New.
6765         (duplicate_eh_region_1): Duplicate the children of the node as
6766         well as the node itself.  Link them up properly.
6767         (duplicate_eh_region_2): Merge into ...
6768         (duplicate_eh_regions): ... here.  Take copy_region argument, and
6769         copy only a sub-tree if asked.  Simplify copying and fixup.
6770         (eh_region_outer_p): New.
6771         * except.h (duplicate_eh_regions): Update decl.
6772         (eh_region_outer_p): Declare.
6773         * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
6774         (lower_omp_master): Likewise.
6775         (lower_omp_ordered): Likewise.
6776         * tree-cfg.c (struct move_stmt_d): Add new_label_map.
6777         (move_stmt_r): Use it to remap labels.  Handle recursion vs
6778         remap_decls_p properly.
6779         (move_block_to_fn): Pass in new_label_map.  Remap RESX_EXPR.
6780         (find_outermost_region_in_block): New.
6781         (new_label_mapper): New.
6782         (move_sese_region_to_fn): Copy eh information to the new function
6783         properly.
6784         * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
6785         argument.
6786         * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
6787         number.
6788
6789 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
6790
6791         * doc/md.texi (-mshared): Mention that -mshared code can be linked
6792         into shared libraries.
6793
6794 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
6795
6796         * doc/md.texi: Refer to i386/constraints.md instead of
6797         i386/predicates.md.
6798         * config/i386/constraints.md: New file, extracted from...
6799         * config/i386/predicates.md: ...here.
6800         * config/i386/i386.md: Include constraints.md.
6801
6802 2006-03-21  Jason Merrill  <jason@redhat.com>
6803
6804         * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
6805
6806         PR middle-end/20297
6807         * expr.c (init_block_move_fn): Force default visibility.
6808         (init_block_clear_fn): Likewise.
6809         * builtins.c (expand_builtin_fork_or_exec): Likewise.
6810         * targhooks.c (default_external_stack_protect_fail): Likewise.
6811
6812 2006-03-21  Richard Sandiford  <richard@codesourcery.com>
6813
6814         * config/mips/predicates.md (const_call_insn_operand): Allow direct
6815         calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
6816         * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
6817         Use TARGET_OLDABI instead of !TARGET_NEWABI.
6818         (loadgp): Use mips_current_loadgp_style.
6819         (loadgp_noshared): New pattern.
6820         (sibcall_internal): Use MIPS_CALL.
6821         (sibcall_value_internal): Likewise.
6822         (sibcall_value_multiple_internal): Likewise.
6823         (call_internal): Likewise.
6824         (call_value_internal): Likewise.
6825         (call_value_multiple_internal): Likewise.
6826         (call_split): Use MIPS_CALL and add an 'S' constraint.
6827         (call_value_split): Likewise.
6828         (call_value_multiple_split): Likewise.
6829         * config/mips/mips.opt (-mabicalls): Tweak docstring.
6830         (-mshared): New option.
6831         * config/mips/mips-protos.h (mips_loadgp_style): New enum.
6832         (mips_current_loadgp_style): Declare.
6833         * config/mips/mips.c (mips_classify_symbol): Avoid using
6834         SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS.  Use SYMBOL_GENERAL
6835         rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
6836         TARGET_ABSOLUTE_ABICALLS.
6837         (override_options): Adjust comments.  Improve the warning that is
6838         issued when -mabicalls and -G are used together.
6839         (mips_file_start): Remove comment.
6840         (mips_current_loadgp_style): New function.
6841         (mips_gnu_local_gp): New variable.
6842         (mips_emit_loadgp): Use mips_current_loadgp_style.  Handle
6843         LOADGP_ABSOLUTE.
6844         (mips_output_function_prologue): Use mips_current_laodgp_style.
6845         (mips_expand_prologue): Call mips_emit_loadgp before emitting
6846         the cprestore instruction.
6847         (mips_extra_live_on_entry): Fix reversed test.  Don't make $25
6848         live for TARGET_ABSOLUTE_ABICALLS.
6849         * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
6850         (ASM_SPEC): Pass down -mshared and -mno-shared.
6851         (MIPS_CALL): New macro.
6852         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
6853         definition.
6854         * doc/invoke.texi (-mabicalls): Update documentation.
6855         (-mshared): Document.
6856
6857 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
6858
6859         * config/ia64/unwind-hpux.c: New file.
6860         * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
6861
6862 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
6863
6864         PR libgomp/26384
6865         * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
6866
6867 2006-03-21  Jeff Law  <law@redhat.com>
6868
6869         * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
6870         type conversions of a VR_VARYING source to a wider type.
6871
6872 2006-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
6873
6874         * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
6875         tm_file on Solaris 10 and later.
6876         (sparc64-*-solaris2*): Likewise.
6877         (sparc-*-solaris2*): Likewise.
6878         * config/sol26.h: Rename to config/sol2-6.h.
6879         * config/sol2-10.h: New file.
6880
6881 2006-03-21  Andrew Pinski  <pinskia@physics.uc.edu>
6882
6883         PR tree-opt/26781
6884         * tree-ssa-pre.c (create_component_ref_by_pieces):
6885         Handle STRING_CST.
6886
6887 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
6888
6889         PR c++/26690
6890         * tree.c (get_callee_fndecl): If CALL is error_mark_node,
6891         return it immediately.
6892
6893 2006-03-21  Michael Matz  <matz@suse.de>
6894
6895         * genautomata.c (<struct state>, num_out_arcs, presence_signature):
6896         New members.
6897         (remove_arc, add_arc): Update num_out_arcs member.
6898         (set_out_arc_insns_equiv_num): Returns nothing instead of number
6899         of out arcs.
6900         (cache_presence): New function.
6901         (compare_states_for_equiv): New function.
6902         (state_is_differed): Don't take number of outargs, adjust callers.
6903         Use new invariant for speeding up.
6904         (init_equiv_class): Create initial classes based on sorted
6905         input.
6906         (partition_equiv_class): Don't track out_arcs_num.
6907         (evaluate_equiv_classes): Call cache_presence on all states and
6908         sort them.
6909
6910 2006-03-21  Bernd Schmidt  <bernd.schmidt@analog.com>
6911
6912         * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
6913         * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
6914         (bfin_valid_reg_p): Test for pseudos explicitly and use only
6915         REGNO_MODE_CODE_OK_FOR_BASE_P.  New args MODE and OUTER_CODE; all
6916         callers changed.
6917         * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
6918         (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
6919         (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
6920         (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6921         REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
6922         macros.
6923         (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
6924         REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
6925         (REGNO_REG_CLASS): ARGP is in PREGS.
6926         * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
6927         IREGS.
6928         (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
6929         to deal with those addresses.
6930         * addresses.h: New file.
6931         * caller-save.c: Include "addresses.h".
6932         (init_caller_save): Use new base_reg_class function.
6933         * rtl-factoring.c: Include "addresses.h".
6934         (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
6935         * recog.c: Include "addresses.h".
6936         (preprocess_constraints): Use new base_reg_class function.
6937         * regrename.c: Include "addresses.h".
6938         (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
6939         functions.  Keep track of a new var INDEX_CODE to compute valid
6940         classes.
6941         (replace_oldest_value_addr): Likewise.
6942         (replace_oldest_value_mem): Use base_reg_class.
6943         * reload.c: Include "addresses.h".
6944         (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
6945         (find_reloads): Use new base_reg_class function.
6946         (find_reloads_address): Likewise; also use regno_ok_for_base_p.
6947         (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
6948         all callers and prototype changed.
6949         * reload1.c: Include "addresses.h".
6950         (maybe_fix_stack_asms): Use base_reg_class.
6951         * regclass.c: Include "addresses.h".
6952         (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
6953         (init_reg_autoinc): Use new base_reg_class function.
6954         (record_reg_classes): Likewise.
6955         (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
6956         OUTER_CODE and INDEX_CODE.  All callers and prototype changed.
6957         Use new args to compute necessary class.
6958
6959         * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
6960         regrename.o, rtl-factoring.o): Update dependencies.
6961         * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
6962         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
6963         (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
6964         REG_OK_FOR_INDEX_P): Delete documentation.
6965
6966 2006-03-21  Alexey Starovoytov  <alexey.starovoytov@sun.com>
6967
6968         * config.gcc (sparc-*-solaris2*): Change the default CPU setting
6969         from V7 to V9 for Solaris 7 and above.
6970
6971 2006-03-21  Toon Moene  <toon@moene.indiv.nluug.nl>
6972
6973         * doc/invoke.texi: Document new flag -fargument-noalias-anything.
6974         * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
6975         argument pointers may not alias any other storage.
6976         * common.opt: Define option -fargument-noalias-anything.
6977         * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
6978         alias semantics is specified by flag_argument_noalias > 2.
6979
6980 2006-03-20  Jeff Law  <law@redhat.com>
6981
6982         * tree-pass.h (pass_phi_only_copy_prop): Delete.
6983         (pass_phi_only_cprop): Declare.
6984         * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
6985         with phi_only_cprop
6986         * tree-ssa-dom.c (degenerate_phi_result): New function.
6987         (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
6988         (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
6989         (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
6990         (eliminate_degenerate_phis): Likewise.
6991         (pass_phi_only_cprop): New pass descriptor.
6992         * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
6993         support code.  Callers updated.
6994         (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
6995         (store_copy_prop): Likewise.
6996         (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
6997
6998 2006-03-20  Jason Merrill  <jason@redhat.com>
6999
7000         PR c++/21764
7001         * c-pragma.c (visstack): Move out of handle_pragma_visibility.
7002         (push_visibility, pop_visibility): Likewise.
7003         * c-pragma.h: Declare them.
7004
7005 2006-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7006
7007         * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
7008
7009         * config/sh/sh.c (find_regmode_weight): Change the type of the first
7010         parameter and use get_ebb_head_tail.
7011         (sh_md_init_global): Adjust uses of find_regmode_weight.
7012
7013 2006-03-20  Steven Bosscher  <stevenb.gcc@gmail.com>
7014
7015         * function.h (struct function) <x_tail_recursion_reentry>:
7016         Rename to x_stack_check_probe_note.
7017         (tail_recursion_reentry): Rename to stack_check_probe_note.
7018         * function.c: Replace tail_recursion_reentry with
7019         stack_check_probe_note everywhere.
7020         (expand_function_start): Only emit a note for
7021         stack_check_probe_note with -fstack-protect.
7022         * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
7023
7024         * emit-rtl.c (remove_unnecessary_notes): Remove.
7025         (pass_remove_unnecessary_notes): Remove.
7026         * rtl.h (remove_unnecessary_notes): Remove prototype.
7027         * final.c (final_start_function): Don't call remove_unnecessary_notes.
7028         * tree-pass.h (pass_remove_unnecessary_notes): Remove.
7029         * passes.c (pass_remove_unnecessary_notes): Don't run it.
7030
7031 2006-03-20  Andrew Pinski  <pinskia@physics.uc.edu>
7032
7033         PR tree-opt/26629
7034         * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
7035         (valid_in_set): Handle ARRAY_REF.
7036         Change "if min_variant or VH" to asserts.
7037         (create_component_ref_by_pieces): Handle ARRAY_REF.
7038         (create_expression_by_pieces): Likewise.
7039         (can_PRE_operation): ARRAY_REFs can now be PRE'd.
7040
7041 2006-03-20  David Edelsohn  <edelsohn@gnu.org>
7042
7043         * genpreds.c (write_insn_extra_address_constraint): Argument `c'
7044         is operand of switch, not str[0].
7045
7046 2006-03-20  Alan Modra  <amodra@bigpond.net.au>
7047
7048         * config/rs6000/rs6000.c (rs6000_handle_option): Use
7049         TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
7050
7051 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
7052
7053         * genpreds.c (write_tm_preds_h): Add semicolon and newline at
7054         end of insn_extra_address_constraint declaration.
7055
7056 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
7057
7058         * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
7059         (no-sum-in-toc): Same.
7060         * config/rs6000/rs6000.c (rs6000_handle_option): Use new
7061         variables.
7062         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
7063         NO_FP_IN_TOC for -fPIC instead of mask.
7064
7065         * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
7066         (BOOT_LDFLAGS): Delete.
7067         (LDFLAGS): Delete.
7068         * config/rs6000/t-aix52: Same.
7069
7070         * config/rs6000/rs6000.md (store_multiple_power): Delete.
7071         (stmsi[345678]_power): New.
7072
7073 2006-03-17  Steve Ellcey  <sje@cup.hp.com>
7074
7075         * config/ia64/ia64.opt: Add empty line to end of file.
7076
7077 2006-03-17  Richard Guenther  <rguenther@suse.de>
7078
7079         PR middle-end/26721
7080         * builtins.c (get_pointer_alignment): For component style references
7081         adjust alignment to the component type alignment.  Make sure
7082         to adjust alignment for component access of constants.
7083
7084 2006-03-17  David Edelsohn  <edelsohn@gnu.org>
7085
7086         * config/rs6000/rs6000.md (strlensi): Emit barrier after
7087         unconditional jump.
7088
7089 2006-03-17  Paul Brook  <paul@codesourcery.com>
7090
7091         * doc/install.texi: Docuemnt --with-mode.
7092         * config.gcc: Add --with-mode for arm*-*-*.
7093         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
7094
7095 2006-03-17  J"orn Rennecke <joern.rennecke@st.com>
7096
7097         * sh.c (max_labelno_before_reorg): New variable.
7098         (sh_reorg): Initialize it.
7099         (find_barrier): Check max_labelno_before_reorg before using
7100         label_to_alignment.  Take length of explicit alignment insns
7101         into account.  When seeing a UNSPECV_CONST_END, return it.
7102
7103         * sh.c (fixup_mova): Set mode of affected label to QImode.
7104         (untangle_mova): New function.
7105         (find_barrier): Use it.  Check mode of label before decrementing
7106         num_mova.
7107         (sh_reorg): Likewise.
7108         Set mode of all insns back to VOIDmode.
7109
7110         * sh.c (MOVA_LABELREF): New macro.
7111         (mova_p, fixup_mova, sh_reorg): Use it.
7112         (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
7113         ADDR_DIFF_VEC matches mova.
7114
7115 2006-03-17  Steven Bosscher  <stevenb.gcc@gmail.com>
7116
7117         * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
7118         with ATTRIBUTE_UNUSED.
7119
7120 2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
7121
7122         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
7123         pointer, instead of assuming it is possible to derive the
7124         correct args size from a call insn.
7125
7126 2006-03-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7127
7128         * rtl.h (CONST_INT_P): Define.
7129         * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
7130         instead of GET_CODE(x) == CONST_INT.
7131         (vax_rtx_costs): Likewise.
7132         (vax_output_int_move): Likewise.
7133         (vax_output_int_add): Likewise.
7134         (legitimate_constant_address_p): Likewise.
7135         (index_term_p): Likewise.
7136         * config/vax/vax.h (PRINT_OPERAND): Likewise.
7137         * config/vax/vax.md (and<mode>3): Likewise.
7138         (ashrsi3): Likewise.
7139         (extv): Likewise.
7140         (movstricthi): Likewise.
7141         (movstrictqi): Likewise.
7142         (rotrsi3): Likewise.
7143         (five unnamed insns): Likewise.
7144
7145 2006-03-16  Geoffrey Keating  <geoffk@apple.com>
7146
7147         * doc/tm.texi (SDB and DWARF): Add extra parameter to
7148         ASM_OUTPUT_DWARF_OFFSET.  Use @var to indicate metavariables.
7149         * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
7150         * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
7151         Pass to ASM_OUTPUT_DWARF_OFFSET.
7152         * dwarf2out.c (debug_frame_section): New.
7153         (output_call_frame_info): Use debug_frame_section.  Pass it to
7154         dw2_asm_output_offset.
7155         (output_die): Pass appropriate section to dw2_asm_output_offset.
7156         (output_compilation_unit_header): Likewise.
7157         (output_pubnames): Likewise.
7158         (output_aranges): Likewise.
7159         (enum dw_val_class): Break dw_val_class_lbl_offset into
7160         dw_val_class_lineptr and dw_val_class_macptr.
7161         (add_AT_lbl_offset): Delete.
7162         (add_AT_lineptr): New.
7163         (add_AT_macptr): New.
7164         (AT_lbl): Expect a lineptr or macptr.
7165         (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
7166         (attr_checksum): Likewise.
7167         (same_dw_val_p): Likewise.
7168         (size_of_die): Likewise.
7169         (value_format): Likewise.
7170         (output_die): Likewise.
7171         (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
7172         add_AT_lbl_offset.
7173         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
7174         * config/i386/i386.c (x86_file_start): Call darwin_file_start.
7175         * config/darwin-protos.h (darwin_file_start): New.
7176         (darwin_asm_output_dwarf_offset): New.
7177         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
7178         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
7179         darwin_file_start.
7180         * config/darwin.c (darwin_emit_unwind_label): Don't output label
7181         if not EH section; simplify.
7182         (darwin_file_start): New.
7183         (darwin_asm_output_dwarf_offset): New.
7184         * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
7185         mark as 'debug'.
7186         (DEBUG_INFO_SECTION): Likewise.
7187         (DEBUG_ABBREV_SECTION): Likewise.
7188         (DEBUG_ARANGES_SECTION): Likewise.
7189         (DEBUG_MACINFO_SECTION): Likewise.
7190         (DEBUG_LINE_SECTION): Likewise.
7191         (DEBUG_LOC_SECTION): Likewise.
7192         (DEBUG_PUBNAMES_SECTION): Likewise.
7193         (DEBUG_STR_SECTION): Likewise.
7194         (DEBUG_RANGES_SECTION): Likewise.
7195         (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
7196         (ASM_OUTPUT_DWARF_OFFSET): New.
7197
7198 2006-03-16  Joseph S. Myers  <joseph@codesourcery.com>
7199
7200         * config.gcc (tm_defines): Always add to previous value rather
7201         than replacing it.
7202
7203 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
7204
7205         * config/mips/predicates.md (splittable_const_int_operand): New,
7206         split from move_operand.
7207         (splittable_symbolic_operand): New.
7208         (move_operand): Add commentary.  Use splittable_const_int_operand.
7209         Inline mips_atomic_symbolic_constant_p.
7210         * config/mips/mips.md: Add combine splitters for handling moves
7211         of splittable_const_int_operands and splittable_symbolic_operands.
7212         * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
7213         (mips_split_symbol): Declare.
7214         (mips_move_integer): Declare.
7215         * config/mips/mips.c (mips_split_p): Make global.
7216         (TARGET_MIN_ANCHOR_OFFSET): Override default.
7217         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
7218         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
7219         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
7220         (mips_offset_within_object_p): Handle block symbols.
7221         (mips_atomic_symbolic_constant_p): Delete.
7222         (mips_cannot_force_const_mem): Return false for constants that
7223         mips_legitimize_move can handle.
7224         (mips_use_blocks_for_constant_p): New function.
7225         (mips_split_symbol): Make global.
7226         (mips_move_integer): Likewise.  Add a temporary register argument.
7227         (mips_legitimize_const_move): Use splittable_const_int_operand and
7228         splittable_symbolic_operand.
7229         (mips_use_anchors_for_symbol_p): New function.
7230         * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
7231         (mips_split_p): Declare.
7232
7233 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
7234
7235         * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
7236         (mips*-*-linux*): Likewise.
7237
7238 2006-03-16  Roger Sayle  <roger@eyesopen.com>
7239             Daniel Speyer  <dspeyer@wam.umd.edu>
7240
7241         PR middle-end/18259
7242         * tree-dump.c (dump_real): New function.
7243         (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
7244         * Makefile.in (REAL_H): New macro for dependencies on real.h.
7245         (tree-dump.o): Add $(REAL_H) to the dependencies.
7246
7247 2006-03-16  Roger Sayle  <roger@eyesopen.com>
7248
7249         PR middle-end/21781
7250         * real.c (real_from_string): If the mantissa is zero, don't bother
7251         parsing the exponent as the result should always be zero.
7252
7253 2006-03-16  Andreas Krebbel  <krebbel1@de.ibm.com>
7254
7255         * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
7256
7257 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7258
7259         * config/ia64/ia64.c (stops_p): Added explicit initialization.
7260         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
7261         ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
7262         ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
7263         ia64_sched_finish_global): New static functions to implement
7264         hooks from gcc_target.sched.
7265         (spec_check_no, max_uid, pending_data_specs): New static variables.
7266         (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
7267         ia64_spec_check_src_p): New static functions.
7268         (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
7269         (TARGET_SCHED_ADJUST_COST): Removed.
7270         (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
7271         TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
7272         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
7273         TARGET_SCHED_GEN_CHECK,
7274         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
7275         TARGET_SCHED_SET_SCHED_FLAGS): New macros.
7276         (update_set_flags, group_barrier_needed, set_src_needs_barrier):
7277         Fixed to handle speculation checks.
7278         (rtx_needs_barrier): Fixed to handle speculative loads and
7279         their checks.
7280         (ia64_variable_issue): Added code to count speculative loads and their
7281         checks.
7282         (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
7283         speculative loads.
7284         (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
7285         New enumerations.
7286         (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
7287         New constants.
7288         (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
7289         (ia64_reorg): Reset stops_p to NULL after it is freed.
7290         * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
7291         UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
7292         (itanium_class): chk_s renamed to chk_s_i.  New constants: chk_s_f,
7293         chk_a.
7294         (data_speculative, control_speculative, check_load): New attributes.
7295         (mov<mode>_advanced, mov<mode>_speculative,
7296         mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
7297         zero_extend<mode>di2_speculative,
7298         zero_extend<mode>di2_speculative_advanced): New patterns for
7299         data and control speculative loads.
7300         (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
7301         check loads.
7302         (advanced_load_check_clr_<mode>, speculation_check_<mode>):
7303         New pattern for data and control speculation checks.
7304         (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
7305         ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
7306         reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
7307         Auxiliary definitions for the patterns.
7308         * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
7309         1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
7310         constraints.
7311         (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
7312         for speculation.
7313         (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
7314         * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
7315         2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
7316         New resource constraints.
7317         (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
7318         for speculation.
7319         (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
7320         * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
7321         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
7322         msched-in-control-spec, msched-ldc, msched-control-ldc,
7323         msched-spec-verbose, msched-prefer-non-data-spec-insns,
7324         msched-prefer-non-control-spec-insns,
7325         msched-count-spec-in-critical-path): New flags to tune speculative
7326         scheduling.
7327         * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
7328         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
7329         msched-in-control-spec, msched-ldc, msched-control-ldc,
7330         msched-spec-verbose, msched-prefer-non-data-spec-insns,
7331         msched-prefer-non-control-spec-insns,
7332         msched-count-spec-in-critical-path): Document new flags.
7333
7334 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7335
7336         * target.h (struct spec_info_def): New opaque declaration.
7337         (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
7338         speculate_insn, needs_block_p, gen_check,
7339         first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
7340         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
7341         TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
7342         TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
7343         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
7344         TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
7345         gcc_target.sched.
7346         (TARGET_SCHED): Use new macros.
7347         * rtl.h (copy_DEPS_LIST_list): New prototype.
7348         * sched-int.h (struct sched_info): Change signature of new_ready field,
7349         adjust all initializations. New fields: add_remove_insn,
7350         begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
7351         region_head_or_leaf_p.
7352         (struct spec_info_def): New structure declaration.
7353         (spec_info_t): New typedef.
7354         (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
7355         recovery_block, orig_pat.
7356         (glat_start, glat_end): New variables declaraions.
7357         (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
7358         New access macros.
7359         (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
7360         DETACH_LIFE_INFO, USE_GLAT.
7361         (enum SPEC_SCHED_FLAGS): New enumeration.
7362         (NOTE_NOTE_BB_P): New macro.
7363         (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
7364         attach_life_info, debug_spec_status, check_reg_live): New functions.
7365         (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
7366         all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
7367         sched-ebb.c
7368         (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
7369         * ddg.c (get_block_head_tail): Adjust all uses.
7370         * modulo-sched.c (get_block_head_tail): Adjust all uses.
7371         (sms_sched_info): Initialize new fields.
7372         (contributes_to_priority): Removed.
7373         * haifa-sched.c (params.h): New include.
7374         (get_block_head_tail): Adjust all uses.
7375         (ISSUE_POINTS): New macro.
7376         (glat_start, glat_end): New global variables.
7377         (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
7378         nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
7379         old_last_basic_block, before_recovery, current_sched_info_var,
7380         rgn_n_insns, luid): New static variables.
7381         (insn_cost1): New function.  Move logic from insn_cost to here.
7382         (find_insn_reg_weight1): New function.  Move logic from
7383         find_insn_reg_weight to here.
7384         (reemit_notes, move_insn, max_issue): Change signature.
7385         (move_insn1): Removed.
7386         (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
7387         extend_bb): New static functions to support extension of scheduler's
7388         data structures.
7389         (generate_recovery_code, process_insn_depend_be_in_spec,
7390         begin_speculative_block, add_to_speculative_block,
7391         init_before_recovery, create_recovery_block, create_check_block_twin,
7392         fix_recovery_deps): New static functions to support
7393         generation of recovery code.
7394         (fix_jump_move, find_fallthru_edge, dump_new_block_header,
7395         restore_bb_notes, move_block_after_check, move_succs): New static
7396         functions to support ebb scheduling.
7397         (init_glat, init_glat1, attach_life_info1, free_glat): New static
7398         functions to support handling of register live information.
7399         (associate_line_notes_with_blocks, change_pattern, speculate_insn,
7400         sched_remove_insn, clear_priorities, calc_priorities, bb_note,
7401         add_jump_dependencies): New static functions.
7402         (check_cfg, has_edge_p, check_sched_flags): New static functions for
7403         consistancy checking.
7404         (debug_spec_status): New function to call from debugger.
7405         (priority): Added code to handle speculation checks.
7406         (rank_for_schedule): Added code to distinguish speculative instructions.
7407         (schedule_insn): Added code to handle speculation checks.
7408         (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
7409         Fixed to handle ebbs.
7410         (move_insn): Added code to handle ebb scheduling.
7411         (max_issue): Added code to use ISSUE_POINTS of instructions.
7412         (choose_ready): Added code to choose between speculative and
7413         non-speculative instructions.
7414         (schedule_block): Added code to handle ebb scheduling and scheduling of
7415         speculative instructions.
7416         (sched_init): Initialize new variables.
7417         (sched_finish): Free new variables.  Print statistics.
7418         (try_ready): Added code to handle speculative instructions.
7419         * lists.c (copy_DEPS_LIST_list): New function.
7420         * sched-deps.c (extend_dependency_caches): New function.  Move logic
7421         from create_dependency_caches to here.
7422         (get_dep_weak, ds_merge): Make global.
7423         * genattr.c (main): Code to output prototype for
7424         dfa_clear_single_insn_cache.
7425         * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
7426         (output_dfa_clean_insn_cache_func): Code to output
7427         dfa_clear_single_insn_cache function.
7428         * sched-ebb.c (target_n_insns): Remove.  Adjust all users to use
7429         n_insns.
7430         (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
7431         Removed.
7432         (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
7433         New static variables.
7434         (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
7435         fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
7436         struct sched_info.
7437         (ebb_sched_info): Initialize new fields.
7438         (get_block_head_tail): Adjust all uses.
7439         (compute_jump_reg_dependencies): Fixed to use glat_start.
7440         (schedule_ebb): Code to remove unreachable last block.
7441         (schedule_ebbs): Added code to update register live information.
7442         * sched-rgn.c (region_sched_info): Initialize new fields.
7443         (get_block_head_tail): Adjust all uses.
7444         (last_was_jump): Removed.  Adjust users.
7445         (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
7446         add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
7447         Implement new hooks.
7448         (check_dead_notes1): New static function.
7449         (struct region): New fields: dont_calc_deps, has_real_ebb.
7450         (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
7451         (BB_TO_BLOCK): Fixed to handle EBBs.
7452         (EBB_FIRST_BB, EBB_LAST_BB): New macros.
7453         (ebb_head): New static variable.
7454         (debug_regions, contributes_to_priority): Fixed to handle EBBs.
7455         (find_single_block_regions, find_rgns, find_more_rgns): Initialize
7456         new fields.
7457         (compute_dom_prob_ps): New assertion.
7458         (check_live_1, update_live_1): Fixed to work with glat_start instead of
7459         global_live_at_start.
7460         (init_ready_list): New assertions.
7461         (can_schedule_ready_p): Split update code to begin_schedule_ready.
7462         (new_ready): Add support for BEGIN_CONTROL speculation.
7463         (schedule_insns): Fixed code that updates register live information
7464         to handle EBBs.
7465         (schedule_region): Fixed to handle EBBs.
7466         (init_regions): Use extend_regions and check_dead_notes1.
7467         * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
7468         PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
7469         * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
7470         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
7471         TARGET_SCHED_GEN_CHECK,
7472         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
7473         TARGET_SCHED_SET_SCHED_FLAGS): Document.
7474         * doc/invoke.texi (max-sched-insn-conflict-delay,
7475         sched-spec-prob-cutoff): Document.
7476
7477 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7478
7479         * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
7480         inter_tick, queue_index.
7481         (struct sched_info): Change signature of init_ready_list field.
7482         Adjust all initializations.
7483         (RESOLVED_DEPS): New access macro.
7484         (ready_add): Remove prototype.
7485         (try_ready): Add prototype.
7486         * sched-rgn.c (init_ready_list): Use try_ready.
7487         (schedule_region): Initialize
7488         current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
7489         * sched-ebb.c (new_ready): Remove.  Adjust ebb_sched_info.
7490         (init_ready_list): Use try_ready.
7491         (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
7492         * lists.c (remove_list_elem): Remove `static'.
7493         (remove_free_INSN_LIST_elem): New function.
7494         * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
7495         * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
7496         (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
7497         New constants.
7498         (readyp): New variable.
7499         (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
7500         change_queue_index, resolve_dep): New static functions.
7501         (try_ready): New function.  Adjust callers in sched-rgn.c and
7502         sched-ebb.c to use it instead of ready_add.
7503         (clock_var): Move at the begining of file.
7504         (rank_for_schedule): Fix typo.
7505         (queue_insn): Add assertion.  Handle QUEUE_INDEX.
7506         (ready_lastpos): Enforce assertion.
7507         (ready_add): Make it static.  Handle QUEUE_INDEX.  Add new argument,
7508         update all callers.
7509         (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
7510         (schedule_insn): Rewrite to use try_ready and resolve_dep.
7511         (queue_to_ready): Use free_INSN_LIST_list.
7512         (early_queue_to_ready): Fix typo.
7513         (schedule_block): Init readyp.  Move init_ready_list call after the
7514         initialization of clock_var.  Fix error in rejecting insn by
7515         targetm.sched.dfa_new_cycle.  Add call to fix_inter_tick.  Remove code
7516         that previously corrected INSN_TICKs.  Add code for handling
7517         QUEUE_INDEX.
7518         (set_priorities): Fix typo.
7519         (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
7520         Clarify comment and code that keeps current_sched_info->next_tail
7521         non-null.
7522
7523 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7524
7525         * sched-rgn.c (extend_rgns): New static function.
7526         (find_rgns): Use it.
7527         (gather_region_statistics, print_region_statistics): New static
7528         functions.
7529         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
7530         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
7531
7532 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7533             Andrey Belevantsev <abel@ispras.ru>
7534
7535         * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
7536         * lists.c (unused_deps_list): New variable.
7537         (free_list): Add assertions to verify the proper distinguishing
7538         between INSN_LISTs and DEPS_LISTs.
7539         (find_list_elem, remove_list_elem, remove_list_node): New static
7540         functions.
7541         (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
7542         remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
7543         remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
7544         (alloc_INSN_LIST): Assert that the list we're working on is indeed
7545         an INSN_LIST.
7546         (free_INSN_LIST_node): Likewise.
7547         * modulo-sched.c (current_sched_info): Initialize flags field.
7548         * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
7549         * rtl.def (DEPS_LIST): Define.
7550         * rtl.h: Declare new functions from lists.c.
7551         * sched-deps.c (spec_dependency_cache): New static variable.
7552         (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
7553         (add_dependence): Change return type to void.  Move the logic to ...
7554         (add_or_update_back_dep_1): ... here.  Handle speculative dependencies.
7555         (delete_all_dependences): Add comment about forward_dependency_cache.
7556         Handle spec_dependency_cache.  Handle DEPS_LISTs.
7557         (fixup_sched_groups): Clarify the change of priority of output
7558         and anti dependencies.
7559         (sched_analyze_2): Adjust add_dependence calls to create data
7560         speculative dependence.
7561         (add_forward_dependence): Renamed to add_forw_dep, change prototype.
7562         Adjust all callers.  Handle DEPS_LISTS.
7563         (compute_forward_dependences): Use add_forw_dep.  Sort LOG_LINKs in
7564         presence of speculation.
7565         (init_dependency_caches, free_dependency_caches):
7566         Handle spec_dependency_cache.
7567         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
7568         estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
7569         New static functions.
7570         (add_or_update_back_dep, add_or_update_back_forw_dep,
7571         add_back_forw_dep, delete_back_forw_dep): New functions.
7572         * sched-int.h (ds_t, dw_t): New typedefs.
7573         (struct sched_info): Add new field flags.
7574         (struct haifa_insn_data): Add new bitfield has_internal_dep.
7575         Prototype new sched-deps.c functions.
7576         (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
7577         (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
7578         MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
7579         BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
7580         SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
7581         SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
7582         New constants.
7583         (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
7584         New enums.
7585         * sched-rgn.c (current_sched_info): Initialize flags field.
7586         (schedule_insns): Initialize current_sched_info before the sched_init
7587         call.
7588         * sched-ebb.c (current_sched_info): Initialize flags field.
7589         (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
7590         Call add_or_update_back_dep instead of add_dependence.
7591         Create control speculative dependencies.
7592         (schedule_insns): Initialize current_sched_info before the sched_init
7593         call.
7594
7595 2006-03-16  Kaz Kojima  <kkojima@gcc.gnu.org>
7596
7597         * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
7598         fs->signal_frame.
7599         (sh_fallback_frame_state): Likewise.
7600
7601 2006-03-15  Geoffrey Keating  <geoffk@apple.com>
7602
7603         * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
7604         Do switch on default_use_cxa_atexit.
7605         (powerpc*-*-darwin*): Build crt2.o on powerpc.
7606         * config/darwin-crt3.o: New.
7607         * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
7608         to 10.3.  Pass '-multiply_defined suppress' if crt3.o is in use.
7609         (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
7610         OS version.
7611         * config/rs6000/t-darwin: Move crt2.o building to here.
7612         * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
7613         Mac OS version for using __cxa_get_exception_ptr.  Don't test versions
7614         of __cxa_atexit.
7615
7616 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7617
7618         * config/vax/vax.c (nonindexed_address_p): Change logical negation
7619         from '! xxx' to '!xxx' for coding-style conformance.
7620         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
7621         (EXTRA_CONSTRAINT): Likewise.
7622         * config/vax/vax.md (four unnamed insns): Likewise.
7623
7624 2006-03-15  Paul Brook  <paul@codesourcery.com>
7625
7626         * config/arm/arm.c (minipool_pad): New.
7627         (add_minipool_forward_ref): Include pool alignment padding in address
7628         calculation.
7629         (push_minipool_fix): Set minipool_pad.
7630         (minipool_pad): Ditto.
7631
7632 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7633
7634         * config/vax/vax.c (split_quadword_operands): Use MEM_P()
7635         instead of GET_CODE() == MEM and REG_P() instead of
7636         GET_CODE() == REG.
7637         (print_operand_address): Likewise.
7638         (vax_address_cost): Likewise.
7639         (vax_rtx_costs): Likewise.
7640         (vax_notice_update_cc): Likewise.
7641         (vax_output_int_add): Likewise.
7642         (INDEX_REGISTER_P): Likewise.
7643         (BASE_REGISTER_P): Likewise.
7644         (nonindexed_address_p): Likewise.
7645         (vax_mode_dependent_address_p): Likewise.
7646         * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
7647         (PRINT_OPERAND): Likewise.
7648         * config/vax/vax.md (ashlsi3): Likewise.
7649         (ashlsi3): Likewise.
7650         (some more unnamed insns): Likewise.
7651
7652 2006-03-15  Kazu Hirata  <kazu@codesourcery.com>
7653
7654         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
7655         iterator-style macro.
7656         (mark_control_dependent_edges_necessary): Update the use of
7657         EXECUTE_IF_CONTROL_DEPENDENT.
7658
7659 2006-03-15  J"orn Rennecke <joern.rennecke@st.com>
7660
7661         * config/sh/predicates.md (cache_address_operand): Special.
7662         (ua_address_operand): Likewise.
7663
7664 2006-03-15  Zdenek Dvorak <dvorakz@suse.cz>
7665
7666         * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
7667         loop notes.
7668         * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
7669
7670 2006-03-15  Andreas Schwab  <schwab@suse.de>
7671
7672         * gensupport.c (identify_predicable_attribute): Don't free p_false
7673         when it is still in use.
7674
7675 2006-03-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
7676
7677         * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
7678         the default setting here.
7679
7680 2006-03-14  Steven Bosscher  <stevenb.gcc@gmail.com>
7681
7682         * tree-pass.h (pass_cfg): Remove.
7683         * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
7684         * passes.c (pass_cfg): Don't run it.
7685
7686 2006-03-14  Kazu Hirata  <kazu@codesourcery.com>
7687
7688         * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
7689         * reg-stack.c (stack_regs_mentioned_data): Change the type to
7690         VEC(char,heap) *.
7691         (stack_regs_mentioned): Update the uses of
7692         stack_regs_mentioned_data.  Don't access the array beyond its
7693         end.
7694         (reg_to_stack): Update the uses of stack_regs_mentioned_data.
7695         Don't include gt-reg-stack.h.
7696
7697         * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
7698         * system.h (UNALIGNED_WORD_ASM_OP): Poison.
7699
7700         * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
7701
7702         PR middle-end/26684
7703         * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
7704         STACK_REGS.
7705
7706 2006-03-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7707
7708         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
7709
7710 2006-03-14  Richard Guenther  <rguenther@suse.de>
7711
7712         PR tree-optimization/26672
7713         * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
7714         SSA form.
7715
7716 2006-03-14  Richard Guenther  <rguenther@suse.de>
7717
7718         PR tree-optimization/26667
7719         * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
7720         node for the callees.  Always allow inlining if it will shrink
7721         the function size.
7722
7723 2006-03-14  Richard Guenther  <rguenther@suse.de>
7724
7725         PR middle-end/26659
7726         * builtins.c (get_pointer_alignment): Prefer alignment
7727         information from decls over that from types.
7728
7729 2006-03-14  Andrew Pinski  <pinskia@physics.uc.edu>
7730
7731         PR target/26657
7732         * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
7733
7734 2006-03-14  Joseph S. Myers  <joseph@codesourcery.com>
7735
7736         * config/rs6000/rs6000.opt (mdlmzb): New option.
7737         (msched-prolog, msched-epilog): Use Var not Mask.
7738         * doc/invoke.texi (-mdlmzb): Document.
7739         * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
7740         MASK_SCHED_PROLOG.
7741         (rs6000_override_options): Enable -mdlmzb for 405 and 440.
7742         * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
7743
7744 2006-03-13  Uttam Pawar  <uttamp@us.ibm.com>
7745
7746         PR rtl-optimization/25739
7747         * bt-load.c (augment_live_range): Free tos pointer.
7748
7749         * gensupport.c (identify_predicable_attribute): Free
7750         p_false pointer.
7751         * gcov.c (create_file_names): Free name pointer.
7752
7753 2006-03-13  Roger Sayle  <roger@eyesopen.com>
7754
7755         PR middle-end/26557
7756         * stmt.c (emit_case_nodes): Handle the case where the index is a
7757         CONST_INT, where the comparison mode is specified by the index type.
7758
7759 2006-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7760
7761         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
7762         is defined.
7763
7764 2006-03-13  Richard Sandiford  <richard@codesourcery.com>
7765
7766         * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
7767         (*branch_fp_inverted): Likewise.
7768
7769 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
7770
7771         PR middle-end/25989
7772         * omp-low.c (expand_omp_for_generic): Mark istart0
7773         and iend0 as addressable.
7774
7775 2006-03-13  Jie Zhang  <jie.zhang@analog.com>
7776
7777         * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
7778
7779 2006-03-13  Jeff Law  <law@redhat.com>
7780
7781         * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
7782         virtual operands are interesting.
7783         (vrp_visit_stmt): Corresponding changes.
7784
7785 2006-03-13  Bernd Schmidt  <bernd.schmidt@analog.com>
7786
7787         * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
7788         of RETS.
7789         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
7790         TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
7791         * config/bfin/crti.S: Use it instead of __PIC__.
7792         * config/bfin/crtn.S: Likewise.
7793
7794         * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
7795         call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
7796         not if flag_pic.
7797         Lose 'G' modifier for call operand.
7798         * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
7799         recognize 'G' modifier.
7800
7801 2006-03-13  Eric Botcazou  <ebotcazou@adacore.com>
7802
7803         PR middle-end/18859
7804         * gimplify.c (gimplify_switch_expr): Discard empty ranges.
7805         * stmt.c (expand_case): Likewise.
7806
7807 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
7808
7809         PR rtl-optimization/26254
7810         * loop-invariant.c (seq_insns_valid_p): New function.
7811         (move_invariant_reg): Only emit new code if it is valid.
7812
7813 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
7814
7815         * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
7816         Removed.
7817         (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
7818         (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
7819         (commit_one_edge_insertion): Do not look for loop notes.
7820
7821 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
7822
7823         * jump.c (follow_jumps): Do not check for loop notes.  Move check for
7824         flag_test_coverage out of loop.
7825
7826 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
7827
7828         * final.c (shorten_branches): Remove outdated comment, and turn
7829         the if branch that guards it to continue.
7830
7831 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
7832
7833         * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
7834         * cfgloop.h (struct loop): Remove unused fields.
7835
7836 2006-03-13  Kazu Hirata  <kazu@codesourcery.com>
7837
7838         * doc/invoke.texi (-fdump-rtl-loop): Remove.
7839         (-dL, -fdump-rtl-loop2): Update the dump file names
7840
7841         * doc/invoke.texi: Update dump file names.
7842
7843 2006-03-12  Steven Bosscher  <stevenb.gcc@gmail.com>
7844
7845         * predict.c (estimate_probability): Remove.
7846         * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
7847         * basic-block.h (estimate_probability): Remove prototype.
7848         * passes.c (finish_optimization_passes): Dump branch prediction or
7849         profiling heuristics to the .profile tree dump.
7850         (init_optimization_passes): Unqueue pass_branch_prob.
7851
7852         * doc/invoke.texi (-fdump-rtl-bp): Remove.
7853
7854 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
7855
7856         * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
7857         * rtl.h (LABEL_NEXTREF): Remove field accessor.
7858
7859 2006-03-11  Eric Botcazou  <ebotcazou@adacore.com>
7860
7861         * function.h (frame_offset_overflow): Declare.
7862         * function.c (frame_offset_overflow): New function.
7863         (assign_stack_local_1): Call it to detect that the offset overflows.
7864         * cfgexpand.c (alloc_stack_frame_space): Likewise.
7865
7866 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
7867
7868         * config/sh/sh.c: Include alloc-pool.h.
7869         (label_ref_list_pool): New alloc pool.
7870         (label_ref_list_t): New type for lists of labels.
7871         (struct pool_node): Make wend a label_ref_list_t.
7872         (add_constant): Use the new type, eradicate LABEL_NEXTREF
7873         references.
7874         (dump_table): Likewise.
7875         (sh_reorg): Set up the alloc pool before using add_constant and
7876         dump_table, and destroy it when finishing.
7877
7878 2006-03-11  Richard Sandiford  <richard@codesourcery.com>
7879
7880         * config/mips/mips.c: Remove redundant comment.
7881
7882 2006-03-10  Jason Merrill  <jason@redhat.com>
7883
7884         PR c/26004
7885         * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
7886         the target was declared 'register'.
7887
7888 2006-03-10  Adam Nemet  <anemet@caviumnetworks.com>
7889
7890         * genpreds.c (write_insn_constraint_len): Change definition of
7891         insn_constraint_len to return size_t to match the declaration.
7892
7893 2006-03-10  DJ Delorie  <dj@redhat.com>
7894
7895         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
7896         start at zero.
7897         (m32c_expand_insv): Fix test for an AND mask.
7898
7899 2006-03-10  Richard Guenther  <rguenther@suse.de>
7900
7901         PR middle-end/26565
7902         * builtins.c (get_pointer_alignment): Handle component
7903         references for field alignment.
7904
7905 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
7906
7907         * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
7908         when building with libgloss.
7909         (sh*elf): Implement --without-fp option.
7910         (sh64-superh-linux*): Don't multilib.
7911
7912 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
7913
7914         * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
7915
7916 2006-03-09  Andrew Pinski  <pinskia@physics.uc.edu>
7917
7918         * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
7919         Set it when one of the replacement functions returned true.
7920         Return TODO_cleanup_cfg if cfgchanged is true.
7921         (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
7922
7923 2006-03-09  Adam Nemet  <anemet@caviumnetworks.com>
7924
7925         * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
7926         instead of gen_lowpart.
7927
7928 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
7929
7930         * config/mips/mips-protos.h (mips_output_conditional_branch): Change
7931         interface.
7932         (mips_output_order_conditional_branch): Declare.
7933         * config/mips/mips.h (MIPS_BRANCH): New macro.
7934         * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
7935         for the comparison.  Use gen_condjump.
7936         (mips_output_conditional_branch): Rework interface to take the
7937         asm templates for a direct branch and the inverse of a direct branch.
7938         (mips_output_order_conditional_branch): New function.
7939         (mips_builtin_branch_and_move): New function.
7940         (mips_expand_builtin_compare): Use it.  Use VOIDmode for the
7941         branch condition.  Use gen_single_cc as the condition for
7942         __builtin_mips_upper_* or __builtin_mips_lower_*.
7943         (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
7944         Use VOIDmode for the branch condition.
7945         * config/mips/predicates.md (order_operator): New predicate.
7946         * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
7947         (branch_fp): Rename to...
7948         (*branch_fp): ...this.  Remove mode from comparison operator.
7949         Use new mips_output_conditional_branch interface.
7950         (branch_fp_inverted): Rename to...
7951         (*branch_fp_inverted): ...this and update as for *branch_fp.
7952         (*branch_zero<mode>): Rename to...
7953         (*branch_order<mode>): ...this.  Remove mode from comparison operator.
7954         Use mips_output_order_conditional_branch.  Only accept ordered
7955         comparisons.
7956         (*branch_zero<mode>_inverted): Rename to...
7957         (*branch_order<mode>_inverted): ...this and update as for
7958         *branch_order<mode>.
7959         (*branch_equality<mode>): Accept zero as the second operand to
7960         the equality operator.  Use the new mips_output_conditional_branch
7961         interface.
7962         (*branch_equality<mode>_inverted): Likewise.
7963         (condjump): New expander.
7964         * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
7965         operator.
7966         * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
7967         (bc1any2t, bc1any2f): Likewise.
7968         (single_cc): New expander.
7969         (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
7970
7971 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
7972
7973         * doc/md.texi: Update documentation of MIPS constraints.
7974         * config/mips/constraints.md: New file.
7975         * config/mips/mips.md: Include it.
7976         * config/mips/mips.c (mips_char_to_class): Delete.
7977         (override_options): Don't initialize mips_char_to_class.
7978         * config/mips/mips.h (mips_char_to_class): Delete.
7979         (REG_CLASS_FROM_LETTER): Delete.
7980         (CONST_OK_FOR_LETTER_P): Delete.
7981         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7982         (EXTRA_CONSTRAINT_Y): Delete.
7983         (EXTRA_CONSTRAINT_STR): Delete.
7984         (CONSTRAINT_LEN): Delete.
7985         (EXTRA_MEMORY_CONSTRAINT): Delete.
7986
7987 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
7988
7989         * tree-cfg.c (move_block_to_fn): Remove the statements from the
7990         original fn's eh regions.
7991
7992 2006-03-09  Eric Botcazou  <ebotcazou@adacore.com>
7993
7994         * fold-const.c (build_range_check): Make sure to use a valid type to
7995         apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
7996         transformation.
7997
7998         (range_predecessor): New static function.
7999         (range_successor): Likewise.
8000         (merge_ranges): Use them to compute predecessors and successors of
8001         range bounds.
8002
8003 2006-03-09  Roger Sayle  <roger@eyesopen.com>
8004
8005         PR middle-end/26561
8006         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
8007         X op C3, consider whether C3 overflows towards +Inf or -Inf.
8008
8009 2006-03-08  DJ Delorie  <dj@redhat.com>
8010
8011         * config/m32c/addsub.md (addqi3): Disparage a0/a1.
8012         (addpsi3): Expand to include memory operands.  Remove
8013         reload-specific splits.
8014         * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
8015         (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
8016         (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
8017         (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
8018         (shift1_qi, shift1_hi, insv): New.
8019         * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
8020         (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
8021         cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
8022         cond_to_int): New.
8023         * config/m32c/m32c-protos.h: Update as needed.
8024         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
8025         default the Rcr, Rcl, Raw, and Ral constraints.  Add Ra0 and Ra1.
8026         Fail for unrecognized R* constraints.
8027         (m32c_cannot_change_mode_class): Be more picky about pseudos.
8028         (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
8029         (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
8030         Add Sp constraint.
8031         (m32c_init_libfuncs): New.
8032         (m32c_legitimate_address_p): Add debug wrapper.
8033         (m32c_rtx_costs): New.
8034         (m32c_address_cost): New.
8035         (conversions): Add 'B' prefix.
8036         (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
8037         operands, or word regnames for QI operands.  'B' prints bit
8038         position.
8039         (m32c_expand_setmemhi): New.
8040         (m32c_expand_movmemhi): New.
8041         (m32c_expand_movstr): New.
8042         (m32c_expand_cmpstr): New.
8043         (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
8044         (m32c_expand_neg_mulpsi3): Handle non-ints.
8045         (m32c_cmp_flg_0): New.
8046         (m32c_expand_movcc): New.
8047         (m32c_expand_insv): New.
8048         (m32c_scc_pattern): New.
8049         * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS.  Take
8050         a0/a1 out of SIregs.
8051         (STORE_FLAG_VALUE): New.
8052         * config/m32c/m32c.md: Add unspecs for string moves.  Define various mode and
8053         code macros.
8054         (no_insn): New.
8055         * config/m32c/mov.md: Make constraints more liberal.
8056         (zero_extendqihi2): Optimize r0/r1 case.
8057         * config/m32c/muldiv.md (mulpsi3): Check for intvals.
8058         * config/m32c/predicates.md (m32c_any_operand): New.
8059         (m32c_nonimmediate_operand): New.
8060         (m32c_hl_operand): New.
8061         (m32c_r3_operand): New.
8062         (ap_operand): New.
8063         (ma_operand): New.
8064         (memsym_operand): New.
8065         (memimmed_operand): New.
8066         (a_qi_operand): New.
8067         (m32c_eqne_operator): New.
8068         (m32c_1bit8_operand): New.
8069         (m32c_1bit16_operand): New.
8070         (m32c_1mask8_operand): New.
8071         (m32c_1mask16_operand): New.
8072         * config/m32c/blkmov.md: New file.
8073         * config/m32c/t-m32c (MD_FILES): Add blkmov.
8074
8075 2006-03-08  Andreas Tobler  <a.tobler@schweiz.ch>
8076
8077         * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
8078         unsigned to fix signed/unsigned comparison issue in
8079         DWARF2_FRAME_REG_OUT.
8080         (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
8081         unsigned comparison issue in DWARF2_FRAME_REG_OUT.
8082
8083         * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
8084         of ptr into the ENABLE_CHECKING section.
8085
8086 2006-03-08  Jeff Law  <law@redhat.com>
8087
8088         * tree-vrp.c (infer_value_range): Only count pointer uses
8089         and dereferences if -fdelete-null-pointer-checks is enabled.
8090
8091         * tree-vrp.c (find_assert_locations): Infer value ranges for
8092         single use pointers, but do not create ASSERT_EXPRs for them.
8093         When a non-null range is inferred for a pointer, backwards
8094         propagate that range to other equivalent pointers through the
8095         use-def chain.
8096
8097 2006-03-08  Paolo Bonzini  <bonzini@gnu.org>
8098
8099         PR bootstrap/26500
8100         * Makefile.in (dvi, html, install-info): Invoke the corresponding
8101         language hook targets.
8102         * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
8103         objcp/Make-lang.in: Create stub rules for dvi, html, install-info
8104         if language hook targets were missing.
8105
8106 2006-03-07  Zdenek Dvorak <dvorakz@suse.cz>
8107
8108         * tree-ssa-opfinalize.h: Removed.
8109         * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
8110         dependency.
8111         * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
8112         (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
8113         INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
8114         add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
8115         finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
8116         finalize_ssa_v_must_def_ops): New.
8117
8118 2006-03-07  Kenneth Zadeck <zadeck@naturalbridge.com>
8119
8120         * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
8121         block as parameter.
8122
8123 2006-03-07  Geoffrey Keating  <geoffk@apple.com>
8124
8125         * varasm.c (assemble_end_function): Say that 'fnname' is unused.
8126
8127         * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
8128         addresses with offsets; reorganize.
8129
8130         * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
8131         (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
8132         (expand_builtin_init_dwarf_reg_sizes): Likewise.
8133
8134 2006-03-08  David Billinghurst <David.Billinghurst@riotinto.com>
8135
8136         PR target/26588
8137         * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
8138
8139 2006-03-08  Ben Elliston  <bje@au.ibm.com>
8140
8141         * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
8142
8143 2006-03-07  Aldy Hernandez  <aldyh@redhat.com>
8144
8145         PR gomp/26238
8146         * doc/passes.texi (Tree-SSA passes): Document omp lowering and
8147         expansion.
8148
8149 2006-03-07  Richard Guenther  <rguenther@suse.de>
8150
8151         PR tree-optimization/26587
8152         * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
8153
8154 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
8155
8156         * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
8157
8158 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
8159
8160         * hooks.c (hook_bool_mode_rtx_true): New function.
8161         * hooks.h (hook_bool_mode_rtx_true): Declare.
8162         * toplev.c (compile_file): Call output_shared_constant_pool.
8163         * varasm.c (shared_constant_pool): New variable.
8164         (assemble_start_function, assemble_end_function): Remove arguments
8165         from call to output_constant_pool.
8166         (create_constant_pool): New function, split out from...
8167         (init_varasm_status): ...here.
8168         (force_const_mem): Choose between the shared and per-function constant
8169         pools.  Set current_function_uses_const_pool when reusing old entries
8170         as well as when creating new ones.
8171         (mark_constant): Ignore data argument.
8172         (mark_constants): Remove pool argument.
8173         (mark_constant_pool): Likewise.  Use current_function_uses_const_pool
8174         to decide whether the function uses a constant pool.
8175         (output_constant_pool_contents): New function, split out from...
8176         (output_constant_pool): ...here.
8177         (output_shared_constant_pool): New function.
8178         (init_varasm_once): Initialize shared_constant_pool.
8179         * output.h (output_constant_pool): Delete.
8180         (output_shared_constant_pool): Declare.
8181         * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
8182         * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
8183
8184 2006-03-06  Nick Clifton  <nickc@redhat.com>
8185
8186         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
8187         flag_strength_reduce.
8188
8189 2006-03-06  Ben Elliston  <bje@au.ibm.com>
8190
8191         * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
8192         x86_64-*-linux* configurations.
8193
8194         * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
8195         (LIBGCC2_WORDS_BIG_ENDIAN): Define.
8196
8197 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
8198
8199         * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
8200         Remove.
8201         * basic-block.h: Remove the extern for
8202         rediscover_loops_after_threading.
8203
8204         * cfgloop.c (cancel_loop): Make it static.
8205         * cfgloop.h: Remove the prototype for cancel_loop.
8206
8207         * flow.c (recompute_reg_usage): Make it static.
8208         * rtl.h: Remove the prototype for recompute_reg_usage.
8209
8210         * function.c (use_return_register): Make it static.
8211         * function.h: Remove the prototype.
8212
8213 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
8214
8215         * recog.c (volatile_mem_p, validate_change_maybe_volatile):
8216         Remove.
8217         * recog.h: Remove the prototype for
8218         validate_change_maybe_volatile.
8219
8220 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
8221
8222         * rtlanal.c (replace_reg): Remove.
8223         * rtl.h: Remove the prototype for replace_reg.
8224
8225 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
8226
8227         * regclass.c (reg_scan_update): Remove.
8228         (reg_scan_mark_refs): Remove the last argument.
8229         * rtl.h: Remove the prototype for reg_scan_update.
8230
8231 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8232
8233         * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
8234         combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
8235         config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
8236         config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
8237         df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
8238         loop-invariant.c, omp-low.c, opts.c, passes.c,
8239         rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
8240         tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
8241         tree-ssa-structalias.c, tree-ssa-threadedge.c,
8242         tree-ssa-threadupdate.c, tree-vect-patterns.c,
8243         tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
8244         unwind-dw2.c: Fix comment typos.  Follow spelling conventions.
8245
8246 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8247
8248         * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
8249         * dwarf2out.h: Remove the prototype for
8250         dwarf2out_add_library_unit_info.
8251
8252 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8253
8254         * tree.c (add_var_to_bind_expr): Remove.
8255         * tree.h: Remove the prototype for add_var_to_bind_expr.
8256
8257 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8258
8259         * regclass.c (n_non_fixed_regs): Remove.
8260         (init_reg_sets_1, globalize_reg): Remove all uses of
8261         n_non_fixed_regs.
8262         * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
8263
8264 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8265
8266         * rtlanal.c (insns_safe_to_move_p): Remove.
8267         * rtl.h: Remove the prototype for insns_safe_to_move_p.
8268
8269 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8270
8271         * expmed.c (expand_mult_add): Remove.
8272         * expr.h: Remove the prototype for expand_mult_add.
8273
8274 2006-03-04  Jakub Jelinek  <jakub@redhat.com>
8275
8276         * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
8277         and REG_SAVED_VAL_EXP constants.
8278         * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
8279         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
8280         Handle regs stored by value.
8281         (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
8282         (execute_cfa_program): Handle DW_CFA_val_offset,
8283         DW_CFA_val_offset_sf and DW_CFA_val_expression.
8284         (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
8285         value specially.  Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
8286         (uw_install_context_1): Handle target regs stored by value.
8287
8288 2006-03-03  Daniel Berlin  <dberlin@dberlin.org>
8289
8290         * tree-sra.c (tree_sra): Return todoflags;
8291         (generate_one_element): Set TODO_update_smt_usage if needed.
8292         (pass_sra): Remove TODO_update_smt_usage.
8293         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
8294         parameter.
8295         (tree_ssa_forward_propagate_single_use_vars): Return
8296         TODO_update_smt_usage if we need to update SMT usage.
8297         (pass_forwprop): Remove TODO_update_smt_usage.
8298
8299 2006-03-03  Diego Novillo  <dnovillo@redhat.com>
8300
8301         * tree-ssa-operands.c: Tidy whitespace.  Fix spelling.
8302         (correct_use_link): Remove reference to get_stmt_operands.
8303         (update_stmt_operands): Likewise.
8304         (get_modify_expr_operands): New function factored out of
8305         parse_ssa_operands and get_expr_operands.
8306         Try to create V_MUST_DEFs for LHS by default.
8307         (get_expr_operands) <case MODIFY_EXPR>: Call
8308         get_modify_expr_operands.
8309         <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
8310         <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
8311         (parse_ssa_operands) <case MODIFY_EXPR>: Call
8312         get_modify_expr_operands.
8313
8314 2006-03-03  Kazu Hirata  <kazu@codesourcery.com>
8315
8316         * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
8317         * tree-flow.h: Remove the prototype for
8318         referenced_var_lookup_if_exists.
8319
8320 2006-03-03  Steve Ellcey  <sje@cup.hp.com>
8321
8322         PR rtl-optimization/26345
8323         PR target/19061
8324         * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
8325
8326 2006-03-03  Roger Sayle  <roger@eyesopen.com>
8327
8328         PR tree-optimization/26524
8329         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
8330         fold_convert to create a constant of the appropriate type.
8331
8332 2006-03-03  Richard Sandiford  <richard@codesourcery.com>
8333
8334         * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
8335         SYMBOL_REF_IN_BLOCK_P.
8336         * doc/rtl.texi: Likewise.  Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
8337         of SYMBOL_FLAG_IN_BLOCK.
8338         * gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
8339         instead of SYMBOL_REF_IN_BLOCK_P.
8340         * explow.c (use_anchored_address): Likewise.
8341         * rtl.c (rtx_size): Likewise.
8342         * varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
8343         instead of SYMBOL_FLAG_IN_BLOCK.
8344         (make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
8345         SYMBOL_REF_IN_BLOCK_P.
8346         (assemble_variable): Likewise.
8347         (output_constant_def_contents): Likewise.
8348         (output_constant_pool): Likewise.
8349         (default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
8350         instead of SYMBOL_FLAG_IN_BLOCK.
8351         * rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
8352         SYMBOL_REF_IN_BLOCK_P.
8353         (SYMBOL_REF_BLOCK): Likewise.
8354         (SYMBOL_REF_OFFSET): Likewise.
8355         (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
8356         SYMBOL_REF_IN_BLOCK_P.
8357         (SYMBOL_FLAG_IN_BLOCK): Replace with...
8358         (SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
8359         (SYMBOL_REF_IN_BLOCK_P): Replace with...
8360         (SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.
8361
8362 2006-03-03  Jakub Jelinek  <jakub@redhat.com>
8363
8364         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Fix pasto.
8365
8366 2006-03-02  Roger Sayle  <roger@eyesopen.com>
8367
8368         * simplify-rtx.c (simplify_unary_operation): When simplifying
8369         (neg (lt X 0)) into (ashiftrt X C) or (lshiftrt X C), make sure
8370         that we perform the right shift in the appropriate mode, and
8371         then extend or truncate the result to requested mode.
8372
8373 2006-03-03  Zdenek Dvorak <dvorakz@suse.cz>
8374
8375         * gengtype.c (main): Handle double_int type.
8376         * tree.h (struct tree_int_cst): Make type of int_cst double_int.
8377         * double-int.c: New file.
8378         * double-int.h: New file.
8379         * system.h: Include doubleint.h.
8380         * Makefile.in (SYSTEM_H): Include double-int.h.
8381         (double-int.o): Add.
8382
8383 2006-03-03  Joseph S. Myers  <joseph@codesourcery.com>
8384
8385         PR bootstrap/26478
8386         * Makefile.in (stmp-int-hdrs): Remove include/unwind.h before
8387         copying over it.
8388
8389 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
8390
8391         * tree-vrp.c (remove_range_assertions): Do not update statements
8392         unnecessarily.
8393
8394 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
8395
8396         * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
8397         cleanup.
8398         * gcse.c (rest_of_handle_gcse): Ditto.
8399         * except.c (gate_handle_eh): Ditto.
8400         * cfgcleanup.c (rest_of_handle_jump2): Ditto.
8401         * basic-block.h (CLEANUP_PRE_LOOP): Remove.
8402
8403 2006-03-02  Eric Christopher  <echristo@apple.com>
8404
8405         * config/i386/i386.c (machopic_output_stub): Add indirection to
8406         jump.
8407
8408 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
8409
8410         * loop.c: Removed.
8411
8412 2006-03-02  David S. Miller  <davem@sunset.davemloft.net>
8413
8414         Sun Niagara specific optimizations.
8415         * config.gcc: Recognize niagara as target.
8416         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Mention Niagara.
8417         (TARGET_CPU_niagara): Define.
8418         (CPP_CPU64_DEFAULT_SPEC): Define __sparc_v9__ for Niagara.
8419         (ASM_CPU64_DEFAULT_SPEC): Pass -Av9b for Niagara.
8420         (CPP_CPU_SPEC): Handle -mcpu=niagara.
8421         (ASM_CPU_SPEC): Likewise.
8422         (PROCESSOR_NIAGARA): New enum entry.
8423         (REGISTER_MOVE_COST): Handle Niagara.
8424         (BRANCH_COST, PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): Likewise.
8425         * config/sparc/sparc.c (niagara_costs): New processor_costs entry.
8426         (sparc_override_options): Recognize "niagara", set appropriate
8427         default MASK_* values for it, and align functions to 32-bytes
8428         by default just like ULTRASPARC/ULTRASPARC3.
8429         (sparc_initialize_trampoline): Handle niagara like ultrasparc.
8430         (sparc64_initialize_trampoline): Likewise.
8431         (sparc_use_sched_lookahead): Use zero for niagara.
8432         (sparc_issue_rate): Use one for niagara.
8433         * config/sparc/niagara.md: New file.
8434         * config/sparc/sparc.md: Include it.
8435         * config/sparc/sol2-bi.h (CPP_CPU64_DEFAULT_SPEC,
8436         ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Set appropriately
8437         when default cpu is niagara.
8438         (CPP_CPU_SPEC): Handle -mcpu=niagara.
8439         (ASM_CPU_SPEC): Likewise.
8440         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Set appropriately
8441         when default cpu is niagara.
8442         (ASM_CPU_SPEC): Handle -mcpu=niagara.
8443         * config/sparc/linux64.h: Handle a default of TARGET_CPU_niagara
8444         just like v9/ultrasparc/ultrasparc3.
8445         * doc/invoke.texi: Add documentation for "niagara" and improve
8446         existing documentation for ultrasparc variants.
8447
8448 2006-03-02  Diego Novillo  <dnovillo@redhat.com>
8449
8450         * tree-ssa-operands.c (update_stmt_operands): Update documentation.
8451
8452 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
8453
8454         * doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
8455         (ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
8456         and say that only one is needed.
8457         * doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
8458         * target.h (have_switchable_bss_sections): New hook.
8459         * explow.c (use_anchored_address): Check that the symbol is in a block.
8460         * varasm.c (tls_comm_section, comm_section, lcomm_section)
8461         (bss_noswitch_section): New variables.
8462         (get_unnamed_section): Add SECTION_UNNAMED to the flags.
8463         (get_noswitch_section): New function.
8464         (get_block_for_section): Allow SECT to be null.
8465         (unlikely_text_section_p): Use SECTION_STYLE.
8466         (bss_initializer_p): New function.
8467         (get_variable_section): Move earlier in file.  Take a new argument,
8468         prefer_noswitch_p.  Move bss checks from assemble_variable to here.
8469         Return one of the new *_sections in such cases.
8470         (get_block_for_decl): New function, extracting some logic from
8471         use_blocks_for_decl_p.
8472         (change_symbol_section): Remove in favor of...
8473         (change_symbol_block): ...this new function.
8474         (use_blocks_for_decl_p): Remove checks now performed by
8475         get_block_for_decl.
8476         (make_decl_rtl): Use change_symbol_block and get_block_for_decl.
8477         (ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
8478         (emit_local, emit_bss, emit_common): ...these new functions.
8479         Return true if the alignment was honored.
8480         (emit_tls_common): New function.
8481         (asm_emit_uninitialised): Delete.
8482         (assemble_variable_noswitch): New function, split out from...
8483         (assemble_variable): ...here.  Don't make decisions about common
8484         variables here.  Globalize all public decls that go into non-common
8485         sections.  Check whether SYMBOL_REF_BLOCK is null.
8486         (output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
8487         (output_constant_pool): Likewise.
8488         (init_varasm_once): Initialize the new section variables.
8489         (have_global_bss_p): New function.
8490         (categorize_decl_for_section): Use bss_initializer_p.
8491         (switch_to_section): Use SECTION_STYLE.  Abort for SECTION_NOSWITCH.
8492         (place_block_symbol): Assert that the symbol must be in a block.
8493         * target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
8494         (TARGET_INITIALIZER): Include it.
8495         * rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
8496         * output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
8497         (SECTION_MACH_DEP): Bump by two.
8498         (SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
8499         (unnamed_section): Mention SECTION_UNNAMED in comment.
8500         (named_section): Likewise SECTION_NAMED.
8501         (noswitch_section_callback): New type.
8502         (noswitch_section): New structure.
8503         (section): Add a noswitch_section alternative.
8504         (SECTION_STYLE): New macro.
8505         (tls_comm_section, comm_section, lcomm_section): Declare.
8506         (bss_noswitch_section, have_global_bss_p): Declare.
8507         * config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
8508         * config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
8509         Override.
8510         * config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
8511         * config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
8512         Override.
8513
8514 2006-03-02  Daniel Berlin <dberlin@dberlin.org>
8515
8516         * tree-vrp.c (execute_vrp): Return value.
8517         * regrename.c (rest_of_handle_regrename): Ditto.
8518         * tree-into-ssa.c (rewrite_into_ssa): Ditto.
8519         * tree-complex.c (tree_lower_complex): Ditto.
8520         (tree_lower_complex_O0): Ditto.
8521         * tracer.c (rest_of_handle_tracer): Ditto.
8522         * postreload-gcse.c (rest_of_handle_gcse2): Ditto.
8523         * postreload.c (rest_of_handle_postreload): Ditto.
8524         * tree-tailcall.c (execute_tail_recursion): Ditto.
8525         (execute_tail_calls): Ditto.
8526         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
8527         * tree.h (init_function_for_compilation): Ditto.
8528         * ipa-cp.c (ipcp_driver): Ditto.
8529         * tree-scalar-evolution.c (scev_const_prop): Ditto.
8530         * tree-scalar-evolution.h (scev_const_prop): Ditto.
8531         * final.c (compute_alignments): Ditto.
8532         (rest_of_handle_final): Ditto.
8533         (rest_of_handle_shorten_branches): Ditto.
8534         (rest_of_clean_state): Ditto.
8535         * omp-low.c (execute_expand_omp): Ditto.
8536         (execute_lower_omp): Ditto.
8537         * tree-ssa-dse.c (tree_ssa_dse): Ditto.
8538         * ipa-reference.c (static_execute): Ditto.
8539         * tree-ssa-uncprop.c (tree_ssa_uncprop): Ditto.
8540         * reorg.c (rest_of_handle_delay_slots): Ditto.
8541         (rest_of_handle_machine_reorg): Ditto.
8542         * cgraphunit.c (rebuild_cgraph_edges): Ditto.
8543         * flow.c (recompute_reg_usage): Ditto.
8544         (rest_of_handle_remove_death_notes): Ditto.
8545         (rest_of_handle_life): Ditto.
8546         (rest_of_handle_flow2): Ditto.
8547         * tree-ssa-copyrename.c (rename_ssa_copies): Ditto.
8548         * tree-ssa-ccp.c (do_ssa_ccp): Ditto.
8549         (do_ssa_store_ccp): Ditto.
8550         (execute_fold_all_builtins): Ditto.
8551         * mode-switching.c (rest_of_handle_mode_switching): Ditto.
8552         * modulo-sched.c (rest_of_handle_sms): Ditto.
8553         * ipa-pure-const.c (static_execute): Ditto.
8554         * cse.c (rest_of_handle_cse): Ditto.
8555         (rest_of_handle_cse2): Ditto.
8556         * web.c (rest_of_handle_web): Ditto.
8557         * tree-stdarg.c (execute_optimize_stdarg): Ditto.
8558         * tree-ssa-math-opts.c (execute_cse_reciprocals): Ditto.
8559         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
8560         * tree-nrv.c (tree_nrv): Ditto.
8561         (execute_return_slot_opt): Ditto.
8562         * tree-ssa-alias.c (compute_may_aliases): Ditto.
8563         (create_structure_vars): Ditto.
8564         * loop-init.c (rtl_loop_init): Ditto.
8565         (rtl_loop_done): Ditto.
8566         (rtl_move_loop_invariants): Ditto.
8567         (rtl_unswitch): Ditto.
8568         (rtl_unroll_and_peel_loops): Ditto.
8569         (rtl_doloop): Ditto.
8570         * gimple-low.c (lower_function_body): Ditto.
8571         (mark_used_blocks): Ditto.
8572         * tree-ssa-sink.c (execute_sink_code): Ditto.
8573         * ipa-inline.c (cgraph_decide_inlining): Ditto.
8574         (cgraph_early_inlining): Ditto.
8575         * global.c (rest_of_handle_global_alloc): Ditto.
8576         * jump.c (cleanup_barriers): Ditto.
8577         (purge_line_number_notes): Ditto.
8578         * ifcvt.c (rest_of_handle_if_conversion): Ditto.
8579         (rest_of_handle_if_after_reload): Ditto.
8580         * tree-ssa-loop.c (tree_ssa_loop_init): Ditto.
8581         (tree_ssa_loop_im): Ditto.
8582         (tree_ssa_loop_unswitch): Ditto.
8583         (tree_vectorize): Ditto.
8584         (tree_linear_transform): Ditto.
8585         (tree_ssa_loop_ivcanon): Ditto.
8586         (tree_ssa_empty_loop): Ditto.
8587         (tree_ssa_loop_bounds): Ditto.
8588         (tree_complete_unroll): Ditto.
8589         (tree_ssa_loop_prefetch): Ditto.
8590         (tree_ssa_loop_ivopts): Ditto.
8591         (tree_ssa_loop_done): Ditto.
8592         * predict.c (tree_estimate_probability): Ditto.
8593         * recog.c (split_all_insns_noflow): Ditto.
8594         (rest_of_handle_peephole2): Ditto.
8595         (rest_of_handle_split_all_insns): Ditto.
8596         * tree-eh.c (lower_eh_constructs): Ditto.
8597         * regmove.c (rest_of_handle_regmove): Ditto.
8598         (rest_of_handle_stack_adjustments): Ditto.
8599         * local-alloc.c (rest_of_handle_local_alloc): Ditto.
8600         * function.c (instantiate_virtual_regs): Ditto.
8601         (init_function_for_compilation): Ditto.
8602         (rest_of_handle_check_leaf_regs): Ditto.
8603         * gcse.c (rest_of_handle_jump_bypass): Ditto.
8604         (rest_of_handle_gcse): Ditto.
8605         * ipa-type-escape.c (type_escape_execute): Ditto.
8606         * alias.c (rest_of_handle_cfg): Ditto.
8607         * tree-if-conv.c (main_tree_if_conversion): Ditto.
8608         * profile.c (rest_of_handle_branch_prob): Ditto.
8609         * tree-ssa-phiopt.c (tree_ssa_phiopt): Ditto.
8610         * rtl-factoring.c (rest_of_rtl_seqabstr): Ditto.
8611         * bt-load.c (rest_of_handle_branch_target_load_optimize): Ditto
8612         * tree-dfa.c (find_referenced_vars): Ditto.
8613         * except.c (set_nothrow_function_flags): Ditto.
8614         (convert_to_eh_region_ranges): Ditto.
8615         (rest_of_handle_eh): Ditto.
8616         * emit-rtl.c (unshare_all_rtl): Ditto.
8617         (remove_unnecessary_notes): Ditto.
8618         * except.h (set_nothrow_function_flags): Ditto.
8619         (convert_to_eh_region_ranges): Ditto.
8620         * cfgexpand.c (tree_expand_cfg): Ditto.
8621         * tree-cfgcleanup.c (merge_phi_nodes): Ditto.
8622         * tree-ssa-pre.c (do_pre): Ditto.
8623         (execute_fre): Ditto.
8624         * cfgcleanup.c (rest_of_handle_jump): Ditto.
8625         (rest_of_handle_jump2): Ditto.
8626         * tree-sra.c (tree_sra): Ditto.
8627         * tree-mudflap.c (execute_mudflap_function_ops): Ditto.
8628         (execute_mudflap_function_decls): Ditto.
8629         * tree-ssa-copy.c (do_copy_prop): Ditto.
8630         (do_store_copy_prop): Ditto.
8631         * ipa-prop.h (ipcp_driver): Ditto.
8632         * cfglayout.c (insn_locators_initialize): Ditto.
8633         * tree-ssa-forwprop.c
8634         (tree_ssa_forward_propagate_single_use_vars): Ditto.
8635         * cfglayout.h (insn_locators_initialize): Ditto.
8636         * tree-ssa-dce.c (tree_ssa_dce): Ditto.
8637         * tree-ssa.c (execute_early_warn_uninitialized): Ditto.
8638         (execute_late_warn_uninitialized): Ditto.
8639         * rtl.h (cleanup_barriers): Ditto.
8640         (split_all_insns_noflow): Ditto.
8641         (purge_line_number_notes): Ditto.
8642         (unshare_all_rtl): Ditto.
8643         (remove_unnecessary_notes): Ditto.
8644         (recompute_reg_usage): Ditto.
8645         (variable_tracking_main): Ditto.
8646         * integrate.c (emit_initial_value_sets): Ditto.
8647         * integrate.h (emit_initial_value_sets): Ditto.
8648         * tree-optimize.c (execute_free_datastructures): Ditto
8649         (execute_free_cfg_annotations): Ditto.
8650         (execute_fixup_cfg): Ditto.
8651         (execute_cleanup_cfg_pre_ipa): Ditto.
8652         (execute_cleanup_cfg_post_optimizing): Ditto.
8653         (execute_init_datastructures): Ditto.
8654         * tree-object-size.c (compute_object_sizes): Ditto.
8655         * combine.c (rest_of_handle_combine): Ditto.
8656         * tree-outof-ssa.c (rewrite_out_of_ssa): Ditto.
8657         * bb-reorder.c (duplicate_computed_gotos): Ditto.
8658         (rest_of_handle_reorder_blocks): Ditto.
8659         (rest_of_handle_partition_blocks): Ditto.
8660         * var-tracking.c (variable_tracking_main): Ditto.
8661         * tree-profile.c (tree_profiling): Ditto.
8662         * tree-vect-generic.c (expand_vector_operations): Ditto.
8663         * reg-stack.c (rest_of_handle_stack_regs): Ditto.
8664         * sched-rgn.c (rest_of_handle_sched): Ditto.
8665         (rest_of_handle_sched2): Ditto.
8666         * basic-block.h (free_bb_insn): Ditto.
8667         * tree-ssa-structalias.c (ipa_pta_execute): Ditto.
8668         * tree-cfg.c (execute_build_cfg): Ditto.
8669         (remove_useless_stmts): Ditto.
8670         (split_critical_edges): Ditto.
8671         (execute_warn_function_return): Ditto.
8672         (execute_warn_function_noreturn): Ditto.
8673         * tree-ssa-reassoc.c (execute_reassoc): Ditto.
8674         * cfgrtl.c (free_bb_for_insn): Ditto.
8675         * passes.c (execute_one_pass): Run additional
8676         todos returned by execute function.
8677         * tree-pass.h (struct tree_opt_pass): Make execute
8678         return a value.
8679
8680 2006-03-02  Richard Guenther  <rguenther@suse.de>
8681
8682         * tree-ssa-alias.c (find_used_portions): Consider taking
8683         the address as making the variable not write-only.
8684
8685 2006-03-02  Nick Clifton  <nickc@redhat.com>
8686
8687         * config.gcc (default_use_cxa_atexit): Extend the description of
8688         this configure variable.  Set its default value to "yes" for
8689         Linux, NetBSD and ELF targets on the assumption that they will
8690         use C libraries with the __cxa_atexit function.
8691
8692 2006-03-02  Ben Elliston  <bje@au.ibm.com>
8693
8694         * config/rs6000/linux-unwind.h (frob_update_context): Mark `fs'
8695         parameter as unused to suppress a build warning.
8696
8697 2006-03-02  Ben Elliston  <bje@au.ibm.com>
8698
8699         * mklibgcc.in: Depend on config/dfp-bit.h in rules that compile
8700         config/dfp-bit.c.
8701
8702 2006-03-01  Roger Sayle  <roger@eyesopen.com>
8703
8704         PR other/26489
8705         * gthr-posix.h (__gthrw2): Define to take three parameters, the
8706         declared name, the weak reference name, and the typeof name.
8707         (__gthrw): Avoid expanding the declared name suffix.
8708         (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls.
8709
8710 2006-03-01  Jakub Jelinek  <jakub@redhat.com>
8711
8712         * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
8713         from DWARF 3.
8714         (DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
8715         DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
8716         DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
8717         DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
8718         DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
8719         (DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
8720         (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
8721         DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
8722         (DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
8723         DW_DS_leading_separate, DW_DS_trailing_separate): New.
8724         (DW_END_default, DW_END_big, DW_END_little): New.
8725         (DW_END_lo_user, DW_END_hi_user): Define.
8726         (DW_LNE_lo_user, DW_LNE_hi_user): Define.
8727         (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
8728         (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
8729         DW_LANG_D): New.
8730
8731 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
8732
8733         * tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
8734         Update all users.
8735         * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage.
8736         Update all users.
8737         (TODO_update_smt_usage): Rename from TODO_update_tmt_usage.
8738         Update all users.
8739         * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE.
8740         Update all users.
8741         * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag'
8742         to 'symbol_mem_tag'.
8743         Update all users.
8744         * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT
8745         rename.
8746
8747 2006-03-01  Roger Sayle  <roger@eyesopen.com>
8748
8749         * builtins.c (fold_builtin_copysign): Delete unreachable code.
8750
8751 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
8752
8753         PR target/25761
8754         * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
8755         MACHO_DYNAMIC_NO_PIC_P.
8756         (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
8757
8758 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
8759
8760         PR target/26389
8761         * config/darwin-protos.h (darwin_asm_output_anchor):
8762         Declare.
8763         * config/darwin-sections.def (cstring_section):
8764         Add SECTION_MERGE to the flags.
8765         (literal4_section): Likewise.
8766         (literal8_section): Likewise.
8767         (objc_selector_refs_section): Likewise.
8768         (objc_cls_refs_section): Likewise.
8769         * config/darwin.c (darwin_asm_output_anchor): New
8770         function.
8771         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
8772
8773 2006-03-01  Daniel Berlin  <dberlin@dberlin.org>
8774
8775         Fix PR tree-optimization/26443
8776         * tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
8777         to todo and PROP_tmt_usage to properties_destroyed.
8778         * tree-ssa-ccp.c (pass_ccp): Ditto.
8779         (pass_store_ccp): Ditto.
8780         * tree-ssa-dom.c (pass_dominator): Ditto.
8781
8782 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
8783
8784         * tree-ssa-operands.c: Cleanup whitespace.
8785         (get_asm_expr_operands): Move before first invocation.
8786         (get_indirect_ref_operands): Likewise.
8787         (get_tmr_operands): Likewise.
8788         (get_call_expr_operands): Likewise.
8789         (append_def): Likewise.
8790         (append_use): Likewise.
8791         (append_v_may_def): Likewise.
8792         (append_v_must_def): Likewise.
8793         (add_call_clobber_ops): Likewise.
8794         (add_call_read_ops): Likewise.
8795         (add_stmt_operand): Likewise.
8796         (add_virtual_operand): Likewise.
8797         (build_ssa_operands): Likewise.
8798
8799 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
8800
8801         PR middle-end/26022
8802         Revert:
8803         PR middle-end/24437
8804         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
8805         with a call expr to ...
8806         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
8807
8808 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
8809
8810         * tree-vrp.c (extract_range_from_assert): Remove special
8811         handling for types with super-types.
8812
8813 2006-03-01  Ben Elliston  <bje@au.ibm.com>
8814
8815         * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
8816         and powerpc64-*-linux* configurations.
8817         * config/t-dfprules: New file.
8818
8819         * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
8820         Compile dfp-bit.c from the source directory using -DWIDTH and
8821         $DFP_CFLAGS to control the compilation of that file, rather than
8822         generating width-specific versions in the build directory.
8823         * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
8824         (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
8825
8826 2006-02-28  Zack Weinberg  <zackw@panix.com>
8827
8828         * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
8829         continues to work.
8830
8831 2006-02-28  Eric Christopher  <echristo@apple.com>
8832
8833         * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
8834         Set up IN_LIBGCC definition of TARGET_64BIT.
8835         * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
8836
8837 2006-02-28  Roger Sayle  <roger@eyesopen.com>
8838
8839         PR middle-end/14752
8840         * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
8841         BIT_XOR_EXPR, BIT_AND_EXPR>: Delete.  Let fold optimize these
8842         cases via the construction of "expr != 0".
8843
8844 2006-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
8845
8846         * alias.c (alias_invariant, alias_invariant_size): Remove.
8847         (record_base_value): Remove.
8848         (memrefs_conflict_p): Don't look at alias_invariant.
8849         (end_alias_analysis): Don't free it.
8850         * alias.h (record_base_value): Remove prototype.
8851
8852 2006-02-28  Paolo Bonzini  <bonzini@gnu.org>
8853             Adam Nemet  <anemet@caviumnetworks.com>
8854
8855         * rtl.h (truncated_to_mode): Declare it.
8856         (struct rtl_hooks): Add reg_truncated_to_mode hook.
8857         * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
8858         (RTL_HOOKS_INITIALIZER): Include it.
8859         * rtlhooks.c (reg_truncated_to_mode_general): New function.
8860         * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
8861         reg_truncated_to_mode.
8862         * rtlanal.c (truncated_to_mode): Define it.
8863         * simplify-rtx.c (simplify_unary_operation_1): Use it.
8864
8865 2006-02-28  Jeff Law  <law@redhat.com>
8866
8867         * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
8868         conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
8869         the range allowed by TYPE_PRECISION.
8870
8871         * tree.h (strct phi_arg_d): Remove unused NONZERO field.
8872
8873 2006-02-28  Dorit Nuzman  <dorit@il.ibm.com>
8874
8875         PR tree-optimization/26419
8876         * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
8877         values of n.
8878
8879 2006-02-27  Zack Weinberg  <zackw@panix.com>
8880
8881         * doc/md.texi: Fix typo in previous change.
8882
8883 2006-02-27  Kenneth Zadeck <zadeck@naturalbridge.com>
8884
8885         * df.c: Remove.
8886
8887 2006-02-27  Zack Weinberg  <zackw@panix.com>
8888
8889         * rtl.def (define_constraint, define_register_constraint)
8890         (define_memory_constraint, define_address_constraint): New MD forms.
8891         * gensupport.c (process_rtx): Put define_constraint etc on the
8892         predicate queue.
8893         * genpreds.c (process_define_predicate): Adjust comment.  Validate
8894         the name, and call validate_exp to validate the expression.
8895         (mark_mode_tests, write_extract_subexp): Can assume correct input.
8896         (write_predicate_expr): Likewise.  NAME argument no longer necessary;
8897         all callers changed.
8898         (validate_exp, needs_variable, struct constraint_data)
8899         (constraints_by_letter_table, first_constraint, last_constraint_ptr)
8900         (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
8901         (const_dbl_constraints, constraint_max_namelen)
8902         (have_register_constraints, have_memory_constraints)
8903         (have_address_constraints, have_address_constraints)
8904         (have_extra_constraints, have_const_int_constraints)
8905         (have_const_dbl_constraints, mangle, add_constraint)
8906         (process_define_constraint, process_define_register_constraint)
8907         (write_enum_constraint_num, write_lookup_constraint)
8908         (write_insn_constraint_len, write_regclass_for_constraint)
8909         (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
8910         (write_insn_extra_memory_constraint)
8911         (write_insn_extra_address_constraint)
8912         (write_satisfies_constraint_fns): New.
8913         (write_tm_preds_h): If we have new-style constraint definitions,
8914         prototype the functions generated from them, and define the
8915         old constraint interface (still used by generic code) in terms of
8916         those functions.
8917         (write_insn_preds_c): If we have new-style constraint definitions,
8918         generate all relevant functions from those definitions.
8919         (main): Handle define_constraint etc.
8920         * genoutput.c (struct constraint_data, indep_constraints)
8921         (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
8922         (mdep_constraint_len): New data structures and functions, defined
8923         #ifdef USE_MD_CONSTRAINTS.
8924         (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
8925         (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
8926         use new logic to validate operand constraints against constraint
8927         definitions.
8928         (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
8929         defined.
8930         * defaults.h: If none of the old-style constraint macros are
8931         defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
8932         old-style macros; and poison REG_CLASS_FROM_LETTER,
8933         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
8934         EXTRA_CONSTRAINT.
8935         * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
8936         * doc/md.texi: Document new constraint-definition mechanism and the
8937         C interface it provides.  Remove references to old mechanism
8938         elsewhere in the document.
8939         (Machine Constraints): Use pathnames relative to gcc directory,
8940         i.e. config/ARCH/FILE.  Change i386 section to refer to
8941         config/i386/predicates.md; update that section to match docstrings.
8942         * doc/tm.texi: Move all documentation of the old constraint-
8943         definition macros to their own section, clearly mark as obsolete.
8944
8945         * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
8946         (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
8947         definitions.
8948         * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8949         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
8950         * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
8951         constraint strings.
8952         (splits and peepholes): Use satisfies_constraint_*.
8953         * config/i386/i386.c (memory_address_length)
8954         (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
8955
8956 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
8957
8958         * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
8959         scalar operation to be put back into the loop.
8960
8961 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
8962
8963         PR other/26208
8964         * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
8965         (extract_cie_info): Handle S flag in augmentation string.
8966         (execute_cfa_program): If context->signal_frame, execute also
8967         fs->pc == context->ra instructions.
8968         (uw_frame_state_for): If context->signal_frame, don't subtract one
8969         from context->ra to find FDE.
8970         (uw_update_context_1): Set context->signal_frame to
8971         fs->signal_frame.
8972         (_Unwind_GetIPInfo): New function.
8973         * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
8974         * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
8975         of _Unwind_GetIP.
8976         * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
8977         * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
8978         * unwind-compat.c (_Unwind_GetIPInfo): New function.
8979         * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
8980         * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
8981         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
8982         * config/i386/linux-unwind.h (x86_fallback_frame_state,
8983         x86_64_fallback_frame_state): Set fs->signal_frame.
8984         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
8985         (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
8986         (frob_update_context): Likewise.  Workaround missing S flag in
8987         Linux 2.6.12 - 2.6.16 kernel vDSOs.
8988         * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
8989         Remove the psw_addr + 1 hack.
8990
8991 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
8992
8993         * tree-ssa-structalias.c (get_constraint_for): Move code to deal
8994         with aggregates here.
8995         (find_func_aliases): Remove code for &<aggregate> from here.
8996
8997 2006-02-26  Roger Sayle  <roger@eyesopen.com>
8998
8999         * fold-const.c (fold_binary) <EQ_EXPR>: Fold (~X & C) eq/ne 0 as
9000         (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
9001         Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
9002         as (X & C) ne/eq 0.
9003
9004 2006-02-26  Roger Sayle  <roger@eyesopen.com>
9005
9006         PR middle-end/19983
9007         * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
9008
9009 2006-02-26  Zdenek Dvorak <dvorakz@suse.cz>
9010
9011         * opts.c (decode_options): Do not handle flag_strength_reduce.
9012         (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
9013         and OPT_fstrength_reduce.
9014         * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
9015         flag_prefetch_loop_arrays for being nonzero.
9016         * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
9017         no-ops.
9018         (fprefetch-loop-arrays-rtl): Removed.
9019         (flag_prefetch_loop_arrays): Do not specify the value.
9020
9021         * doc/passes.texi: Update documentation of loop optimizer
9022         passes.
9023         * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
9024         -frerun-loop-opt): Remove.
9025
9026 2006-02-26  Richard Guenther  <rguenther@suse.de>
9027
9028         PR tree-optimization/26421
9029         * tree-ssa-alias.c (find_used_portions): Don't treat parameters
9030         in function calls that are ADDR_EXPRs as using the whole structure.
9031
9032 2006-02-26  Steven Bosscher  <stevenb.gcc@gmail.com>
9033
9034         * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
9035         * tree-pass.h (pass_loop_optimize): Remove.
9036         * passes.c (pass_loop_optimize): Never run it.
9037         * toplev.c (backend_init): Don't call init_loop.
9038         * opts.c (flag_loop_optimize_set): Remove.
9039         (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
9040         (common_handle_option) <OPT_floop_optimize>: Remove.  Don't disable
9041         the old RTL loop optimizer when profiling enabled.
9042         * predict.c (tree_estimate_probability): Always strip builtin_expect.
9043         * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
9044         pre-headers for the sake of the old RTL loop optimizer.
9045         * Makefile.in: Remove all references to loop.o.
9046
9047         * doc/invoke.texi: Remove all references to -floop-optimize
9048         and -frerun-loop-opt.
9049
9050 2006-02-26  Zack Weinberg  <zackw@panix.com>
9051
9052         * doc/md.texi (Machine Constraints): Refer to all files with paths
9053         relative to gcc directory (i.e. config/CPU/file).  Add missing
9054         @table @code ... @end table to M32C subsection.
9055
9056 2006-02-26  Roger Sayle  <roger@eyesopen.com>
9057
9058         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
9059         (X & 1) == 0.
9060         <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
9061
9062 2006-02-26  Roger Sayle  <roger@eyesopen.com>
9063             James A. Morrison  <phython@gcc.gnu.org>
9064
9065         PR middle-end/21137
9066         * fold-const.c (fold_binary) <EQ_EXPR>: Fold ((X>>C1)&C2) eq/ne 0,
9067         when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
9068         new constant C2<<C1, or as (X<0) or (X,false) depending upon the
9069         signedness of the shift operation.
9070
9071 2006-02-26  Dorit Nuzman  <dorit@il.ibm.com>
9072
9073         PR tree-optimization/26359
9074         * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
9075
9076 2006-02-25  Roger Sayle  <roger@eyesopen.com>
9077
9078         * simplify-rtx.c (simplify_relational_operation_1): Simplify
9079         (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y.  Simplify (X^Y) == Y
9080         as X == 0, and some symmetry related transformations.
9081         Simplify (X^C1) == C2 as X == (C1^C2).  Split long comment line.
9082
9083 2006-02-25  Roger Sayle  <roger@eyesopen.com>
9084
9085         PR middle-end/23673
9086         * fold-const.c (fold_binary) <EQ_EXPR>: Fold (X^Y) == 0 as X == Y
9087         and (X^Y) != 0 as X != Y.  Fold (X^Y) == Y as X == 0, and some
9088         symmetry related transformations.  Fold (X^C1) == C2 as
9089         X == (C1^C2).
9090
9091 2006-02-25  Juergen Weigert  <jw@suse.de>
9092         Richard Guenther  <rguenther@suse.de>
9093
9094         * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
9095
9096 2006-02-24  Adam Nemet  <anemet@caviumnetworks.com>
9097
9098         * combine.c (gen_lowpart_or_truncate): Call
9099         simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
9100
9101 2006-02-24  Diego Novillo  <dnovillo@redhat.com>
9102
9103         * doc/invoke.texi: Move -fopenmp description to "Options for
9104         Code Generation".
9105         Remove reference to -lgomp.
9106
9107 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
9108
9109         * doc/install.texi: Require GNU tar version 1.14.
9110
9111 2006-02-24  Geoffrey Keating  <geoffk@apple.com>
9112
9113         * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
9114         * doc/invoke.texi (C++ Dialect Options): Document
9115         -fno-use-cxa-get-exception-ptr.
9116         * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
9117         * configure: Regenerate.
9118         * c.opt (fuse-cxa-get-exception-ptr): New.
9119         * c-opts.c (c_common_handle_option): Handle
9120         OPT_fuse_cxa_get_exception_ptr.
9121         * c-common.c (flag_use_cxa_atexit): Update documentation.
9122         (flag_use_cxa_get_exception_ptr): New.
9123         * c-common.h (flag_use_cxa_get_exception_ptr): New.
9124         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
9125         documentation.
9126         (C_COMMON_OVERRIDE_OPTIONS): New.
9127
9128 2006-02-24  Roger Sayle  <roger@eyesopen.com>
9129
9130         PR middle-end/24952
9131         * combine.c (try_combine): Explicitly check whether GET_CODE is
9132         a SET or a CLOBBER, instead on checking that it isn't a USE.
9133
9134 2006-02-24  Roger Sayle  <roger@eyesopen.com>
9135
9136         * fold-const.c (fold_comparison): New subroutine of fold_binary
9137         containing transformations common to both the equality and
9138         ordering relational operators, factored out of fold_binary.
9139         (fold_binary): Separate out the equality operators (EQ_EXPR
9140         and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
9141         LE_EXPR and GE_EXPR), calling fold_comparison to perform the
9142         transformations common to both.
9143         (fold_div_compare): Fix latent bugs in the previously unreachable
9144         LT_EXPR and GE_EXPR cases.
9145
9146 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
9147
9148         * config/rs6000/rs6000.c (rs6000_init_builtins): Change
9149         decl libname for clog to __clog on AIX.
9150
9151         * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
9152
9153 2006-02-24  Alan Modra  <amodra@bigpond.net.au>
9154
9155         PR target/26453
9156         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
9157         output traceback table for thunks.  Localise rs6000_stack_info call.
9158
9159 2006-02-23  Roger Sayle  <roger@eyesopen.com>
9160             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9161
9162         * gthr-posix.h (__gthrw): Fix typo in comment.
9163
9164 2006-02-23  Geoffrey Keating  <geoffk@apple.com>
9165
9166         * doc/cpp.texi (Character sets): Document that we do support
9167         input files to be in any character set.
9168
9169 2006-02-23  Jeff Law  <law@redhat.com>
9170
9171         * tree.h (PHI_ARG_NONZERO): Remove.
9172         * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
9173         (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
9174         node to the new node.
9175
9176         PR tree-optimization/26425
9177         * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
9178         min/max, then assume its varying.
9179
9180 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
9181
9182         PR rtl-optimization/26316
9183         * rtlanal.c (enum may_trap_p_flags): New.
9184         (may_trap_p_1): Take flags instead of unaligned_mems argument.  Ignore
9185         MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
9186         (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
9187         (may_trap_after_code_motion_p): New function.
9188         * loop-invariant.c (find_identical_invariants): Fix dump formating.
9189         (find_invariant_insn): Use may_trap_after_code_motion_p.
9190         * rtl.h (may_trap_after_code_motion_p): Declare.
9191
9192 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
9193
9194         * emit-rtl.c (immed_double_const): Cleanup.
9195
9196 2006-02-23  Daniel Berlin  <dberlin@dberlin.org>
9197
9198         Fix PR tree-optimization/26376
9199         * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree,
9200         remove assert.
9201
9202 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
9203
9204         PR middle-end/26412
9205         * gimplify.c (omp_add_variable): Guard variable size decl test with
9206         DECL_SIZE (decl) check.
9207
9208 2006-02-23  Richard Guenther  <rguenther@suse.de>
9209
9210         PR middle-end/26439
9211         * tree-ssa-structalias.c (find_func_aliases): Handle complex types
9212         like aggregate types.
9213
9214 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
9215
9216         * configure.ac: Add --with{,out}-long-double-128 configure option.
9217         (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
9218         * configure: Rebuilt.
9219         * config.in: Rebuilt.
9220         * doc/install.texi (Options specification): Document
9221         --with-long-double-128.
9222
9223         * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
9224         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
9225         * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
9226         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
9227
9228 2006-02-23  Aldy Hernandez  <aldyh@redhat.com>
9229
9230         * config/s390/s390.c (override_options): Handle
9231         TARGET_DEFAULT_LONG_DOUBLE_128.
9232
9233         * config/alpha/alpha.c (override_options): Handle
9234         TARGET_DEFAULT_LONG_DOUBLE_128.
9235
9236         * config/sparc/sparc.c (sparc_override_options): Handle
9237         TARGET_DEFAULT_LONG_DOUBLE_128.
9238
9239 2006-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
9240
9241         * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
9242         (real-install-headers-tar, real-install-headers-cpio)
9243         (real-install-headers-cp): New targets.
9244
9245 2006-02-22  Richard Sandiford  <richard@codesourcery.com>
9246
9247         * tree.h (variable_section): Delete.
9248         * varasm.c (variable_section): Delete.
9249
9250 2006-02-22  Paolo Bonzini  <bonzini@gnu.org>
9251
9252         * install.texi: Add notes on install.texi2html.
9253         (Building in parallel): Do not use footnotes.
9254
9255 2006-02-21  Aldy Hernandez  <aldyh@redhat.com>
9256
9257         PR libgomp/26234
9258         * doc/install.texi (Configuration): Document --disable-libgomp.
9259
9260 2006-02-21  Geoffrey Keating  <geoffk@apple.com>
9261
9262         * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
9263
9264 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
9265
9266         * config/i386/sse.md (vec_extractv2df_1_sse): New.
9267         (vec_extractv2df_0_sse): New.
9268
9269 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
9270
9271         * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
9272         * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
9273         * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
9274         * dwarf2out.c (build_cfa_loc): New offset parameter.  Add it
9275         to the result of the expression.
9276         (def_cfa_1): Adjust.
9277         (frame_pointer_cfa_offset): Rename to...
9278         (frame_pointer_fb_offset): ... this.  Adjust all uses.
9279         (convert_cfa_to_loc_list): Rename to...
9280         (convert_cfa_to_fb_loc_list): ... this.  New offset parameter.
9281         Pass it on to build_cfa_loc.
9282         (compute_frame_pointer_to_cfa_displacement): Rename to...
9283         (compute_frame_pointer_to_fb_displacement): ... this.  New
9284         offset parameter.  Use it in computation.
9285         (gen_subprogram_die): Compute cfa_fb_offset with the new
9286         macro, and use it to compute the fb loc list and the
9287         displacement.
9288
9289 2006-02-21  Bernd Schmidt  <bernd.schmidt@analog.com>
9290
9291         * config/bfin/predicates.md (cc_operand): Delete predicate.  All uses
9292         replaced with register_operand.
9293         * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
9294         non-DREG is expensive.
9295         * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
9296         * config/bfin/bfin.md (movbi): Fix constraints and template for moves
9297         involving memory.
9298
9299 2006-02-21  Joseph S. Myers  <joseph@codesourcery.com>
9300
9301         * doc/install.texi2html: Use set -e.
9302
9303 2006-02-21  Richard Sandiford  <richard@codesourcery.com>
9304
9305         * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
9306         (ASM_OUTPUT_SHARED_LOCAL): Delete.
9307         * doc/invoke.texi (-fshared-data): Delete.
9308         * common.opt (fshared-data): Delete.
9309         * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
9310         (assemble_static_space): Remove #if 0 code.
9311         * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
9312         (ASM_OUTPUT_SHARED_LOCAL): Poison.
9313         * config/cris/cris.h: Remove FIXME.
9314
9315 2006-02-21  Paolo Bonzini  <bonzini@gnu.org>
9316
9317         * doc/sourcebuild.texi (Front End Directory): No more double-colon
9318         hooks.
9319
9320 2006-02-21  Jakub Jelinek  <jakub@redhat.com>
9321
9322         PR middle-end/26379
9323         * combine.c (simplify_shift_const_1): Disable nested shifts
9324         optimization for vector shifts.
9325
9326 2006-02-20  Roger Sayle  <roger@eyesopen.com>
9327
9328         PR tree-optimization/26361
9329         * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
9330         of unsigned integer types.
9331
9332 2006-02-20  Sebastian Pop  <pop@cri.ensmp.fr>
9333
9334         * tree-chrec.c (eq_evolutions_p): New.
9335         * tree-chrec.h (eq_evolutions_p): Declared.
9336         * tree-data-ref.c: Fix formatting.
9337         (datadep_stats, dependence_stats): New.
9338         (gcd): Moved...
9339         (print_direction_vector): New.
9340         (dump_data_dependence_relation): Use print_direction_vector.
9341         (object_analysis, create_data_ref): Handle COMPONENT_REF.
9342         (compute_subscript_distance): Static.
9343         (initialize_data_dependence_relation): Static.  Get the number
9344         of loops surrounding the references from the callers, and initialize
9345         DDR_SIZE_VECT to nb_loops.  Use both base_addr_differ_p and
9346         base_object_differ_p analyzers.
9347         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
9348         compute_overlap_steps_for_affine_1_2,
9349         analyze_subscript_affine_affine): Count the classified dependences.
9350         Print a message when a test failed.
9351         (can_use_analyze_subscript_affine_affine): New.
9352         (analyze_siv_subscript): Compute the data dependences on symbolic
9353         scevs that verify can_use_analyze_subscript_affine_affine.
9354         (chrec_steps_divide_constant_p): Returns true, false, or unknown.
9355         (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
9356         Handle symbolic scevs.
9357         (analyze_overlapping_iterations): Let symbolic affine scevs to be
9358         analyzed.
9359         (subscript_dependence_tester): Moved...
9360         (build_classic_dist_vector, build_classic_dir_vector): Don't use
9361         lambda_vector_clear on newly allocated vectors.  Get nb_loops from
9362         DDR_SIZE_VECT instead of getting it in parameter.
9363         (subscript_dependence_tester): ... here.  Take as a parameter
9364         loop_nest_depth.  Call build_classic_dist_vector and
9365         build_classic_dir_vector.
9366         (compute_affine_dependence): Update subscript_dependence_tester
9367         parameters.  Update datadep_stats counters.  Call
9368         compute_subscript_distance.
9369         (compute_self_dependence): Save the dist and dir vectors.  Call
9370         compute_subscript_distance.
9371         (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
9372         (compute_all_dependences): Reorder parameters as they were before
9373         conversion to VEC.  Pass nb_loops and loop_nest_depth.  Don't call
9374         compute_subscript_distance.  Update the use of
9375         compute_affine_dependence and initialize_data_dependence_relation.
9376         (find_data_references_in_loop): Handle COMPONENT_REF.
9377         (compute_data_dependences_for_loop): Initialize dependence_stats.
9378         Don't call build_classic_dist_vector and build_classic_dir_vector.
9379         Update the parameters of initialize_data_dependence_relation and
9380         compute_all_dependences.  Print the statistics from datadep_stats.
9381         (analyze_all_data_dependences): Static.  Not used until the pass for
9382         checking the data dependences is contributed.
9383         * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
9384         DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
9385         (initialize_data_dependence_relation, compute_affine_dependence,
9386         analyze_all_data_dependences, compute_subscript_distance): Removed.
9387         (print_direction_vector): New.
9388         * lambda.h (gcd): ... here.
9389         (lambda_vector_gcd): Moved here from gcd_vector.
9390         * lambda-code.c (gcd, gcd_vector): Removed.
9391         (lambda_compute_target_space): Use lambda_vector_gcd.  Fix formatting.
9392         * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
9393
9394 2006-02-20  Diego Novillo  <dnovillo@redhat.com>
9395
9396         * ipa-type-escape.c: Tidy some comments and white space.
9397         * tree-ssa-operands.c: Likewise.
9398
9399 2006-02-20  Andrew Pinski  <pinskia@physics.uc.edu>
9400
9401         PR tree-opt/25879
9402         * tree-pretty-print.c (debug_tree_chain): Walk the chains.
9403         (dump_decl_name): Do not walk the decl tree chains.
9404         * tree-pass.h (TDF_CHAIN): Remove.
9405
9406 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
9407
9408         * Makefile.in (C): Remove
9409         (PROTO): Remove
9410         (.PHONY): Remove C and PROTO
9411
9412 2006-02-20  Roger Sayle  <roger@eyesopen.com>
9413
9414         PR middle-end/26236
9415         * doc/c-tree.texi (INTEGER_TYPE): Remove reference to the now
9416         deprecated CHAR_TYPE tree code.
9417
9418 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
9419
9420         * configure.ac (target_list): Add install-info, dvi, html.
9421         * configure: Regenerate.
9422
9423         * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
9424         java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
9425         treelang/Make-lang.in: Do not use double-colon rules.
9426
9427 2006-02-20  Daniel Berlin  <dberlin@dberlin.org>
9428
9429         * tree.h (struct tree_memory_tag): Add is_used_alone member.
9430         (TMT_USED_ALONE): New macro.
9431         * tree-pass.h (PROP_tmt_usage): New property.
9432         (TODO_update_tmt_usage): New todo.
9433         * tree-ssa-alias.c (updating_used_alone): New variable.
9434         (recalculate_used_alone): New function.
9435         (compute_may_aliases): Set updating_used_alone, call
9436         recalculate_used_alone.
9437         * tree-sra.c (pass_sra): Note that this pass destroys
9438         PROP_tmt_usage, and add TODO_update_tmt_usage.
9439         * tree-ssa-forwprop.c (pass_forwprop): Ditto.
9440         * tree-flow.h (updating_used_alone): Prototype.
9441         (recalculate_used_alone): Ditto.
9442         * passes.c (execute_todo): Add code to set updating_used_alone,
9443         and call recalculate.
9444         * tree-ssa-operands.c (add_virtual_operand): Only append bare def
9445         for clobber if used alone, and add assert to verify used_alone
9446         status.
9447
9448 2006-02-20  Angel Nunez Mencias  <anunez@de.ibm.com>
9449
9450         * config/s390/s390.c (legitimize_pic_address): Assertions checking
9451         for non tls symbols added.
9452         (legitimize_address): Do nothing for PLUS expressions if one of the
9453         addends is a tls symbol reference.
9454
9455 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
9456
9457         PR bootstrap/25476
9458
9459         * Makefile.in (LDFLAGS): Define from autoconf substitution.
9460
9461         * Makefile.in (BOOTSTRAPPING): New.
9462         (quickstrap): New definition if BOOTSTRAPPING=yes.
9463
9464         * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages.
9465         * configure.ac: Substitute all_selected_languages with the languages
9466         that were configured.  For all the other variables except
9467         lang_specs_files, include all the languages in the tree.
9468         * configure: Regenerate.
9469
9470         * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory,
9471         if there is one.  Run the commands to run fixincludes in the same
9472         subshell.
9473
9474         * doc/makefile.texi: Document new makefile targets from toplevel bootstrap.
9475         * doc/install.texi: Document exact conventions for searching target tools.
9476         Document --with-build-time-tools.  Document toplevel bootstrap.  Document
9477         something more about building an Ada cross-compiler.  Don't list GNU Make
9478         requirements which affect all platforms.
9479
9480 2006-02-19  Roger Sayle  <roger@eyesopen.com>
9481
9482         PR middle-end/19543
9483         * varasm.c (compare_constant) <INTEGER_CST>: Integer constants are
9484         only equivalent if the have both the same mode and precision.
9485
9486 2006-02-20  Ben Elliston  <bje@au.ibm.com>
9487
9488         * doc/tree-ssa.texi (Interfaces): Describe low vs. high GIMPLE.
9489
9490 2006-02-19  Roger Sayle  <roger@eyesopen.com>
9491             Steven Bosscher  <stevenb.gcc@gmail.com>
9492
9493         * gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
9494         constant pool references to identify stack mode constants.
9495         * rtlanal.c (constant_pool_constant_p): New predicate to check
9496         whether operand is a floating point constant in the pool.
9497         * rtl.h (constant_pool_constant_p): Prototype here.
9498         * loop.c (scan_loop): Avoid hoisting constants from the constant
9499         pool on STACK_REGS targets.
9500         (load_mems): Likewise.
9501         * loop-invariant.c (get_inv_cost): Make hoisting constant pool
9502         loads into x87 registers expensive in terms of register pressure.
9503
9504 2006-02-19  Roger Sayle  <roger@eyesopen.com>
9505
9506         * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to
9507         __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined.
9508
9509 2006-02-19  David Edelsohn  <edelsohn@gnu.org>
9510
9511         * config/rs6000/xcoff.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
9512         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_anchor): Define.
9513
9514 2006-02-19  Daniel Berlin  <dberlin@dberlin.org>
9515
9516         * doc/invoke.texi: Document -fipa-pta.
9517         * common.opt: Add ipa-pta option.
9518         * tree-ssa-structalias.c (DONT_PROPAGATE_WITH_ANYTHING): Removed.
9519         (do_sd_constraint): Enable DONT_PROPAGATE_WITH_ANYTHING code.
9520         (do_ds_constraint): Ditto.
9521         (get_constraint_for): Only add to referenced_vars if
9522         referenced_vars exists.
9523         (insert_into_field_list): Rewrite to do this unsorted.
9524         (insert_into_field_list_sorted): Rename old insert_into_field_list
9525         to this.
9526         (create_function_info_for): Use insert_into_field_list_sorted.
9527         (create_variable_info_for): Rewrite so it uses unsorted version,
9528         since the field list is sorted.
9529         (intra_create_variable_infos): Only add to referenced_vars if
9530         referenced_vars exists.
9531         (ipa_pta_execute): Init heapvars, and delete when done.
9532         * passes.c (init_optimization_passes): Add call to pass_ipa_pta.
9533
9534 2006-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9535
9536         * doc/install.texi: Add missing `@samp'.
9537
9538 2006-02-18  Andrew Pinski <pinskia@physics.uc.edu>
9539
9540         * config/rs6000/darwin.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P):
9541         Use the arguments.
9542
9543 2006-02-18  Mark Wielaard  <mark@klomp.org>
9544
9545         * doc/contrib.texi (Contributors): Add classpath/libgcj hackers
9546         who added new 4.1 features, bug fixes and integration support.
9547
9548 2006-02-18  David Edelsohn  <edelsohn@gnu.org>
9549
9550         PR target/26350
9551         * config/rs6000/rs6000.md (extenddftf2): Force 0.0 to validized
9552         MEM for ABI_V4 pic.
9553
9554 2006-02-18  Richard Sandiford  <richard@codesourcery.com>
9555
9556         * cselib.c (cselib_init): Change RTX_SIZE to RTX_CODE_SIZE.
9557         * emit-rtl.c (copy_rtx_if_shared_1): Use shallow_copy_rtx.
9558         (copy_insn_1): Likewise.  Don't copy each field individually.
9559         Reindent.
9560         * read-rtl.c (apply_macro_to_rtx): Use RTX_CODE_SIZE instead
9561         of RTX_SIZE.
9562         * reload1.c (eliminate_regs): Use shallow_copy_rtx.
9563         * rtl.c (rtx_size): Rename variable to...
9564         (rtx_code_size): ...this.
9565         (rtx_size): New function.
9566         (rtx_alloc_stat): Use RTX_CODE_SIZE instead of RTX_SIZE.
9567         (copy_rtx): Use shallow_copy_rtx.  Don't copy each field individually.
9568         Reindent.
9569         (shallow_copy_rtx_stat): Use rtx_size instead of RTX_SIZE.
9570         * rtl.h (rtx_code_size): New variable.
9571         (rtx_size): Change from a variable to a function.
9572         (RTX_SIZE): Rename to...
9573         (RTX_CODE_SIZE): ...this.
9574
9575         PR target/9703
9576         PR tree-optimization/17106
9577         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Document.
9578         (Anchored Addresses): New section.
9579         * doc/invoke.texi (-fsection-anchors): Document.
9580         * doc/rtl.texi (SYMBOL_REF_IN_BLOCK_P, SYMBOL_FLAG_IN_BLOCK): Likewise.
9581         (SYMBOL_REF_ANCHOR_P, SYMBOL_FLAG_ANCHOR): Likewise.
9582         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): Likewise.
9583         * hooks.c (hook_bool_mode_rtx_false): New function.
9584         * hooks.h (hook_bool_mode_rtx_false): Declare.
9585         * gengtype.c (create_optional_field): New function.
9586         (adjust_field_rtx_def): Add the "block_sym" field for SYMBOL_REFs when
9587         SYMBOL_REF_IN_BLOCK_P is true.
9588         * target.h (output_anchor, use_blocks_for_constant_p): New hooks.
9589         (min_anchor_offset, max_anchor_offset): Likewise.
9590         (use_anchors_for_symbol_p): New hook.
9591         * toplev.c (compile_file): Call output_object_blocks.
9592         (target_supports_section_anchors_p): New function.
9593         (process_options): Check that -fsection-anchors is only used on
9594         targets that support it and when -funit-at-a-time is in effect.
9595         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Only create DECL_RTL
9596         if the decl doesn't have one.
9597         * dwarf2out.c: Remove instantiations of VEC(rtx,gc).
9598         * expr.c (emit_move_multi_word, emit_move_insn): Pass the result
9599         of force_const_mem through use_anchored_address.
9600         (expand_expr_constant): New function.
9601         (expand_expr_addr_expr_1): Call it.  Use the same modifier when
9602         calling expand_expr for INDIRECT_REF.
9603         (expand_expr_real_1): Pass DECL_RTL through use_anchored_address
9604         for all modifiers except EXPAND_INITIALIZER.  Use expand_expr_constant.
9605         * expr.h (use_anchored_address): Declare.
9606         * loop-unroll.c: Don't declare rtx vectors here.
9607         * explow.c: Include output.h.
9608         (validize_mem): Call use_anchored_address.
9609         (use_anchored_address): New function.
9610         * common.opt (-fsection-anchors): New switch.
9611         * varasm.c (object_block_htab, anchor_labelno): New variables.
9612         (hash_section, object_block_entry_eq, object_block_entry_hash)
9613         (use_object_blocks_p, get_block_for_section, create_block_symbol)
9614         (use_blocks_for_decl_p, change_symbol_section): New functions.
9615         (get_variable_section): New function, split out from assemble_variable.
9616         (make_decl_rtl): Create a block symbol if use_object_blocks_p and
9617         use_blocks_for_decl_p say so.  Use change_symbol_section if the
9618         symbol has already been created.
9619         (assemble_variable_contents): New function, split out from...
9620         (assemble_variable): ...here.  Don't output any code for
9621         block symbols; just pass them to place_block_symbol.
9622         Use get_variable_section and assemble_variable_contents.
9623         (get_constant_alignment, get_constant_section, get_constant_size): New
9624         functions, split from output_constant_def_contents.
9625         (build_constant_desc): Create a block symbol if use_object_blocks_p
9626         says so.  Or into SYMBOL_REF_FLAGS.
9627         (assemble_constant_contents): New function, split from...
9628         (output_constant_def_contents): ...here.  Don't output any code
9629         for block symbols; just pass them to place_section_symbol.
9630         Use get_constant_section and get_constant_alignment.
9631         (force_const_mem): Create a block symbol if use_object_blocks_p and
9632         use_blocks_for_constant_p say so.  Or into SYMBOL_REF_FLAGS.
9633         (output_constant_pool_1): Add an explicit alignment argument.
9634         Don't switch sections here.
9635         (output_constant_pool): Adjust call to output_constant_pool_1.
9636         Switch sections here instead.  Don't output anything for block symbols;
9637         just pass them to place_block_symbol.
9638         (init_varasm_once): Initialize object_block_htab.
9639         (default_encode_section_info): Keep the old SYMBOL_FLAG_IN_BLOCK.
9640         (default_asm_output_anchor, default_use_aenchors_for_symbol_p)
9641         (place_block_symbol, get_section_anchor, output_object_block)
9642         (output_object_block_htab, output_object_blocks): New functions.
9643         * target-def.h (TARGET_ASM_OUTPUT_ANCHOR): New macro.
9644         (TARGET_ASM_OUT): Include it.
9645         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): New macro.
9646         (TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET): New macros.
9647         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): New macro.
9648         (TARGET_INITIALIZER): Include them.
9649         * rtl.c (rtl_check_failed_block_symbol): New function.
9650         * rtl.h: Include vec.h.  Declare heap and gc rtx vectors.
9651         (block_symbol, object_block): New structures.
9652         (rtx_def): Add a block_symbol field to the union.
9653         (BLOCK_SYMBOL_CHECK): New macro.
9654         (rtl_check_failed_block_symbol): Declare.
9655         (SYMBOL_FLAG_IN_BLOCK, SYMBOL_FLAG_ANCHOR): New SYMBOL_REF flags.
9656         (SYMBOL_REF_IN_BLOCK_P, SYMBOL_REF_ANCHOR_P): New predicates.
9657         (SYMBOL_FLAG_MACH_DEP_SHIFT): Bump by 2.
9658         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): New accessors.
9659         * output.h (output_section_symbols): Declare.
9660         (object_block): Name structure.
9661         (place_section_symbol, get_section_anchor, default_asm_output_anchor)
9662         (default_use_anchors_for_symbol_p): Declare.
9663         * Makefile.in (RTL_BASE_H): Add vec.h.
9664         (explow.o): Depend on output.h.
9665         * config/rs6000/rs6000.c (TARGET_MIN_ANCHOR_OFFSET): Override default.
9666         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
9667         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
9668         (rs6000_use_blocks_for_constant_p): New function.
9669
9670 2006-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9671
9672         * doc/install.texi (hppa*-hp-hpux*): Update for 4.1.0.
9673
9674 2006-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
9675
9676         PR tree-opt/25680
9677         * tree-ssa-ccp.c (ccp_fold): Handle store CCP of REALPART_EXPR and
9678         IMAGPART_EXPR.
9679
9680 2006-02-18  Diego Novillo  <dnovillo@redhat.com>
9681
9682         * tree-flow.h (struct var_ann_d): Rename field is_alias_tag to
9683         is_aliased.
9684         Update all users.
9685
9686 2006-02-18  Jakub Jelinek  <jakub@redhat.com>
9687
9688         PR middle-end/26334
9689         * stmt.c (decl_overlaps_hard_reg_set_p): Use DECL_HARD_REGISTER
9690         instead of DECL_REGISTER.
9691
9692 2006-02-18  Olivier Hainque  <hainque@adacore.com>
9693
9694         PR ada/13408
9695         * pa.h (WIDEST_HARDWARE_FP_SIZE): Define.
9696
9697 2006-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9698
9699         PR target/24837
9700         * config.gcc: Define UCLIBC_DEFAULT to 0 or 1.
9701         * opth-gen.awk: Handle Var and InverseMask together.
9702         * config/linux.opt (muclibc, mglibc): Use Var(linux_uclibc).
9703         * config/linux.h: Use #if not #ifdef for testing UCLIBC_DEFAULT.
9704         (TARGET_C99_FUNCTIONS): Test OPTION_GLIBC not TARGET_GLIBC.
9705         (CHOOSE_DYNAMIC_LINKER): Give an error for -mglibc and -muclibc
9706         used together.
9707         (UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
9708         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
9709         * config/alpha/linux-elf.h (GLIBC_DYNAMIC_LINKER,
9710         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
9711         LINUX_DYNAMIC_LINKER): Define.
9712         (ELF_DYNAMIC_LINKER): Define to LINUX_DYNAMIC_LINKER.
9713         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): Define to
9714         TARGET_GLIBC.
9715         * config/cris/linux.h (GLIBC_DYNAMIC_LINKER): Define.
9716         (CRIS_LINK_SUBTARGET_SPEC): Pass a -dynamic-linker option.
9717         * config/frv/linux.h (GLIBC_DYNAMIC_LINKER): Define.
9718         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9719         (TARGET_C99_FUNCTIONS): Don't define.
9720         * config/i386/linux.h (DYNAMIC_LINKER): Rename to
9721         GLIBC_DYNAMIC_LINKER.
9722         (SUBTARGET_EXTRA_SPECS): Use LINUX_DYNAMIC_LINKER.
9723         * config/i386/linux64.h (GLIBC_DYNAMIC_LINKER32,
9724         GLIBC_DYNAMIC_LINKER64): Define.
9725         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
9726         LINUX_DYNAMIC_LINKER64.
9727         * config/ia64/linux.h (GLIBC_DYNAMIC_LINKER): Define.
9728         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9729         * config/m32r/linux.h (GLIBC_DYNAMIC_LINKE): Define.
9730         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9731         * config/m68k/linux.h (GLIBC_DYNAMIC_LINKER): Define.
9732         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9733         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32,
9734         GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32,
9735         UCLIBC_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKERN32): Define.
9736         (LINK_SPEC): Use LINUX_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKER64
9737         and LINUX_DYNAMIC_LINKER32.
9738         * config/mn10300/linux.h (GLIBC_DYNAMIC_LINKER): Define.
9739         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9740         * config/pa/pa-linux.h (GLIBC_DYNAMIC_LINKER): Define.
9741         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9742         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define to
9743         TARGET_GLIBC.
9744         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
9745         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64,
9746         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
9747         CHOOSE_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
9748         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
9749         (LINK_OS_LINUX_SPEC32): Use LINUX_DYNAMIC_LINKER32.
9750         (LINK_OS_LINUX_SPEC64): Use LINUX_DYNAMIC_LINKER64.
9751         * config/rs6000/sysv4.h (GLIBC_DYNAMIC_LINKER,
9752         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
9753         LINUX_DYNAMIC_LINKER): Define.
9754         (LINK_OS_LINUX_SPEC): Use LINUX_DYNAMIC_LINKE.
9755         * config/s390/linux.h (GLIBC_DYNAMIC_LINKER32,
9756         GLIBC_DYNAMIC_LINKER64): Define.
9757         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
9758         LINUX_DYNAMIC_LINKER64.
9759         * config/sh/linux.h (GLIBC_DYNAMIC_LINKER): Define.
9760         (SUBTARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9761         * config/sparc/linux.h (GLIBC_DYNAMIC_LINKER,
9762         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
9763         LINUX_DYNAMIC_LINKER): Define.
9764         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9765         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
9766         * config/sparc/linux64.h (GLIBC_DYNAMIC_LINKER32,
9767         GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER32,
9768         UCLIBC_DYNAMIC_LINKER64, CHOOSE_DYNAMIC_LINKER,
9769         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
9770         (LINK_ARCH32_SPEC): Use LINUX_DYNAMIC_LINKER32.
9771         (LINK_ARCH64_SPEC, LINK_SPEC): Use LINUX_DYNAMIC_LINKER64.
9772         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
9773         * config/xtensa/linux.h (GLIBC_DYNAMIC_LINKER): Define.
9774         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9775         * doc/invoke.texi (-muclibc): Remove caveat about supported
9776         targets.
9777
9778 2006-02-17  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
9779
9780         * doc/cpp.texi (__TIMESTAMP__): Document.
9781
9782 2006-02-17  Roger Sayle  <roger@eyesopen.com>
9783
9784         PR middle-end/25600
9785         * fold-const.c (fold_binary): Fold (X >> C) != 0 into X < 0 when
9786         C is one less than the width of X (and related transformations).
9787         * simplify-rtx.c (simplify_unary_operation_1): Transform
9788         (neg (lt x 0)) into either (ashiftrt X C) or (lshiftrt X C)
9789         depending on STORE_FLAG_VALUE, were C is one less then the
9790         width of X.
9791
9792 2006-02-17  Daniel Berlin  <dberlin@dberlin.org>
9793
9794         Fix PR tree-optimization/26341
9795         * tree-ssa-operands.c (add_virtual_operand): Remove assert
9796         about NAME_MEMORY_TAG's.
9797
9798 2006-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9799
9800         PR target/26255
9801         * pa.md: Create separate HI and QI move patterns for 32-bit and 64-bit
9802         with hardware float support, and software float support.  Add fcpy
9803         alternative to hardware patterns.  Add alternatives to copy between
9804         general and floating-point registers to the 32-bit pattern.
9805         * pa.c (pa_secondary_reload): Don't abort if reload tries to find a
9806         secondary reload to load a QI or HI mode constant into a floating
9807         point register.
9808         * pa32-regs.h (VALID_FP_MODE_P): Allow QImode and HImode.
9809         * pa64-regs.h (VALID_FP_MODE_P): Likewise.
9810
9811 2006-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
9812
9813         PR target/26272
9814         * config/rs6000/darwin.md (load_macho_picbase_si): Add
9815         pc to the pattern.
9816         (load_macho_picbase_di): Likewise.
9817
9818 2006-02-16  Jeff Law  <law@redhat.com>
9819
9820         * tree-vrp.c (set_value_range_to_nonnegative): New function.
9821         (vrp_expr_computes_nonnegative, ssa_name_nonnegative_p): Likewise.
9822         (ssa_name_nonzero_p): Likewise.
9823         (get_value_range): Return NULL if VRP is not running.
9824         (extract_range_from_expr): Fallback to tree_expr_XXX_p if
9825         VRP routines do not discover a range.
9826         (vrp_finalize): Clear VR_VALUE to indicate VRP is not running.
9827         * tree.h (ssa_name_nonzero_p, ssa_name_nonnegative_p): Prototype.
9828         * fold-const.c (tree_expr_nonzero_p): For SSA_NAMEs, query VRP.
9829         (tree_expr_nonnegative_p): Similarly.
9830         * tree-ssa-dom.c (nonzero_vars, nonzero_vars_stack): Remove.
9831         (restore_nonzero_vars_to_original_value): Remove.
9832         (unsafe_associative_fp_binop): Remove.
9833         (tree_ssa_dominator_optimize): Remove initialization and
9834         finalization of nonzero_vars and nonzero_vars_stack.
9835         (dom_opt_initialize_block): No longer push marker on
9836         nonzero_vars_stack.
9837         (dom_opt_finalize_block): No longer call
9838         restore_nonzero_vars_to_original_value.
9839         (record_equivalences_from_phis): No longer look for
9840         nonzero PHI arguments.
9841         (cprop_into_successor_phis): No longer propagate nonzero
9842         property into PHI arguments.  Lose unused argument.  Caller
9843         updated.
9844         (record_equivalences_from_stmt): No longer record nonzero
9845         values for SSA_NAMEs.
9846         (lookup_avail_expr): No longer use nonzero_vars.
9847
9848         * stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly
9849         for sizetype when sizetype is unsigned.
9850
9851 2006-02-16  Denis Nagorny <denis_nagorny@linux.intel.com>
9852
9853         PR rtl-optimization/25603
9854         * reload.c (reg_inc_found_and_valid_p): New. Check REG_INC note.
9855         (regno_clobbered_p): Use it. Reusing SETS argument for REG_INC case.
9856         * reload1.c (choose_reload_regs): Added call of regno_clobbered_p
9857         with new meaning of SETS.
9858
9859 2006-02-16  Joseph S. Myers  <joseph@codesourcery.com>
9860
9861         PR target/20353
9862         PR target/24578
9863         PR target/24837
9864         * config/linux.opt: New file.
9865         * config/linux.h (CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
9866         LINUX_DYNAMIC_LINKER): Define.
9867         (TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
9868         * config.gcc (*-*-linux*): Define extra_options.
9869         (*-*-*uclibc*): Define UCLIBC_DEFAULT.
9870         (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
9871         * config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change to
9872         GLIBC_DYNAMIC_LINKER.
9873         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
9874         (LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9875         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
9876         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
9877         * doc/invoke.texi (GNU/Linux Options): New section.
9878
9879 2006-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
9880
9881         * config/sparc/sparc.md (setjmp): Rewrite.
9882         (setjmp_32): Delete.
9883         (setjmp_64): Likewise.
9884
9885 2006-02-16  Daniel Berlin <dberlin@dberlin.org>
9886
9887         * tree-ssa-operands.c (access_can_touch_variable): Fix typo in
9888          previous change.
9889
9890 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
9891
9892         * loop-invariant.c (invariant_for_use, check_dependencies): Fail for
9893         read-write uses.
9894
9895 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
9896
9897         PR rtl-optimization/26296
9898         * Makefile.in (loop-invariant.c): Add except.h dependency.
9899         * loop-invariant.c: Include except.h.
9900         (find_invariant_insn): Ignore insns satisfying can_throw_internal.
9901
9902 2005-02-16  Paul Brook  <paul@codesourcery.com>
9903
9904         * reload1.c (emit_reload_insns): Invalidate dead input registers used
9905         for reloads.
9906
9907 2006-02-16  Bernd Schmidt  <bernd.schmidt@analog.com>
9908
9909         PR rtl-optimization/25636
9910         * local-alloc.c (update_equiv_regs): Lose a bogus rtx_equal_p test
9911         when deciding whether an insn is an initializing insn.
9912
9913 2006-02-15 Daniel Berlin  <dberlin@dberlin.org>
9914
9915         * tree.c (init_ttree): Add STRUCT_FIELD_TAG handling.
9916         (tree_code_size): Ditto.
9917         * tree.h (struct tree_memory_tag): Remove parent_var.
9918         (struct tree_struct_field_tag): New.
9919         (SFT_OFFSET): New.
9920         (SFT_SIZE): New.
9921         (union tree_node): Add sft member.
9922         * tree-ssa-alias.c (get_tmt_for): Don't handle TYPE_READONLY
9923         specially here.
9924         (create_sft): Add size and offset argument, set SFT_OFFSET and
9925         SFT_SIZE.
9926         (create_overlap_variables_for): Update for SFT_OFFSET/SFT_SIZE.
9927         * treestruct.def: Add TS_STRUCT_FIELD_TAG.
9928         * tree-flow-inline.h (get_subvar_at): Update for
9929         SFT_OFFSET/SFT_SIZE.
9930         (var_can_have_subvars): Ditto.
9931         (overlap_subvar): Ditto.
9932         * print-tree.c (print_node): Print out interesting things for
9933         SFT's.
9934         * tree-flow.h (struct subvar): Remove offset and size members.
9935         * tree-ssa-operands.c (get_expr_operands): Update for
9936         get_indirect_ref_operands changes.
9937         (get_indirect_ref_operands): Call add_virtual_operand instead of
9938         add_stmt_operand.  Only recurse on base var if requested.
9939         (access_can_touch_variable): New function.
9940         (add_stmt_operand): Split virtual operand handling into ...
9941         (add_virtual_operand): Here.  Add offset, size, and for_clobber
9942         arguments.  Prune alias sets.
9943         (add_call_clobber_ops): Call add_virtual_operand.
9944
9945 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
9946
9947         PR middle-end/26300
9948         * combine.c (make_extraction): Bail out if ORIG_POS is negative.
9949
9950         * tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather
9951         than TREE_CODE as index into omp_clause_num_ops array.
9952
9953 2006-02-15  Uttam Pawar  <uttamp@us.ibm.com>
9954
9955         PR rtl-optimization/26184
9956         * modulo-sched.c (generate_reg_moves): Free bitmap vector
9957         uses_of_defs.
9958         * modulo-sched.c (sms_schedule): Free g_arr pointer.
9959         * modulo-sched.c (sms_schedule_by_order): Free bitmap pointers
9960         must_precede, must_follow and tobe_scheduled.
9961
9962         PR other/26147
9963         * opts.c (common_handle_option): Free new_option pointer.
9964         * df-core.c (df_analyze): Free postorder pointer.
9965
9966 2006-02-15  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
9967
9968         * Makefile.in: Fix the examples about the use of stamps
9969
9970 2006-02-15  Michael Matz  <matz@suse.de>
9971
9972         PR middle-end/22275
9973
9974         * stor-layout.c (layout_decl): Zero-width bitfields aren't
9975         influenced by maximum_field_alignment or DECL_PACKED.
9976         (update_alignment_for_field): Ditto.
9977         (place_field): Ditto.
9978         * doc/extend.texi (<#pragma pack>, <Type Attributes>): Document
9979         this behaviour.
9980
9981 2006-02-15  Paolo Bonzini  <bonzini@gnu.org>
9982
9983         * cfg.c (dump_flow_info): Get dump flags as an additional parameter.
9984         (debug_flow_info): Pass it.
9985         * alias.c (rest_of_handle_cfg): Adjust calls to dump_flow_info.
9986         * bb-reorder.c (reorder_basic_blocks): Likewise.
9987         * cfgcleanup.c (rest_of_handle_jump2): Likewise.
9988         * cse.c (rest_of_handle_cse, rest_of_handle_cse2): Likewise.
9989         * flow.c (life_analysis, recompute_reg_usage): Likewise.
9990         * gcse.c (gcse_main, bypass_jumps): Likewise.
9991         * ifcvt.c (rest_of_handle_if_conversion): Likewise.
9992         * local-alloc.c (rest_of_handle_local_alloc): Likewise.
9993         * loop-init.c (rtl_loop_init, rtl_loop_done): Likewise.
9994         * profile.c (compute_branch_probabilities, branch_prob): Likewise.
9995         * rtl.h (dump_flow_info): Adjust prototype.
9996         * tracer.c (rest_of_handle_tracer, tracer): Likewise.
9997         * var-tracking.c (variable_tracking_main): Likewise.
9998         * passes.c (execute_todo): Obey TDF_BLOCKS for RTL.
9999         * tree-dump.c (enable_rtl_dump_file): Enable the details and blocks
10000         options.
10001
10002 2006-02-15  Marcin Dalecki <martin@dalecki.de>
10003
10004         * tree-ssa-dom.c (dom_thread_across_edge): fix tag expression
10005         construction.
10006
10007 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
10008
10009         PR tree-optimization/26209
10010         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_cleanup_cfg.
10011         * tree-cfgcleanup.c (cleanup_control_flow): Remove dead
10012         eh edges.
10013         * tree-cfg.c (replace_uses_by): Do not alter cfg.
10014
10015 2006-02-14  Roger Sayle  <roger@eyesopen.com>
10016
10017         PR middle-end/23670
10018         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into
10019         (X,Y) and the corresponding symmetry related transformations.
10020         (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into
10021         (X,Y) and its symmetry related transformations.
10022
10023 2006-02-14  Roger Sayle  <roger@eyesopen.com>
10024
10025         * dojump.c (do_compare_rtx_and_jump): Also handle multi-word GTU
10026         and GEU.
10027
10028 2006-02-14  Adam Nemet  <anemet@caviumnetworks.com>
10029
10030         * simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
10031
10032 2006-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10033
10034         PR bootstrap/26053
10035         * configure.ac (HAVE_COMDAT_GROUP): Don't assume non-GNU linkers
10036         support COMDAT group.
10037         * configure: Regenerate.
10038
10039 2006-02-14  Roger Sayle  <roger@eyesopen.com>
10040
10041         PR middle-end/26279
10042         PR middle-end/26280
10043         PR middle-end/26283
10044         * dojump.c (do_compare_rtx_and_jump): Handle multi-word LE.
10045
10046 2006-02-14  Daniel Berlin  <dberlin@dberlin.org>
10047
10048         Fix PR tree-optimization/26260
10049
10050         * doc/invoke.texi (max-fields-for-field-sensitive): Document
10051         param.
10052         * params.h (MAX_FIELDS_FOR_FIELD_SENSITIVE): New.
10053         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Ditto.
10054         * tree-ssa-structalias.c (create_variable_info_for): Use
10055         MAX_FIELDS_FOR_FIELD_SENSITIVE.
10056
10057 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
10058
10059         * doc/invoke.texi (-fprefetch-loop-arrays, -fprefetch-loop-arrays-rtl):
10060         Document.
10061         * tree-ssa-loop-niter.c (number_of_iterations_ne,
10062         number_of_iterations_lt, number_of_iterations_cond): Remember the shape
10063         of the ending condition.
10064         * tree-ssa-loop-manip.c: Include params.h.
10065         (build_if_stmt, can_unroll_loop_p, determine_exit_conditions,
10066         tree_unroll_loop): New functions.
10067         * tree-pass.h (pass_loop_prefetch): Declare.
10068         * loop.c (rest_of_handle_loop_optimize): Test for
10069         -fprefetch-loop-arrays-rtl.
10070         * tree-scalar-evolution.h (affine_iv): Moved to tree-flow.h.
10071         * timevar.def (TV_TREE_PREFETCH): New timevar.
10072         * tree-ssa-loop.c (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
10073         pass_loop_prefetch): New.
10074         * tree-cfgcleanup.c: Include tree-scalar-evolution.h.
10075         (cleanup_tree_cfg_loop): Call scev_reset.
10076         * common.opt (fprefetch-loop-arrays-rtl): Add.
10077         * tree-ssa-loop-prefetch.c: New file.
10078         * tree-outof-ssa.c (struct value_expr_d): Add expr_vars field.
10079         (new_temp_expr_table): Initialize expr_vars.
10080         (free_temp_expr_table): Cleanup expr_vars.
10081         (check_replaceable, find_replaceable_in_bb): Prevent accumulating
10082         expressions from being merged into one.
10083         * tree-flow.h (affine_iv): Moved from tree-scalar-evolution.h.
10084         (struct tree_niter_desc): Add control, bound and cmp fields.
10085         (tree_ssa_prefetch_arrays, can_unroll_loop_p, tree_unroll_loop):
10086         Declare.
10087         * Makefile.in (tree-ssa-loop-prefetch.o): Add.
10088         (tree-cfgcleanup.o): Add SCEV_H dependency.
10089         (tree-ssa-loop-manip.o): Add PARAMS_H dependency.
10090         * passes.c (init_optimization_passes): Add pass_loop_prefetch.
10091
10092 2006-02-14  Richard Guenther  <rguenther@suse.de>
10093
10094         PR tree-optimization/26258
10095         * tree-ssa-structalias.c (find_func_aliases): Handle aggregates
10096         in PHI argument processing.
10097
10098 2006-02-13  Adam Nemet  <anemet@caviumnetworks.com>
10099
10100         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: Return
10101         new expression in the requested machine mode.
10102
10103 2006-02-13  Roger Sayle  <roger@eyesopen.com>
10104
10105         * optabs.c (expand_abs): Don't call do_jump_by_parts_greater_rtx
10106         directly, instead let do_compare_rtx_and_jump handle this for us.
10107         * expr.c (expand_expr_real_1): Likewise.
10108         * dojump.c (do_jump_by_parts_greater_rtx): Make static.  Move
10109         before do_jump_by_parts_greater.
10110         (do_jump_by_parts_greater): Move after do_jump_by_parts_greater_rtx.
10111         * expr.h (do_jump_by_parts_greater_rtx): Delete prototype.
10112
10113 2006-02-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10114
10115         * pa/quadlib.c: Use defines instead of enum qfcmp_magic.
10116
10117 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
10118
10119         PR rtl-optimization/26235
10120         * loop-invariant.c (hash_invariant_expr_1): Handle 'i' and 'n' formats.
10121         (invariant_expr_equal_p): Handle 'i' and 'n' formats.  Fail on unknown
10122         format.
10123
10124 2006-02-13  Jeff Law  <law@redhat.com>
10125
10126         * tree-vrp.c (extract_range_from_binary_expr): Remove handling of
10127         TRUTH_XOR_EPR.
10128
10129 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
10130
10131         PR middle-end/26092
10132         * gimplify.c (gimplify_call_expr): Don't call get_callee_fndecl
10133         twice if decl is a builtin.  When trying again, call get_callee_fndecl
10134         first to verify it is still a builtin.
10135
10136 2006-02-13  Geoffrey Keating  <geoffk@apple.com>
10137
10138         * dwarf2out.c (base_type_die): Don't add AT_name here.
10139         (subrange_type_die): Don't add AT_name here.
10140         (modified_type_die): Rearrange code flow.  Do add AT_name here.
10141
10142 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
10143
10144         PR rtl-optimization/26247
10145         PR rtl-optimization/26248
10146         * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode.
10147
10148 2006-02-13  Richard Sandiford  <richard@codesourcery.com>
10149
10150         * config/floatunditf.c: Use if __LDBL_MANT_DIG__ == 113.
10151         * config/fixtfdi.c: Likewise.
10152         * config/fixunstfdi.c: Likewise.
10153         * config/floatditf.c: Likewise.
10154
10155 2006-02-13  Roger Sayle  <roger@eyesopen.com>
10156
10157         PR middle-end/24427
10158         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Transform (X&C1)|C2
10159         into (X,C2) if C1 is a subset of the bits of C2.  Transform
10160         (X&C1)|C2 into X|C2 if C1|C2 == ~0.  Canonicalize (X&C1)|C2 as
10161         (X&(C1&~C2))|C2.
10162         <BIT_AND_EXPR>: Canonicalize (X|C1)&C2 as (X&C2)|(C1&C2).
10163
10164 2006-02-13  Josh Conner  <jconner@apple.com>
10165
10166         PR target/25376
10167         * varasm.c (function_section): Check for section name before
10168         calling select_section on targets that define
10169         USE_SELECT_SECTION_FOR_FUNCTIONS.  On other targets, use
10170         unlikely_text_section instead of hot_function_section if
10171         first_function_block_is_cold.
10172
10173 2006-02-13  J"orn Rennecke <joern.rennecke@st.com>
10174
10175         PR middle-end/25335
10176         * reload1.c (gen_reload): Also use find_replacement in UNARY_P case.
10177
10178 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
10179
10180         PR rtl-optimization/26222
10181         * function.c (assign_stack_temp_for_type): Do not reuse stack slots
10182         after tree->rtl expansion.
10183         * loop-invariant.c (move_invariant_reg): Use force_operand on rhs
10184         before passing it to emit_move_insn.
10185
10186 2006-02-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10187
10188         * doc/invoke.texi (-Write-strings): Document that it is enabled by
10189         default.
10190         * c.opt (-Wwrite-strings): Declare variable warn_write_strings.
10191         Clarify documentation.
10192         * c-common.h (warn_write_strings): Remove.
10193         * c-common.c (warn_write_strings): Likewise.
10194         * c-opts.c (c_common_init_options): Enable -Wwrite-strings by
10195         default for C++.
10196
10197 2006-02-12  Roger Sayle  <roger@eyesopen.com>
10198
10199         PR middle-end/25724
10200         * dojump.c (do_jump): Call do_compare_rtx_and_jump.
10201         (do_jump_parts_zero_rtx): New function renamed from
10202         do_jump_parts_equality_rtx.  Made static.  Add a mode argument.
10203         (do_jump_parts_equality_rtx): New function split out from
10204         do_jump_parts_equality.  Old implementation renamed as above.
10205         Call do_jump_parts_zero_rtx if either operand is zero.
10206         (do_jump_parts_equality): Call do_jump_parts_equality_rtx to
10207         do all of the heavy lifting.
10208         (do_compare_rtx_and_jump): Handle multi-word comparisons by
10209         calling either do_jump_by_parts_greater_rtx or
10210         do_jump_by_parts_equality_rtx.
10211         * expr.h (do_jump_by_parts_equality_rtx): Remove prototype.
10212         * expmed.c (do_cmp_and_jump): Now multi-word optimization has
10213         moved to do_compare_rtx_and_jump, call it directly.
10214         * stmt.c (do_jump_if_equal): Remove static prototype.  Add a
10215         mode argument.  Call do_compare_rtx_and_jump.
10216         (emit_case_nodes): Update calls to do_jump_if_equal.
10217
10218 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
10219
10220         PR rtl-optimization/26225
10221         * loop-invariant.c (may_assign_reg_p): Do not allow BLKmode operands.
10222
10223 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
10224
10225         PR rtl-optimization/26232
10226         * loop-invariant.c (find_invariant_insn): Ignore insns that set CC0.
10227
10228 2006-02-11  Jason Merrill  <jason@redhat.com>
10229
10230         PR tree-opt/24365
10231         * tree-inline.c (declare_return_variable): Just don't use the
10232         modify target if it's a gimple complex reg and the return slot
10233         isn't.
10234
10235 2006-02-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10236
10237         * doc/contrib.texi: Update my entry.
10238
10239 2006-02-10  Geoffrey Keating  <geoffk@apple.com>
10240
10241         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
10242
10243 2006-02-10  Diego Novillo  <dnovillo@redhat.com>
10244
10245         * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
10246         expensive.
10247
10248 2006-02-10  Zdenek Dvorak <dvorakz@suse.cz>
10249
10250         * doc/invoke.texi (-floop-optimize2): Removed.
10251         * toplev.c (process_options): Remove handling of flag_loop_optimize2.
10252         * loop-init.c (gate_handle_loop2): Do not test flag_loop_optimize2.
10253         Test flag_branch_on_count_reg only if HAVE_doloop_end.
10254         * common.opt (floop-optimize2): Removed.
10255         (fmove-loop-invariants): Enabled by default.
10256
10257 2006-02-10  Sebastian Pop  <pop@cri.ensmp.fr>
10258
10259         * tree-if-conv.c (combine_blocks): Free the result of
10260         get_loop_exit_edges.
10261
10262 2006-02-10  Jeff Law  <law@redhat.com>
10263
10264         * fold-const.c (tree_expr_nonzero_p): Fix thinko.
10265
10266         PR tree-optimization/26213
10267         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
10268         loop trying to follow SSA_NAME_VALUE chains.
10269
10270 2006-02-10  Richard Guenther  <rguenther@suse.de>
10271
10272         * tree-dfa.c (get_ref_base_and_extent): When computing maxsize
10273         deal with structures that end in implicitly variable sized arrays.
10274
10275 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
10276
10277         PR rtl-optimization/24762
10278         * df-scan.c (df_bb_refs_record): Record correct registers defined on
10279         eh edges.
10280
10281 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
10282
10283         * tree-ssa-loop-ivopts.c (struct loop_data, loop_data): Removed.
10284         (struct ivopts_data): Add regs_used field.
10285         (tree_ssa_iv_optimize_init): Do not allocate aux fields for loops.
10286         (ivopts_global_cost_for_size, determine_set_costs): Use data->regs_used
10287         instead of loop_data->regs_used;
10288         (free_loop_data): Do not free aux fields for loops.
10289         (tree_ssa_iv_optimize): Do not pass loops to tree_ssa_iv_optimize_init
10290         and tree_ssa_iv_optimize_finalize.
10291
10292 2006-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10293
10294         * config/sh/sh.h (FUNCTION_VALUE): Don't handle CHAR_TYPE.
10295
10296 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
10297
10298         PR target/26141
10299         * sh.c (sh_gimplify_va_arg_expr): Don't change the result type when
10300         computing the effective result type.
10301
10302 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
10303
10304         PR inline-asm/16194
10305         * tree.h (decl_overlaps_hard_reg_set_p) Don't declare.
10306         (tree_overlaps_hard_reg_set): Declare.
10307         * stmt.c (decl_overlaps_hard_reg_set_p): Now static.  Change return
10308         type and signature to match function type expected by walk_tree.
10309         (tree_overlaps_hard_reg_set): New function.
10310         (decl_conflicts_with_clobbers_p): Rename to:
10311         (tree_conflicts_with_clobbers_p).  Take HARD_REG_SET * argument.
10312         Use tree_overlaps_hard_reg_set.  Changed caller.
10313         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Replace
10314         decl_overlaps_hard_reg_set_p with tree_overlaps_hard_reg_set.
10315         * cris.c (cris_md_asm_clobbers): Likewise.
10316
10317 2006-02-09  Bernd Schmidt  <bernd.schmidt@analog.com>
10318
10319         * reload1.c (emit_input_reload_insns): Delete code that tries to
10320         inherit using find_equiv_reg.
10321
10322 2006-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10323
10324         * c-common.h (flag_const_strings): Don't declare.
10325         * c-common.c (flag_const_strings): Remove.
10326         * c.opt (fconst_strings): Remove.
10327         * c-opts.c (c_common_handle_option): Remove <OPT_fconst_strings>.
10328         <OPT_Wwrite_strings>: Don't set flag_const_strings.
10329         (c_common_init_options): Don't set flag_const_strings.
10330         * doc/invoke.texi (-fno-const-strings): Remove documentation.
10331
10332 2006-02-09  Richard Earnshaw  <richard.earnshaw@arm.com>
10333
10334         * arm.md (tlobits_cbranch): New pattern.
10335         * arm.h (arm_select_cc_mode): For thumb, only return CC_Nmode if
10336         testing a single bit.
10337
10338 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
10339
10340         PR tree-opt/26179
10341         * tree-ssa-pre.c (create_component_ref_by_pieces):
10342         Handle RETURN_DECL like VAR_DECL.
10343
10344 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
10345
10346         PR middle-end/26134
10347         * fold-const.c (fold_indirect_ref_1): Fold
10348         "*(foo *)&complexfoo" to "__real__ complexfoo"
10349         and "((foo*)&complexfoo)[1]" to "__imag__ complexfoo".
10350
10351 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
10352
10353         * tree-flow-inline.h (var_can_have_subvars):
10354         Volatile variables should not have subvariables.
10355
10356 2006-02-09  Diego Novillo  <dnovillo@redhat.com>
10357
10358         PR 26180
10359         * tree-vrp.c (vrp_int_const_binop): Detect overflow when
10360         multiplying unsigned values.
10361         Tidy comments.
10362
10363 2006-02-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
10364
10365         * config/sparc/sparc.c (tls_call_delay): Fix oversight.
10366
10367 2006-02-08  Jason Merrill  <jason@redhat.com>
10368
10369         PR c++/25979
10370         * tree.def: Elaborate on difference from MODIFY_EXPR.
10371         * doc/c-tree.texi (INIT_EXPR): Likewise.
10372         * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
10373         (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
10374         (gimplify_target_expr): Likewise.
10375         (gimplify_cond_expr): Remove target handling.
10376         (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
10377         (gimplify_expr): Clobber it here.
10378         (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
10379         Do return slot optimization if we have an INIT_EXPR.
10380
10381         PR tree-opt/24365
10382         * tree-inline.c (declare_return_variable): Also clear
10383         DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.
10384
10385         PR c++/16405
10386         * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.
10387
10388         PR middle-end/22439
10389         * gimplify.c (gimplify_one_sizepos): Fix typo.
10390
10391 2006-02-08  Jeff Law  <law@redhat.com>
10392
10393         PR tree-optimization/21417
10394         * tree-ssa-threadedge.c (thread_across_edge): Reject threading
10395         across a backedge if the control statement at the end of the
10396         block is data dependent on other statements in the same block.
10397         (record_temporary_equivalences_from_stmts): Remove over-conservative
10398         test for threading across backedges.
10399
10400         * tree-ssa-dce.c (remove_dead_statement): When removing a dead
10401         control statement, handle all three special cases in the same
10402         manner as they all have the same desired solution.  No longer
10403         special case edge flag updating when the post dominator is
10404         the exit block.
10405
10406 2006-02-08  Roger Sayle  <roger@eyesopen.com>
10407
10408         * tree.def (CHAR_TYPE): Remove.
10409         * dbxout.c (dbxout_type): Delete dead handling of CHAR_TYPE.
10410         * dwarf2out.c (base_type_die, is_base_type): Likewise.
10411         (gen_type_die) <ARRAY_TYPE>: Remove handling of CHAR_TYPE arrays.
10412         (gen_string_type_die): Delete unreachable function.
10413
10414         * tree-pretty-print.c (dump_generic_node): Don't handle CHAR_TYPE.
10415         * tree.c (build_int_cst_wide, type_contains_placeholder_1,
10416         type_hash_eq, variably_modified_type_p, walk_type_fields): Likewise.
10417         * tree.h (NUMERICAL_TYPE_CHECK, INTEGRAL_TYPE_P): Likewise.
10418         * builtins.c (type_to_class): Likewise.
10419         * fold-const.c (fold_convert, build_range_check,
10420         merge_ranges): Likewise.
10421         * expr.c (count_type_elements): Likewise.
10422         * c-pretty-print.c (pp_c_type_specifier): Likewise.
10423         * stor-layout.c (layout_type): Likewise.
10424         * ipa-type-escape.c (type_to_consider): Likewise.
10425         * gimplify.c (omp_firstprivatize_type_sizes,
10426         gimplify_type_sizes): Likewise.
10427         * explow.c (promote_mode): Likewise.
10428         * tree-sra.c (is_sra_scalar_type): Likewise.
10429         * varasm.c (output_constant): Likewise.
10430         * tree-inline.c (remap_type_1): Likewise.
10431         * convert.c (convert_to_pointer, convert_to_real,
10432         convert_to_integer, convert_to_complex): Likewise.
10433
10434 2006-02-08  Daniel Berlin  <dberlin@dberlin.org>
10435
10436         * df-scan.c (df_def_record_1): A set destination may
10437         be a parallel regardless of mode.
10438
10439 2006-02-08  Roger Sayle  <roger@eyesopen.com>
10440
10441         PR target/22209
10442         * config/mips/mips.h (MIN_UNITS_PER_WORD): Don't define for libgcc.
10443         * config/mips/_tilib.c: Remove.
10444         * config/fixtfdi.c: New libgcc source file.
10445         * config/fixunstfdi.c: New source file.
10446         * config/floatditf.c: New source file.
10447         * config/floatunditf.c: New souce file.
10448         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
10449         files above instead of config/mips/_tilib.c.
10450         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
10451
10452 2006-02-08  Jeff Law  <law@redhat.com>
10453
10454         PR tree-optimization/26169
10455         * tree-vrp.c (execute_vrp): Perform any queued SSA updates before
10456         threading jumps.
10457
10458 2006-02-08  Zdenek Dvorak <dvorakz@suse.cz>
10459
10460         * df.h (DF_REG_SIZE): Return the length of the initialized
10461         part of the array.
10462
10463 2006-02-08  Nathan Sidwell  <nathan@codesourcery.com>
10464
10465         * config/m68k/lb1sf68.asm (__divsf3, __divdf3, __mulsf3,
10466         __muldf3): Return a correctly signed zero.
10467
10468 2006-02-08  Paolo Bonzini  <bonzini@gnu.org>
10469
10470         * passes.c (register_one_dump_file): Accept the current properties
10471         instead of pass number.  Adjust call to dump_register.  Remove
10472         duplicated code.
10473         (register_dump_files): Now a wrapper around...
10474         (register_dump_files_1): ... this one.  Do not modify the pass
10475         structure.
10476         (next_pass_1): Cosmetic fix.
10477         (execute_todo): Keep second parameter only.  Use curr_properties
10478         instead of fetching it from the pass structure.  Check and set
10479         last_verified.
10480         (execute_one_pass): Handle TODO_set_props.  Use curr_properties
10481         instead of fetching it from the pass structure.  Fix calls to
10482         execute_todo.  Update curr_properties and initialize .vcg RTL dump
10483         after running the pass.  Reset last_verified.
10484         * tree-dump.c (dump_files): Renumber consecutively.  Put .cgraph dump
10485         at the beginning.
10486         (FIRST_AUTO_NUMBERED_DUMP): New.
10487         (dump_register): Remove "num" parameter, assign it within the
10488         function.
10489         (get_dump_file_name): Modify template for dumps.
10490         * tree-dump.h (dump_register): Adjust prototype.
10491         * tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
10492         (PROP_trees): Add PROP_gimple_lomp.
10493         (TODO_set_props): New.
10494         * gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
10495         * tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
10496         * cfgexpand.c (pass_expand): Destroy PROP_trees.
10497
10498 2006-02-08  Jakub Jelinek  <jakub@redhat.com>
10499
10500         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
10501         (sparc64-*-linux*): Likewise.
10502         * config/sparc/t-linux64 (SHLIB_MAPFILES): Removed.
10503         * config/sparc/t-linux: New file.
10504         * config/sparc/libgcc-sparc-glibc.ver (__fixtfdi, __fixunstfdi,
10505         __floatditf): Export at GCC_LDBL_3.0 if -m32 -mlong-double-128.
10506         (__divtc3, __multc3, __powitf2): Export at GCC_LDBL_4.0.0 if
10507         -m32 -mlong-double-128.
10508
10509         * config.gcc (alpha*-*-linux*): Add alpha/t-linux to tmake_file.
10510         * config/alpha/t-linux: New file.
10511         * config/alpha/libgcc-alpha-ldbl.ver: New file.
10512
10513         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Define
10514         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128.
10515         (CPP_SUBTARGET_SPEC): Don't add -D__LONG_DOUBLE_128__ here.
10516         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define
10517         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128 and TARGET_ARCH32.
10518         (CPP_ARCH32_SPEC): Remove.
10519
10520 2006-02-07  Uttam Pawar  <uttamp@us.ibm.com>
10521
10522         PR tree-optimization/26145
10523         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free
10524         bbs pointer.
10525
10526 2006-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10527
10528         PR target/26109
10529         * pa.c (attr_length_indirect_call): Don't return length 8 for distances
10530         >= 240000 when generating code for SOM runtime.
10531         (output_indirect_call): Don't use "b,l" instruction for indirect calls
10532         to $$dyncall when generating code for SOM runtime..
10533
10534 2006-02-07  Dirk Mueller  <dmueller@suse.com>
10535
10536         PR c++/18150
10537         * doc/invoke.texi (-Wsequence-point): Update documentation
10538         that -Wsequence-point is implemented for C++ as well.
10539
10540 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
10541
10542         * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
10543         * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
10544         (LIB_SPEC): Likewise.
10545         * doc/invoke.texi (SPARC options): Document -pthread.
10546
10547 2006-02-07  Geoffrey Keating  <geoffk@apple.com>
10548
10549         * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
10550         PIC addresses.
10551
10552 2006-02-07  Roger Sayle  <roger@eyesopen.com>
10553
10554         * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE.
10555         Correct comment describing BOOLEAN_TYPE.
10556
10557 2006-02-07  Dirk Mueller  <dmueller@suse.com>
10558
10559         * c.opt: C++ frontend supports -Wdiv-by-zero.
10560         * c-opts.c (c_common_handle_option): Remove dead case.
10561
10562 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
10563
10564         * configure.ac (TLS assembler check): Do not enable TLS by
10565         default on SPARC/Solaris before version 10.
10566         * configure: Regenerate.
10567
10568 2006-02-07  David Edelsohn  <edelsohn@gnu.org>
10569
10570         * doc/invoke.texi (xl-compat): Document conversion and support
10571         routine names.
10572
10573 2006-02-07  Jeff Law  <law@redhat.com>
10574
10575         * tree-vrp.c (find_conditional_asserts): Update comments.
10576         (simplify_stmt_for_jump_threading): New.
10577         (identify_jump_threads, finalize_jump_threads): New.
10578         (vrp_finalize): Call identify_jump_threads.
10579         (execute_vrp): Call finalize_jump_threads.
10580         * tree-ssa-dom.c (struct opt_stats_d): Remove num_iterations field.
10581         (vrp_element, vrp_data, vrp_element_p): Remove.
10582         (vrp_hash_elt, vrp_variables_stack): Remove.
10583         (vrp_hash, vrp_eq, record_range): Remove.
10584         (simplify_cond_and_lookup_avail_expr): Remove.
10585         (extract_range_from_cond): Remove.
10586         (thread_across_edge): Relocated into tree-ssa-threadedge.c.
10587         (simplify_stmt_for_jump_threading): New.
10588         (dom_thread_across_edge): New wrapper.
10589         (tree_ssa_dominator_optimize): No longer initialize or
10590         finalize any of the VRP datastructures.  Remove iteration
10591         step and simplify as a result of removal of iteration step.
10592         (pass_dominator): Perform a cfg cleanup after DOM.
10593         (dom_opt_finalize_block): Use the new common routines
10594         for threading jumps.  Simplify stack management slightly.
10595         No longer need to unwind VRP state.
10596         (record_equivalences_from_incoming_edge): No longer record
10597         VRP information.
10598         (eliminate_redundant_computations): No longer call
10599         simplify_cond_and_lookup_avail_expr.
10600         * tree-flow.h (potentially_threadable_block): Prototype.
10601         (thread_across_edge): Likewise.
10602         * Makefile.in (OBJS-common): Add tree-ssa-threadedge.o
10603         (tree-ssa-threadedge.o): Add dependencies.
10604         * tree-ssa-threadedge.c: New file.
10605         * passes.c (init_optimization_passes): Merge PHIs before
10606         calling VRP.  Run VRP again late in the SSA optimization pipeline.
10607
10608 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
10609
10610         * df-core.c (df_set_blocks): Do not dereference function pointers.
10611         (df_finish1): Likewise.
10612         (df_hybrid_search_forward): Likewise.
10613         (df_hybrid_search_backward): Likewise.
10614         (df_iterative_dataflow): Likewise.
10615         (df_analyze_problem): Likewise.
10616         (df_compact_blocks): Likewise.
10617         (df_dump): Likewise.
10618         * df-scan.c (df_rescan_blocks): Likewise.
10619         (df_record_entry_block_defs): Likewise.
10620
10621         * genconditions.c (write_conditions): Guard the definition of
10622         'insn_conditions' with the check on GCC version.
10623         (write_writer): Guard the traversal 'insn_conditions' with
10624         the check on GCC version.
10625
10626 2006-02-07  Richard Guenther  <rguenther@suse.de>
10627
10628         PR c++/26140
10629         Revert
10630         2006-01-30  Richard Guenther  <rguenther@suse.de>
10631         PR c++/23372
10632         * gimplify.c (gimplify_target_expr): Handle easy cases
10633         without creating a temporary.
10634
10635 2006-02-07  Pete Steinmetz  <steinmtz@us.ibm.com>
10636
10637         * sched-rgn.c (compute_dom_prob_ps, compute_trg_info): Eradicate
10638         use of float in probability computations.  Use edge probabilities
10639         in place of statically computed probabilities.
10640         (min_spec_prob): New static variable.
10641         (schedule_insns): Initialize it.
10642         (GET_SRC_PROB): Removed.
10643         * doc/invoke.texi (min-sched-prob): Renamed to min-spec-prob.
10644
10645 2006-02-07  Alexandre Oliva  <aoliva@redhat.com>
10646
10647         PR debug/24444
10648         * config/ia64/unwind-ia64.c: Revert last change.
10649         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Removed.
10650         (INCOMING_FRAME_SP_OFFSET): Define.
10651
10652 2006-02-06  Roger Sayle  <roger@eyesopen.com>
10653
10654         * config/ia64/ia64.c (hfa_element_mode): Don't handle CHAR_TYPE.
10655
10656 2006-02-07  Ben Elliston  <bje@au.ibm.com>
10657
10658         * config/i386/i386.c (ix86_scalar_mode_supported_p): New.
10659         (TARGET_SCALAR_MODE_SUPPORTED_P): Define hook.
10660         (classify_argument): Handle SDmode, DDmode, TDmode for 64-bit.
10661         (ix86_return_in_memory): Handle TDmode.
10662         (ix86_libcall_value): Handle SDmode, DDmode, TDmode.
10663         (ix86_value_regno): Return non-TDmode decimal float modes in %eax.
10664
10665 2006-02-06  Richard Sandiford  <richard@codesourcery.com>
10666
10667         * reorg.c (dbr_schedule): Use dump_file instead of file.
10668
10669 2006-02-06  Steve Ellcey  <sje@cup.hp.com>
10670
10671         PR target/25917
10672         * config/ia64/predicates.md (extr_len_operand): New predicate.
10673         * config/ia64/ia64.md (extv): Tighten constraints.
10674         (extzv): Ditto.
10675         (*tbit_and_2): Ditto.
10676         (*tbit_and_3): Ditto.
10677         (*tbit_or_2): Ditto.
10678         (*tbit_or_3): Ditto.
10679         (*bit_zero): Ditto.
10680         (*bit_one): Ditto.
10681
10682 2006-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
10683
10684         PR target/23359
10685         * config/i386/i386.md (trap): Use ASM_SHORT instead of .word.
10686
10687 2006-02-06  Zdenek Dvorak <dvorakz@suse.cz>
10688
10689         * tree-vrp.c (execute_vrp): Do not pass dump argument to.
10690         loop_optimizer_init and loop_optimizer_finalize
10691         * tree-ssa-sink.c (execute_sink_code): Ditto.
10692         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
10693         * tree-ssa-loop.c (tree_loop_optimizer_init, tree_ssa_loop_init,
10694         tree_ssa_loop_done): Ditto.
10695         * tree-ssa-pre.c (init_pre, fini_pre): Ditto.
10696         * sched-ebb.c: Include output.h.
10697         (schedule_ebbs): Do not use dump argument.
10698         * value-prof.h (struct profile_hooks): Remove profile_dump_file.
10699         * loop.c (loop_dump_stream): Removed.
10700         (loop_optimize, rest_of_handle_loop_optimize): Do not use dump
10701         argument.
10702         (scan_loop, move_movables, find_and_verify_loops, mark_loop_jump,
10703         emit_prefetch_instructions, loop_bivs_find, loop_bivs_check,
10704         final_biv_value, loop_biv_eliminable_p, loop_givs_rescan,
10705         loop_iterations, strength_reduce, record_biv, record_giv,
10706         final_giv_value, check_final_value, check_ext_dependent_givs,
10707         combine_givs, check_dbra_loop, maybe_eliminate_biv, load_mems,
10708         try_copy_prop, loop_delete_insns, try_swap_copy_prop): Use
10709         dump_file instead of loop_dump_stream.
10710         * ddg.c (print_ddg_edge, print_ddg, vcg_print_ddg): Do not call
10711         argument dump_file.
10712         * reorg.c (dbr_schedule, rest_of_handle_delay_slots): Do not use
10713         dump argument.
10714         * flow.c (life_analysis, rest_of_handle_life): Ditto.
10715         * haifa-sched.c: Include output.h
10716         (schedule_insns, sched_init): Do not use dump argument.
10717         * mode-switching.c (optimize_mode_switching): Ditto.
10718         * modulo-sched.c (stats_file): Removed.
10719         (print_node_sched_params): Do not call argument dump_file.
10720         (sms_schedule_by_order, loop_canon_p, sms_schedule,
10721         rest_of_handle_sms): Do not use dump argument.  Use dump_file instead
10722         of stats_file.
10723         * cse.c (cse_main, rest_of_handle_cse, rest_of_handle_cse2): Do not
10724         use dump argument.
10725         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize,
10726         rtl_loop_init, rtl_loop_done): Ditto.
10727         * global.c (global_alloc, rest_of_handle_global_alloc): Ditto.
10728         * predict.c (combine_predictions_for_bb, tree_estimate_probability):
10729         Ditto.
10730         * recog.c (peephole2_optimize, rest_of_handle_peephole2): Ditto.
10731         * lcm.c (pre_edge_lcm, pre_edge_rev_lcm): Ditto.
10732         * regmove.c (fixup_match_1, fixup_match_2, regmove_optimize,
10733         rest_of_handle_regmove, rest_of_handle_stack_adjustments): Ditto.
10734         * emit-rtl.c (renumber_insns): Ditto.
10735         * cfgexpand.c (add_reg_br_prob_note, expand_gimple_cond_expr,
10736         expand_gimple_basic_block, tree_expand_cfg): Ditto.
10737         * regclass.c (regclass): Ditto.
10738         * tree-outof-ssa.c (analyze_edges_for_bb, perform_edge_inserts,
10739         remove_ssa_form, rewrite_out_of_ssa): Ditto.
10740         * reg-stack.c (compensate_edge, compensate_edges, convert_regs_1,
10741         convert_regs_2, convert_regs, reg_to_stack, rest_of_handle_stack_regs):
10742         Ditto.
10743         * sched-rgn.c (schedule_insns, rest_of_handle_sched): Ditto.
10744         * local-alloc.c (rest_of_handle_local_alloc): Do not pass dump_file
10745         to regclass.
10746         * gcse.c (gcse_file, debug_stderr): Removed.
10747         (gcse_main, bypass_jumps, rest_of_handle_jump_bypass,
10748         rest_of_handle_gcse): Do not use dump argument.
10749         (cprop_jump, cprop_insn, do_local_cprop, cprop, find_implicit_sets,
10750         one_cprop_pass, bypass_block, compute_pre_data, insert_insn_end_bb,
10751         pre_edge_insert, pre_insert_copy_insn, pre_delete, one_pre_gcse_pass,
10752         compute_code_hoist_vbeinout, compute_code_hoist_data,
10753         one_code_hoisting_pass, trim_ld_motion_mems, update_ld_motion_stores,
10754         compute_store_table, build_store_vectors, insert_insn_start_bb,
10755         insert_store, remove_reachable_equiv_notes, replace_store_insn,
10756         store_motion): Use dump_file instead of gcse_file.
10757         * ipa-type-escape.c (type_escape_execute): Remove debugging comments.
10758         * profile.c (profile_dump_file): Removed.
10759         (branch_prob): Use dump_file instead of profile_dump_file.
10760         * ipa.c (cgraph_remove_unreachable_nodes): Do not call argument
10761         dump_file.
10762         * tree-ssa-copy.c (dump_copy_of): Ditto.
10763         * rtl-factoring.c (rtl_seqabstr, rest_of_rtl_seqabstr): Do not pass
10764         dump file to life_analysis.
10765         * bt-load.c (branch_target_load_optimize): Ditto.
10766         * cfgcleanup.c (rest_of_handle_jump2): Do not pass dump_file to
10767         renumber_insns.
10768         * rtl.h (cse_main, renumber_insns, schedule_insns, schedule_ebbs,
10769         regclass, dbr_schedule): Declaration changed.
10770         * sched-int.h (sched_init): Declaration changed.
10771         * tree-profile.c (tree_profile_dump_file): Removed.
10772         (tree_profile_hooks): Removed profile_dump_file hook.
10773         * rtl-profile (rtl_profile_dump_file): Removed.
10774         (rtl_profile_hooks): emoved profile_dump_file hook.
10775         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize): Declaration
10776         changed.
10777         * c-gimplify.c (c_genericize): Do not call local variable dump_file.
10778         * tree-cfg.c (build_tree_cfg): Ditto.
10779         * Makefile.in (haifa-sched.o, sched-ebb.o): Add output.h dependency.
10780         * basic-block.h (life_analysis, pre_edge_lcm, pre_edge_rev_lcm):
10781         Declaration changed.
10782         * config/sh/sh.c (sh_output_mi_thunk): Do not pass dump_file to
10783         life_analysis and schedule_insns.
10784         * config/m68hc11/m68hc11.c (m68hc11_reorg): Do not pass dump_file to
10785         life_analysis.
10786         * config/mt/mt.c (mt_machine_reorg): Do not pass dump_file to
10787         dbr_schedule.
10788         * config/mips/mips.c (mips_reorg): Ditto.
10789         * config/ia64/ia64.c (ia64_reorg): Do not pass dump_file to
10790         schedule_ebbs.
10791
10792 2006-02-06  Aldy Hernandez  <aldyh@redhat.com>
10793
10794         * config/s390/s390.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
10795         (s390_mangle_fundamental_type): New.
10796         * config/s390/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
10797         Define.
10798
10799         * config/alpha/alpha.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
10800         (alpha_mangle_fundamental_type): New.
10801         * config/alpha/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
10802         Define.
10803
10804         * config/sparc/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
10805         Define.
10806         * config/sparc/linux64.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
10807         Define.
10808         * config/sparc/sparc.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
10809         (sparc_mangle_fundamental_type): New.
10810
10811 2006-02-06  Jakub Jelinek  <jakub@redhat.com>
10812
10813         * config.gcc (s390-*-linux*): Add s390/t-linux to tmake_file.
10814         (s390x-*-linux*): Likewise.
10815         * config/s390/t-linux64 (SHLIB_MAPFILES): Removed.
10816         * config/s390/t-linux: New file.
10817
10818 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
10819
10820         * config/i386/sync.md (sync_add<mode>, sync_sub<mode>, sync_ior<mode>,
10821         sync_and<mode>, sync_xor<mode>): Operand 0 is in-out.
10822
10823 2006-02-06  Daniel Berlin  <dberlin@dberlin.org>
10824
10825         * tree-ssa-pre.c (bb_value_sets_t): Add antic_safe_loads.
10826         (ANTIC_SAFE_LOADS): New macro.
10827         (find_or_generate_expression): Add prototype.
10828         (set_contains_value): Allow null set for sake of not always having
10829         to allocate ANTIC_SAFE_LOADS.
10830         (phi_translate): Move placement of AGGREGATE_TYPE_P check.
10831         Allow COMPONENT_REF too.
10832         (valid_in_set): Allow COMPONENT_REF.
10833         Check ANTIC_SAFE_LOADS too.
10834         (compute_antic_aux): Print out ANTIC_SAFE_LOADS.
10835         (compute_rvuse_and_antic_safe): Add ANTIC_SAFE computation, and
10836         rename.
10837         (can_PRE_operation): Add COMPONENT_REF.
10838         (create_component_ref_by_pieces): New function.
10839         (create_expression_by_pieces): Use create_component_ref_by_pieces.
10840         (insert_aux): Move AGGREGATE_TYPE_P check here.
10841         (compute_avail): Set bb local stmt uids.
10842         (pass_pre): Use TODO_update_ssa_only_virtuals.
10843
10844 2006-02-06  Ben Elliston  <bje@au.ibm.com>
10845
10846         * configure.ac: Unconditionally disable decimal float by default.
10847         * configure: Regenerate.
10848
10849 2006-02-06  Ben Elliston  <bje@au.ibm.com>
10850
10851         * read-rtl.c (read_name): Terminate reading on EOF.
10852
10853 2006-02-06  Ben Elliston  <bje@au.ibm.com>
10854
10855         * dfp.c (decimal_real_arithmetic): Change second argument type
10856         from int to enum tree_code. Do not always return true, but now
10857         return result of any call to decimal_do helper functions.
10858         * dfp.h (decimal_real_arithmetic): Update prototype.
10859
10860 2006-02-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
10861
10862         * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
10863
10864 2006-02-05  Andrew Pinski  <pinskia@physics.uc.edu>
10865
10866         PR tree-opt/25251
10867         * tree-cfg.c (cleanup_dead_labels): Also don't remove
10868         forced labels.
10869
10870 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
10871
10872         * tree-vrp.c (cfg_loops): Removed.
10873         (adjust_range_with_scev, vrp_visit_assignment, execute_vrp):
10874         Use current_loops instead of cfg_loops.  Pass flags to
10875         loop_optimizer_init.
10876         * cfgloopmanip.c (fix_loop_structure): Update only available
10877         information.
10878         * tree-ssa-loop-ch.c (copy_loop_headers): Pass flags to
10879         loop_optimizer_init.
10880         * modulo-sched.c (build_loops_structure): Removed.
10881         (sms_schedule): Use loop_optimizer_init.
10882         * loop-init.c (loop_optimizer_init): Use flags to determine
10883         which properties of loops to prepare.
10884         (rtl_loop_init): Pass flags to loop_optimizer_init.
10885         * tree-ssa-sink.c (execute_sink_code): Ditto.
10886         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
10887         * tree-ssa-pre.c (init_pre): Ditto.
10888         * cfgloop.h (LOOPS_NORMAL): New.
10889         (loop_optimizer_init): Declaration changed.
10890
10891 2006-02-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10892
10893         * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
10894         * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of
10895         pa/t-pa.
10896         * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of
10897         pa/t-pa.
10898         * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of
10899         pa/x-ada.
10900         * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules.
10901         * pa/t-pa64: Delete quadlib.c rule.
10902         * pa/x-ada: Revert last change.
10903         * pa/t-pa: Revert last change.  Delete quadlib.c rule.
10904
10905 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
10906
10907         PR rtl-optimization/26087
10908         * rtlanal.c (canonicalize_condition): Do not cross basic block
10909         boundaries.
10910
10911 2006-02-04  Alexandre Oliva  <aoliva@redhat.com>
10912
10913         PR debug/24444
10914         * config/ia64/ia64.c: Include debug.h.
10915         (MAX_ARTIFICIAL_LABEL_BYTES): New.
10916         (ia64_label_after_insn, ia64_dwarf2out_def_steady_cfa): New.
10917         (IA64_CHANGE_CFA_IN_EPILOGUE): Define to 0.
10918         (process_epilogue, process_set, process_for_unwind_directive):
10919         Output unwind info only if requested.  Add CFA info if requested.
10920         Add new arguments as needed.  Adjust callers.
10921         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Override
10922         incorrect default.
10923         (DWARF2_FRAME_INFO): Define to zero.
10924         * config/ia64/unwind-ia64.c: Remove code that compensated for
10925         the CFA offset error fixed above.
10926         * config/ia64/t-ia64 (ia64.o): Depend on debug.h.
10927         * dwarf2out.c (DWARF2_FRAME_INFO): Define default.
10928         (dwarf2out_do_frame): Require nonzero DWARF2_UNWIND_INFO for
10929         -funwind-tables and -fexceptions to enable frame info.
10930         (dwarf2out_frame_init): Define initial CFA even if
10931         DWARF2_UNWIND_INFO is disabled.  Call initial_return_save if
10932         DWARF2_UNWIND_INFO is nonzero, not just defined.
10933         (dwarf2out_frame_finish): Output non-EH call frame info only
10934         if DWARF2_FRAME_INFO is nonzero.
10935         (convert_cfa_to_loc_list,
10936         compute_frame_pointer_to_cfa_displacement): Define even if
10937         unwind info is not supported.
10938         (gen_subprogram_die): Use the above unconditionally.  Remove
10939         legacy alternate code.
10940         * toplev.c (compile_file): Compile in call to
10941         dwarf2out_frame_finish if DWARF2_DEBUGGING_INFO is defined.
10942         (lang_dependent_init): Ditto for dwarf2out_frame_init.
10943
10944 2006-02-04  David Edelsohn  <edelsohn@gnu.org>
10945             Jakub Jelinek  <jakub@redhat.com>
10946
10947         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Mangle
10948         IBM extended float format long double as "g" on powerpc*-linux.
10949
10950 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10951
10952         PR target/25926
10953         * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
10954         * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
10955
10956 2006-02-03  Jason Merrill  <jason@redhat.com>
10957
10958         PR c++/25979
10959         * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.
10960
10961         PR middle-end/25977
10962         * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
10963         on the return slot if it's an NRV.
10964
10965 2006-02-03  Zdenek Dvorak <dvorakz@suse.cz>
10966
10967         * tree-ssa-loop-ivopts.c (enum use_type): Remove USE_OUTER.
10968         (dump_use, add_derived_ivs_candidates, determine_use_iv_cost,
10969         rewrite_use): Do not handle USE_OUTER.
10970         (find_interesting_uses_outer_or_nonlin, find_interesting_uses_outer,
10971         add_iv_outer_candidates, may_replace_final_value,
10972         determine_use_iv_cost_outer, rewrite_use_outer): Removed.
10973         (find_interesting_uses_op): Functionality of
10974         find_interesting_uses_outer_or_nonlin moved here.
10975         (find_interesting_uses_outside): Use find_interesting_uses_op.
10976
10977 2006-02-03  Alan Modra  <amodra@bigpond.net.au>
10978
10979         PR target/25960
10980         * config/rs6000/darwin-ldouble.c (__gcc_qadd): Preserve -0.0 result.
10981
10982 2006-02-03  Andreas Krebbel  <krebbel1@de.ibm.com>
10983             Ulrich Weigand  <uweigand@de.ibm.com>
10984
10985         PR target/25864
10986         * config/s390/2084.md ("x_fsimptf", "x_fmultf", "x_fdivtf",
10987         "x_floadtf", "x_ftrunctf", "x_ftruncdf"): New insn reservations.
10988         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): New functions.
10989         * config/s390/s390.c (struct processor_costs): Add mxbr, sqxbr, dxbr
10990         and dxr fields.
10991         (z900_cost, z990_cost, z9_109_cost): Values for the new fields added.
10992         (s390_rtx_costs): Use the new fields to calculate rtx costs.
10993         (s390_secondary_input_reload_class, s390_secondary_output_reload_class):
10994         Define secondary reloads for TFmode moves.
10995         (constant_modes): Add TFmode.
10996         (NR_C_MODES): Set to 8.
10997         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Add __LONG_DOUBLE_128__
10998         builtin define.
10999         (LONG_DOUBLE_TYPE_SIZE): Set to 128 or 64.
11000         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE, WIDEST_HARDWARE_FP_SIZE): Define.
11001         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
11002         CANNOT_CHANGE_MODE_CLASS): Consider TFmode.
11003         * config/s390/s390.md ("type" attribute): Add fsimptf, floadtf, fmultf,
11004         fdivtf, fsqrttf, ftrunctf, ftruncdf as possible values.
11005         (FPR mode macro): Add TFmode.
11006         (DSF mode macro): New.
11007         (<de>, <dee> mode attributes): Removed.
11008         (<xde>, <xdee>, <RRe>, <RXe>, <Rf> mode attributes): New.
11009         ("*cmp<mode>_ccs_0", "*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs",
11010         "*cmp<mode>_ccs_ibm", "fix_trunc<FPR:mode><GPR:mode>2_ieee",
11011         "floatdi<mode>2", "floatsi<mode>2_ieee", "*add<mode>3",
11012         "*add<mode>3_cc", "*add<mode>3_cconly", "*add<mode>3_ibm",
11013         "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly",
11014         "*sub<mode>3_ibm", "*mul<mode>3_ibm", "*fmadd<mode>", "*fmsub<mode>",
11015         "*div<mode>3", "*div<mode>3_ibm", "*neg<mode>2_cc",
11016         "*neg<mode>2_cconly", "*neg<mode>2", "*neg<mode>2_ibm",
11017         "*abs<mode>2_cc", "*abs<mode>2_cconly", "*abs<mode>2",
11018         "*abs<mode>2_ibm", "*negabs<mode>2_cc", "*negabs<mode>2_cconly",
11019         "*negabs<mode>2", "sqrt<mode>2"):
11020         Changed <de> to <xde>. R constraint replaced by <Rf>.
11021         ("*mul<mode>3"): Changed <dee> to <xdee>. R constraint replaced by
11022         <Rf>.
11023         ("fix_trunc<FPR:mode>di2"): 'FPR:' removed.
11024         ("*fmadd<mode>", "*fmsub<mode>"): FPR mode replaced by DSF.
11025         ("*movtf_64", "*movtf_31"): New insn definitions followed by 5
11026         splitters.
11027         ("movtf", "reload_outtf", "reload_intf", "trunctfdf2", "trunctfsf2",
11028         "extenddftf2", "extendsftf2"): New expanders.
11029         ("*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
11030         "*trunctfsf2_ibm", "*extenddftf2_ieee", "*extenddftf2_ibm",
11031         "*extendsftf2_ieee", "*extendsftf2_ibm"): New insn patterns.
11032         * config/s390/s390.opt (mlong-double-128, mlong-double-64):
11033         New options.
11034         * config/s390/t-crtstuff (TARGET_LIBGCC2_CFLAGS): Macro defined.
11035         * config/s390/libgcc-glibc.ver (__divtc3, __multc3, __powitf2,
11036         __fixtfti, __fixunstfti, __floattitf, __fixtfdi, __fixunstfdi,
11037         __floatditf): Add a GCC_4.1.0 symbol version tag.
11038         * doc/invoke.texi (-mlong-double-128, -mlong-double-64): Document
11039         the new options.
11040
11041 2006-02-02  Andrew Pinski  <pinskia@physics.uc.edu>
11042
11043         PR target/25377
11044         * config/i386/i386.c (ix86_function_ok_for_sibcall):
11045         Use targetm.binds_local_p instead of TREE_PUBLIC.
11046
11047 2006-02-02  Roger Sayle  <roger@eyesopen.com>
11048
11049         * tree.h (TYPE_STRING_FLAG): Document that this field may be used
11050         on INTEGER_TYPEs to indicate that it denotes a character type.
11051         * tree.c (build_common_tree_nodes): Set TYPE_STRING_FLAG on
11052         signed_char_type_node, unsigned_char_type_node and char_type_node.
11053         * dwarf2out.c (base_type_die): Treat CHAR_TYPE identically to
11054         INTEGER_TYPE.  Use TYPE_STRING_FLAG to decide whether to emit
11055         a DW_ATE_[un]signed_char instead of a DW_ATE_[un]signed.
11056
11057 2006-02-02  Zdenek Dvorak <dvorakz@suse.cz>
11058             Daniel Berlin  <dberlin@dberlin.org>
11059
11060         * tree-tailcall.c (arg_needs_copy_p): New function.
11061         (eliminate_tail_call): Use arg_needs_copy_p.
11062         (tree_optimize_tail_calls_1): Ditto. Also call add_virtual_phis.
11063         (add_virtual_phis): New function.
11064
11065 2006-02-02  Jakub Jelinek  <jakub@redhat.com>
11066
11067         * config/sparc/sparc.c (sparc_output_scratch_registers): Use
11068         #ignore instead of #scratch for %g7 .register directive.
11069
11070 2006-02-02  Andreas Tobler  <a.tobler@schweiz.ch>
11071
11072         * config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
11073         object files.
11074
11075 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
11076
11077         * flow.c (calculate_global_regs_live): Assert that there aren't any
11078         EDGE_FAKE edges.
11079
11080 2006-02-02  Paolo Bonzini  <bonzini@gnu.org>
11081
11082         * tree-flow-inline.h (bsi_after_labels): Rewrite, return
11083         what its name says.
11084         * lambda-code.c (perfect_nestify): Use bsi_insert_before on
11085         bsi_after_labels iterator.
11086         * tree-if-conv.c (find_phi_replacement_condition,
11087         replace_phi_with_cond_modify_expr): Likewise.
11088         * tree-scalar-evolution.c (scev_const_prop): Likewise.
11089         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
11090
11091 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
11092
11093         * tree-inline.c (copy_tree_r): Also copy OMP_CLAUSE nodes.
11094
11095 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
11096
11097         PR 25990
11098         * tree-cfg.c (move_block_to_fn): Clear out the basic block
11099         array after growing it.
11100
11101 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
11102
11103         PR middle-end/24901
11104         * fold-const.c (fold_checksum_tree): Change type of buf.
11105
11106 2006-02-01  Bernd Schmidt  <bernd.schmidt@analog.com>
11107
11108         * reload.c (push_secondary_reload): Initialize t_icode.
11109
11110 2006-02-01  Jakub Jelinek  <jakub@redhat.com>
11111
11112         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
11113         -msoft-float -mlong-double-128 only issue a warning, but don't
11114         swich to DFmode long double.
11115
11116 2006-02-01  Hans-Peter Nilsson  <hp@axis.com>
11117
11118         * cse.c (fold_rtx) <case RTX_COMM_COMPARE, RTX_COMPARE>: When arg1
11119         has a constant equivalent, iterate over equivalents for arg0,
11120         calling simplify_relational_operation and if there's a result
11121         cheaper than X, apply fold_rtx and return the result.
11122
11123 2006-02-01  Jan Hubicka  <jh@suse.cz>
11124
11125         * opts.c (no_unit_at_a_time_default): New global variable.
11126         (decode_options): Use it.
11127         * opts.h (no_unit_at_a_time_default): Declare.
11128
11129 2006-02-01  Paul Brook  <paul@codesourcery.com>
11130
11131         * function.c (assign_parm_setup_reg): Use function argument promotion
11132         rules.
11133         * expr.c (expand_expr_real_1): Use function argument promotion rules
11134         for PARM_DECLs.
11135
11136 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
11137
11138         * gcc.c (process_command): Change j to 'unsigned int'.
11139
11140 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
11141
11142         PR middle-end/26001
11143         * expr.c (expand_expr_real_1) <case ARRAY_REF>:
11144         Use the corrected index for the character
11145         out of the string constant.
11146
11147 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
11148
11149         * mode-switching.c (optimize_mode_switching): Fix size
11150         allocated for bb_info[n_entities].
11151
11152 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
11153
11154         * gcc.c (main): Correct type that is allocated for
11155         explicit_link_files.
11156
11157 2006-01-31  Jakub Jelinek  <jakub@redhat.com>
11158
11159         * config/s390/s390.c (init_alignment_context): Set
11160         ALIAS_SET_MEMORY_BARRIER on the MEM.
11161         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
11162
11163 2006-01-31  Uttam Pawar  <uttamp@us.ibm.com>
11164
11165         PR middle-end/25933
11166         * loop-unroll.c (unroll_loop_runtime_iterations): Free
11167         dom_bbs pointer.
11168         * tree-ssa-live.c (type_var_init): Allocate bitmap after
11169         call to tpa_init.
11170
11171 2006-01-31  Marcin Dalecki  <martin@dalecki.de>
11172
11173         * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
11174         * regrename.c: Ditto.
11175         * tree-ssa-loop-im.c: Ditto.
11176         * tree-dump.c: Ditto.
11177         * tree-complex.c: Ditto.
11178         * genrecog.c: Ditto.
11179         * tree-ssa-threadupdate.c: Ditto.
11180         * tracer.c: Ditto.
11181         * java/class.c: Ditto.
11182         * java/jcf-parse.c: Ditto.
11183         * java/resource.c: Ditto.
11184         * java/except.c: Ditto.
11185         * java/jvspec.c: Ditto.
11186         * java/jcf-write.c: Ditto.
11187         * java/jcf-path.c: Ditto.
11188         * java/gjavah.c: Ditto.
11189         * java/zextract.c: Ditto.
11190         * java/jcf-io.c: Ditto.
11191         * java/jcf.h: Ditto.
11192         * java/buffer.c: Ditto.
11193         * java/lang.c: Ditto.
11194         * java/parse-scan.y: Ditto.
11195         * java/lex.c: Ditto.
11196         * java/lex.h: Ditto.
11197         * cfgloopmanip.c: Ditto.
11198         * postreload-gcse.c: Ditto.
11199         * tree-ssa-loop-manip.c: Ditto.
11200         * postreload.c: Ditto.
11201         * tree-ssa-loop-ch.c: Ditto.
11202         * loop.c: Ditto.
11203         * ipa-cp.c: Ditto.
11204         * cppspec.c: Ditto.
11205         * diagnostic.c: Ditto.
11206         * final.c: Ditto.
11207         * genoutput.c: Ditto.
11208         * gcc.c: Ditto.
11209         * cfghooks.c: Ditto.
11210         * cfgloopanal.c: Ditto.
11211         * objc/objc-act.c: Ditto.
11212         * gcov.c: Ditto.
11213         * genextract.c: Ditto.
11214         * genautomata.c: Ditto.
11215         * pretty-print.c: Ditto.
11216         * genemit.c: Ditto.
11217         * cgraphunit.c: Ditto.
11218         * flow.c: Ditto.
11219         * df-scan.c: Ditto.
11220         * haifa-sched.c: Ditto.
11221         * dominance.c: Ditto.
11222         * dbxout.c: Ditto.
11223         * tree-ssa-loop-ivopts.c: Ditto.
11224         * df-core.c: Ditto.
11225         * mode-switching.c: Ditto.
11226         * modulo-sched.c: Ditto.
11227         * graph.c: Ditto.
11228         * ipa-pure-const.c: Ditto.
11229         * cse.c: Ditto.
11230         * fix-header.c: Ditto.
11231         * web.c: Ditto.
11232         * tree-stdarg.c: Ditto.
11233         * ipa-utils.c: Ditto.
11234         * loop-init.c: Ditto.
11235         * ipa-inline.c: Ditto.
11236         * cfganal.c: Ditto.
11237         * global.c: Ditto.
11238         * alloc-pool.c: Ditto.
11239         * dwarf2out.c: Ditto.
11240         * opts.c: Ditto.
11241         * genattrtab.c: Ditto.
11242         * tree-ssa-loop-ivcanon.c: Ditto.
11243         * predict.c: Ditto.
11244         * timevar.c: Ditto.
11245         * lcm.c: Ditto.
11246         * fortran/gfortranspec.c: Ditto.
11247         * regmove.c: Ditto.
11248         * local-alloc.c: Ditto.
11249         * langhooks.c: Ditto.
11250         * function.c: Ditto.
11251         * tree-vectorizer.c: Ditto.
11252         * gcse.c: Ditto.
11253         * ipa-type-escape.c: Ditto.
11254         * alias.c: Ditto.
11255         * tree-if-conv.c: Ditto.
11256         * profile.c: Ditto.
11257         * ipa.c: Ditto.
11258         * tree-data-ref.c: Ditto.
11259         * loop-unroll.c: Ditto.
11260         * treelang/treetree.c: Ditto.
11261         * calls.c: Ditto.
11262         * bt-load.c: Ditto.
11263         * ggc-common.c: Ditto.
11264         * except.c: Ditto.
11265         * coverage.c: Ditto.
11266         * cselib.c: Ditto.
11267         * tree-cfgcleanup.c: Ditto.
11268         * tree-ssa-pre.c: Ditto.
11269         * cfgcleanup.c: Ditto.
11270         * loop-invariant.c: Ditto.
11271         * loop-iv.c: Ditto.
11272         * ipa-prop.c: Ditto.
11273         * print-tree.c: Ditto.
11274         * conflict.c: Ditto.
11275         * ggc-page.c: Ditto.
11276         * sched-deps.c: Ditto.
11277         * regclass.c: Ditto.
11278         * tree-object-size.c: Ditto.
11279         * combine.c: Ditto.
11280         * bb-reorder.c: Ditto.
11281         * resource.c: Ditto.
11282         * var-tracking.c: Ditto.
11283         * cfgloop.c: Ditto.
11284         * df-problems.c: Ditto.
11285         * reg-stack.c: Ditto.
11286         * tlink.c: Ditto.
11287         * gccspec.c: Ditto.
11288         * sched-rgn.c: Ditto.
11289         * tree-ssa-structalias.c: Ditto.
11290         * tree-ssa-reassoc.c: Ditto.
11291         * config/darwin-c.c: Ditto.
11292         * config/darwin.c: Ditto.
11293         * config/arm/arm.c: Ditto.
11294         * cfgrtl.c: Ditto.
11295         * collect2.c: Ditto.
11296         * reload1.c: Ditto.
11297
11298 2006-01-31  Nicolas Pitre  <nico@cam.org>
11299
11300         * arm.md (smaxsi3): Make aware of smax_m1.
11301         (smax_m1): New.
11302
11303 2006-01-31  Nathan Sidwell  <nathan@codesourcery.com>
11304
11305         * config/m68k/lb1sf68.asm: Use moveq to load small constants.
11306
11307 2006-01-31  Richard Guenther  <rguenther@suse.de>
11308
11309         * doc/invoke.texi (-msselibm): Document.
11310         * target.h (expand_library_builtin): New target hook.
11311         * builtins.c (expand_builtin): Use expand_library_builtin.
11312         (default_expand_library_builtin): New function.
11313         * gcc.c (LINK_GCC_MATH_SPEC): Define.
11314         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
11315         (link_gcc_math_spec): Declare.
11316         (static_specs): Add link_gcc_math_spec.
11317         * expr.h (default_expand_library_builtin): Declare.
11318         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
11319         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
11320         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
11321         * config/i386/i386.opt (msselibm): New target option.
11322         * config/i386/i386.c (ix86_builtin_function_variants): New array.
11323         (ix86_init_sse_abi_builtins): New function.
11324         (ix86_expand_library_builtin): Likewise.
11325         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
11326         (override_options): Handle error conditions wrt -msselibm.
11327         (ix86_builtins): Add function codes for SSE2 ABI builtins.
11328         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
11329         * doc/extend.texi (__builtin_sse2_*): Document new target specific
11330         builtins.
11331
11332 2006-01-31  Richard Guenther  <rguenther@suse.de>
11333         Paolo Bonzini  <bonzini@gnu.org>
11334
11335         * doc/install.texi (--disable-libgcc-math): Document.
11336
11337 2006-01-30  Marcin Dalecki  <martin@dalecki.de>
11338
11339         * expr.h (expand_normal): new inline function.
11340         * builtins.c: use it, use EXPAND_NORMAL explicitely.
11341         * dojump.c: use it.
11342         * dwarf2out.c: use it.
11343         * expr.c: use it.
11344         * calls.c: use it.
11345         * expmed.c: use it.
11346         * except.c: use it.
11347         * config/sparc/sparc.c: use it.
11348         * config/i386/i386.c: use it.
11349         * config/rs6000/rs6000.c: use it.
11350         * config/arm/arm.c: use it.
11351         * config/mips/mips.c: use it.
11352         * stmt.c: use it, use EXPAND_NORMAL explicitely.
11353
11354 2006-01-30  Roger Sayle  <roger@eyesopen.com>
11355
11356         * config/i386/cygwin.h (GCC_DRIVER_HOST_INITIALIZATION): Cast
11357         argv to the appropriate type.
11358
11359 2006-01-30  Zdenek Dvorak <dvorakz@suse.cz>
11360
11361         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
11362         unreachable code.
11363
11364 2006-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
11365
11366         PR target/26018
11367         * config/s390/s390.c (struct machine_function): New flag
11368         decomposed_literal_pool_addresses_ok_p.
11369         (s390_reorg): Set it before final stage of literal pool transforms.
11370         (s390_decompose_address): Only accept displacements of the form
11371         (minus (label_ref ...) (label_ref ...)) if that flag is set.
11372
11373 2006-01-30  Carlos O'Donell  <carlos@codesourcery.com>
11374
11375         * optabs.c (prepare_cmp_insn): If unbaised and unsigned then bias
11376         the comparison routine return.
11377
11378 2006-01-30  Michael Matz  <matz@suse.de>
11379
11380         * global.c (find_reg): Only evict for global regs.
11381         Take n_refs into account and dump more info.
11382
11383 2006-01-30  J"orn Rennecke <joern.rennecke@st.com>
11384
11385         PR target/14798:
11386         * sh.c (pragma_interrupt, trap_exit, sp_switch): Remove variable.
11387         (pragma_trap, pragma_nosave_low_regs): Likewise.
11388         (current_function_anonymous_args): Likewise.
11389         (sh_deferred_function_attributes): New variable.
11390         (sh_deferred_function_attributes_tail): Likewise.
11391         (print_operand): For '@', look up trap_exit attribute.
11392         (calc_live_regs): Look up trapa_handler attribute.  For trapa
11393         handlers, save/restore fpscr, but don't do any other
11394         interrupt-specific saves.
11395         Don't save r0..r7 if the nosave_low_regs attribute is in effect.
11396         Fix check for partially saved registers to check for SHmedia.
11397         (sh_expand_prologue, sh_expand_epilogue): Look up sp_switch attribute.
11398         (sh_output_function_epilogue): Don't clear any of the removed
11399         variables.
11400         (sh_insert_attributes): Don't check pragma_interrupt.
11401         Insert deferred attributes.  Check that interrupt attribute is
11402         present for other attributes that require its presence.
11403         (sh_attribute_table): Add new attributes trapa_handler and
11404         nosave_low_regs.
11405         (sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
11406         Don't check for pragma_interrupt.  Don't store argument.
11407         * sh.h (pragma_interrupt, sp_switch): Don't declare.
11408         (sh_deferred_function_attributes): Declare.
11409         (sh_deferred_function_attributes_tail): Likewise.
11410         * sh.md (sp_switch_1): Add operand.  Change generator caller.
11411         (sh_pr_interrupt, sh_pr_trapa, sh_pr_nosave_low_regs): Remove.
11412         (*return_i): Don't use when trap_exit attribute is in effect.
11413         (*return_trapa): New insn pattern.
11414         * sh-c.c: New file.
11415         * config.gcc (sh[123456ble]*-* | sh-*-*): New trailer stanza,
11416         setting c_target_objs and cxx_target_objs.
11417         * t-sh: Add rule for sh-c.o.
11418
11419 2006-01-30  Richard Guenther  <rguenther@suse.de>
11420
11421         PR c++/23372
11422         * gimplify.c (gimplify_target_expr): Handle easy cases
11423         without creating a temporary.
11424
11425 2006-01-30  Nathan Sidwell  <nathan@codesourcery.com>
11426
11427         * vec.h (safe_grow): Remove duplicated line.
11428
11429 2006-01-29  Diego Novillo  <dnovillo@redhat.com>
11430
11431         PR 25874
11432         * omp-low.c (execute_expand_omp): Move CFG cleanup code ...
11433         (expand_omp): ... here.
11434         (expand_omp_parallel): Only remove barriers for combined
11435         parallel+workshare constructs.
11436
11437 2006-01-29  Eric Botcazou  <ebotcazou@adacore.com>
11438
11439         Revert
11440
11441         2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
11442         * tree.c (build_qualified_type): Chain the new type to the original
11443         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
11444         a POINTER_TYPE or a REFERENCE_TYPE respectively.
11445         (build_pointer_type_for_mode): Only return unqualified types.
11446         (build_reference_type_for_mode): Likewise.
11447
11448 2006-01-29  Gabriel Dos Reis  <gdr@integgrable-solutions.net>
11449
11450         * configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.
11451         * Makefile.in (CXX_COMPAT_WARN): Define.
11452         * configure: Regenerate.
11453
11454 2006-01-29  Dorit Nuzman  <dorit@il.ibm.com>
11455
11456         PR tree-opt/25911
11457         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
11458         to an if check.
11459
11460 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11461
11462         * toplev.c: Fix thinko.
11463
11464 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11465             Marcin Dalecki  <martin@dalecki.de>
11466
11467         * toplev.c (floor_log2, exact_log2): Don't define if __cplusplus.
11468         (push_srcloc): Use XNEW.
11469         (init_asm_output, default_get_pch_validity): Use XNEWVEC.
11470
11471 2006-01-29  Kenneth Zadeck <zadeck@naturalbridge.com>
11472
11473         * df-core.c (df_set_blocks): Deleted all variable.
11474
11475 2006-01-28  Ian Lance Taylor  <ian@airs.com>
11476
11477         * cgraphunit.c (cgraph_assemble_pending_functions): Call
11478         cgraph_output_pending_asms.
11479
11480 2006-01-28  Zack Weinberg  <zackw@panix.com>
11481
11482         * c.opt: Add -W(no-)overlength-strings.
11483         * doc/invoke.texi: Document it.
11484         * c-opts.c (c_common_handle_option): -pedantic implies
11485         -Woverlength-strings, if not explicitly disabled already.
11486         (c_common_post_options): -Woverlength-strings defaults to off, and
11487         is always off for C++.
11488         * c-common.c (fix_string_type): Issue warning about strings longer
11489         than is portable only if warn_overlength_strings.  Rearrange code
11490         a little for clarity.
11491         * configure.in: Check for -Wno-overlength-strings as well before
11492         enabling -pedantic in stage 1.
11493         * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
11494         (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.
11495
11496         * genconditions.c (write_header, write_one_condition)
11497         (write_conditions, write_writer): Consolidate very long strings
11498         that were broken up to fit in C89 portable limit.  Don't use
11499         printf when fputs will do.
11500
11501 2006-01-28  Adam Nemet  <anemet@caviumnetworks.com>
11502
11503         * combine.c (simplify_comparison <AND>): Check
11504         TRULY_NOOP_TRUNCATION before start using a subreg.
11505
11506         * config/mips/mips.md (*branch_zero<mode>,
11507         *branch_zero<mode>_inverted, *branch_equality<mode>,
11508         *branch_equality<mode>_inverted, *branch_equality<mode>_mips16):
11509         Remove mode check from comparisons.
11510
11511 2006-01-28  Kenneth Zadeck <zadeck@naturalbridge.com>
11512
11513         * config/mips/mips-protos.h (mips_set_live_on_entry): Deleted.
11514
11515 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
11516
11517         * expmed.c (const_mult_add_overflow_p): Remove.
11518         * expr.h: Remove the prototype for const_mult_add_overflow_p.
11519
11520         * recog.c (validate_replace_rtx_subexp): Remove.
11521         * recog.h: Remove the prototype for
11522         validate_replace_rtx_subexp.
11523
11524         * integrate.h: Remove the prototype for
11525         copy_decl_for_inlining.
11526         * rtl.h: Remove the prototype for mark_constant_function.
11527         * tree-vectorizer.h: Remove the prototype for
11528         vect_strip_conversion.
11529
11530         * modulo-sched.c (create_partial_schedule,
11531         free_partial_schedule, reset_partial_schedule): Make them
11532         static.
11533
11534         * hooks.c (hook_bool_rtx_int_false): Remove.
11535         * hooks.h: Remove the prototype for hook_bool_rtx_int_false.
11536
11537 2006-01-28  David Edelsohn  <edelsohn@gnu.org>
11538
11539         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
11540         and -mlong-double-128 are incompatible.
11541         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
11542         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
11543         (TARGET_LIBGCC2_CFLAGS): Define.
11544         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): Same.
11545         (TARGET_LIBGCC2_CFLAGS): Same.
11546         * config/rs6000/ppc64-fp.c: Compile for 64-bit AIX.
11547
11548 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
11549
11550         PR c/19606.
11551         * c-typeck.c (build_binary_op): Perform implicit casts of
11552         operands before shortening them.
11553
11554         * cfgloopmanip.c (split_loop_bb): Remove.
11555         * cfgloop.h: Remove the prototype for split_loop_bb.
11556
11557         * cfgloop.c (flow_loop_outside_edge_p): Remove.
11558         * cfgloop.h: Remove the prototype for
11559         flow_loop_outside_edge_p.
11560
11561         * emit-rtl.c (init_virtual_regs): Make it static.
11562         * function.h: Remove the prototype for init_virtual_regs.
11563
11564         * recog.c (peephole2_optimize): Make it static.
11565         * recog.h: Remove the prototype for peephole2_optimize.
11566
11567 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
11568
11569         * df-scan.c (df_record_entry_block_defs): Check if
11570         INCOMING_RETURN_ADDR_RTX is defined.
11571
11572 2006-01-27  Daniel Berlin  <dberlin@dberlin.org>
11573             Kenneth Zadeck <zadeck@naturalbridge.com>
11574
11575         PR rtl-optimization/24762
11576         * doc/tm.texi: Added TARGET_EXTRA_LIVE_ON_ENTRY.
11577         * targhooks.c (hook_void_bitmap): New hook prototype.
11578         * targhoohs.h (hook_void_bitmap): Ditto.
11579         * bitmap.h (bitmap_head_def): Moved to coretypes.h.
11580         * coretypes.h (bitmap_head_def): Moved from bitmap.h.
11581         * target.h (live_on_entry): New function pointer.
11582         * df-scan.c (df_all_hard_regs): Removed.
11583         (df_scan_dump, df_hard_reg_init): Removed df_all_hard_regs.
11584         (df_scan_free_internal): Added df->entry_block_defs.
11585         (df_scan_alloc): Ditto.
11586         (df_scan_dump): Ditto.
11587         (df_uses_record): Plumbed flag field properly thru calls.
11588         Record EH_RETURN_DATA_REGNO in eh blocks unconditionally.
11589         This part fixes PR24762.
11590         (df_bb_refs_record): Added code to make the frame and arg
11591         pointers live in EH blocks.
11592         (df_refs_record): Added call to df_record_entry_block_defs.
11593         (df_record_entry_block_defs): New function.
11594         * df-core.c: Added comments to describe new artifical defs.
11595         * df.h (DF_REF_DIES_AFTER_THIS_USE): New flag in enum df_ref_flags.
11596         (entry_block_defs): New field in struct df.
11597         (df_all_hard_regs): Deleted.
11598         * target-def.h: Added TARGET_EXTRA_LIVE_ON_ENTRY.
11599         * df-problems.c (df_ru_bb_local_compute_process_def):
11600         Added code to handle artifical defs in the entry to a function.
11601         (df_ru_bb_local_compute): Ditto.
11602         (df_rd_bb_local_compute_process_def): Ditto.
11603         (df_rd_bb_local_compute): Ditto.
11604         (df_lr_bb_local_compute): Ditto.
11605         (df_ur_bb_local_compute): Ditto.
11606         (df_urec_bb_local_compute): Ditto.
11607         (df_chain_create_bb): Ditto.
11608         (df_ur_local_finalize): Removed entry.
11609         (df_urec_init): Ditto.
11610         (df_urec_local_finalize): Ditto.
11611         (df_ri_bb_compute): Added detection of last use of pseudos.
11612         * Makefile.in (df-scan.o): Updated dependencies.
11613         * config/mips/mips-protos.h (mips_set_live_on_entry): Added.
11614         * config/mips/mips.c (mips_set_live_on_entry): Added.
11615         * config/mips/mips.c (TARGET_EXTRA_LIVE_ON_ENTRY): Added value
11616         for target hook.
11617         * dce.c (marked_insn_p): Added code to handle artifical defs.
11618
11619 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
11620
11621         * config/i386/emmintrin.h (_mm_cvtsd_f64): Add missing Intel
11622         intrinsic.
11623         (_mm_cvtsi128_si64): Likewise.
11624         (_mm_cvtsd_si64): Likewise.
11625         (_mm_cvttsd_si64): Likewise.
11626         (_mm_cvtsi64_sd): Likewise.
11627         (_mm_cvtsi64_si128): Likewise.
11628         * config/i386/mmintrin.h (_m_from_int64): Likewise.
11629         (_mm_cvtsi64_m64): Likewise.
11630         (_m_to_int64): Likewise.
11631         (_mm_cvtm64_si64): Likewise.
11632         * config/i386/xmmintrin.h (_mm_cvtss_si64): Likewise.
11633         (_mm_cvttss_si64): Likewise.
11634         (_mm_cvtsi64_ss): Likewise.
11635         (_mm_cvtss_f32): Likewise.
11636
11637 2006-01-27  Carlos O'Donell  <carlos@codesourcery.com>
11638
11639         * c-pragma.c (init_pragma) : Call c_register_pragma_with_expansion
11640         for pragma redefine_extname.
11641
11642 2006-01-27  Jakub Jelinek  <jakub@redhat.com>
11643
11644         PR target/25864
11645         * libgcc-std.ver: Add GCC_4.1.0 symbol version.
11646         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Only append
11647         -mno-minimal-toc to previous content.
11648         (bispecs): Remove goal.
11649         * config/rs6000/ppc64-fp.c: Define TMODES before including fp-bit.h.
11650         * config/rs6000/darwin-ldouble.c: Don't provide _xlq*@GCC_3.4
11651         compatibility aliases on powerpc-*-*gnu*.
11652         * config/rs6000/libgcc-ppc-glibc.ver: New file.
11653         * config/rs6000/t-ppccomm (SHLIB_MAPFILES): Append
11654         libgcc-ppc-glibc.ver on powerpc*-*-*gnu*.
11655         (TARGET_LIBGCC2_CFLAGS): Append -specs=ldblspecs.
11656         (ldblspecs): New goal.
11657         * config/rs6000/t-linux64 (SHLIB_MAPFILES): Removed.
11658         * mklibgcc.in: If $TPBIT is empty, don't compile _sf_to_tf and
11659         _df_to_tf.
11660         * config/fp-bit.h (TMODES): Don't define if none of TFLOAT,
11661         L_sf_to_tf or L_df_to_tf is defined.
11662
11663 2006-01-27  David Edelsohn  <edelsohn@gnu.org>
11664             Alan Modra  <amodra@bigpond.net.au>
11665
11666         PR target/25864
11667         * config/rs6000/linux.h (POWERPC_LINUX): Define.
11668         * config/rs6000/linux64.h (POWERPC_LINUX): Define.
11669         * config/rs6000/darwin-ldouble.c: Build on 32-bit PowerPC.
11670         * config/rs6000/darwin.h (TARGET_IEEEQUAD): Define to zero.
11671         * config/rs6000/aix.h (TARGET_IEEEQUAD): Define to zero.
11672         * config/rs6000/rs6000.c (rs6000_ieeequad): New variable.
11673         (rs6000_override_options): Initialize rs6000_ieeequad.
11674         Initialize TFmode format to ibm_extended_format if not
11675         TARGET_IEEEQUAD.
11676         (rs6000_handle_option): Accept -mabi= ibmlongdouble and
11677         ieeelongdouble.
11678         (rs6000_emit_move): Move !TARGET_IEEEQUAD as two parts.
11679         (rs6000_return_in_memory): Only return IEEEQUAD in memory.
11680         (function_arg_advance): IBM long double passed in two FPRs, not
11681         split.
11682         (function_arg): IBM long double passed in FPRs.
11683         (rs6000_pass_by_reference): Only IEEEQUAD passed by reference.
11684         (rs6000_gimplify_va_arg): IBM long double passed in two FPRs.
11685         Only multireg GPR aligned.
11686         (rs6000_init_libfuncs): Enable IBM long double functions if not
11687         IEEEQUAD.
11688         (rs6000_generate_compare): Use IBM long double compare if not
11689         TARGET_IEEEQUAD.
11690         * config/rs6000/rs6000.h (rs6000_ieeequad): Declare.
11691         (TARGET_IEEEQUAD): Define.
11692         (CANNOT_CHANGE_MODE_CLASS): Any mode larger than doubleword if
11693         not TARGET_IEEEQUAD.
11694         * config/rs6000/rs6000.md: Enable TFmode patterns if
11695         !TARGET_IEEEQUAD.
11696         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
11697         * config/rs6000/svr4.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
11698         and -mlong-double-128 are incompatible.
11699         * doc/invoke.texi (-mabi): Collect options together.  Add
11700         ibmlongdouble and ieeelongdouble.
11701
11702 2006-01-27  Richard Sandiford  <richard@codesourcery.com>
11703
11704         * doc/rtl.texi (SYMBOL_REF_DATA): Adjust documentation for new
11705         opaque type.
11706         * optabs.c (init_one_libfunc): Use SET_SYMBOL_REF_DECL.
11707         * varasm.c (make_decl_rtl, build_constant_desc): Likewise.
11708         (force_const_mem): Use SET_SYMBOL_REF_CONSTANT.
11709         * rtl.h (rtunion_def): Remove rt_ptr.
11710         (X0PTR): Delete.
11711         (SYMBOL_REF_DATA): Use X0ANY instead of X0PTR.
11712         (SET_SYMBOL_REF_DECL, SET_SYMBOL_REF_CONSTANT): New macros.
11713         * config/i386/winnt.c (i386_pe_mark_dllexport)
11714         (i386_pe_mark_dllimport): Use SET_SYMBOL_REF_DECL.
11715
11716 2006-01-27 Gabor Loki <loki@gcc.gnu.org>
11717
11718         * cfgcleanup.c (try_crossjump_to_edge): Fix comment typo.
11719
11720 2006-01-26 Alexandre Oliva  <aoliva@redhat.com>
11721
11722         PR other/24829
11723         PR target/24831
11724         * gthr-dce.h: Do not gthrw-ify pthread_once_init,
11725         pthread_key_delete.  From John David Anglin.  gthrw-ify
11726         pthread_getunique_np only if it it's not a macro.  Delete
11727         UNUSED macro.
11728         (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate,
11729         __gthread_objc_condition_wait, __gthread_objc_condition_broadcast,
11730         __gthread_objc_condition_signal, __gthread_key_delete): Add
11731         "__attribute__ ((__unused__))" to unused arguments.
11732         (__gthread_recursive_mutex_init_function): Add missing return.
11733         * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h,
11734         gthr-posix95.h: Use macro-based approach for name redirection
11735         on targets missing weakref.
11736
11737 2006-01-26  Zack Weinberg  <zackw@panix.com>
11738
11739         * genconditions.c (write_header): In generated code, #ifdef out
11740         all includes and fake declarations, except includes of bconfig.h
11741         and system.h, unless GCC_VERSION >= 3001.  Do not include
11742         gensupport.h in any case.
11743         (write_conditions): Generate a definition of struct c_test.  Add
11744         a comment to the generated #endif.
11745         (write_one_condition): Escape backslashes in string too.
11746         (write_writer): Generated code must escape backslashes and quote
11747         marks (but not newlines) in the strings it writes.
11748         * Makefile.in (build/gencondmd.o): Update dependencies.
11749
11750 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
11751
11752         PR target/25961
11753         * Makefile.in (insn-automata.o): Add header file dependencies.
11754         * genautomata.c: Add includes.
11755
11756 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
11757
11758         PR target/25961
11759         * Makefile.in (insn-automata.o): Add -Wno-error flag.
11760
11761 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
11762
11763         * configure.ac: Expect target tools paths to be passed from the toplevel
11764         and wrap the detection into AS_SET_VAR_IF.  Extract side-effects out of
11765         AS_SET_VAR_IF.
11766         * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove.
11767
11768 2006-01-26  Alexandre Oliva  <aoliva@redhat.com>
11769
11770         PR c/25892
11771         * c.opt (Wpointer-sign): Init to -1.
11772         * c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
11773         OPT_pedantic, to 0 otherwise.
11774         * doc/invoke.texi: Update.
11775
11776 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
11777
11778         * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Emit
11779         constants provided by 80387 instructions in the destination mode.
11780
11781 2006-01-26  Richard Guenther  <rguenther@suse.de>
11782             Andrew Pinski  <pinskia@physics.uc.edu>
11783
11784         PR tree-opt/21470
11785         partial PR tree-opt/17064
11786         * tree-ssa-structalias.c (intra_create_variable_infos):
11787         Create heap variables for incoming parameters if
11788         flag_argument_noalias > 1.
11789         (find_what_p_points_to): Look through default defs of
11790         parameter decls.
11791
11792 2006-01-26  Jeff Law  <law@redhat.com>
11793
11794         PR ada/25900
11795         * tree-vrp.c (extract_range_from_assert): When merging a VR_RANGE
11796         with a VR_ANTI_RANGE and the VR_ANTI_RANGE is completely contained
11797         within the VR_RANGE, use the VR_RANGE as the result, not the
11798         VR_ANTI_RANGE.
11799         (adjust_range_with_scev): Reject ranges from SCEV which are out of
11800         bounds for the type.
11801
11802 2006-01-26  Daniel Berlin  <dberlin@dberlin.org>
11803
11804         * tree-ssa-alias.c (maybe_create_global_var): Change
11805         subvar walking to an assertion that we don't have subvar'd variables.
11806
11807 2006-01-26  Andrew Pinski  <pinskia@physics.uc.edu>
11808
11809         PR C/25861
11810         * c-common.c (c_common_truthvalue_conversion) <case ADDR_EXPR>:
11811         Use a new variable, inner.  PARM_DECLs are always non-weak.
11812
11813 2006-01-26  Shantonu Sen  <ssen@opendarwin.org>
11814
11815         * tree.h (OMP_CLAUSE_SUBCODE_CHECK): Add definition for
11816         --disable-checking.
11817
11818 2006-01-26  Adam Nemet  <anemet@caviumnetworks.com>
11819
11820         * config/mips/mips.md (*clear_upper32): New combiner pattern.
11821
11822 2006-01-26  Richard Earnshaw  <richard.earnshaw@arm.com>
11823
11824         * arm.md (smaxsi3, sminsi3): Convert to define_expand.
11825         (smax_insn, smin_insn, smax_0, smin_0): New.
11826
11827 2006-01-26  Hans-Peter Nilsson  <hp@axis.com>
11828
11829         PR target/25947
11830         * config/cris/cris.c (cris_order_for_addsi3): New function.
11831         * config/cris/cris-protos.h: Prototype it.
11832         * config/cris/cris.md (split for "move.S1 [rx=rx+i],ry")
11833         (split for "move.S1 ry,[rx=rx+i]", split for "clear.[bwd] [rx=rx+i]")
11834         (split for "mov(s|u).S1 [rx=rx+i],ry", split for "op.S1 [rx=rx+i],ry")
11835         (split for "op.S1 [rx=rx+i],ry (swapped)")
11836         (split for "op(s|u).S1 [rx=rx+i],ry")
11837         (split for "op(s|u).S1 [rx=rx+i],ry (swapped, plus or bound)"):
11838         Apply cris_order_for_addsi3 when generating addsi3 insns.
11839
11840 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
11841
11842         * tree.h (TREE_RANGE_CHECK): Fix range predicate.
11843         (TREE_BLOCK): Add call to EXPR_CHECK.
11844
11845 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
11846
11847         PR 25886
11848         * tree-dump.c (dequeue_and_dump): Handle OMP_CLAUSE.
11849         * tree-pretty-print.c (dump_omp_clause): Extract from ...
11850         (dump_omp_clauses): ... here.
11851         (dump_generic_node): Handle OMP_CLAUSE.
11852         * tree.c (omp_clause_num_ops): New.
11853         (omp_clause_code_name): New.
11854         (tree_code_size): Handle OMP_CLAUSE.
11855         (tree_size): Likewise.
11856         (make_node): Document handling of OMP_CLAUSE.
11857         (tree_node_structure): Handle OMP_CLAUSE.
11858         (omp_clause_check_failed): New.
11859         (omp_clause_range_check_failed): New.
11860         (omp_clause_operand_check_failed): New.
11861         (build_omp_clause): New.
11862         (walk_tree): Adjust handling of OMP_CLAUSE_* nodes.
11863         * tree.h (enum omp_clause_code): Declare.
11864         (OMP_CLAUSE_SUBCODE_CHECK): Define.
11865         (OMP_CLAUSE_RANGE_CHECK): Define.
11866         (OMP_CLAUSE_ELT_CHECK): Define.
11867         (omp_clause_check_failed): Declare.
11868         (omp_clause_operand_check_failed): Declare.
11869         (omp_clause_range_check_failed): Declare.
11870         (OMP_CLAUSE_CHAIN): Do not use TREE_RANGE_CHECK.
11871         (OMP_CLAUSE_OPERAND): Use OMP_CLAUSE_RANGE_CHECK.
11872         (OMP_CLAUSE_PRIVATE_DEBUG): Use OMP_CLAUSE_SUBCODE_CHECK.
11873         (OMP_CLAUSE_LASTPRIVATE): Likewise.
11874         (OMP_CLAUSE_IF_EXPR): Likewise.
11875         (OMP_CLAUSE_NUM_THREADS_EXPR): Likewise.
11876         (OMP_CLAUSE_SCHEDULE_CHUNK_EXPR): Likewise.
11877         (OMP_CLAUSE_REDUCTION_CODE): Likewise.
11878         (OMP_CLAUSE_REDUCTION_INIT): Likewise.
11879         (OMP_CLAUSE_REDUCTION_MERGE): Likewise.
11880         (OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
11881         Use tree_node.omp_clause.subcode instead of TREE_COMPLEXITY.
11882         (OMP_CLAUSE_SCHEDULE_KIND): Likewise.
11883         (OMP_CLAUSE_DEFAULT_KIND): Likewise.
11884         (OMP_CLAUSE_CODE): Define.
11885         (OMP_CLAUSE_SET_CODE): Define.
11886         (OMP_CLAUSE_CODE): Define.
11887         (OMP_CLAUSE_OPERAND): Define.
11888         (struct tree_omp_clause): Declare.
11889         (union tree_node): Add field 'omp_clause'.
11890         * treestruct.def (TS_OMP_CLAUSE): Define.
11891         * tree.def (OMP_CLAUSE_PRIVATE, OMP_CLAUSE_SHARED
11892         OMP_CLAUSE_FIRSTPRIVATE, OMP_CLAUSE_LASTPRIVATE,
11893         OMP_CLAUSE_REDUCTION, OMP_CLAUSE_COPYIN,
11894         OMP_CLAUSE_COPYPRIVATE, OMP_CLAUSE_IF,
11895         OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE,
11896         OMP_CLAUSE_NOWAIT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Remove.
11897         (OMP_CLAUSE): Define.
11898         * print-tree.c (print_node): Handle OMP_CLAUSE.
11899         * omp-low.c: Adapt all uses of OMP_CLAUSE_* nodes.
11900         * c-typeck.c: Likewise.
11901         * gimplify.c: Likewise.
11902         * c-omp.c: Likewise.
11903         * tree-nested.c: Likewise.
11904         * tree-inline.c: Likewise.
11905         * c-parser.c: Likewise.
11906         * gimple-low.c (lower_omp_directive): Do not set TREE_BLOCK on
11907         clauses.
11908
11909 2006-01-25  Roger Sayle  <roger@eyesopen.com>
11910
11911         PR rtl-optimization/25703
11912         * combine.c (try_combine): Handle zero_extract and strict_low_part
11913         of non-lowpart SUBREGs for constant reg_subword_p set optimization.
11914
11915 2006-01-25  Peter Bergner  <bergner@vnet.ibm.com>
11916
11917         * global.c: Fix comment typos.
11918
11919 2006-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
11920
11921         PR target/25758
11922         * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
11923         Use output_addr_const instead of assemble_name.
11924
11925 2006-01-25  Paolo Bonzini  <bonzini@gnu.org>
11926
11927         * Makefile.in (sched-vis.o): Update dependencies.
11928         * haifa-sched.c (sched_finish): Clear current_sched_info.
11929         * cfg.c (dump_bb_info): New, split from dump_flow_info.
11930         (dump_flow_info): Call it.
11931         * passes.c (execute_todo): Call print_rtl_slim_with_bb to make
11932         a slim RTL dump.
11933         * basic-block.h (dump_bb_info): Declare.
11934         * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all
11935         option, and apply options only for dump files whose TDF_RTL,
11936         TDF_TREE, or TDF_IPA bits match.
11937         * rtl.h: Declare new functions exported from sched-vis.c.
11938         * sched-vis.c: Enable also if scheduling is not used.
11939         (print_value): Print the mode of registers if not inside scheduling.
11940         (print_insn): Make it work outside the scheduler.  Beautify the output
11941         a bit.
11942         (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New.
11943
11944 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
11945
11946         * doc/rtl.texi (SYMBOL_REF_CONSTANT, SYMBOL_REF_DATA): Document.
11947         * gengtype.c (adjust_field_rtx_def): Garbage-collect field 2 of
11948         a SYMBOL_REF as either a tree or a constant_descriptor_rtx,
11949         depending on the value of CONSTANT_POOL_ADDRESS_P.
11950         * optabs.c (init_one_libfunc): Nullify SYMBOL_REF_DATA rather than
11951         SYMBOL_REF_DECL.
11952         * varasm.c (make_decl_rtl, build_constant_desc): Set SYMBOL_REF_DATA
11953         rather than SYMBOL_REF_DECL.
11954         (rtx_constant_pool): Remove const_rtx_sym_htab.
11955         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): Delete.
11956         (init_varasm_status): Don't initialize const_rtx_sym_htab.
11957         (force_const_mem): Point SYMBOL_REF_DATA to the constant pool entry.
11958         Remove handling of const_rtx_sym_htab.
11959         (find_pool_constant): Delete.
11960         (get_pool_constant, get_pool_constant_mark): Use SYMBOL_REF_CONSTANT
11961         rather than find_pool_constant.
11962         (get_pool_constant_for_function): Delete.
11963         (get_pool_mode, mark_constant): Use SYMBOL_REF_CONSTANT rather than
11964         find_pool_constant.
11965         * rtl.h (rtunion_def): Add rt_constant and rt_ptr fields.
11966         (X0CONSTANT, X0PTR, SYMBOL_REF_DATA): New macros.
11967         (SYMBOL_REF_DECL): Return NULL if CONSTANT_POOL_ADDRESS_P.
11968         (SYMBOL_REF_CONSTANT): New macro.
11969         (get_pool_constant_for_function): Delete.
11970         * config/i386/winnt.c (i386_pe_mark_dllexport): Set SYMBOL_REF_DATA
11971         rather than SYMBOL_REF_DECL.
11972         (i386_pe_mark_dllimport): Likewise.
11973         * config/rs6000/rs6000.c (rs6000_emit_move): Copy SYMBOL_REF_DATA
11974         rather than SYMBOL_REF_DECL.
11975         * config/darwin.c (machopic_indirect_data_reference): Likewise.
11976         (machopic_indirect_call_target): Likewise.
11977
11978 2006-01-25  Eric Botcazou  <ebotcazou@adacore.com>
11979
11980         * flow.c (delete_noop_moves): Add missing EOL to dump message.
11981
11982 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
11983
11984         * genattrtab.c (gen_bypass): Allow bypasses to contain whitespace.
11985
11986 2006-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
11987
11988         * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
11989
11990 2006-01-24  David Daney  <ddaney@avtrex.com>
11991
11992         PR java/25816
11993         * configure.ac (enable_tls): New enable option.
11994         (HAVE_AS_TLS): Don't do assembler check if enable_tls set.
11995         * configure: Regenerate.
11996         * doc/install.texi (--enable-tls): Document new option.
11997         (--disable-tls): Ditto.
11998
11999 2006-01-24  Richard Henderson  <rth@redehat.com>
12000
12001         * alias.h (ALIAS_SET_MEMORY_BARRIER): New.
12002         * alias.c (true_dependence): Respect it.
12003         (canon_true_dependence, write_dependence_p): Likewise.
12004         * builtins.c (get_builtin_sync_mem): Set it.
12005
12006 2006-01-25  Zdenek Dvorak <dvorakz@suse.cz>
12007
12008         * loop-iv.c (iv_analysis_loop_init): Use df analysis in a more
12009         efficient way.
12010
12011 2006-01-24  DJ Delorie  <dj@redhat.com>
12012
12013         * expmed.c (store_bit_field): Don't arbitrarily deny using insv
12014         for storing constants in single-bit bitfields.
12015
12016 2006-01-25  Ben Elliston  <bje@au.ibm.com>
12017
12018         * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long.
12019
12020 2006-01-24  Andrew Pinski  <pinskia@physics.uc.edu>
12021
12022         PR tree-opt/25860
12023         * tree-ssa-pre.c (phi_translate): Return NULL
12024         for AGGREGATE_TYPE's.
12025
12026 2006-01-24  Zack Weinberg  <zackw@panix.com>
12027
12028         * genautomata.c (process_state_for_insn_equiv_partition):
12029         Use xcalloc for insn_arcs_array.
12030         * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates.
12031         (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P.
12032
12033 2006-01-24  Richard Henderson  <rth@redhat.com>
12034
12035         * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
12036         update all callers.
12037
12038 2006-01-23  Paolo Bonzini  <bonzini@gnu.org>
12039
12040         PR rtl-optimization/25890
12041         PR rtl-optimization/25905
12042         * combine.c (expand_compound_operation, expand_field_assignment):
12043         Fail if the bitfield's final position is out of bounds.
12044
12045 2006-01-24  Ian Lance Taylor  <ian@airs.com>
12046
12047         PR middle-end/25930
12048         * cgraphunit.c (cgraph_output_in_order): Don't clear
12049         cgraph_asm_nodes until after asm strings have been output.
12050
12051 2006-01-23  Adam Nemet  <anemet@caviumnetworks.com>
12052
12053         * fix-header.c (read_scan_file): Add new parameter imultilib when
12054         calling register_include_chains.
12055
12056 2006-01-23  Diego Novillo  <dnovillo@redhat.com>
12057
12058         * omp-low.c: Update documentation.
12059
12060 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
12061             Daniel Berlin  <dberlin@dberlin.org>
12062
12063         PR tree-opt/25315
12064         PR tree-opt/25857
12065         * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal
12066         return from the function.
12067
12068 2006-01-22  Zack Weinberg  <zackw@panix.com>
12069
12070         * rtl.def (match_code): Add second argument.
12071         * genpreds.c (write_extract_subexp): New function.
12072         (write_match_code): Add path argument.  Use write_extract_subexp.
12073         (write_predicate_expr): Pass path to write_match_code.
12074         (mark_mode_tests): MATCH_CODE applied to a subexpression does
12075         not perform a mode test.
12076         * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
12077         a subexpression does not constrain the top-level code set.
12078         * read-rtl.c (read_rtx_variadic): New function.
12079         (read_rtx_1): Use it; allow AND and IOR to be variadic.
12080         * doc/md.texi: Document new notation.
12081         * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
12082         (cmpsi_operand): ... here, using new notation.
12083
12084 2006-01-22  Zack Weinberg  <zackw@panix.com>
12085
12086         * varray.c: Remove GENERATOR_FILE #ifdefs.
12087
12088 2006-01-22  Zack Weinberg  <zackw@panix.com>
12089
12090         * genautomata.c (output_reserved_units_table): Emit nothing if
12091         description->query_units_num is zero.  Remove extra blank line.
12092         (output_cpu_unit_reservation_p): Short circuit
12093         if description->query_units_num is zero.
12094
12095 2006-01-22  Zack Weinberg  <zackw@panix.com>
12096
12097         * genattrtab.c: Don't include genattrtab.h.  Define ATTR_NONE
12098         and ATTR_SPECIAL (from genattrtab.h).  Don't define num_dfa_decls
12099         nor any of the random handful of variables that used to be necessary
12100         when this program was linked with rtlanal.o.  Prune set of forward
12101         function declarations.
12102         (struct attr_desc): Remove static_p field.
12103         (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
12104         (check_attr_test, make_internal_attr, make_numeric_value): Make static.
12105         (attr_string): Do not read the character one past the length of
12106         the string.
12107         (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
12108         (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
12109         (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
12110         (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
12111         (make_automaton_attrs): New.
12112         (main): Do not call into genautomata.  Call local gen_bypass
12113         and gen_insn_reserv as appropriate.  Call make_automaton_attrs.
12114         Remove special case for insn_alts.
12115         * genautomata.c: Include gensupport.h; not genattrtab.h nor
12116         varray.h (leftover from previous change).  Prune set of forward
12117         function declarations.  Remove state_alts fields from all
12118         structures.  Remove state_alts_table from struct automaton.
12119         Make everything except main static.  Do not maintain num_dfa_decls.
12120         Do not maintain state_alts fields of various structures.
12121         (process_decls): Don't validate condexp for dm_insn_reserv decls.
12122         (add_arc): Remove state_alts argument.  All callers updated.
12123         (output_reserved_units_table): Emit #ifdef here...
12124         (output_tables): ...not here.  Don't generate state_alts tables.
12125         (expand_automata): Don't generate attributes.
12126         (write_automata): Don't generate state_alts functions.
12127         (main): New function.
12128         (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
12129         (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
12130         (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
12131         (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
12132         (BYPASS_P_FUNC_NAME, output_state_alts_table)
12133         (output_automata_list_state_alts_code, output_internal_state_alts_func)
12134         (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
12135         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
12136         Delete.
12137         * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
12138         * genattrtab.h: Delete file.
12139         * Makefile.in (OBJS-common): Add insn-automata.o.
12140         (insn-automata.o): New rule.
12141         (simple_generated_c): Add insn-automata.c.
12142         (build/genattrtab.o, build/genautomata.o): Update dependencies.
12143         (genprogmd): Add automata.
12144         (build/genattrtab): Needs no extra objects nor libraries.
12145         (build/genautomata): Needs build/vec.o and -lm.
12146
12147 2006-01-22  Zack Weinberg  <zackw@panix.com>
12148
12149         * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
12150         (output_dfa_max_issue_rate, locked_states_num): Delete.
12151         (struct automaton): Add locked_states field.
12152         (output_dead_lock_vect): Save number of locked states in
12153         automaton->locked_states.  If it is zero, don't print anything.
12154         (output_max_insn_queue_index_def): Define max_insn_queue_index const.
12155         (output_internal_dead_lock_func): Only test the dead_lock_vect
12156         for automata that have locked states.
12157         (output_statistics): Always print the number of locked states for
12158         each automaton.  Calculate total number of locked states here.
12159         (write_automata): Don't call output_dfa_max_issue_rate.
12160         * genattrtab.c: Define length_unit_log as a const variable.
12161         * genattr.c: Don't emit MAX_DFA_ISSUE_RATE.  Declare
12162         max_insn_queue_index const.
12163         * final.c (length_unit_log): Declare const.
12164         * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
12165
12166 2006-01-22  Zack Weinberg  <zackw@panix.com>
12167
12168         * genautomata.c: Include vec.h, not varray.h.
12169         Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
12170         VLA_HWINT_ macros.  Change vla_hwint_t to a typedef for
12171         VEC(vect_el_t,heap) *.  Convert all uses of VLA_* macros to
12172         VEC_* macros operating on appropriately typed vectors, or to
12173         malloced arrays when the size is known in advance.  Const-ify
12174         many char* variables and function arguments.  No functional changes.
12175         * Makefile.in (build/varray.o): Delete rule.
12176         (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
12177         (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
12178
12179 2006-01-22  Zack Weinberg  <zackw@panix.com>
12180
12181         * gensupport.c: Define get_insn_name and record_insn_name here.
12182         (read_md_rtx): Call record_insn_name as appropriate.
12183         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
12184         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
12185         * genpreds.c, genrecog.c: Don't define get_insn_name nor
12186         record_insn_name.
12187         * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
12188         (BUILD_VARRAY): Delete.
12189         (genprognormal): Rename genprogmd.  Fold in all programs from
12190         genprognoprint; also attrtab.
12191         (build/genattrtab): Just mention genautomata.o and varray.o.
12192         Reorganize a bit, add comments to make the categories clearer.
12193
12194 2006-01-22  Zack Weinberg  <zackw@panix.com>
12195
12196         * genconditions.c (condition_table, add_condition): Delete.
12197         (write_conditions): Don't emit n_insn_conditions nor
12198         insn_elision_unavailable.  Issue the gcc version #ifdef here,
12199         inside the table, with no #else clause ...
12200         (write_header): ...not here.
12201         (write_writer): New function.
12202         (main): Don't initialize condition_table.  Use add_c_test.
12203         Call write_writer.
12204         * gensupport.c (init_md_reader_args_cb): Handle multiple input
12205         files on the command line.
12206         (maybe_eval_c_test): Don't check insn_elision_unavailable.
12207         Return -1 if there is no entry in the table, don't abort.
12208         (add_c_test, traverse_c_tests): New functions.
12209         * gensupport.h (insn_elision_unavailable, insn_conditions)
12210         (n_insn_conditions): Delete declarations.
12211         (add_c_test, traverse_c_tests): Declare.
12212         * read-rtl.c: Include gensupport.h.
12213         (read_conditions): New function.
12214         (read_rtx): If read_rtx_1 returns 0, treat as EOF.
12215         (read_rtx_1): If we get EOF when we were looking for an initial
12216         open paren, return 0.  Call read_conditions when appropriate.
12217         * Makefile.in: Kill BUILD_EARLY_SUPPORT and all references to
12218         dummy-conditions.o.  Eliminate references to insn-conditions.o,
12219         or change them to build/gencondmd.o, as appropriate.  Remove
12220         insn-constants.h from $(simple_generated_h) and insn-conditions.c
12221         from $(simple_generated_c).  For all files remaining in those
12222         two lists, add insn-conditions.md to the generator command line.
12223         Give insn-constants.h/s-constants their own rules.  Add rules
12224         for build/gencondmd.c, s-conditions, insn-conditions.md, s-condmd.
12225         (build/read-rtl.o): Depend on gensupport.h.
12226         (genprognormal): Include preds.
12227         (genprogearly): Rename genprognoprint; only difference is now that
12228         they don't link with $(BUILD_PRINT).
12229         * dummy-conditions.c: Delete.
12230
12231 2006-01-22  Zack Weinberg  <zackw@panix.com>
12232
12233         * genextract.c: Don't include insn-config.h.  Do include vec.h.
12234         Declare vectors of int, char, and locstr.
12235         (locstr): New typedef.
12236         (struct extraction): Make all array fields into bare pointers.
12237         (insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
12238         (insn_code_number): Delete.
12239         (accum_extract): New struct.
12240         (VEC_safe_set_locstr, VEC_char_to_string): New functions.
12241         (gen_insn): Take insn_code_number as an argument.  Use an
12242         accum_extract structure instead of loading data directly into
12243         a struct extraction, and having to know how big it might get.
12244         (walk_rtx): Operate entirely on an accum_extract structure.
12245         (print_path): Avoid unnecessary use of printf.
12246         (print_header): New function, split out of main.  Distinguish
12247         more carefully between an unrecognizable insn and an insn that
12248         has the code number of a define_expand.
12249         (main): Pass insn_code_number to gen_insn.  Call print_header
12250         only after parsing.  Avoid unnecessary use of printf.
12251         * Makefile.in (build/vec.o): New rule.
12252         (build/genextract): Depend on build/vec.o.
12253         (build/genextract.o): Don't depend on insn-config.h.
12254
12255 2006-01-22  Zack Weinberg  <zackw@panix.com>
12256
12257         * Makefile.in: Consolidate most rules that use $(CC_FOR_BUILD) and/or
12258         $(RUN_GEN).  Use pattern rules to factor out as much boilerplate as
12259         practical.  Eliminate per-generator-program link rules.
12260
12261 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
12262
12263         PR middle-end/24437
12264         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
12265         with a call expr to ...
12266         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
12267
12268 2006-01-23  Richard Guenther  <rguenther@suse.de>
12269
12270         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Add comment
12271         before make_edge with conditional EDGE_TRUE_VALUE.
12272
12273 2006-01-23  Steven Bosscher  <stevenb.gcc@gmail.com>
12274         Jan Hubicka  <jh@suse.cz>
12275         Richard Guenther  <rguenther@suse.de>
12276
12277         PR rtl-optimization/25654
12278         * cfgexpand.c (aggregate_contains_union_type): New function.
12279         (add_alias_set_conflicts): Call it.  Make sure to add conflicts
12280         for structure variables that contain a union type.
12281
12282 2006-01-23  Richard Sandiford  <richard@codesourcery.com>
12283
12284         * gengtype.c (new_structure): Return the structure.
12285         (create_option): Add an extra "next" argument.
12286         (create_field): New function.
12287         (adjust_field_rtx_def): Use create_option and create_field.
12288         Remove a now-unnecessary call to find_structure.
12289         (adjust_field_tree_def): Likewise.
12290         (note_yacc_type): Remove an unnecessary call to find_structure.
12291         * gengtype.h (new_structure): Return the structure.
12292         (create_option): Add an extra argument.
12293         * gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
12294         (option): Adjust calls to create_option.
12295
12296 2006-01-22  David Edelsohn  <edelsohn@gnu.org>
12297
12298         * config/rs6000/aix.h (STACK_BOUNDARY): Define.
12299
12300 2006-01-22  Paul Brook  <paul@codesourcery.com>
12301         Peter Barada  <peter@the-baradas.com>
12302
12303         * config/m68k/m68k.md: Add Coldfire FPU support.
12304         Define FP mode macro and associated attributes.
12305         Use it for float mode patterns.
12306         * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value.
12307         (LIBCALL_VALUE): Use m68k_libcall_value.
12308         * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype.
12309         (m68k_function_value): Ditto.
12310         (emit_move_sequence): Ditto.
12311         * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value.
12312         * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e.
12313         * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e.
12314         (MULTILIB_EXCEPTIONS): Ditto.
12315         * config/m68k/m68k.opt: Add mcfv4e.
12316         * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e.
12317         (m68k_compute_frame_layout): Include space for ColdFire FPU regs.
12318         (m68k_output_function_prologue): Save ColdFire FPU registers.
12319         (m68k_output_function_epilogue): Restore ColdFire FPU registers.
12320         (force_mode, fp_reg_operand, emit_move_sequence): New functions.
12321         (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in
12322         ColdFire FPU registers.
12323         (m68k_libcall_value, m68k_function_value): New functions.
12324         * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value.
12325         (LIBCALL_VALUE): Use m68k_libcall_value.
12326         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__.
12327         (MASK_COLDFIRE): Add MASK_CFV4E.
12328         (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New.
12329         (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT.
12330         (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto.
12331         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define.
12332         (GO_IF_LEGITIMATE_ADDRESS): Use it.
12333         (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses.
12334         * doc/invoke.tex: Document -mcfv4e on m68k.
12335
12336 2006-01-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
12337
12338         * doc/contribute.texi: Change CVS to SVN and update the corresponding
12339         URL.
12340
12341 2006-01-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12342
12343         PR c++/16190
12344         * c-opts.c (c_common_handle_option): Don't include
12345         -Wnon-virtual-dtor in -Wall; enable if -Weffc++.
12346         * doc/invoke.texi (C++ Dialect Options): Document that
12347         -Wnon-virtual-dtor is no longer included in -Wall.
12348
12349 2006-01-21  Joseph S. Myers  <joseph@codesourcery.com>
12350
12351         * gcov.c (print_version), gcov-dump.c (print_version),
12352         mips-tdump.c (main), mips-tfile.c (main): Update copyright notice
12353         dates.
12354
12355 2006-01-21  Kenneth Zadeck <zadeck@naturalbridge.com>
12356
12357         * df-scan.c (problem_SCAN): Added NULL reset function.
12358         (df_scan_reset_blocks): Added code to call reset block function
12359         (df_bb_refs_delete) Fixed comment.
12360         (df_insn_refs_delete): Made tolerant of deleting non existent info
12361         for dataflow problems that need to be reset.
12362         * df-core.c (df_set_blocks): Ditto.
12363         * df.h (struct df_problem): Added reset_fun.
12364         * df-problems.c (problem_RU, problem_RD, problem_LR, problem_UR,
12365         problem_UREC, problem_CHAIN, problem_RI): Initialized reset_fun field.
12366         (df_chain_insn_reset, df_chain_bb_reset, df_chain_reset): New
12367         functions to clear out all references to def-use or use-def chains.
12368
12369 2006-01-21  Ben Elliston  <bje@au.ibm.com>
12370
12371         * varasm.c (assemble_real): Initialise data array.
12372
12373 2006-01-20  Paul Brook  <paul@codesourcery.com>
12374
12375         Merge from csl-arm-branch.
12376         2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
12377         * config/arm/arm.md (movdi): Force operands[1] to a register
12378         if we have a non-register source.
12379         (*arm_movdi, *movdf_soft_insn): Require that one of the
12380         operands be a register.
12381         * config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
12382         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
12383
12384 2006-01-20  DJ Delorie  <dj@redhat.com>
12385
12386         * varasm.c (initializer_constant_valid_p): Allow pointers
12387         initialized from integer constants of lesser precision.
12388         (output_constant): Allow non-int-sized pointer modes to be
12389         initialized from integer constants.
12390
12391 2006-01-20  Joseph S. Myers  <joseph@codesourcery.com>
12392
12393         PR libstdc++/25524
12394         * cppdefault.h (struct default_include): Add multilib flag.
12395         * cppdefault.c (cpp_include_defaults): Set it.
12396         * c.opt (-imultilib): New option.
12397         * c-opts.c (imultilib): New.
12398         (c_common_handle_option): Handle -imultilib.
12399         (c_common_post_options): Likewise.
12400         * c-incpath.c (add_standard_paths, register_include_chains):
12401         Likewise.
12402         * c-incpath.h (register_include_chains): Add extra parameter.
12403         * gcc.c (do_spec_1): Generate -imultilib option.
12404         (The Specs Language): Update %I description.
12405         (process_command): Update copyright notice.
12406         * doc/cppopts.texi (-imultilib): Document.
12407         * doc/invoke.texi (-imultilib): Include in option summary.
12408         (%I): Update specs documentation.
12409
12410 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
12411
12412         * loop-iv.c (iv_analysis_loop_init): Use df in more conservative way.
12413
12414 2006-01-20  Richard Sandiford  <richard@codesourcery.com>
12415
12416         * stmt.c (case_bit_test_cmp): Stabilize the sort using code
12417         label numbers.
12418
12419 2006-01-20  Richard Guenther  <rguenther@suse.de>
12420         Steven Bosscher <stevenb.gcc@gmail.com>
12421
12422         PR rtl-optimization/24626
12423         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Don't set
12424         EDGE_TRUE_VALUE if in RTL mode.
12425
12426         Revert
12427         2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
12428         * cfgrtl.c (rtl_verify_flow_info_1): Fix.
12429
12430 2006-01-20  Dirk Mueller  <dmueller@suse.com>
12431
12432         PR c++/5520
12433         * c-parser.c (c_parser_if_body): Use build_empty_stmt()
12434         instead of a special NOP marker.
12435         * c-typeck.c (c_finish_if_stmt): Remove obsoleted special
12436         NOP marker handling.
12437         * c-common.h (empty_body_warning): Add forward declaration.
12438         * c-common.c (empty_body_warning): Add (from c_finish_if_stmt).
12439         Now uses IS_EMPTY_STMT() instead of special NOP markers.
12440
12441 2006-01-20  Paul Brook  <paul@codesourcery.com>
12442
12443         * Makefile.in (lang_checks): Keep going if mkdir fails.
12444
12445 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
12446
12447         * df-scan.c (df_scan_free_bb_info): Added basic block parameter to
12448         be able to clean out basic block when not necessary.
12449         (df_scan_free): Fixed to properly delete information if df is
12450         unused before calling df_finish.
12451         (df_scan_alloc, df_rescan_blocks, df_reg_chain_unlink,
12452         df_insn_create_insn_record, df_bb_refs_record): Fixed formatting
12453         or comment typos.
12454         (df_bb_refs_delete): New function.
12455         (df_refs_delete): Moved per block code to df_bb_refs_delete.
12456         * df-core.c (df_set_blocks): Added code to properly clean out
12457         unused blocks if they are not part of the blocks to consider.
12458         Added additional null check.
12459         (df_compact_blocks): Added basic block parameter to free_bb_fun to
12460         be able to clean out basic block when not necessary
12461         * df.h (df_free_bb_function): Ditto.
12462         (df_bb_refs_delete): New function.
12463         * df-problems.c (df_ru_free_bb_info, df_rd_set_bb_info,
12464         df_lr_set_bb_info, df_ur_free_bb_info, df_urec_free_bb_info):Added
12465         basic block parameter to be able to clean out basic block when not
12466         necessary.
12467         (df_ru_alloc, df_rd_alloc): Fixed dyslexic overflow test.
12468         (df_ru_free, df_rd_free, df_lr_free, df_ur_free, df_urec_free):
12469         Fixed to properly delete information if df is unused before
12470         calling df_finish.
12471
12472 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
12473
12474         PR rtl-optimization/25799
12475         * df-problems.c (df_ru_confluence_n, df_rd_confluence_n):
12476         Corrected confluence operator to remove bits from op2 before oring
12477         with op1 rather than removing bits from op1.
12478         (df_ru_transfer_function): Corrected test on wrong bitmap which
12479         caused infinite loop.  Both of these problems were introduced in
12480         the dataflow rewrite.
12481
12482 2006-01-19  DJ Delorie  <dj@redhat.com>
12483
12484         * reload1.c (find_reload_regs): Note the details of reload
12485         failures in the dump file.
12486         (spill_failure): Likewise.
12487
12488 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
12489
12490         * loop-iv.c: Include df.h and hashtab.h.
12491         (enum iv_grd_result): New enum.
12492         (DF_REF_IV, DF_REF_IV_SET): New macros.
12493         (struct biv_entry): New.
12494         (df, bivs): New global variables.
12495         (struct insn_info, insn_info, last_def, bivs, max_insn_no, max_reg_no,
12496         assign_luids, mark_sets, kill_sets, mark_single_set, simple_set_p):
12497         Removed.
12498         (clear_iv_info, latch_dominating_def, record_iv, iv_analyze_expr,
12499         iv_analyze_result, iv_analyze_def, biv_hash, biv_eq,
12500         analyzed_for_bivness_p, record_biv): New functions.
12501         (iv_analysis_loop_init, iv_get_reaching_def, simple_reg_p,
12502         get_biv_step_1, get_biv_step, iv_analyze_biv, iv_analyze_op,
12503         iv_analyze, biv_p, iv_analysis_done): Work with df representation of
12504         UD chains.
12505         (iv_constant, iv_subreg, iv_extend, iv_mult, iv_shift): Do not set
12506         analysed.
12507         (iv_number_of_iterations): Use new interface to iv analysis.
12508         * loop-unroll.c: Do not include varray.h.
12509         (analyze_iv_to_split_insn): Use new interface to iv
12510         analysis.
12511         * loop-unswitch.c (may_unswitch_on): Ditto.
12512         * df.c (df_bitmaps_free): Only work for bbs for that structures are
12513         allocated.
12514         (df_bb_modify): Realloc tables to the new index.
12515         (df_find_use): New function.
12516         * df.h (df_find_use): Declare.
12517         * optabs.c (expand_unop): Make the mode of the REG_EQUAL node be
12518         outmode.
12519         * cfgloop.h (struct rtx_iv): Remove analysed field.
12520         (iv_get_reaching_def): Removed.
12521         (iv_analyze_result, iv_analyze_expr, iv_current_loop_df): Declare.
12522         * Makefile.in (loop-unroll.o): Remove VARRAY_H dependency.
12523         (loop-iv.o): Add df.h and hashtab.h dependency.
12524         * df-problems.c (df_ru_alloc, df_rd_alloc): Fix memory reallocation.
12525
12526 2006-01-20  Alan Modra  <amodra@bigpond.net.au>
12527
12528         PR target/25668
12529         * libgcc2.c (__floatdisf, __floatdidf): Don't use IBM Extended
12530         Double TFmode.
12531         (__floatundisf, __floatundidf): Likewise.
12532         * libgcc2.h (IS_IBM_EXTENDED): Define.
12533
12534 2006-01-19  DJ Delorie  <dj@redhat.com>
12535
12536         * config/m32c/m32c.h (REG_ALLOC_ORDER): Define.
12537
12538 2006-01-19  Paul Brook  <paul@codesourcery.com>
12539
12540         * config/arm/arm.c (arm_compute_func_type): Treat all functions
12541         as nothrow when unwinding tables are disabled.
12542
12543 2006-01-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12544
12545         PR testsuite/25171
12546         * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
12547         of bit-field" when in system header.
12548
12549 2006-01-19  DJ Delorie  <dj@redhat.com>
12550
12551         * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
12552         the 16 bit shift limit of the m16c.
12553
12554 2006-01-19  Andrew Pinski  <pinskia@physics.uc.edu>
12555
12556         PR target/22099
12557         * config/i386/i386.md (builtin_setjmp_receiver): Don't emit the label.
12558         * config/i386/i386.c (output_set_got): Output the label if we have one
12559         for the TARGET_DEEP_BRANCH_PREDICTION case.
12560
12561 2006-01-19  Jan Hubicka  <jh@suse.cz>
12562             H.J. Lu  <hongjiu.lu@intel.com>
12563             Evandro Menezes <evandro.menezes@amd.com>
12564
12565         * invoke.texi (generic): Document
12566         (i686) Update.
12567         * config.gcc: Make x86_64-* and i686-* default to generic tunning.
12568         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64, TARGET_GENERIC,
12569         TARGET_USE_INCDEC, TARGET_PAD_RETURNS): New macros.
12570         (x86_use_incdec, x86_pad_returns): New variables
12571         (TARGET_CPU_DEFAULT_generic): New constant
12572         (TARGET_CPU_DEFAULT_NAMES): Add generic.
12573         (enum processor_type): Add generic32 and generic64.
12574         * i386.md (cpu attribute): Add generic32/generic64
12575         (movhi splitter): Behave sanely when both partial_reg_dependency and
12576         partial_reg_stall are set.
12577         (K8 splitters): Enable for generic as well.
12578         * predicates.md (incdec_operand): Use TARGET_INCDEC
12579         (aligned_operand): Avoid memory mismatch stalls.
12580         * athlon.md: Enable for generic64, new patterns for 128bit moves.
12581         * ppro.md: Enable for generic32
12582         * i386.c (generic64_cost, generic32_cost): New.
12583         (m_GENERIC32, m_GENERIC64, m_GENERIC): New macros.
12584         (x86_use_leave): Enable for generic64.  (x86_use_sahf,
12585         x86_ext_80387_constants): Enable for generic32.  (x86_push_memory,
12586         x86_movx, x86_unroll_strlen, x86_deep_branch, x86_use_simode_fiop,
12587         x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
12588         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
12589         x86_partial_reg_dependency, x86_memory_mismatch_stall,
12590         x86_accumulate_outgoing_args, x86_prologue_using_move,
12591         x86_epilogue_using_move, x86_arch_always_fancy_math_387,
12592         x86_sse_partial_reg_dependency, x86_four_jump_limit, x86_schedule):
12593         Enable for generic.
12594         (x86_use_incdec, x86_pad_returns): New.
12595         (override_options): Add generic32 and generic64, translate "generic"
12596         to generic32/generic64 and "i686" to "generic32", refuse
12597         "generic32"/"generic64" as arch target.
12598         (ix86_issue_rate, ix86_adjust_cost): Handle generic as athlon.
12599         (ix86_reorg): Honor PAD_RETURNS.
12600
12601 2006-01-19  Diego Novillo  <dnovillo@redhat.com>
12602
12603         * tree-pretty-print.c (dump_generic_node): Handle
12604         OMP_PARALLEL_FN, OMP_PARALLEL_DATA_ARG and OMP_RETURN_EXPR.
12605         * cgraph.c (cgraph_expand_queue): Rename from
12606         cgraph_analyze_queue.  Update all users.
12607         * cgraphunit.c (cgraph_assemble_pending_functions): Process
12608         cgraph_expand_queue.
12609         (cgraph_expand_all_functions): Likewise.
12610         (cgraph_finalize_pending_functions): Remove.  Update callers.
12611
12612         * tree.h (OMP_DIRECTIVE_P): Define.
12613         (OMP_PARALLEL_FN): Define.
12614         (OMP_PARALLEL_DATA_ARG): Define.
12615         (OMP_SECTIONS_SECTIONS): Define.
12616         * tree-pass.h (pass_expand_omp): Declare.
12617         * omp-low.c (struct omp_region): Declare.
12618         (struct omp_context): Remove fields 'parallel_type',
12619         'parallel_start_ix' and 'parallel_start_additional_args'.
12620         Update all users.
12621         (struct omp_for_data): Rename from struct expand_omp_for_data.
12622         (omp_regions): New static variable.
12623         (root_omp_region): New static variable.
12624         (find_omp_clause): Make static.
12625         (is_in_combined_parallel_ctx): Remove.
12626         (is_combined_parallel): New.
12627         (extract_omp_for_data): Move earlier in the file.
12628         (workshare_safe_to_combine_p): New.
12629         (get_ws_args_for): New.
12630         (determine_parallel_type): Move earlier in the file.
12631         (omp_copy_decl_2): Do not set DECL_CONTEXT of new local to the
12632         child function.
12633         (omp_copy_decl): Likewise.
12634         (create_omp_child_function): Likewise.
12635         (lookup_omp_region): New.
12636         (dump_omp_region): New.
12637         (debug_omp_region): New.
12638         (debug_all_omp_regions): New.
12639         (new_omp_region): New.
12640         (scan_omp_parallel): If parallel_nesting_level > 1, the
12641         directive is nested within another parallel directive.
12642         Set OMP_PARALLEL_FN.
12643         (scan_omp_for): Do not try to handle combined parallel+for
12644         cases.
12645         Remove FIXME comment.
12646         (scan_omp_nested): Remove.
12647         (scan_omp_1): Do not call scan_omp_nested when
12648         parallel_nesting_level is > 1.
12649         Do not change the DECL_CONTEXT of local variables found.
12650         (lookup_decl_in_outer_ctx): New.
12651         (lower_rec_input_clauses): Rename from expand_rec_input_clauses.
12652         (lower_lastprivate_clauses): Rename from expand_lastprivate_clauses.
12653         (lower_reduction_clauses): Rename from expand_reduction_clauses.
12654         (lower_copyprivate_clauses): Rename from expand_copyprivate_clauses.
12655         If CTX is nested, lookup VAR in the outer context when
12656         building copy assignment.
12657         (lower_send_clauses): Rename from expand_send_clauses.
12658         If CTX is nested, lookup VAR in the outer context when
12659         building copy assignments.
12660         (lower_send_shared_vars): Rename from expand_send_shared_vars.
12661         If CTX is nested, lookup VAR in the outer context when
12662         building copy assignments.
12663         (expand_parallel_call): Rename from build_parallel_call.
12664         Handle combined parallel+workshare cases.
12665         Re-implement to emit code into the CFG.
12666         (list2chain): New.
12667         (expand_omp_parallel): Re-implement to emit code into the CFG.
12668         Call move_sese_region_to_fn to outline the sub-graph
12669         containing the parallel region.
12670         (expand_omp_for_1): Remove.
12671         (expand_omp_for_generic): Re-implement to emit code into the
12672         CFG.
12673         (expand_omp_for_static_nochunk): Likewise.
12674         (expand_omp_for_static_chunk): Likewise.
12675         (expand_omp_for): Likewise.
12676         (expand_omp_sections): Likewise.
12677         (remove_exit_barriers): New.
12678         (expand_omp_synch): New.
12679         (expand_omp): New.
12680         (build_omp_regions_1): New.
12681         (build_omp_regions): New.
12682         (execute_expand_omp): New.
12683         (gate_expand_omp): New.
12684         (pass_expand_omp): Define.
12685         (lower_omp_sections): Rename from expand_omp_sections.
12686         Set OMP_SECTIONS_SECTIONS.
12687         (lower_omp_single_simple): Rename from expand_omp_single_simple.
12688         (lower_omp_single_copy): Rename from expand_omp_single_copy.
12689         (lower_omp_single): Rename from expand_omp_simple.
12690         (lower_omp_master): Rename from expand_omp_master.
12691         (lower_omp_ordered): Rename from expand_omp_ordered.
12692         (lower_omp_critical): Rename from expand_omp_critical.
12693         (lower_omp_for_lastprivate): Rename from expand_omp_for_lastprivate.
12694         (lower_omp_for): Re-implement.
12695         (lower_omp_parallel): Re-implement.
12696         (lower_regimplify): Rename from expand_regimplify.
12697         (lower_omp_1): Rename from expand_omp_1.
12698         If there are syntax errors in the program, replace every
12699         OpenMP directive with NOP.
12700         Call lower_omp_* instead of expand_omp_*.
12701         (lower_omp): Rename from expand_omp.
12702
12703         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN_EXPR.
12704         * tree-gimple.h (enum omp_parallel_type): Remove.
12705         (gimple_boolify): Declare extern.
12706         (find_omp_clause, determine_parallel_type): Remove.
12707
12708         * gimple-low.c (lower_omp_directive): New.
12709         (lower_stmt): Call it.
12710         (record_vars_into): Move from ...
12711         (record_vars): ... here.
12712         Call record_vars_into with current_function_decl.
12713
12714         * gimplify.c (struct gimplify_ctx): Remove fields
12715         combined_pre_p and combined_ctxp.  Update users.
12716         (get_formal_tmp_var): Add documentation.
12717         (gimple_boolify): Make extern.
12718         (gimplify_expr_in_ctx): Remove.  Update callers.
12719         (gimplify_omp_parallel): Do not assume that OMP_PARALLEL_BODY
12720         will always be a BIND_EXPR.
12721         (gimplify_expr): Handle OMP_RETURN_EXPR.
12722         * tree.def (BLOCK): Remove documentation about BLOCK_TYPE_TAGS.
12723         (OMP_PARALLEL): Add 3 operands.
12724         (OMP_SECTIONS): Add 1 operand.
12725         (OMP_RETURN_EXPR): Define.
12726
12727         * tree-inline.c (estimate_num_insns_1): Handle OpenMP directives.
12728         (copy_tree_r): Restore TREE_CHAIN in OMP_CLAUSE_*.
12729         * tree-iterator.c (alloc_stmt_list): Assert that we are not
12730         creating a circular free list.
12731         (free_stmt_list): Assert that we are not freeing stmt_list_cache.
12732
12733         * tree-flow.h (move_sese_region_to_fn): Declare.
12734         (record_vars_into): Declare.
12735         * tree-cfg.c (make_omp_sections_edges): New.
12736         (make_exit_edges): Handle OMP_PARALLEL, OMP_FOR, OMP_SINGLE,
12737         OMP_MASTER, OMP_ORDERED, OMP_CRITICAL, OMP_RETURN_EXPR,
12738         OMP_SECTIONS and OMP_SECTION.
12739         (is_ctrl_altering_stmt): Return true for OMP_DIRECTIVE_P.
12740         (set_bb_for_stmt): Undo change to check currently_expanding_to_rtl.
12741         (verify_stmt): Do not handle OMP_DIRECTIVE_P.
12742         (gather_blocks_in_sese_region): New.
12743         (struct move_stmt_d): Declare.
12744         (move_stmt_r): New.
12745         (move_block_to_fn): New.
12746         (move_sese_region_to_fn): New.
12747
12748         * passes.c (init_optimization_passes): Schedule
12749         pass_expand_omp after pass_init_datastructures.
12750
12751         * tree-ssa-operands.c (get_expr_operands): Handle
12752         OMP_PARALLEL, OMP_SECTIONS, OMP_FOR, OMP_RETURN_EXPR,
12753         OMP_SINGLE, OMP_MASTER, OMP_ORDERED, OMP_CRITICAL.
12754
12755 2006-01-19  Jeff Law  <law@redhat.com>
12756
12757         * tree-vrp.c (extract_range_from_assert): Refine the result range
12758         if the variable referenced by the ASSERT_EXPR has a range and
12759         either the tentative result range or the previous range is a
12760         VR_ANTI_RANGE.
12761
12762 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
12763
12764         * c-decl.c (add_flexible_array_elts_to_size): Simplify vector accesses.
12765
12766 2006-01-19  Jan Hubicka  <jh@suse.cz>
12767
12768         * tree-vect-patterns.c (vect_pattern_recog_1): Prevent parse error.
12769
12770 2006-01-19  Paolo Bonzini  <bonzini@gnu.org>
12771
12772         * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
12773         (expand_compound_operation, expand_field_assignment): Fail if the
12774         bit lengths of an extract operation are out of range.
12775         (make_extraction): Compute wanted_inner_mode based on the position
12776         and length of the extraction.  Make it extraction_mode for non-constant
12777         positions, and do not modify offset in that case.  When generating a
12778         new MEM, use a mode that can hold the extraction while keeping correct
12779         alignment.  Remove code that supported MEMs wrapped by USEs.
12780         (simplify_shift_const_1, force_to_mode) <case USE>: Remove.
12781
12782 2006-01-19  Andreas Krebbel  <krebbel1@de.ibm.com>
12783
12784         * config/s390/s390.md ("Y", "y"): New mode attribute.
12785         ("*cmpdi_ccs", "*cmpsi_ccs", "*adddi3_imm_cc", "*adddi3_carry1_cc",
12786         "*adddi3_carry1_cconly", "*adddi3_carry2_cc", "*adddi3_carry2_cconly",
12787         "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2", "*adddi3_64",
12788         "*addsi3_imm_cc", "*addsi3_carry1_cc",
12789         "*addsi3_carry1_cconly", "*addsi3_carry2_cc", "*addsi3_carr2_cconly",
12790         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
12791         "*subdi3_borrow_cc", "*subdi3_borrow_cconly", "*subdi3_cc",
12792         "*subdi3_cc2", "*subdi3_cconly", "*subdi3_cconly2", "*subdi3_64",
12793         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
12794         "*subsi3_cc2", "*subsi3_cconly", "*subsi3_cconly", "*subsi3_cconly2",
12795         "addsi3", "subsi3"): Insn patterns removed.
12796         ("*add<mode>3_carry1_cc", "*add<mode>3_carry1_cconly",
12797         "*add<mode>3_carry2_cc", "*add<mode>3_carry2_cconly", "*add<mode>3_cc",
12798         "*add<mode>3_cconly", "*add<mode>3_cconly2", "*add<mode>3_imm_cc",
12799         "*sub<mode>3_borrow_cc", "*sub<mode>3_borrow_cconly",
12800         "*sub<mode>3_cc", "*sub<mode>3_cc2", "*sub<mode>3_cconly",
12801         "*sub<mode>3_cconly2"): New insn patterns.
12802         ("addsi3", "subsi3"): New expanders.
12803
12804 2006-01-19  Dorit Nuzman  <dorit@il.ibm.com>
12805
12806         * Makefile.in (tree-vect-patterns.o): Add rule for new file.
12807         * tree-vect-analyze.c (vect_determine_vectorization_factor): Use
12808         existing STMT_VINFO_VECTYPE if available.
12809         (vect_mark_relevant): Add special handling for stmts that are
12810         marked as STMT_VINFO_IN_PATTERN_P.
12811         (vect_analyze_loop): Call vect_pattern_recog.
12812         * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
12813         * tree-vectorizer.h (in_pattern_p, related_stmt): New fields in
12814         stmt_info.
12815         (STMT_VINFO_IN_PATTERN_P, STMT_VINFO_RELATED_STMT): New macros.
12816         (vect_recog_func_ptr): New function-pointer type.
12817         * tree-vect-patterns.c: New file.
12818         (vect_recog_widen_sum_pattern, vect_recog_widen_mult_pattern):
12819         (vect_recog_dot_prod_pattern, vect_pattern_recog):
12820         (vect_pattern_recog_1): New functions.
12821         (vect_pattern_recog_funcs): New array of function pointers.
12822
12823         * tree-vectorizer.h (ternary_op): New enum value.
12824         * tree-vect-transform.c (vect_create_epilog_for_reduction): Added
12825         declaration. Revised documentation. Removed redundant dump prints.
12826         Removed redundant argument. Added support for reduction patterns.
12827         (vectorizable_reduction): Added support for reduction patterns.
12828         (vect_transform_stmt): Added support for patterns.
12829
12830         * expr.c (expand_expr_real_1): Added case for DOT_PROD_EXPR.
12831         * genopinit.c (udot_prod_optab, sdot_prod_optab): Initialize.
12832         * optabs.c (optab_for_tree_code): Added case for DOT_PROD_EXPR.
12833         (expand_widen_pattern_expr): New function.
12834         (init_optabs): Initialize new optabs udot_prod_optab,
12835         sdot_prod_optab.
12836         * optabs.h (OTI_sdot_prod, OTI_udot_prod): New.
12837         (sdot_prod_optab, udot_prod_optab): Define new optabs.
12838         (expand_widen_pattern_expr): New function declaration.
12839         * tree.def (DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR): New
12840         tree-codes.
12841         * tree-inline.c (estimate_num_insns_1): Added cases for new
12842         tree-codes DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
12843         * tree-pretty-print.c (dump_generic_node): Likewise.
12844         (op_prio): Likewise.
12845         (op_symbol): Added cases for WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
12846         * tree-ssa-operands.c (get_expr_operands): Added case for
12847         DOT_PROD_EXPR.
12848         * tree-vect-patterns.c (widened_name_p): New function.
12849         (vect_recog_dot_prod_pattern): Added function implementation.
12850         * tree-vect-transform.c (get_initial_def_for_reduction): Added
12851         cases for DOT_PROD_EXPR, WIDEN_SUM_EXPR.
12852         * config/rs6000/altivec.md (udot_prod<mode>, sdot_prodv8hi): New.
12853         * config/i386/sse.md (sdot_prodv8hi, udot_prodv4si): New.
12854
12855         * expr.c (expand_expr_real_1): Added case for WIDEN_SUM_EXPR.
12856         * genopinit.c (widen_ssum_optab, widen_usum_optab): Initialize.
12857         * optabs.c (optab_for_tree_code): Added case for WIDEN_SUM_EXPR.
12858         (init_optabs): Initialize new optabs widen_ssum_optab,
12859         widen_usum_optab.
12860         * optabs.h (OTI_widen_ssum, OTI_widen_usum): New.
12861         (widen_ssum_optab, widen_usum_optab): Define new optabs.
12862         * tree-vect-generic.c: (expand_vector_operations_1): Check type of
12863         use instead of type of def.
12864         * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Added
12865         function implementation.
12866         * config/rs6000/altivec.md (widen_usum<mode>, widen_ssumv16qi,
12867         widen_ssumv8hi): New.
12868
12869         * doc/tm.texi (ssum_widen, usum_widen, sdot_prod, udot_prod): New
12870         patterns.
12871
12872 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
12873
12874         PR c/25805
12875         * c-decl.c (add_flexible_array_elts_to_size): New function.
12876         (finish_decl): Use it.
12877
12878 2006-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
12879
12880         * diagnostic.h: Include options.h.
12881         * config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
12882         dependancies for diagnostic.h.
12883         * Makefile.in (DIAGNOSTIC_H): Add options.h.
12884
12885 2006-01-16  Daniel Berlin  <dberlin@dberlin.org>
12886
12887         * tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
12888         (ssa_ro_call_cache_valid): Ditto.
12889         * tree-ssa-alias.c (sort_tags_by_id): New function.
12890         (init_transitive_clobber_worklist): Ditto.
12891         (add_to_worklist): Ditto.
12892         (mark_aliases_call_clobbered): Ditto.
12893         (compute_tag_properties): Ditto.
12894         (set_initial_properties): Ditto.
12895         (compute_call_clobbered): Ditto.
12896         (compute_may_aliases):  Call compute_call_clobbered and grouping.
12897         (compute_flow_sensitive_aliasing): Remove clobbering related code.
12898         (compute_flow_insensitive_aliasing): Grouping now happens in our
12899         caller.
12900         (setup_pointers_and_addressables): Remove clobbering related code.
12901         (add_may_alias): Ditto.
12902         (replace_may_alias): Ditto.
12903         (get_nmt_for): Ditto.
12904         (create_global_var):
12905         (is_escape_site): Return an escape_type enumeration.
12906         * tree-flow-inline.h (is_call_clobbered): Global var does not
12907         imply call clobbered.
12908         (mark_call_clobbered): Take a reason for marking this. Remove
12909         marking of globalness, and cache invalidation.
12910         (clear_call_clobbered): Remove cache invalidation code.
12911         * tree-dfa.c (dump_variable): If details is on, dump the reason
12912         for escaping.
12913         * tree-outof-ssa.c (create_temp): Copy escape mask from original
12914         variable.
12915         * tree-flow.h (struct ptr_info_def): Add escape mask member.
12916         (struct var_ann_d): Ditto.
12917         (enum escape_type): New.
12918         (mark_call_clobbered): Adjust prototype.
12919         * tree-ssa-structalias.c (update_alias_info): Unmodifiable vars
12920         are never call clobbered.
12921         Record reasons for escaping.
12922         * tree-ssa-structalias.h (is_escape_site): Update prototype.
12923         * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): Remove.
12924         (ssa_ro_call_cache_valid): Ditto.
12925         (clobbered_v_may_defs): Ditto.
12926         (clobbered_vuses): Ditto.
12927         (ro_call_vuses): Ditto.
12928         (clobber_stats): New.
12929         (init_ssa_operands): Zero out clobber stats.
12930         (fini_ssa_operands): Print out clobber stats.
12931         (get_call_expr_operands): Pass callee fndecl to
12932         add_call_read_ops).
12933         (add_call_clobber_ops): Remove use of cache.
12934         Add use of PURE_CONST information.
12935         (add_call_read_ops): Remove use of cache.
12936         Add use of static not_read information.
12937
12938 2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
12939
12940         Introduce TLS descriptors for i386 and x86_64.
12941         * config/i386/i386.h (TARGET_GNU2_TLS): New macro.
12942         (TARGET_ANY_GNU_TLS): New macro.
12943         (enum tls_dialect): Added TLS_DIALECT_GNU2.
12944         (struct machine_function): Add tls_descriptor_call_expanded_p.
12945         (ix86_tls_descriptor_calls_expande_in_cfun): New macro.
12946         (ix86_current_function_calls_tls_descriptor): Likewise.
12947         * config/i386/i386.c (ix86_tls_dialect): Fix typo in comment.
12948         (override_options): Introduce gnu2 tls dialect.
12949         (ix86_frame_pointer_required): Functions containing TLSCALLs are
12950         not leaves.
12951         (ix86_select_alt_pic_regnum, ix86_compute_frame_layout):
12952         Likewise.
12953         (legitimize_tls_address): Adjust logic for GNU2 TLS.
12954         (ix86_init_machine_status): Initialize new field.
12955         (ix86_tls_get_addr): Use TARGET_ANY_GNU_TLS.
12956         (ix86_tls_module_base): New.
12957         * config/i386/i386-protos.h (ix86_tls_module_base): Declare it.
12958         * config/i386/i386.md (UNSPEC_TLSDESC): New constant.
12959         (tls_global_dynamic_32, tls_global_dynamic_64): Handle GNU2 TLS.
12960         (tls_local_dynamic_base_32, tls_local_dynamic_base_64): Likewise.
12961         (tls_dynamic_gnu2_32, *tls_dynamic_lea_32): New patterns.
12962         (*tls_dynamic_call_32, *tls_dynamic_gnu2_combine_32): Likewise.
12963         (tls_dynamic_gnu2_64, *tls_dynamic_lea_64): Likewise.
12964         (*tls_dynamic_call_64, *tls_dynamic_gnu2_combine_64): Likewise.
12965         * config/i386/predicates.md (tls_modbase_operand): New.
12966         (tp_or_register_operand): New.
12967
12968 2006-01-18  Daniel Berlin  <dberlin@dberlin.org>
12969
12970         * ipa-reference.c (check_operand): Allow FUNCTION_DECL.
12971         (look_for_address_of): Ditto.
12972         (ipa_init): Walk the function decls.
12973         (static_execute): Don't set readonly on FUNCTION_DECL's.
12974
12975 2006-01-18  Roger Sayle  <roger@eyesopen.com>
12976
12977         * config/i386/i386.md (shift spliter): Fix a a typo in the splitter
12978         for shifts where the source and destination registers are different.
12979
12980 2006-01-18  Paul Brook  <paul@codesourcery.com>
12981
12982         Merge from csl-arm-branch.
12983         2005-03-14  Julian Brown  <julian@codesourcery.com>
12984         * config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
12985         (aeabi_llsl): Likewise.
12986         (ashrdi3): Likewise.
12987         (aeabi_lasr): Likewise.
12988         (lshrdi3): Likewise.
12989         (aeabi_llsr): Likewise.
12990         2005-03-10  Julian Brown  <julian@codesourcery.com>
12991         * config.gcc: Disable shared libgcc for SymbianOS.
12992         * config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
12993
12994 2006-01-18  DJ Delorie  <dj@redhat.com>
12995
12996         * c-pragma.c (handle_pragma_diagnostic): New.
12997         (init_pragma): Register it.
12998         * doc/extend.texi: Document it.
12999
13000         * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
13001         * diagnostic.h (diagnostic_classify_diagnostic): Declare.
13002         (diagnostic_context): Add classify_diagnostic[].
13003         * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
13004         as errors if they're overridden to DK_WARNING.
13005         (diagnostic_initialize): Initialize classify_diagnostic[].
13006         (diagnostic_set_kind_override): New.
13007         (diagnostic_report_diagnostic): Check for kind changes.
13008         * opts.c (common_handle_option): Take lang_mask.  Update callers.
13009         Handle OPT_Werror_.
13010         * common.opt (Werror=): New.
13011         * doc/invoke.texi: Document -Werror=*
13012
13013 2006-01-18  Jeff Law  <law@redhat.com>
13014
13015         * tree-vrp.c (test_for_singularity): Correct test for new
13016         min limit.  Use operand_equal_p rather than pointer equality
13017         for testing if new min/max values are equal.
13018
13019         * tree-ssa-propagate.c (substitute_and_fold): Delay simplifications
13020         using range information until after propagation and folding.
13021
13022 2006-01-18  Richard Henderson  <rth@redhat.com>
13023             Aldy Hernandez  <aldyh@redhat.com>
13024             Jakub Jelinek  <jakub@redhat.com>
13025             Diego Novillo  <dnovillo@redhat.com>
13026
13027         * omp-low.c: New file.
13028         * c-omp.c: New file.
13029
13030 2006-01-18  Richard Henderson  <rth@redhat.com>
13031             Jakub Jelinek  <jakub@redhat.com>
13032             Diego Novillo  <dnovillo@redhat.com>
13033
13034         * doc/invoke.texi: Document -fopenmp.
13035         * tree-dump.h (debug_function): Declare.
13036         * hooks.c (hook_bool_tree_bool_false): New function.
13037         (hook_tree_tree_null): Remove.
13038         (hook_tree_tree_tree_null): New.
13039         * hooks.h: Update to match.
13040         * tree-pretty-print.c (debug_tree_chain): New.
13041         (print_generic_expr): Handle TDF_CHAIN.
13042         (dump_generic_node): Handle BLOCK.
13043         Do not abort with incomplete SWITCH_EXPRs.
13044         Do not dump body of an OpenMP directive if TDF_SLIM is given.
13045         <case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
13046         print space after directive name.
13047         <OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
13048         Handle OMP_MASTER and OMP_ORDERED.
13049         Handle printing of OMP_BODY just in one place, goto
13050         dump_omp_body in the rest of OMP_* nodes that have
13051         OMP_BODY.
13052         Don't handle clause nodes here.  Update omp statements to
13053         use dump_omp_clauses.
13054         Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
13055         OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
13056         OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
13057         GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
13058         GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
13059         GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
13060         Adjust output for GOMP_PARALLEL.
13061         (dump_omp_clauses): New.
13062         (print_declaration): Dump DECL_VALUE_EXPR.
13063         (op_symbol_1): Split out of op_symbol.
13064         (dumping_stmts): Remove.  Update all users.
13065         * cgraph.c (cgraph_analyze_queue): New.
13066         (cgraph_add_new_function): New.
13067         * cgraph.h (cgraph_analyze_queue): Declare.
13068         (cgraph_add_new_function): Declare.
13069         (cgraph_lower_function): Remove.
13070         * tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
13071         nodes.  Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
13072         and TYPE_P nodes in its default clause.
13073         (empty_body_p): New.
13074         (tree_range_check_failed): New.
13075         (build5_stat): New.
13076         * tree.h (OMP_CLAUSE_REDUCTION_INIT,
13077         OMP_CLAUSE_REDUCTION_MERGE,
13078         OMP_CLAUSE_REDUCTION_PLACEHOLDER,
13079         OMP_CLAUSE_PRIVATE_DEBUG,
13080         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
13081         OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
13082         OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
13083         OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
13084         OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
13085         OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
13086         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
13087         OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
13088         OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
13089         OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
13090         OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
13091         OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
13092         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
13093         OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
13094         (TREE_RANGE_CHECK): New.
13095         (empty_body_p): Declare.
13096         (enum omp_clause_default_kind): New.
13097         (build_string_literal): Declare.
13098         (enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
13099         (build5_stat, build5): Declare.
13100         * tree-pass.h (TDF_CHAIN): Define.
13101         * tree-pass.h (PROP_gimple_lomp): Define.
13102         (pass_lower_omp): Declare.
13103         * diagnostic.h (debug_tree_chain): Declare.
13104         * builtins.c (get_builtin_sync_mode): Use 0 as last argument to
13105         mode_for_size.
13106         (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
13107         * builtins.c (build_string_literal): Make extern.
13108         * gcc.c (include_spec_function): New.
13109         (static_spec_functions): Add it.
13110         (main): Move load of libgomp.spec ...
13111         (LINK_COMMAND_SPEC): ... here.
13112         (link_gomp_spec): New.
13113         (static_specs): Include it.
13114         (LINK_COMMAND_SPEC): Add link_gomp.
13115         (GOMP_SELF_SPECS): New.
13116         (driver_self_specs): Include it.
13117         (switch_matches): Don't mark inline.
13118         (main): Load libgomp.spec.
13119         * tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
13120         OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
13121         and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
13122         * tree-gimple.h (enum omp_parallel): Declare.
13123         (determine_parallel_type): Declare.
13124         (omp_firstprivatize_variable): Declare.
13125         (omp_reduction_init): Declare.
13126         (diagnose_omp_structured_block_errors): Declare.
13127         (struct walk_stmt_info): Add want_return_expr.
13128         (struct walk_stmt_info): Add want_bind_expr, want_locations.
13129         (find_omp_clause): Declare.
13130         (insert_field_into_struct): Declare.
13131         (struct walk_stmt_info): Move from tree-nested.c
13132         (walk_stmts): Declare.
13133         * c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
13134         to 200505.
13135         * cgraphunit.c (cgraph_lower_function): Make static.
13136         (cgraph_finalize_pending_functions): New.
13137         (cgraph_finalize_function): Call it.
13138         (cgraph_finalize_compilation_unit): Likewise.
13139         * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
13140         BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
13141         (BT_FN_UINT_UINT): New.
13142         (DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
13143         DEF_FUNCTION_TYPE_VAR_4): Document.
13144         (BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
13145         BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
13146         BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
13147         BT_FN_VOID_OMPFN_PTR_UINT_UINT,
13148         BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
13149         BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
13150         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
13151         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
13152         * builtins.def: Update DEF_BUILTIN comment to include COND argument.
13153         Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
13154         into separate files.
13155         (DEF_GOMP_BUILTIN): New.
13156         (BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
13157         BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
13158         BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
13159         BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
13160         BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
13161         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
13162         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
13163         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
13164         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
13165         BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
13166         BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
13167         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
13168         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
13169         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
13170         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
13171         BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
13172         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
13173         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
13174         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
13175         BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
13176         BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
13177         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
13178         BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
13179         BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
13180         BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
13181         BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
13182         * sync-builtins.def: New file, moved from builtins.def.
13183         * omp-builtins.def: New file, moved from builtins.def.
13184         * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
13185         * gimple-low.c (lower_function_body): Clear data.
13186         (lower_stmt): Do not handle COMPOUND_EXPR.
13187         Remove call to print_node_brief.
13188         * c-tree.h (c_finish_omp_clauses): New prototype.
13189         (C_DECL_THREADPRIVATE_P): Define.
13190         (lookup_name_no_remap, c_omp_remap_private): Remove
13191         (c_begin_omp_parallel, c_finish_omp_parallel): Update.
13192         (check_for_loop_decls): Update decl.
13193         (lookup_name_no_remap, c_omp_remap_private): Declare.
13194         (build_indirect_ref, build_modify_expr, pushdecl,
13195         pushdecl_top_level): Move to c-common.h.
13196         * dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
13197         before the switch, but just in the 2 places that need it.
13198         * c-decl.c (diagnose_mismatched_decls): Do not check for
13199         mismatched thread-local attributes when OLDDECL is marked
13200         threadprivate and NEWDECL has no thread-local attributes.
13201         (merge_decls): Merge C_DECL_THREADPRIVATE_P.
13202         (c_gimple_diagnostics_recursively): Rename from
13203         c_warn_unused_result_recursively.  Invoke
13204         diagnose_omp_structured_block_errors.
13205         (check_for_loop_decls): Return a singular decl found.
13206         * langhooks.c (lhd_omp_predetermined_sharing): Return
13207         OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
13208         (lhd_omp_firstprivatize_type_sizes): New.
13209         (lhd_omp_assignment): New.
13210         (lhd_omp_predetermined_sharing): New.
13211         * langhooks.h (struct gimplify_omp_ctx): Forward declare.
13212         (struct lang_hooks_for_types): Add
13213         omp_firstprivatize_type_sizes, omp_privatize_by_reference,
13214         omp_predetermined_sharing, omp_disregard_value_expr,
13215         omp_private_debug_clause, omp_clause_default_ctor,
13216         omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
13217         (c_finish_omp_clauses): New.
13218         (c_finish_bc_stmt): Diagnose break within omp for.
13219         (c_begin_omp_parallel, c_finish_omp_parallel): New.
13220         (build_unary_op): Return error_mark after reporting
13221         a readonly_error.
13222         (build_modify_expr): Likewise.
13223         * gimplify.c: Include optabs.h and pointer-set.h.
13224         (enum gimplify_omp_var_data): Declare.
13225         (struct gimplify_omp_ctx): Declare.
13226         (struct gimplify_ctx): Add fields prev_context, combined_pre_p
13227         and combined_ctxp.
13228         (gimplify_ctxp, gimplify_omp_ctxp): New local variables.
13229         (push_gimplify_context, pop_gimplify_context): Allow nesting.
13230         (splay_tree_compare_decl_uid): New.
13231         (new_omp_context): New.
13232         (delete_omp_context): New.
13233         (gimple_add_tmp_var): Call omp_add_variable.
13234         (gimplify_bind_expr): Likewise.
13235         (gimplify_var_or_parm_decl): If omp_notice_variable returned
13236         true, disregard DECL_VALUE_EXPR on the decl if any.
13237         (gimplify_expr_in_ctx): New.
13238         (omp_firstprivatize_variable, omp_firstprivatize_type_sizes
13239         omp_add_variable, omp_notice_variable, omp_is_private
13240         gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
13241         gimplify_adjust_omp_clauses, gimplify_omp_parallel
13242         gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
13243         gimplify_omp_atomic_fetch_op, goa_stabilize_expr
13244         gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
13245         gimplify_omp_atomic): New.
13246         (gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
13247         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
13248         OMP_CRITICAL and OMP_ATOMIC.
13249         (gimplify_body): Verify gimplify_ctxp is empty after gimplification.
13250         * c-pragma.h (enum pragma_kind): Add
13251         PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
13252         PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
13253         PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
13254         PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
13255         PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
13256         PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
13257         PRAGMA_OMP_THREADPRIVATE.
13258         * tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
13259         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
13260         OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
13261         OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
13262         OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
13263         OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
13264         OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
13265         OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
13266         OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
13267         * print-tree.c (print_node): Dump DECL_VALUE_EXPR.
13268         * tree-ssa-dce.c (find_control_dependence): Do not assume that
13269         ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
13270         * tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
13271         OpenMP directives.
13272         (struct nesting_info): Add field_map,
13273         suppress_expansion, debug_var_chain.
13274         (create_nesting_tree): Initialize them.
13275         (lookup_field_for_decl): Use field_map.
13276         (get_nonlocal_debug_decl, get_local_debug_decl): New.
13277         (convert_local_omp_clauses): New.
13278         (finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
13279         (walk_body): Split out of walk_function.
13280         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
13281         (convert_nonlocal_reference): Handle omp statements.
13282         (convert_local_reference): Likewise.
13283         (unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
13284         (unnest_nesting_tree): New.
13285         (lower_nested_functions): Call it.
13286         (insert_field_into_struct): Make extern.
13287         (struct walk_stmt_info): Move to tree-gimple.h.
13288         (walk_stmts): Make extern.
13289         * omp-builtins.def: New file.
13290         * tree-iterator.c (expr_only): Clarify comment.
13291         * c-common.h (pushdecl_top_level, pushdecl,
13292         build_modify_expr, build_indirect_ref,
13293         c_finish_omp_master, c_finish_omp_critical,
13294         c_finish_omp_ordered, c_finish_omp_barrier,
13295         c_finish_omp_atomic, c_finish_omp_flush,
13296         c_finish_omp_for, c_split_parallel_clauses,
13297         omp_clause_default_kind, c_omp_sharing_predetermined,
13298         c_omp_remap_decl): Declare.
13299         * Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
13300         (OBJS-common): Add omp-low.o.
13301         (c-omp.o, omp-low.o): Add.
13302         (gimplify.o): Add dependency on $(OPTABS_H).
13303         (GTFILES): Add omp-low.c.
13304         (gt-stringpool.h): Add.
13305         * tree-cfg.c (set_bb_for_stmt): Do not update the
13306         block-to-labels map if we are currently expanding to RTL.
13307         (tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
13308         checks.
13309         Handle IDENTIFIER_NODE.
13310         (tree_verify_flow_info): Do not ICE when emitting error
13311         messages about invalid labels.
13312         (dump_function_to_file): Reset CFUN before emitting the body
13313         of the function.
13314         (debug_function): New.
13315         * passes.c (init_optimization_passes): Schedule
13316         pass_lower_omp.
13317         * langhooks-def.h (lhd_omp_predetermined_sharing,
13318         lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
13319         Declare.
13320         (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
13321         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
13322         (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
13323         LANG_HOOKS_OMP_PREDETERMINED_SHARING,
13324         LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
13325         LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
13326         LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
13327         LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
13328         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
13329         LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
13330         (LANG_HOOK_DECLS): Use them.
13331
13332 2006-01-18  Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
13333             Richard Henderson  <rth@redhat.com>
13334             Jakub Jelinek  <jakub@redhat.com>
13335             Diego Novillo  <dnovillo@redhat.com>
13336
13337         * c-parser.c (pragma_omp_clause): Define.
13338         (c_parser_declaration_or_fndef): Document OpenMP syntax.
13339         (c_parser_compound_statement): Likewise.
13340         (c_parser_statement): Likewise.
13341         (c_parser_pragma): Handle omp pragmas.
13342         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
13343         OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
13344         (c_parser_omp_clause_name, check_no_duplicate_clause,
13345         c_parser_omp_variable_list,
13346         c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
13347         c_parser_omp_clause_copyprivate,
13348         c_parser_omp_clause_default,
13349         c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
13350         c_parser_omp_clause_lastprivate,
13351         c_parser_omp_clause_nowait,
13352         c_parser_omp_clause_num_threads,
13353         c_parser_omp_clause_ordered, c_parser_omp_clause_private,
13354         c_parser_omp_clause_reduction,
13355         c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
13356         c_parser_omp_all_clauses, c_parser_omp_structured_block,
13357         c_parser_omp_atomic, c_parser_omp_barrier,
13358         c_parser_omp_critical, c_parser_omp_flush,
13359         c_parser_omp_for_loop, c_parser_omp_for,
13360         c_parser_omp_master, c_parser_omp_ordered,
13361         c_parser_omp_sections_scope, c_parser_omp_sections,
13362         c_parser_omp_parallel, c_parser_omp_single,
13363         c_parser_omp_construct, c_parser_omp_threadprivate): New.
13364         * c-pragma.c (init_pragma): Do omp pragma registration here.
13365         * c.opt (fopenmp): New flag.
13366
13367 2006-01-18  Eric Christopher  <echristo@apple.com>
13368
13369         * gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
13370         * config/darwin.h (GOMP_SELF_SPECS): Define.
13371
13372 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
13373
13374         * rtl.h: Remove the prototype for reg_alloc.
13375
13376 2006-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13377
13378         PR target/25731
13379         * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
13380         hppa[12]*-*-hpux11*): Override default shared libgcc version for both
13381         sjlj and dwarf2 exception handling.
13382         * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
13383         Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
13384         * pa/pa.c (function_value): Treat complex and vector types as
13385         aggregates.
13386         (function_arg): Likewise.  Only pass scalar floats in the floating
13387         point argument registers.
13388         * pa/t-slibgcc-dwarf-ver: New file.
13389         * pa/t-slibgcc-sjlj-ver: New file.
13390         * pa/t-slibgcc-elf-ver: Delete file.
13391
13392 2006-01-19  Alan Modra  <amodra@bigpond.net.au>
13393
13394         * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
13395         unlikely_test_section_p test.
13396
13397 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
13398
13399         * mode-switching.c (optimize_mode_switching): Make it static.
13400         * basic-block.h: Remove the prototype for
13401         optimize_mode_switching.
13402
13403         * modulo-sched.c (sms_schedule): Make it static.
13404         * rtl.h: Remove the prototype for sms_schedule.
13405
13406         * postreload-gcse.c (gcse_after_reload_main): Make it static.
13407         * rtl.h: Remove the prototype for gcse_after_reload_main.
13408
13409         * reg-stack.c (reg_to_stack): Make it static.
13410         * rtl.h: Remove the prototype for reg_to_stack.
13411
13412         * regrename.c (regrename_optimize, copyprop_hardreg_forward):
13413         Make them static.
13414         * rtl.h: Remove the prototypes for regrename_optimize and
13415         copyprop_hardreg_forward.
13416
13417 2006-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13418
13419         * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
13420         alpha_split_tmode_pair.  Add 'mode' and 'fixup_overlap' arguments.
13421         Test against the appropriate null constant for the mode.
13422         If 'fixup_overlap' is true, swap the operands if they overlap.
13423         (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
13424         * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
13425         alpha_split_tmode_pair and adjust for above change.
13426         * config/alpha/alpha.md (movtf_internal): Adjust call to
13427         alpha_split_tfmode_pair and rely on it to swap the operands.
13428         (movti_internal): New insn and post-reload splitter.
13429         (movti): New expander.
13430
13431 2006-01-18  Philippe De Muyter  <phdm@macqel.be>
13432
13433         * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
13434         operands.
13435
13436 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
13437
13438         * rtlanal.c (global_reg_mentioned_p_1,
13439         global_reg_mentioned_p): Remove.
13440         * rtl.h: Remove the prototype for global_reg_mentioned_p.
13441
13442         * flow.c (initialize_uninitialized_subregs): Make it static.
13443         * rtl.h: Remove the prototype for
13444         initialize_uninitialized_subregs.
13445
13446         * function.c (instantiate_virtual_regs): Make it static.
13447         * function.h: Remove the prototype for
13448         instantiate_virtual_regs.
13449
13450         * regmove.c (regmove_optimize, combine_stack_adjustments):
13451         Make them static.
13452         * rtl.h: Remove the prototypes for regmove_optimize and
13453         combine_stack_adjustments.
13454
13455 2006-01-17  Roger Sayle  <roger@eyesopen.com>
13456
13457         * config/i386/i386.c (COSTS_N_BYTES): New macro.
13458         (size_cost): Encode costs in bytes so that a reg-reg addition is
13459         equivalent to COSTS_N_INSNS(1).
13460         (override_options): Use the size_cost.branch_cost as the default
13461         ix86_branch_cost when optimizing for size.
13462
13463 2006-01-18  Ben Elliston  <bje@au.ibm.com>
13464
13465         * Makefile.in (D32PBIT_FUNCS): New.
13466         (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
13467         (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
13468         D64PBIT_FUNCS and D128PBIT_FUNCS.
13469         (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
13470         * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
13471         D128PBIT are set.
13472         (decnumber_dep): Define.
13473         * doc/libgcc.texi (Decimal float library routines): New node.
13474         * config/dfp-bit.h, config/dfp-bit.c: New files.
13475
13476 2006-01-18  Ben Elliston  <bje@au.ibm.com>
13477
13478         * expr.c (emit_move_change_mode): Always adjust addresses, not
13479         just during reload.  Copy replacements only during reload.
13480         (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
13481         emit_move_via_integer.
13482
13483 2006-01-17  Shantonu Sen  <ssen@opendarwin.org>
13484
13485         * Makefile.in (check-%, check-consistency): Use $${srcdir}
13486         instead of $(srcdir) and ${srcdir}.
13487
13488 2006-01-17  Richard Earnshaw  <rearnsha@arm.com>
13489
13490         PR target/592
13491         PR middle-end/11135
13492         * arm.h (struct machine_function): Add pic_reg.
13493         * arm.c (arm_pic_register): Make unsigned.
13494         (arm_override_options): Only set arm_pic_register if
13495         TARGET_SINGLE_PIC_BASE.
13496         (use_return_insn): Only test for a pic register if it is fixed.
13497         (arm_compute_save_reg0_reg12_mask): Likewise.
13498         (thumb_compute_save_reg_mask): Likewise.
13499         (legitimate_pic_operand): Factor out some known invariants.
13500         (legitimize_pic_address): If we don't have a fixed pic register,
13501         then set up a pseudo in the function entry sequence.  Handle the
13502         pic base being in a pseudo.
13503         (arm_load_pic_register): Handle the pic register being in a pseudo.
13504         (arm_expand_prologue): Only set up the pic register if it is fixed.
13505         (thumb_expand_prologue): Likewise.
13506         * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
13507         (pic_load_addr_based_insn): Likewise.
13508         (builtin_setjmp_receiver): Don't restore the pic base if it isn't
13509         fixed.
13510
13511 2006-01-18  Ben Elliston  <bje@au.ibm.com>
13512
13513         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
13514         decimal float modes for all floating point registers.
13515
13516         * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
13517         match_code "mem" with match_test "macho_lo_sum_memory_operand".
13518
13519 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
13520
13521         PR c/25682
13522         * c-typeck.c (build_unary_op): Fold offsetof-like expressions
13523         even when the pointer is not NULL.
13524
13525 2006-01-16  Ian Lance Taylor  <ian@airs.com>
13526
13527         * common.opt (ftoplevel-reorder): New option.
13528         * cgraph.c (cgraph_asm_nodes): New global variable.
13529         (cgraph_asm_last_node): New static variable.
13530         (cgraph_order): New global variable.
13531         (cgraph_create_node): Set new order field.
13532         (cgraph_varpool_node): Likewise.
13533         (decide_is_variable_needed): Return true if not
13534         flag_toplevel_reorder.
13535         (cgraph_add_asm_node): New function.
13536         * cgraph.h (struct cgraph_node): Add order field.
13537         (struct cgraph_varpool_node): Add order field.
13538         (struct cgraph_asm_node): Define.
13539         (cgraph_asm_nodes, cgraph_order): Declare.
13540         (cgraph_add_asm_node): Declare.
13541         * cgraphunit.c (cgraph_varpool_assemble_decl): New static
13542         function.
13543         (cgraph_varpool_assemble_pending_decls): Call it.
13544         (cgraph_output_pending_asms): New static function.
13545         (cgraph_finalize_compilation_unit): Call it.
13546         (struct cgraph_order_sort): Define.
13547         (cgraph_output_in_order): New static function.
13548         (cgraph_optimize): Call cgraph_output_pending_asms.  Add code for
13549         !flag_toplevel_reorder case.
13550         * c-parser.c: Include "cgraph.h".
13551         (c_parser_asm_definition): Call cgraph_add_asm_node rather than
13552         assemble_asm.
13553         * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
13554         than -fno-unit-at-a-time.
13555         * doc/invoke.texi (Option Summary): Mention
13556         -fno-toplevel-reorder.
13557         (Optimize Options): Document -fno-toplevel-reorder.  Mention it in
13558         -funit-at-a-time documentation.
13559
13560 2006-01-17  Hans-Peter Nilsson  <hp@axis.com>
13561             Kazu Hirata  <kazu@codesourcery.com>
13562
13563         * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
13564
13565 2006-01-17  Kazu Hirata  <kazu@codesourcery.com>
13566
13567         * Makefile.in (FUNCTION_H): New.  Use it instead of
13568         function.h throughout the file.
13569         * function.h: Include tree.h.
13570
13571 2006-01-17  Ben Elliston  <bje@au.ibm.com>
13572
13573         * recog.c: Separate some functions with whitespace.
13574
13575 2006-01-16  Richard Henderson  <rth@redhat.com>
13576
13577         Merge from gomp branch:
13578         * Makefile.in (TREE_INLINE_H): New.  Use it as needed.
13579         * tree-inline.h (struct copy_body_data): Move from tree-inline.c
13580         and rename from struct inline_data.  Rename callee* to dst*;
13581         caller* to src*; add copy_decl hook, transform_call_graph_edges,
13582         transform_new_cfg, transform_return_to_modify, and
13583         transform_lang_insert_block flags; remove cloning_p, versioning_p,
13584         update_clones_p.
13585         (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
13586         (copy_decl_for_dup): Remove.
13587         * tree-inline.c (struct inline_data): Move to header.
13588         (insert_decl_map): Export.
13589         (remap_decl): Update for member name changes.  Use copy_decl hook.
13590         Allow for replacement to be a non-decl.  Remove dead code.
13591         (remap_type_1): Check for existing mapping.
13592         (remap_type): Export.
13593         (remap_decls): Update for member name changes.
13594         (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
13595         (copy_body, setup_one_parameter, declare_return_variable): Likewise.
13596         (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
13597         (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
13598         (tree_function_versioning, build_duplicate_type): Likewise.
13599         (copy_body_r): Likewise.  Export.
13600         (copy_decl_for_dup): Split into ...
13601         (copy_decl_for_dup_finish, copy_decl_to_var,
13602         copy_decl_no_change, copy_decl_maybe_to_var): ... these.
13603         (replace_ref_tree, inlining_p): Remove.
13604
13605 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
13606
13607         * ifcvt.c (if_convert): Make it static.
13608         * rtl.h: Remove the prototype for if_convert.
13609
13610         * local-alloc.c (local_alloc): Make it static.
13611         * rtl.h: Remove the prototype for local_alloc.
13612
13613         * loop.c (loop_optimize): Make it static.
13614         * cfgloop.h: Remove the prototype for loop_optimize.
13615         * rtl.h: Likewise.
13616
13617 2006-01-16  DJ Delorie  <dj@redhat.com>
13618
13619         * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
13620         mems.
13621
13622 2006-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13623
13624         * pa.md: Disparage copies between general and floating-point registers
13625         in 32-bit move patterns.
13626
13627 2006-01-16  H.J. Lu  <hongjiu.lu@intel.com>
13628
13629         PR testsuite/25741
13630         * Makefile.in (check-%): Depend on site.exp instead of
13631         $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
13632         directories.
13633
13634 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
13635
13636         * global.c (global_alloc): Make it static.
13637         * rtl.h: Remove the prototype for global_alloc.
13638
13639 2006-01-16  Richard Guenther  <rguenther@suse.de>
13640
13641         * tree-ssa-alias.c (struct used_part): Add write_only field.
13642         (get_or_create_used_part_for): Initialize it to true.
13643         (create_overlap_variables_for): Don't create structure variables
13644         for structures that only are written to.
13645         (find_used_portions): Handle MODIFY_EXPR to track whether a
13646         structure is only written to.
13647
13648 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
13649
13650         * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
13651         static.
13652         * basic-block.h: Remove the prototype for
13653         partition_hot_cold_basic_blocks.
13654
13655 2006-01-16  Rafael Ãvila de EspÃ�­ndola <rafael.espindola@gmail.com>
13656
13657         * cppspec.c (lang_specific_spec_functions): Remove.
13658         * gcc.c (lookup_spec_function): Use static_spec_functions directly.
13659         * gcc.h (lang_specific_spec_functions): Remove.
13660         * gccspec.c (lang_specific_spec_functions): Remove.
13661
13662 2006-01-16  Paolo Bonzini  <bonzini@gnu.org>
13663
13664         * combine.c (record_value_for_reg): Invalidate registers
13665         if INSN is null.
13666         (record_dead_and_set_regs_1): Likewise, by passing them to
13667         record_value_for_reg.
13668         (record_dead_and_set_regs): Invalidate stores made by a
13669         call.  We do not combine across a call, but we still
13670         relied on equivalences.
13671
13672 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
13673
13674         * tree-vrp.c (extract_range_from_binary_expr): Cope with
13675         vrp_int_const_binop returning non-constant nodes.
13676
13677 2006-01-16  Paul Brook  <paul@codesourcery.com>
13678
13679         * config/m68k/m68k.c (output_move_const_into_data_reg):
13680         Output correct mnemonic for mvz and mvs.
13681
13682 2006-01-16  Gabor Loki  <loki@gcc.gnu.org>
13683
13684         * rtl-factoring.c: Add sequence abstraction algorithm.
13685         * cfgcleanup.c (outgoing_edges_match): Extra checks.
13686         (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
13687         ABNORMAL edges.
13688         (block_has_preserve_label): New function.
13689         * common.opt: Register new pass.
13690         * Makefile.in: Ditto.
13691         * passes.c: Ditto.
13692         * timevar.def: Ditto.
13693         * tree-pass.h: Ditto.
13694         * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
13695         * rtl.h (make_jump_insn_raw): Add forward decl.
13696         * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
13697
13698 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
13699             Roger Sayle  <roger@eyesopen.com>
13700
13701         * fold-const.c (fold_minmax): New static function.
13702         (fold_binary) <MIN_EXPR>: Call it.
13703         <MAX_EXPR>: Likewise.
13704         * stor-layout.c (place_field): Use DECL_SIZE consistently
13705         in the computation of the new record size.
13706
13707 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
13708
13709         * cse.c (cse_condition_code_reg): Make it static.
13710         * rtl.h: Remove the prototype for cse_condition_code_reg.
13711
13712         * combine.c (combine_instructions): Make it static.
13713         * rtl.h: Remove the prototype for combine_instructions.
13714
13715 2006-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13716
13717         PR target/25168
13718         * tree.c (get_file_function_name_long): Concatenate the first global
13719         object name with a string derived from the input filename of the object
13720         for type "F".
13721
13722 2006-01-16  Ben Elliston  <bje@au.ibm.com>
13723
13724         * config/i386/winnt-stubs.c: Update FSF address.
13725         * config/xtensa/ieee754-df.S: Ditto.
13726         * config/xtensa/ieee754-sf.S: Ditto.
13727
13728 2006-01-14  Ian Lance Taylor  <ian@airs.com>
13729
13730         * ifcvt.c (noce_init_if_info): New static function, broken out of
13731         noce_process_if_block.
13732         (noce_process_if_block): Call noce_init_if_info.
13733         (check_cond_move_block): New static function.
13734         (cond_move_process_if_block): New static function.
13735         (process_if_block): Call cond_move_process_if_block.
13736
13737 2006-01-15  Kazu Hirata  <kazu@codesourcery.com>
13738
13739         * cselib.c (hash_table): Rename to cselib_hash_table.
13740         (cselib_clear_table, discard_useless_values,
13741         remove_useless_values, cselib_lookup_mem, cselib_lookup,
13742         cselib_init, cselib_finish): Adjust uses of hash_table.
13743
13744 2006-01-14  Kazu Hirata  <kazu@codesourcery.com>
13745
13746         PR tree-optimization/25485
13747         * tree-vrp.c (extract_range_from_binary_expr): Handle cases
13748         where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
13749         is known to be false and true, respectively.
13750
13751 2006-01-14  Richard Guenther  <rguenther@suse.de>
13752
13753         PR tree-optimization/22548
13754         PR tree-optimization/22555
13755         PR tree-optimization/22501
13756         * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
13757         * params.def (salias-max-array-elements): New parameter.
13758         * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
13759         * doc/invoke.texi (salias-max-array-elements): Document.
13760         * tree-flow-inline.h (var_can_have_subvars): We also handle
13761         arrays now.
13762         * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
13763         COMPONENT_REF.
13764         * tree-ssa-structalias.c (params.h): Include.
13765         (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
13766         (find_func_aliases): Handle multiple constraints from ARRAY_REF.
13767         (get_constraint_for): For ADDR_EXPR operating on something
13768         containing an ARRAY_REF, add all subvars to the solution.
13769         (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
13770         * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
13771         for creating MUST_DEFs.
13772         (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
13773
13774 2006-01-14  Zdenek Dvorak <dvorakz@suse.cz>
13775
13776         * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
13777         functions.
13778         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
13779         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
13780         number_of_iterations_le): New functions.
13781         (number_of_iterations_special): Removed.
13782         (number_of_iterations_exit): Do not use number_of_iterations_special.
13783         * tree.c (unsigned_type_for): Always return integer type.
13784
13785 2006-01-14  Steven Bosscher  <stevenb.gcc@gmail.com>
13786         Richard Guenther  <rguenther@suse.de>
13787
13788         PR rtl-optimization/24257
13789         * gcse.c (find_moveable_store): Only consider a store movable
13790         when the SET_SRC of the insn can be assigned to a register.
13791
13792 2006-01-14  Ian Lance Taylor  <ian@airs.com>
13793
13794         * tree.c (tree_not_class_check_failed): New function.
13795         * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
13796         (tree_not_class_check_failed): Declare.
13797
13798 2006-01-13  Ian Lance Taylor  <ian@airs.com>
13799
13800         * reload1.c (do_output_reload): Add assertion rejecting a
13801         CALL_INSN.
13802
13803 2006-01-13  Adam Nemet  <anemet@caviumnetworks.com>
13804
13805         * combine.c (struct reg_stat): Add new fields truncation_label and
13806         truncated_to_mode.
13807         (record_value_for_reg): Reset truncated_to_mode.
13808         (record_truncated_value): New function.
13809         (check_promoted_subreg): Call it.  Rename to check_conversions.
13810         (combine_instructions): Rename check_promoted_subreg to
13811         check_conversions.
13812         (reg_truncated_to_mode): New function.
13813         (make_extraction): Use it.  Check TRULY_NOOP_TRUNCATION.
13814         (gen_lowpart_or_truncate): New function.
13815         (force_to_mode): Use it instead of gen_lowpart.
13816
13817 2006-01-13  Diego Novillo  <dnovillo@redhat.com>
13818
13819         * tree-ssa-alias.c (add_type_alias): Fix typo.  Test whether
13820         VAR is a tag, not its type tag.
13821
13822 2006-01-13  Alexandre Oliva  <aoliva@redhat.com>
13823
13824         * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
13825         alternatives to match style of other entries.
13826         (*vec_extractv2di_1_sse): Likewise.  Fix mode attr.
13827
13828 2006-01-13  Daniel Berlin  <dberlin@dberlin.org>
13829
13830         PR tree-optimization/25771
13831         * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
13832         SSA_NAMES.
13833
13834 2006-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
13835
13836         PR tree-opt/24365
13837         * tree-inline.c (declare_return_variable): If the return variable
13838         was marked as a non gimple complex, set the return slot variable
13839         to be a non gimple comple variable.
13840
13841 2006-01-13  Richard Guenther  <rguenther@suse.de>
13842
13843         * builtins.c (expand_builtin_sincos): New function.
13844         (expand_builtin_mathfn_3): Remove dead code, sin and cos
13845         do not set errno.
13846         (expand_builtin): Expand sincos using expand_builtin_sincos.
13847
13848 2006-01-12  DJ Delorie  <dj@redhat.com>
13849
13850         * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
13851         shift counts, separate SI shifts for m32c vs m16c, pass shift type
13852         so that constant shifts can be split.
13853         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
13854         (m32c_valid_pointer_mode): Make static.
13855         (shift_gen_func_for): New.
13856         (m32c_prepare_shift): Use it.  Split large const shifts into
13857         multiple shifts.
13858         * config/m32c/predicates.md (shiftcount_operand): Allow more
13859         general operands.
13860         (longshiftcount_operand): New.
13861         * doc/md.texi (Machine Constraints): Document In6.
13862
13863 2006-01-13  Ben Elliston  <bje@au.ibm.com>
13864
13865         * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
13866         REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
13867         documentation.
13868
13869 2006-01-12  Daniel Berlin  <dberlin@dberlin.org>
13870
13871         * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
13872         to try to avoid clobbering pieces of structures when we know
13873         something about the whole structure.
13874         * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
13875
13876 2006-01-13  Ben Elliston  <bje@au.ibm.com>
13877
13878         * doc/rtl.texi (Insns): Remove statement that libcalls cannot
13879         return in memory, as this is no limitation is no longer present.
13880
13881 2006-01-12  DJ Delorie  <dj@redhat.com>
13882
13883         * config/m32c/addsub.md (addhi3): Add two more alternatives, for
13884         mova with fb, and for fb+0 -> An.
13885
13886         * config/m32c/mov.md (peephole2): Fix enabling logic.
13887
13888         * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
13889         DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
13890         DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
13891         FINI_ARRAY_SECTION_ASM_OP): Define.
13892
13893         * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
13894         variable.
13895         (m32c_legitimize_reload_address): New logic to reload FB to An.
13896         (m32c_output_reg_push): Add newline.
13897         (m32c_output_reg_pop): Likewise.
13898
13899 2006-01-12  Ulrich Weigand  <uweigand@de.ibm.com>
13900
13901         * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
13902
13903 2006-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
13904
13905         * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
13906
13907 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
13908
13909         * config/sh/predicates.md (sh_rep_vec): Add parallel to
13910         match_code.
13911
13912 2006-01-11  Ben Elliston  <bje@au.ibm.com>
13913
13914         * rtlanal.c (find_reg_note): Assert insn is not null.
13915
13916 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
13917
13918         * df-scan.c (df_hard_reg_init): Move declaration of i outside
13919         ifdef.
13920
13921 2006-01-11  Jeff Law  <law@redhat.com>
13922
13923         * tree-ssa-threadupdate.c (threaded_edges): New VEC to
13924         hold edge pairs.
13925         (mark_threaded_blocks, register_jump_thread): New functions.
13926         (thread_through_all_blocks): Remove unwanted argument.  No
13927         longer rely on e->aux to communicate thread target info.
13928         Call mark_threaded_blocks.  Release the threaded_blocks
13929         bitmap and threaded_edges vector when complete.
13930         * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
13931         (threaded_blocks): Remove.
13932         (tree_ssa_dominator_optimize): Remove initialization and
13933         finalization of threaded_blocks.  Simplify call to
13934         thread_through_all_blocks.
13935         (thread_across_edge): Call register_jump_thread rather than
13936         storing thread information into e->aux.
13937         (free_all_edge_infos): Simplify now that e->aux is no longer
13938         used to communicate with thread_through_all_blocks.
13939         * tree-flow.h (thread_through_all_blocks): Update prototype.
13940         (register_jump_thread): Prototype.
13941
13942 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
13943
13944         * df-core.c (df_compact_blocks, df_bb_replace): Use
13945         SET_BASIC_BLOCK instead of BASIC_BLOCK.
13946
13947 2006-01-11  Richard Guenther  <rguenther@suse.de>
13948
13949         PR tree-optimization/25734
13950         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
13951         stop propagation after successful propagation to the LHS.
13952
13953 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
13954
13955         * basic-block.h (control_flow_graph): Change the type of
13956         x_basic_block_info to VEC(basic_block,gc) *.
13957         (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
13958         basic_block_info.
13959         (SET_BASIC_BLOCK): New.
13960         * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
13961         instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
13962         * cfgbuild.c (find_basic_blocks): Likewise.
13963         * cfglayout.c (fixup_reorder_chain): Likewise.
13964         * cfgrtl.c (create_basic_block_structure,
13965         rtl_create_basic_block): Likewise.
13966         * ifcvt.c (find_if_case_1): Likewise.
13967         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
13968         Likewise.
13969
13970 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
13971
13972         * Makefile.in: Removed rotted odf.c entry.
13973
13974 2006-01-11  Hans-Peter Nilsson  <hp@axis.com>
13975
13976         PR target/25706
13977         * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
13978         ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
13979         ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
13980         output pattern modifier, not %e.
13981         * config/cris/cris.c (cris_op_str): Update comment about pattern
13982         modifier.
13983         (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
13984         before falling through into...
13985         <case 'E'>: Redefined from old 'e' case.
13986
13987 2006-01-11  Jan Hubicka  <jh@suse.cz>
13988
13989         PR target/25042
13990         * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
13991
13992 2006-01-11  Jan Hubicka  <jh@suse.cz>
13993
13994         * i386.h (TARGET_DECOMPOSE_LEA): Kill.
13995         * i386.c (x86_decompose_lea): Kill.
13996         (ix86_rtx_costs): Kill.
13997
13998 2006-01-11  Jan Hubicka  <jh@suse.cz>
13999
14000         * cgraph.c (cgraph_insert_node_to_hashtable): New function.
14001         * cgraph.h (cgraph_node): Add inline_decl.
14002         (cgraph_insert_node_to_hashtable): Declare.
14003         (save_inline_function_body): Declare.
14004         * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
14005         clones.
14006         (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
14007         (cgraph_function_versioning): Update call of tree_function_versioning.
14008         (save_inline_function_body): New function.
14009         * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
14010         saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
14011         * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
14012         (cgraph_default_inline_p): Likewise.
14013         (cgraph_decide_inlining_incrementally): Likewise.
14014         * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
14015         (copy_bb): Kill saving; do updating of clones.
14016         (copy_cfg_body): Kill saving.
14017         (initialize_inlined-parameters): Likewise.
14018         (expand_call_inline): Likewise.
14019         (save_body): Kill.
14020         (tree_function_versioning): New parameter "update_clones".
14021         (inlining_p): Kill saving.
14022         * tree-inline.h (tree_function_versioning): Update prototype.
14023         * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
14024         saving.
14025
14026 2006-01-11  Ian Lance Taylor <ian@airs.com>
14027
14028         * combine.c (struct undo): Remove is_int.  Enumify types of undos.
14029         Allow undoing set of machine mode.
14030         (do_SUBST): Use enums instead of is_int.
14031         (do_SUBST_MODE): New function.
14032         (SUBST_MODE): New macro.
14033         (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
14034         reg and trying to replace reg_regno_rtx with a new register.
14035         (undo_all): Use new enums, handle undoing a PUT_MODE change.
14036         (simplify_set): Use SUBST_MODE.
14037         (distribute_notes): Remove code that tried to update reg notes
14038         for regno_reg_rtx changes.
14039
14040 2006-01-11  Paolo Bonzini  <bonzini@gnu.org>
14041
14042         PR tree-optimization/23109
14043         PR tree-optimization/23948
14044         PR tree-optimization/24123
14045
14046         * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
14047         * tree-cfg.c (single_noncomplex_succ): New.
14048         * tree-flow.h (single_noncomplex_succ): Declare it.
14049         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
14050         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
14051         (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
14052         insert_bb, register_division_in, insert_reciprocals,
14053         replace_reciprocal, free_bb): New.
14054         (execute_cse_reciprocals_1): Rewritten.
14055         (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
14056         Do not commit any edge insertion.  Always compute dominators and
14057         create the allocation pool.
14058         * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
14059         * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
14060         * targhooks.c (default_min_divistions_for_recip_mul): New.
14061         * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
14062         * passes.c (init_optimization_passes): Run recip after tree loop
14063         optimizations.
14064         * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
14065
14066 2006-01-11  Danny Berlin <dberlin@dberlin.org>
14067             Kenneth Zadeck <zadeck@naturalbridge.com>
14068
14069         * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
14070         DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
14071         DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
14072         DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
14073         DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
14074         DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
14075         DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
14076         DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
14077         DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
14078         DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
14079         DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
14080         DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
14081         DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
14082         DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
14083         DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
14084         DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
14085         DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
14086         DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
14087         DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
14088         DF_SCAN_POST_ALLOC): New macros.
14089         (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
14090         df_free_bb_function, df_local_compute_function, df_init_function,
14091         df_dataflow_function, df_confluence_function_0,
14092         df_confluence_function_n, df_transfer_function,
14093         df_finalizer_function, df_free_function, df_dump_problem_function,
14094         df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
14095         df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
14096         df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
14097         df_urec_bb_info, ) New types.
14098         (df_invalidated_by_call, df_all_hard_regs, df_state) New public
14099         variables.
14100         (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
14101         df_analyze_simple_change_some_blocks,
14102         df_analyze_simple_change_one_block, df_compact_blocks,
14103         df_bb_replace, df_bb_regno_last_use_find,
14104         df_bb_regno_first_def_find, df_bb_regno_last_def_find,
14105         df_insn_regno_def_p, df_find_def, df_find_use,
14106         df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
14107         df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
14108         df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
14109         debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
14110         debug_df_chain, df_get_dependent_problem, df_chain_create,
14111         df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
14112         df_grow_bb_info, df_chain_dump, df_print_bb_index,
14113         df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
14114         df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
14115         df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
14116         df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
14117         df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
14118         df_rescan_blocks, df_ref_create, df_get_artificial_defs,
14119         df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
14120         df_ref_remove, df_insn_refs_delete, df_refs_delete,
14121         df_reorganize_refs, df_set_state, df_hard_reg_init,
14122         df_read_modify_subreg_p) New public functions.
14123         * df-core.c: The core dataflow solver and glue routines for rtl
14124         dataflow.
14125         (df_init, df_add_problem, df_set_blocks, df_finish,
14126         df_hybrid_search_forward, df_hybrid_search_backward,
14127         df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
14128         df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
14129         df_bb_regno_last_use_find, df_bb_regno_first_def_find,
14130         df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
14131         df_reg_defined, df_find_use, df_reg_used, df_dump,
14132         df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
14133         df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
14134         debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
14135         debug_df_useno, reset_df_after_reload): New functions.
14136         * df-scan.c: The scanning fuctions, once in df.c, completely
14137         rewritten so that they now fully model the functionality of
14138         register usage at the backend.
14139         (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
14140         df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
14141         df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
14142         df_grow_insn_info, df_rescan_blocks, df_ref_create,
14143         df_get_artificial_defs, df_get_artificial_uses,
14144         df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
14145         df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
14146         df_refs_delete, df_reorganize_refs, df_set_state,
14147         df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
14148         df_def_record_1, df_defs_record, df_uses_record,
14149         df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
14150         df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
14151         df_record_exit_block_uses, df_hard_reg_init): New functions.
14152
14153         * df-problems.c: Seven concrete dataflow problems that use the
14154         scanning in df-scan.c and are solved by the engine in df-core.c.
14155         (df_get_dependent_problem, df_chain_create, df_chain_unlink,
14156         df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
14157         df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
14158         df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
14159         df_ru_free_bb_info, df_ru_alloc,
14160         df_ru_bb_local_compute_process_def,
14161         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
14162         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
14163         df_ru_transfer_function, df_ru_free, df_ru_dump,
14164         df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
14165         df_rd_free_bb_info, df_rd_alloc,
14166         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
14167         df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
14168         df_rd_transfer_function, df_rd_free, df_rd_dump,
14169         df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
14170         df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
14171         df_lr_local_compute, df_lr_init, df_lr_confluence_0,
14172         df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
14173         df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
14174         df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
14175         df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
14176         df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
14177         df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
14178         df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
14179         df_urec_mark_reg_change, df_urec_check_earlyclobber,
14180         df_urec_mark_reg_use_for_earlyclobber,
14181         df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
14182         df_urec_local_compute, df_urec_init, df_urec_local_finalize,
14183         df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
14184         df_urec_dump, df_urec_add_problem, df_chain_alloc,
14185         df_chain_create_bb_process_use, df_chain_create_bb,
14186         df_chain_finalize, df_chain_free, df_chains_dump,
14187         df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
14188         df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
14189         df_reg_lifetime): New functions.
14190         * df.c: Deleted file.
14191         * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
14192         consistent with new df api.
14193         * modulo-sched.c (sms_schedule, rest_of_handle_sms,
14194         rest_of_handle_sms): Ditto.
14195         * web.c (unionfind_union, union_defs, entry_register, web_main):
14196         Ditto.
14197         * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
14198         invariant_expr_equal_p, find_defs, check_dependencies,
14199         find_invariant_insn, find_invariants_to_move, move_invariant_reg,
14200         free_inv_motion_data, move_loop_invariants): Ditto.
14201         * Makefile.in (df.c, df-scan.c df-problems.c df-core.c):
14202         Update dependencies.
14203         (odf.c): Added defective entry that was deleted later in day.
14204         * sched-deps.c (sched_analyze_1): Ditto.
14205
14206 2006-01-11  Zdenek Dvorak <dvorakz@suse.cz>
14207
14208         * tree-ssa-operands.c (get_expr_operands): Record addressable
14209         variables directly.  Do not call add_stmt_operands for CONST_DECLs
14210         and ARRAY_DECLs.
14211         (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
14212         (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
14213
14214 2006-01-11  Ben Elliston  <bje@au.ibm.com>
14215
14216         * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
14217         function returns true in the positive case.
14218
14219 2006-01-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14220
14221         PR target/20754
14222         * config/pa/pa.md: Create separate 32 and 64-bit move patterns
14223         for SI, DI, SF and DF modes.  Add alternatives to copy between
14224         general and floating point registers to the 32-bit patterns.
14225         * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
14226         * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
14227         (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
14228         generating 64-bit code.
14229         * config/pa/pa.c (output_move_double): Handle copies between general
14230         and floating registers.
14231
14232 2006-01-10  Stuart Hastings  <stuart@apple.com>
14233
14234         * config/i386/i386.md (set_got): Update.
14235         (set_got_labelled): New.  (UNSPEC_LD_MPIC): New.
14236         (builtin_setjmp_receiver): Mach-O support.
14237         * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
14238         (GOT_SYMBOL_NAME): Define.
14239         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
14240         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
14241         * config/i386/i386.c (override_options): Revise for Darwin.
14242         (USE_HIDDEN_LINKONCE): Enable for Mach-O.  (ix86_file_end): Mach-O
14243         support.  (darwin_x86_file_end): New.  (output_set_got): Add label
14244         parameter, revise for Mach-O.  (x86_output_mi_thunk): Likewise.
14245         * config/i386/i386-protos.h (output_set_got): Likewise.
14246         * config/darwin.c (machopic_legitimize_pic_address): Update
14247         regs_ever_live[].
14248
14249 2006-01-10  Kaz Kojima  <kkojima@gcc.gnu.org>
14250
14251         * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
14252         when MODE isn't BLKmode.
14253
14254 2006-01-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
14255
14256         PR rtl-optimization/25367
14257         * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
14258
14259 2006-01-10  Hans-Peter Nilsson  <hp@axis.com>
14260
14261         PR target/25718
14262         * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
14263         for a negative bound.
14264
14265 2006-01-10  Richard Guenther  <rguenther@suse.de>
14266
14267         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14268         Never override with anything constraint.
14269
14270 2006-01-10  Jan Beulich  <jbeulich@novell.com>
14271
14272         * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
14273         256 bits when optimize_size.
14274
14275 2006-01-10  Jan Beulich  <jbeulich@novell.com>
14276
14277         * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
14278         MASK_ALIGN_DOUBLE.
14279         * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
14280         * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
14281         arguments.
14282
14283 2006-01-10  Ben Elliston  <bje@au.ibm.com>
14284
14285         * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
14286         float modes.
14287         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
14288         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
14289         (USE_FP_FOR_ARG): Reject decimal float modes.
14290         (function_arg_advance): Likewise.
14291         (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
14292         (rs6000_handle_altivec_attribute): Do not permit decimal floating
14293         point types in AltiVec vectors.
14294         (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
14295         (rs6000_libcall_value): Likewise.
14296
14297 2006-01-09  Bob Wilson  <bob.wilson@acm.org>
14298
14299         * config/xtensa/ieee754-df.S: New file.
14300         * config/xtensa/ieee754-sf.S: New file.
14301         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
14302         (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
14303         * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
14304
14305 2006-01-09  Kazu Hirata  <kazu@codesourcery.com>
14306
14307         * config/sh/predicates.md (binary_float_operator,
14308         binary_logical_operator, commutative_float_operator,
14309         equality_comparison_operator, greater_comparison_operator,
14310         less_comparison_operator, logical_operator,
14311         noncommutative_float_operator, shift_operator,
14312         symbol_ref_operand, unary_float_operator): Remove redundant
14313         conditionals.
14314
14315 2006-01-09  Jeff Law  <law@redhat.com>
14316
14317         * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
14318         code to propagate the RHS of a cast into COND_EXPR_COND.  Remove
14319         now unused arguments.  Callers updated.
14320         (eliminate_redundant_computations): Remove now unused arguments,
14321         callers updated.
14322         (local_fold): Remove, no longer used.
14323         (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
14324         and moved to...
14325         * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
14326         (simplify_cond): New function.
14327         (forward_propagate_into_cond): Call simplify_cond.
14328
14329 2006-01-09  Alexandre Oliva  <aoliva@redhat.com>
14330
14331         * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
14332         (*vec_extractv2di_1_sse): New.
14333
14334 2006-01-09  Ben Elliston  <bje@au.ibm.com>
14335
14336         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
14337
14338 2006-01-08  Richard Guenther  <rguenther@suse.de>
14339
14340         * tree-ssa-structalias.c (get_constraint_for): Remove
14341         anyoffset argument.
14342         (get_constraint_for_component_ref): Likewise.
14343         (do_deref): Likewise.
14344         (get_constraint_for): Likewise.
14345         (do_structure_copy): Likewise.
14346         (handle_ptr_arith): Likewise.
14347         (find_func_aliases): Likewise.  Remove unused need_anyoffset
14348         variable.
14349
14350 2006-01-08  J"orn Rennecke  <joern.rennecke@st.com>
14351             Kaz Kojima  <kkojima@gcc.gnu.org>
14352
14353         * config/sh/sh.h (CONST_OK_FOR_K16): Define.
14354         (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
14355         (EXTRA_CONSTRAINT_C16): Remove.
14356         (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
14357         (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
14358         EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
14359         * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
14360         constants of SHmedia.  Handle nested constant expressions of
14361         SHmedia correctly.
14362         (andcosts): Fix the costs for SHmedia constants.
14363         (sh_rtx_costs): Take account of outer_code for SHmedia constants.
14364         * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
14365         (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
14366         (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
14367         (movv4hi_i, movv2si_i): Likewise.
14368         (movsi_const): Adjust the second operand of ior so to match with
14369         the Csu constraint.
14370         (movdi_const, movdi_const_32bit): Likewise.
14371         (movdi_const_16bit+1): Don't sign-extend LOW.
14372         (movdi_const_16bit+2): Likewise.  Remove the zero_extend and truncate
14373         step.
14374         (*double_shori): Fix the split condition.  Use GEN_INT instead
14375         of get_int_mode calls.  Mask lower 16-bit of the argument of
14376         the last GEN_INT.
14377         (sym2GOTPLT): Remove.
14378         (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
14379         gen_rtx_UNSPEC.
14380         * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
14381         instead of EXTRA_CONSTRAINT_C16.
14382
14383 2006-01-07  Ian Lance Taylor  <ian@airs.com>
14384             David Edelsohn  <edelsohn@gnu.org>
14385
14386         PR rtl-optimization/25662
14387         * optabs.c (simplify_expand_binop): Use simplify_binary_operation
14388         for constant operands instead of simplify_gen_binary.
14389         * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
14390         after trying simplify_binary_operation
14391
14392 2006-01-06  Daniel Berlin  <dberlin@dberlin.org>
14393
14394         * tree.c (iterative_hash_expr): Hash decls based on UID.
14395
14396 2006-01-06  Eric Christopher  <echristo@apple.com>
14397
14398         * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
14399         (TARGET_UNWIND_EMIT): Fix spelling.
14400         * target.h (gcc_target): Add except_table_label.
14401         * except.c (output_function_exception_table): Use.
14402         * varasm.c (default_emit_except_table_label): New.
14403         * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
14404         define.
14405         (asm_out): Add here.
14406         * output.h (default_emit_except_table_label): Prototype.
14407         * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
14408         * config/darwin.c (darwin_emit_except_table_label): Define.
14409         * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
14410
14411 2006-01-06  Zdenek Dvorak <dvorakz@suse.cz>
14412
14413         PR tree-optimization/18527
14414         * tree-ssa-loop-niter.c (number_of_iterations_cond,
14415         number_of_iterations_special, number_of_iterations_exit):
14416         Move base and step of an iv to a single structure.  Add
14417         no_overflow flag, and use it in # of iterations analysis.
14418         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
14419         folded_casts argument.
14420         (simple_iv): Pass base and step in a structure.  Set no_overflow
14421         flag.
14422         (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
14423         Evaluate expensiveness of computing # of iterations instead of
14424         the final expression.
14425         * tree-scalar-evolution.h (affine_iv): New structure.
14426         (simple_iv): Declaration changed.
14427         * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
14428         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
14429         find_givs_in_stmt): Changed due to simple_iv change.
14430
14431 2006-01-06  Jeff Law  <law@redhat.com>
14432
14433         PR ada/24994
14434         * tree-cfg.c (bsi_replace): Rename final argument from
14435         PRESERVE_EH_INFO to UPDATE_EH_INFO.  Fix typo in last
14436         change (stmt -> orig_stmt).
14437         * tree-eh.c (verify_eh_throw_stmt_node): New function.
14438         (bsi_remove): Add new argument.  Remove EH information
14439         if requested.
14440         (verify_eh_throw_table_statements): New function.
14441         (bsi_remove): Add new argument REMOVE_EH_INFO.  All callers
14442         updated.
14443         * tree-optimize.c (execute_free_cfg_annotations): Verify
14444         the EH throw statement table after removing annotations.
14445         * except.h (verify_eh_throw_table_statements): Prototype.
14446         * tree-flow.h (bsi_remove): Update prototype.
14447         * tree-vrp.c (remove_range_assertions): Add new argument to
14448         bsi_remove call.
14449         * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
14450         * tree-complex.c (expand_complex_div_wide): Likewise.
14451         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
14452         * tree-tailcall.c (eliminate_tailcall): Likewise.
14453         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
14454         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
14455         * tree-nrv.c (tree_nrv): Likewise.
14456         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
14457         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
14458         (combine_blocks): Likewise.
14459         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
14460         * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
14461         (cleanup_control_flow): Likewise.
14462         (remove_forwarder_block): Likewise.
14463         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
14464         * tree-sra.c (sra_replace): Likewise.
14465         * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
14466         (forward_propagate_single_use_vars): Likewise.
14467         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
14468         * tree-inline.c (expand_call_inline): Likewise.
14469         * tree-vect-transform.c (vect_transform_loop): Likewise.
14470         * tree-outof-ssa.c (rewrite_trees): Likewise.
14471         * tree-cfg.c (make_goto_expr_edges): Likewise.
14472         (cleanup_dead_labels): Likewise.
14473         (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
14474         (bsi_move_before, bsi_move_after): Likewise.
14475         (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
14476         (tree_redirect_edge_and_branch, tree_split_block): Likewise.
14477
14478 2006-01-06  Andrew Pinski  <pinskia@physics.uc.edu>
14479
14480         PR tree-opt/25528
14481         * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
14482         and IMAGPART_EXPR.
14483         * tree-flow-inline.h (var_can_have_subvars): Handle complex types
14484         on non gimple variables.  Also add checks at the top for decls and
14485         mtags.
14486         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
14487         complex types.
14488         * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
14489         and IMAGPART_EXPR for creating MUST_DEFs.
14490         (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
14491         and NAME_MEMORY_TAG separately from the DECLs.
14492
14493 2006-01-06  Richard Guenther  <rguenther@suse.de>
14494
14495         * tree-dfa.c (mark_new_vars_to_rename): Create stmt
14496         annotation, if necessary.
14497         * tree-ssa-pre.c (create_expression_by_pieces): Remove
14498         redundant calls to update_stmt.
14499         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
14500         Likewise.
14501
14502 2006-01-05  Richard Henderson  <rth@redhat.com>
14503
14504         * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
14505
14506 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
14507
14508         * c-typeck.c: Update copyright date.
14509
14510 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
14511
14512         * c-typeck.c (build_c_cast): Always warn when casting
14513         from a pointer to an integer of different size, even if
14514         the node was constant.
14515
14516 2006-01-05  Richard Guenther  <rguenther@suse.de>
14517
14518         PR tree-optimization/22555
14519         * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
14520         if one structure field is an array.
14521         * tree-ssa-operands.c (get_expr_operands): Continue scanning
14522         operands even if we found a subvar, but ignore VOPs in this
14523         case.
14524         * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
14525         for renaming.
14526         * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
14527
14528 2006-01-05  Richard Earnshaw  <rearnsha@arm.com>
14529
14530         PR middle-end/24998
14531         * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
14532
14533 2006-01-05  Richard Guenther  <rguenther@suse.de>
14534             Diego Novillo  <dnovillo@redhat.com>
14535
14536         * tree-pass.h (TODO_remove_unused_locals): Define.
14537         * gimple-low.c (expand_var_p, remove_useless_vars,
14538         pass_remove_useless_vars): Remove.  Update all users.
14539         * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
14540         (remove_unused_locals): New function.
14541         * tree-flow.h (remove_unused_locals): Declare.
14542         * passes.c (execute_todo): Call remove_unused_locals if
14543         TODO_remove_unused_locals is set.
14544         * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
14545         * tree-ssa-dce.c (pass_dce): Likewise.
14546         * tree-outof-ssa.c (pass_del_ssa): Likewise.
14547
14548 2006-01-05  Richard Guenther  <rguenther@suse.de>
14549
14550         * tree-flow.h (struct fieldoff): Decompose field to
14551         type, size and decl.
14552         * tree-ssa-alias.c (create_sft): Take type as parameter.
14553         (create_overlap_variables_for): Store type, size and decl
14554         in the fieldoff structure.
14555         * tree-ssa-structalias.c (fieldoff_compare): Adjust users
14556         of struct fieldoff.
14557         (push_fields_onto_fieldstack): Likewise.
14558         (create_variable_info_for): Likewise.  Use offset for the
14559         SFT name if the decl is not available.
14560
14561 2006-01-04  Paul Brook  <paul@codesourcery.com>
14562
14563         * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
14564
14565 2006-01-04  Daniel Berlin  <dberlin@dberlin.org>
14566
14567         * lambda-code.c (can_put_in_inner_loop): Relax
14568         restrictions.
14569         (can_put_after_inner_loop): New function.
14570         (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
14571         (perfect_nestify): Change to make copies and modify uses.
14572
14573 2006-01-04  Richard Henderson  <rth@redhat.com>
14574
14575         Merge from gomp branch:
14576         * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
14577         via integer constant.
14578         (pragma_lex): Remove.
14579         * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
14580         rather than parsing it.
14581         * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
14582         handle_pragma_extern_prefix): Add %< %> quotes.
14583         (registered_pragmas): New.
14584         (c_register_pragma_1): New.
14585         (c_register_pragma): Use it.
14586         (c_register_pragma_with_expansion): Likewise.
14587         (c_invoke_pragma_handler): New.
14588         (init_pragma): Use cpp_register_deferred_pragma directly for
14589         pch_preprocess.
14590         * c-pragma.h (enum pragma_kind): New.
14591         (pragma_handler): New.
14592         (c_invoke_pragma_handler): Declare.
14593         * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
14594         CPP_PRAGMA_EOL.
14595         * c-common.h (c_common_pch_pragma): Update decl.
14596         * Makefile.in (c-parser.o): Update dependencies.
14597         (GTFILES): Add c-pragma.h.
14598         * c-parser.c (struct c_token): Add pragma_kind.
14599         (struct c_parser): Add in_pragma.
14600         (c_lex_one_token): Always initialize keyword and pragma_kind.
14601         Extract data for CPP_PRAGMA.
14602         (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
14603         (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
14604         Don't allow CPP_PRAGMA_EOL if in_pragma.
14605         (c_parser_consume_pragma): New.
14606         (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
14607         (c_parser_skip_to_end_of_parameter): Likewise.
14608         (c_parser_skip_to_end_of_block_or_statement): Likewise.
14609         (c_parser_skip_to_pragma_eol): New.
14610         (c_parser_external_declaration): Handle CPP_PRAGMA.
14611         (c_parser_compound_statement_nostart): Likewise.
14612         (c_parser_statement_after_labels): Likewise.
14613         (c_parser_pragma): New.
14614         (pragma_lex): Likewise.
14615         (c_parser_pragma_pch_preprocess): New.
14616         (c_parser_new): Merge into ...
14617         (c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
14618
14619 2006-01-04  Jeff Law  <law@redhat.com>
14620
14621         PR ada/24994
14622         * tree-cfg.c (bsi_replace): Remove the original statement
14623         from the EH throw statement table.
14624
14625 2006-01-04  Jakub Jelinek  <jakub@redhat.com>
14626
14627         * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
14628         make the prototype extern "C" and add throw ().
14629
14630         PR target/25554
14631         * config/i386/i386.md (testqi_ext_3): Ensure len is positive
14632         and pos non-negative and pos + len <= 32.
14633         (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
14634         drop pos + len < HOST_BITS_PER_WIDE_INT test.
14635         (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
14636
14637         PR c/25559
14638         * c-common.c (handle_vector_size_attribute): Reject zero vector size
14639         as well as sizes not multiple of component size.
14640
14641         PR debug/25562
14642         * function.c (instantiate_expr): New function.
14643         (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
14644         walk its DECL_VALUE_EXPR with instantiate_expr.
14645
14646         * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
14647         DW_OP_deref{,_size} if address isn't going to be added.
14648
14649 2006-01-04  Ben Elliston  <bje@au.ibm.com>
14650
14651         * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
14652         * config/fp-bit.c: Likewise.
14653
14654 2006-01-03  Daniel Berlin  <dberlin@dberlin.org>
14655
14656         * dominance.c: Add comment about why we use DFS numbering
14657         of dominance tree.
14658
14659 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
14660             Richard Henderson  <rth@redhat.com>
14661
14662         Merge from gomp-branch:
14663         * varasm.c (assemble_variable): Handle thread-local COMMON data.
14664         * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
14665
14666 2006-01-03  Paolo Bonzini  <bonzini@gnu.org>
14667
14668         PR rtl-optimization/25578
14669         * combine.c (combine_simplify_rtx, force_to_mode): Don't
14670         pass a parameter to simplify_shift_const if changing ASHIFTRT
14671         to LSHIFTRT.
14672
14673 2006-01-03  Adrian Straetling  <straetling@de.ibm.com>
14674
14675         * builtins.c (get_builtin_sync_mem): New function.
14676         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
14677         expand_builtin_lock_test_and_set, expand_builtin_lock_release):
14678         Call get_builtin_sync_mem to generate mem rtx.
14679
14680 2006-01-03  Richard Guenther  <rguenther@suse.de>
14681
14682         PR c/25183
14683         * stmt.c (add_case_node): Make sure to clear overflow flags
14684         from ranges.
14685
14686 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
14687
14688         Merge from gomp-branch.
14689         * config/sparc/sync.md: New file.
14690         * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
14691         UNSPECV_LDSTUB): New constants.
14692         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
14693         * config/sparc/predicates.md (memory_reg_operand): New predicate.
14694         * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
14695         prototype.
14696
14697 2006-01-03  Roger Sayle  <roger@eyesopen.com>
14698
14699         * combine.c (reg_subword_p): New predicate to test whether the
14700         destination of a set refers to a subword/piece of a register.
14701         (try_combine): Generalize the code to merge the setting of a
14702         pseudo to a constant followed by a set of a subword of that
14703         register to a constant.
14704
14705 2006-01-03  Kazu Hirata  <kazu@codesourcery.com>
14706
14707         * basic-block.h (control_flow_graph): Change the type of
14708         x_label_to_block_map to VEC(basic_block,gc) *.
14709         * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
14710         set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
14711
14712         * tree-ssa-propagate.c (cfg_blocks): Change the type to
14713         VEC(basic_block,heap) *.
14714         (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
14715         ssa_prop_fini): Adjust the uses of cfg_blocks.
14716
14717 2006-01-03  Steven Bosscher  <stevenb.gcc@gmail.com>
14718
14719         * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
14720         COMPONENT_REFs.
14721         * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
14722         hashing trees instead of a pointer hash.
14723         (mem_attrs_htab_eq): Do a deep compare instead of a pointer
14724         compare for MEM_EXPR.
14725
14726         PR rtl-optimization/25130
14727         * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
14728         when comparing MEMs for GCSE
14729
14730 2006-01-03  Ben Elliston  <bje@au.ibm.com>
14731
14732         * targhooks.h (default_decimal_float_supported_p): Declare.
14733         * targhooks.c (default_decimal_float_supported_p): Define.
14734         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
14735         `default_decimal_float_supported_p'.
14736         * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
14737
14738 2006-01-02  Adam Nemet  <anemet@caviumnetworks.com>
14739
14740         * combine.c (apply_distributive_law <SUBREG>): Check
14741         TRULY_NOOP_TRUNCATION.
14742
14743 2006-01-02  Geoffrey Keating  <geoffk@apple.com>
14744
14745         * dwarf2out.c (have_switched_text_section): Delete.
14746         (have_multiple_function_sections): New.
14747         (have_location_lists): Make 'bool'.
14748         (add_AT_loc_list): Use 'true' not '1'.
14749         (dwarf2out_switch_text_section): Set have_multiple_function_sections.
14750         (output_loc_list): Use have_multiple_function_sections.
14751         (output_ranges): Likewise.
14752         (dwarf2out_begin_function): Set have_multiple_function_sections if
14753         necessary.
14754         (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
14755         Check function_section rather than DECL_SECTION_NAME.
14756         (dwarf2out_finish): Use have_multiple_function_sections.
14757         Don't clear have_location_lists.
14758
14759 2006-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14760             Jan Hubicka  <jh@suse.cz>
14761
14762         * cfglayout.c (fixup_reorder_chain): Remove kludge for the
14763         case of conditional jump jumping to the next instruction.
14764         * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
14765         cases of conditional jump jumping to the next instruction.
14766
14767 2006-01-02  Jan Hubicka  <jh@suse.cz>
14768
14769         * i386.c (*_cost): Add COSTS_N_INSNS.
14770         (ix86_rtx_costs): Do not use COSTS_N_INSNS.
14771
14772 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
14773
14774         PR target/25259
14775         * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
14776
14777 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14778
14779         * config/arm/arm.c (all_fpus): Fix comment typo.
14780         * config/darwin.c: Likewise.
14781         * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
14782         * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
14783         * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
14784
14785 2006-01-01  David Edelsohn  <edelsohn@gnu.org>
14786
14787         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
14788         (rs6000_split_compare_and_swapqhi): New.
14789         * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
14790         (sync_compare_and_swapqhi_internal): New.
14791         * config/rs6000/rs6000-protos.h: Declare.