OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-09-24  Kazu Hirata  <kazu@codesourcery.com>
2
3         PR target/28911
4         * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
5         -2147483647 - 1 instead of 0x80000000.
6
7 2006-09-23  Revital1 Eres  <ERES@il.ibm.com>
8
9         * flags.h (HONOR_NANS): Fix typo in comment.
10
11 2006-09-23  Uros Bizjak <uros@kss-loka.si>
12
13         * config/i386/driver-i386.c (host_detect_local_cpu): Add prototype.
14
15 2006-09-23  Jakub Jelinek  <jakub@redhat.com>
16
17         PR c/28706
18         PR c/28712
19         * tree.c (merge_attributes, attribute_list_contained): If both
20         TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
21         simple_cst_equal.
22         * c-typeck.c (comptypes_internal): Don't consider aggregates
23         in different TUs as compatible if there one set of attributes is
24         not a subset of the other type's attributes.
25         (composite_type): Try harder not to create a new aggregate type.
26
27 2006-09-22  Geoffrey Keating  <geoffk@apple.com>
28
29         * config/i386/driver-i386.c: Always define host_detect_local_cpu.
30         * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386
31         or x86_64 host.  Define HAVE_LOCAL_CPU_DETECT.
32         (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather
33         than replicating condition above.
34         * config.host (i[34567]86-*-*): Always use driver-i386.o.
35
36         * config/darwin.h (LINK_SYSROOT_SPEC): New.
37         (LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to
38         the linker by default.
39
40 2006-09-22  Mike Stump  <mrs@apple.com>
41
42         * config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with
43         code.
44
45 2006-09-22  Richard Guenther  <rguenther@suse.de>
46
47         PR middle-end/28964
48         * cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make
49         sort of stack variables stable.
50
51 2006-09-22  Peter Bergner <bergner@vnet.ibm.com>
52
53         PR middle-end/28690
54         * explow.c (force_reg): Set REG_POINTER flag according to
55         MEM_POINTER flag.
56
57 2006-09-22  Zdenek Dvorak <dvorakz@suse.cz>
58
59         PR tree-optimization/28888
60         * tree-if-conv.c (combine_blocks): Rewritten.
61         * tree-cfg.c (tree_verify_flow_info): Check that edges with
62         EDGE_TRUE/FALSE_VALUE follow COND_EXPR.
63
64 2006-09-22  Jakub Jelinek  <jakub@redhat.com>
65
66         * tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
67         needed.
68
69 2006-09-21  Richard Sandiford  <richard@codesourcery.com>
70
71         * varasm.c (copy_constant): Fix reversed gcc_assert check.
72
73 2006-09-21  Janis Johnson  <janis187@us.ibm.com>
74
75         * ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.
76
77 2006-09-21  Roger Sayle  <roger@eyesopen.com>
78
79         PR debug/29132
80         * dwarf2out.c (dwarf2out_begin_prologue): Initialise the current label,
81         dw_fde_current_label, to be the start of the function, i.e. the same
82         value as dw_fde_begin.
83
84 2006-09-20  Richard Sandiford  <richard@codesourcery.com>
85
86         * config/mips/mips.c (CODE_FOR_mips_abs_ps): Delete.
87         * config/mips/mips.md (UNSPEC_ABS_PS): New constant.
88         (UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2)
89         (UNSPEC_SINGLE_CC, UNSPEC_SCC): Bump values by 1.
90         (*nmadd<mode>, *nmadd<mode>_fastmath): Require !HONOR_NANS.
91         (*nmsub<mode>, *nmsub<mode>_fastmath): Likewise.
92         (abs<mode>2, neg<mode>2): Likewise.
93         * config/mips/mips-ps-3d.md (mips_abs_ps): New define_expand.
94         (*mips_abs_ps): New define_insn.
95
96 2006-09-20  Josh Conner  <jconner@apple.com>
97
98         PR middle-end/25505
99         * calls.c (expand_call): Allow reuse of structure return stack
100         temp.
101
102 2006-09-20  Paul Brook  <paul@codesourcery.com>
103
104         * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
105         positive offsets.
106
107 2006-09-20  Janis Johnson  <janis187@us.ibm.com>
108
109         * doc/extend.texi (Decimal Float): Update for latest draft TR,
110         clean up terminology.
111
112 2006-09-20  Steve Ellcey  <sje@cup.hp.com>
113
114         PR target/28574
115         * ifcvt.c (dead_or_predicable): Don't predicate then blocks
116         with tablejumps in them.
117
118 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
119
120         PR middle-end/28046
121         * c-omp.c (c_finish_omp_atomic): If ADDR is not simple enough,
122         wrap it into TARGET_EXPR.
123
124 2006-09-20  Eric Christopher  <echristo@apple.com>
125
126         * config/i386/i386.c (x86_fisttp): Remove.
127         * config/i386/i386.h (x86_fisttp): Ditto.
128         (TARGET_FISTTP): Ditto.
129
130 2006-09-19  Eric Christopher  <echristo@apple.com>
131
132         * doc/tm.texi (OBJC_JBLEN): Describe.
133         * config/i386/darwin.h (OBJC_JBLEN): Define.
134         * config/rs6000/darwin.h: Ditto.
135
136 2006-09-19  Steven Bosscher  <steven@gcc.gnu.org>
137
138         PR rtl-optimization/21299
139         * reload1.c (reload): Purge invalid ASMs in the final pass.
140
141 2006-09-19  Steve Ellcey  <sje@cup.hp.com>
142
143         PR  28490
144         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow function
145         pointers as legitimate constants.
146
147 2006-09-19  Paul Brook  <paul@codesourcery.com>
148
149         PR target/28516
150         * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const.
151
152 2006-09-17  Zdenek Dvorak <dvorakz@suse.cz>
153
154         PR tree-optimization/28887
155         * tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
156         component parts from the reference.
157         (gather_memory_references_ref): Record the reference without the
158         nonaddressable component parts.
159
160 2006-09-17  Steven Bosscher  <steven@gcc.gnu.org>
161
162         PR c/25993
163         * c-opts.c (c_common_handle_option): Ignore the -std options
164         if the input language is assembly.
165
166 2006-09-17  Ira Rosen  <irar@il.ibm.com>
167
168         PR tree-opt/21591
169         * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
170         tag first.
171         (ptr_ptr_may_alias_p): Likewise.
172         (record_record_differ_p): New function.
173         (base_object_differ_p): Call record_record_differ_p.
174
175 2006-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
176
177         PR tree-opt/29059
178         * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
179         away for the expr argument.
180
181 2006-09-16  Steven Bosscher  <steven@gcc.gnu.org>
182
183         PR tree-opt/27742
184         * tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
185         before using it for dumping after vectorizing loops.
186
187 2006-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
188             Jack Howarth  <howarth@bromo.med.uc.edu>
189
190         PR target/29030
191         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
192         skip on error_mark_node.
193         (rs6000_darwin64_record_arg_recurse): Likewise.
194
195 2006-09-16  Steven Bosscher  <steven@gcc.gnu.org>
196
197         * rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
198         * doc/rtl.texi: Remove related documentation.
199
200 2006-09-16  Bernd Schmidt  <bernd.schmidt@analog.com>
201
202         * loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
203         printf.
204
205 2006-09-15  Jim Wilson  <wilson@specifix.com>
206
207         * config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
208         Handle symbol offsets same as they are handled in ia64_expand_move
209         and move_operand.
210
211 2006-09-16  Andreas Tobler  <a.tobler@schweiz.org>
212
213         * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
214         Add forgotten parameter to the fprintf call.
215
216 2006-09-15  Steve Ellcey  <sje@cup.hp.com>
217
218         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
219
220 2006-09-15  Uros Bizjak <uros@kss-loka.si>
221
222         * doc/contrib.texi: Add my entry.
223
224 2006-09-15  Nick Clifton  <nickc@redhat.com>
225
226         * doc/md.texi (Processor pipeline description): Fix typo in
227         example of how to use the absence_set directive and reword the
228         description to make it slightly easier to read.
229
230 2006-09-15  Bernd Schmidt  <bernd.schmidt@analog.com>
231
232         * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
233         * loop-doloop.c (doloop_optimize): Use it to limit costs of
234         expanding the number of iterations.
235         * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
236
237         * cfgrtl.c (emit_insn_at_entry): New function.
238         * rtl.h (emit_insn_at_entry): Declare it.
239         * integrate.c (emit_initial_value_sets): Use it.
240
241         * cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
242
243         * config/bfin/bfin.c (struct loop_info): New members block_bitmap and
244         bad.
245         (struct loop_work and related VEC declarations): Delete.
246         (bfin_dump_loops): Print out new member bad.
247         (bfin_bb_in_loop): Use plain bitmap test.  Don't recurse.
248         (bfin_scan_loop): Don't recurse.
249         (bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
250         loops.  No longer need to update outer loops if the current one is
251         found bad.  Move some validitiy checks to bfin_discover_loop.
252         (bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
253         but changed not to check for nesting.  Also changed to use the new bad
254         flag.
255         (bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
256         time.  Use bitmap based test to discover loop nesting.
257
258 2006-09-15  Kazu Hirata  <kazu@codesourcery.com>
259
260         * doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
261         one line.
262
263 2006-09-14  Richard Guenther  <rguenther@suse.de>
264             Kazu Hirata  <kazu@codesourcery.com>
265
266         PR middle-end/28884.
267         * doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
268         (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
269         Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
270         with TARGET_FUNCTION_VALUE.
271
272 2006-09-14  Anatoly Sokolov <aesok@post.ru>
273
274         PR target/26504
275         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
276
277 2006-09-13  Aldy Hernandez  <aldyh@redhat.com>
278
279         * doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
280         of a RETURN_EXPR
281
282 2006-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
283
284         PR debug/28980
285         * dwarf2out.c (loc_descriptor_from_tree_1): Handle
286         FUNCTION_DECL.
287
288 2006-09-13  Andreas Krebbel  <krebbel1@de.ibm.com>
289
290         * basic_block.h (bb_has_eh_pred): Fix comment.
291
292 2006-09-13  Andreas Krebbel  <krebbel1@de.ibm.com>
293
294         * flow.c (calculate_global_regs_live): Invalidate eh registers
295         on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
296         (propagate_block): Handle eh registers as if they were set at basic
297         block start.
298         * except.c (dw2_build_landing_pads): Don't emit clobbers for eh
299         registers.
300         * global.c (global_conflicts): Make eh registers to conflict with
301         pseudos live at basic block begin.
302         * basic_block.h (bb_has_eh_pred): New function.
303
304 2006-09-13  Richard Sandiford  <richard@codesourcery.com>
305
306         PR rtl-optimization/28982
307         * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
308         index of a PRE_MODIFY or POST_MODIFY address.
309         * reload1.c (inc_for_reload): Use find_replacement on the original
310         base and index registers.
311
312 2006-09-12  H.J. Lu  <hongjiu.lu@intel.com>
313
314         * doc/invoke.texi (mpreferred-stack-boundary): Remove exception
315         for -Os. Update __m128 alignment requirement.
316
317 2006-09-13  Jan Hubicka  <jh@suse.cz>
318
319         * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
320
321 2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
322
323         PR rtl-optimization/28243
324         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
325         the insn to which the note was originally attached.
326
327 2006-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
328             Roger Sayle  <roger@eyesopen.com>
329
330         * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
331         outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
332         on platforms that don't use dwarf for debug info.
333
334 2006-09-12  Jason Merrill  <jason@redhat.com>
335
336         PR middle-end/28493
337         * builtins.c (expand_builtin_setjmp_receiver): Clobber
338         hard_frame_pointer_rtx after using it to update the frame pointer.
339
340 2006-09-12  Roger Sayle  <roger@eyesopen.com>
341
342         * target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
343         (TARGET_ASM_CLOSE_PAREN): Likewise.
344         * config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
345         (TARGET_ASM_CLOSE_PAREN): Likewise.
346
347 2006-09-12  Roger Sayle  <roger@eyesopen.com>
348
349         PR target/22223
350         * config/alpha/alpha.c (alpha_start_function): Don't emit stack
351         frame information for frames larger than 512 Kbytes on Tru64 when
352         using the native assembler.
353
354 2006-09-12  Roger Sayle  <roger@eyesopen.com>
355
356         PR middle-end/4520
357         PR bootstrap/28784
358         * cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
359         and symbols.  Instead use the implementation from cse.c's hash_rtx.
360
361 2006-09-12  Jan Hubicka  <jh@suse.cz>
362
363         PR rtl-optimization/28071
364         * tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
365         (vect_transform_loop): Likewise.
366         * tree-vectorizer.c (new_loop_vec_info): Likewise.
367         (new_loop_vec_info): Likewise.
368         (destroy_loop_vec_info): Likewise.
369         * tree-dfa.c (create_var_ann): Use GCC_CNEW.
370         (create_stmt_ann): Likewise.
371         (create_tree_ann): Rename to ...
372         (create_tree_common_ann): ... this one; allocate only the common part
373         of annotations.
374         * tree-vn.c (set_value_handle): Use get_tree_common_ann.
375         (get_value_handle): Likewise.
376         * tree-ssa-pre.c (phi_translate): Delay annotation allocation for
377         get_tree_common_ann.
378         * tree-vectorizer.h (set_stmt_info): Take stmt annotation.
379         (vinfo_for_stmt): Use stmt annotations.
380         * tree-flow.h (tree_ann_common_t): New type.
381         (tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
382         (tree_ann, get_tree_ann, create_tree_ann): New.
383         * tree-flow-inline.h (get_function_ann): Do more type checking.
384         (stmt_ann): Likewise.
385         (tree_ann): Rename to ...
386         (tree_common_ann): ... this one; return ony common_ann
387         (get_tree_ann): Rename to ...
388         (tree_common_ann): This one; return only common_ann.
389         * tree-vect-patterns.c (vect_pattern_recog_1): Update call
390         of set_stmt_info.
391
392 2006-09-11  Geoffrey Keating  <geoffk@apple.com>
393
394         * config.gcc (i[34567]86-*-darwin*): Set with_arch and
395         with_cpu by default.
396
397         * dwarf2out.c (dwarf_file_data): New.
398         (enum dw_val_class): Add dw_val_class_file.
399         (struct dw_val_struct): Add val_file.
400         (file_table): Change to a hash table.
401         (file_table_emitted): Delete.
402         (file_table_last_lookup_index): Delete.
403         (emitcount): Delete.
404         (last_emitted_file): New.
405         (lookup_filename): Change prototype to return a struct dwarf_file_data.
406         (init_file_table): Delete.
407         (maybe_emit_file): Change prototype to take a struct dwarf_file_data.
408         (AT_addr): Add comment.
409         (add_AT_file): New.
410         (AT_file): New.
411         (get_AT_file): New.
412         (print_die): Handle dw_val_class_file.
413         (print_dwarf_line_table): Update for new file table structure.
414         (attr_checksum): Do checksum a filename.
415         (same_dw_val_p, same_attr_p): Do compare a filename.
416         (size_of_die): Handle dw_val_class_file.
417         (value_format): Likewise.
418         (output_die): Likewise.  Also, call maybe_emit_file here.
419         (struct file_info): Constify filenames.  Make file_idx a pointer
420         to a struct dwarf_file_data.
421         (struct dir_info): Constify directory names.  Remove 'used' field.
422         (struct file_name_acquire_data): New.
423         (file_name_acquire): New.
424         (output_file_names): Modify to handle new file data structures.
425         (add_src_coords_attributes): Use add_AT_file.
426         (add_call_src_coords_attributes): Likewise.
427         (dwarf2out_imported_module_or_decl): Likewise.
428         (gen_subprogram_die): Modify for new file data structures.
429         (gen_variable_die): Likewise.
430         (file_table_eq): New.
431         (file_table_hash): New.
432         (file_table_last_lookup): New.
433         (lookup_filename): Rewrite to handle new file data structures.
434         (maybe_emit_file): Rewrite to handle new file data structures.
435         (dwarf2out_source_line): Always call lookup_filename and
436         maybe_emit_file.
437         (dwarf2out_init): Create file_table here.
438         (prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
439         (file_table_relative_p): New.
440         (dwarf2out_finish): Change detection of relative filenames
441         to work with new file data structures.  Move output_line_info call
442         after debug_info output.
443
444 2006-09-11  H.J. Lu  <hongjiu.lu@intel.com>
445
446         PR target/13685
447         PR target/27537
448         PR target/28621
449         * config/i386/i386.c (override_options): Always default to 16
450         byte stack boundary.
451
452 2006-09-11  Alexandre Oliva  <aoliva@redhat.com>
453
454         PR target/28672
455         * var-tracking.c (dump_dataflow_set): Start dumping at
456         register zero.
457         (clobber_variable_part): Kill only the variable part in
458         registers holding it, leaving other variables alone.
459
460 2006-09-11  Josh Triplett  <josh@freedesktop.org>
461
462         * doc/extend.texi (Other Builtins): Actually use the macro
463         argument in the documentation example for
464         __builtin_types_compatible_p.
465
466 2006-09-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
467
468         PR rtl-optimization/28726
469         * sched-deps.c (sched_analyze_reg): New function extracted from...
470         (sched_analyze_1): ...here.  Call it to analyze references to
471         registers.  Treat again writes to a stack register as writing to the
472         register.
473         (sched_analyze_2): ...and here.  Call it to analyze references to
474         registers.  Treat again reads of a stack register as reading the
475         register.
476
477 2006-09-11  Guenter Roeck  <guenter@roeck-us.net>
478             David Edelsohn  <edelsohn@gnu.org>
479
480         PR target/27287
481         * config/rs6000/spe.md (frob_df_di): Remove %H.
482         (frob_di_df): Remove %H.  Change evmergelo to mr.
483         (frob_di_df_2): Remove %H.  Change evldd to two loads.
484
485 2006-09-11  Hideki Iwamoto  <h-iwamoto@kit.hi-ho.ne.jp>
486
487         * doc/cpp.texi: Fix names of charset options.
488
489 2006-09-10  Andrew Pinski  <pinskia@physics.uc.edu>
490
491         PR target/29009
492         * config/i386/i386.c (override_options): Use 128-bit
493         stack boundary always for 64bits.
494
495 2006-09-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
496
497         PR rtl-optimization/28636
498         * combine.c (force_to_mode): Test for side-effects before
499         substituting by zero.
500         (simplify_shift_const): Likewise for zero or other constants.
501
502 2006-09-10  Steven Bosscher  <steven@gcc.gnu.org>
503
504         PR middle-end/26983
505         * builtins.c (expand_builtin_setjmp): Force next_lab to be
506         preserved.
507
508 2006-09-10  Richard Sandiford  <richard@codesourcery.com>
509
510         PR target/29006
511         * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
512         * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
513         returned by mode_for_size, rather than the mode of src itself,
514         to choose between 32-bit and 64-bit patterns.
515         (mips_mem_fits_mode_p): New function.
516         * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
517         that the size of the source matches the size of the destination.
518         (mov_<store>l, mov_<store>r): Likewise.
519
520 2006-09-10  Eric Christopher  <echristo@apple.com>
521
522         * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
523         for literal16.
524
525 2006-09-09  Eric Christopher  <echristo@apple.com>
526
527         PR target/28995
528         * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
529         for literal16.
530
531 2006-09-09  Roger Sayle  <roger@eyesopen.com>
532             Nicolas Setton <setton@adacore.com>
533
534         * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
535
536 2006-09-10  Andreas Schwab  <schwab@suse.de>
537
538         * config/m68k/m68k.md (bungt_rev): New pattern.
539
540 2006-09-09  Paolo Bonzini  <bonzini@gnu.org>
541             Dale Johannesen  <dalej@apple.com>
542
543         PR target/26778
544         * regclass.c (struct reg_pref): Update documentation.
545         (regclass): Set prefclass to NO_REGS if memory is the best option.
546         (record_reg_classes): Cope with a prefclass set to NO_REGS.
547
548 2006-09-08  Eric Christopher  <echristo@apple.com>
549
550         * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
551         * config/t-slibgcc-darwin: Support x86_64 multilib.
552         * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
553         Return 1 for x86_64-darwin.
554         * config/i386/t-darwin: Add m64 multilib.
555         (LIB2_SIDITI_CONV_FUNCS): Use.
556         (LIB2FUNCS_EXTRA): Ditto.
557         * config/i386/darwin.h: Support x86_64.
558         * config/i386/i386.c (override_options): Turn on flag_pic
559         for x86_64-darwin. Disable flag_omit_pointer.
560         (get_pc_thunk_name): Assert !TARGET_64BIT.
561         (legitimate_address_p): Disable machopic addressing for
562         x86_64.
563         (legitimize_pic_address): Ditto.
564         (ix86_expand_move): Ditto.
565         (ix86_expand_call): Ditto.
566         (machopic_output_stub): Ditto.
567         * config/darwin.c (machopic_select_section): Support literal16.
568         (machopic_select_rtx_section): Ditto.
569         * config/darwin-sections.def: Ditto.
570         * config/darwin-64.c: New.
571
572 2006-09-08  Joseph S. Myers  <joseph@codesourcery.com>
573
574         PR c/28504
575         * c-tree.h (struct c_arg_info): Add pending_sizes.
576         * c-parser.c (c_parser_parms_declarator,
577         c_parser_parms_list_declarator): Initialize pending_sizes.
578         * c-decl.c (get_parm_info): Initialize pending_sizes.
579         (get_parm_info): Set pending_sizes.
580         (grokdeclarator): Call put_pending_sizes for parameters for
581         function definition only.
582
583 2006-09-07  Jason Merrill  <jason@redhat.com>
584
585         PR middle-end/27724
586         * varasm.c (output_constant): Only strip actual no-op conversions.
587
588         PR target/13685
589         * config/i386/i386.c (override_options): Use 128-bit
590         stack boundary if -msse.
591
592 2006-09-07  Eric Christopher  <echristo@apple.com>
593
594         * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
595         comment.
596         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
597         Redefine.
598
599 2006-09-07  Geoffrey Keating  <geoffk@apple.com>
600
601         * dwarf2out.c: Remove strange characters from comment above
602         dwarf2out_frame_debug_expr.
603
604 2006-09-07  Eric Christopher  <echristo@apple.com>
605
606         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
607         * config/darwin.h: ... to here.
608
609 2006-09-07  H.J. Lu  <hongjiu.lu@intel.com>
610
611         * config/i386/i386.c (x86_partial_flag_reg_stall): New.
612
613         * config/i386/i386.h (x86_partial_flag_reg_stall): New.
614         (TARGET_PARTIAL_FLAG_REG_STALL): New.
615
616         * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
617         TARGET_PARTIAL_FLAG_REG_STALL.
618         (*ashldi3_cconly_rex64): Likewise.
619         (*ashlsi3_cmp): Likewise.
620         (*ashlsi3_cconly): Likewise.
621         (*ashlsi3_cmp_zext): Likewise.
622         (*ashlhi3_cmp): Likewise.
623         (*ashlhi3_cconly): Likewise.
624         (*ashlqi3_cmp): Likewise.
625         (*ashlqi3_cconly): Likewise.
626         (*ashrdi3_cmp_rex64): Likewise.
627         (*ashrdi3_cconly_rex64): Likewise.
628         (*ashrsi3_cmp): Likewise.
629         (*ashrsi3_cconly): Likewise.
630         (*ashrsi3_cmp_zext): Likewise.
631         (*ashrhi3_cmp): Likewise.
632         (*ashrhi3_cconly): Likewise.
633         (*ashrqi3_cmp): Likewise.
634         (*ashrqi3_cconly): Likewise.
635         (*lshrdi3_cmp_rex64): Likewise.
636         (*lshrdi3_cconly_rex64): Likewise.
637         (*lshrsi3_cmp): Likewise.
638         (*lshrsi3_cconly): Likewise.
639         (*lshrsi3_cmp_zext): Likewise.
640         (*lshrhi3_cmp): Likewise.
641         (*lshrhi3_cconly): Likewise.
642         (*lshrqi2_cmp): Likewise.
643         (*lshrqi2_cconly): Likewise.
644
645 2006-09-07 Uros Bizjak <uros@kss-loka.si>
646
647         PR target/28946
648         * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
649         "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
650         "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
651         "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
652         "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
653         "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
654         "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
655         "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
656         "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
657         implement only CC setting effects of shift instructions.
658
659 2006-09-07  Martin Michlmayr  <tbm@cyrius.com>
660
661         * doc/contrib.texi: Add myself.
662
663 2006-09-07  Andrew Pinski  <pinskia@physics.uc.edu>
664
665         PR middle-end/28862
666         * stor-layout.c (relayout_decl): Don't zero the alignment if it
667         was set by the user.
668
669 2006-09-07  Paolo Bonzini  <bonzini@gnu.org>
670
671         PR target/27117
672         * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
673         (divsi_inv_m1): Use them.
674         (UNSPEC_DIV_INV_TABLE): New constant.
675
676 2006-09-06  James E Wilson  <wilson@specifix.com>
677
678         PR rtl-opt/27883
679         * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
680         then call count_or_remove_death_notes.
681
682 2006-09-06  Jason Merrill  <jason@redhat.com>
683
684         PR c++/27371
685         * tree-inline.c (copy_result_decl_to_var): New fn.
686         (declare_return_variable): Use it.  Call declare_inline_vars here.
687         (expand_call_inline): Not here.
688
689 2006-09-06  Diego Novillo  <dnovillo@redhat.com>
690
691         * doc/contrib.texi: Update my entry.
692
693 2006-09-06  Nick Clifton  <nickc@redhat.com>
694
695         * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
696
697 2006-09-05  Andrew Pinski  <pinskia@physics.uc.edu>
698
699         PR tree-opt/28937
700         * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
701         (canonicalize_induction_variables): Likewise.
702         (tree_unroll_loops_completely): Likewise.
703         (tree_ssa_prefetch_arrays): Likewise.
704         (remove_empty_loops): Likewise.
705         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
706         TODO_cleanup_cfg instead of directly calling
707         cleanup_tree_cfg_loop.
708         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
709         Likewise.
710         (tree_unroll_loops_completely): Likewise.
711         (remove_empty_loops): Likewise.
712         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
713         * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
714         of tree_ssa_unswitch_loops.
715         (tree_ssa_loop_ivcanon): Use the return value of
716         canonicalize_induction_variables.
717         (tree_ssa_empty_loop): Use the return value of
718         remove_empty_loops.
719         (tree_complete_unroll): Use the return value of
720         tree_unroll_loops_completely.
721         (tree_ssa_loop_prefetch): Use the return value of
722         tree_ssa_prefetch_arrays.
723         * passes.c (execute_todo): Before Cleanup CFG, set
724         updating_used_alone and after cleanup CFG, call
725         recalculate_used_alone.
726
727 2006-09-05  Andrew Pinski  <pinskia@physics.uc.edu>
728
729         PR tree-opt/28952
730         * tree-vect-transform.c (vectorizable_condition): Move the check
731         for the type after the check for simple condition.
732
733 2006-09-05  J"orn Rennecke  <joern.rennecke@st.com>
734             Kaz Kojima  <kkojima@gcc.gnu.org>
735
736         PR target/28764
737         * mode-switching.c (optimize_mode_switching): Make the destination
738         block of an abnormal edge have no anticipatable mode.  Don't
739         insert mode switching code at the end of the source block of
740         an abnormal edge.
741
742 2006-09-05  Paolo Bonzini  <bonzini@gnu.org>
743
744         PR rtl-optimization/26847
745         * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
746         (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
747         (simplify_plus_minus): Count n_constants while filling ops.  Replace
748         qsort with insertion sort.  Before going through the array to simplify
749         pairs, sort it.  Delay early exit until after the first sort, exiting
750         only if no swaps occurred.  Simplify pairs in reversed order, without
751         special-casing the first iteration.  Pack ops after simplifying pairs.
752
753 2006-09-05  Anatoly Sokolov <aesok@post.ru>
754
755         * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
756         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
757         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
758         (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
759
760 2006-09-05  Richard Guenther  <rguenther@suse.de>
761
762         PR tree-optimization/28900
763         * tree-if-conv.c (find_phi_replacement_condition): Gimplify
764         compound conditional before creating COND_EXPR condition.
765
766 2006-09-05  Richard Guenther  <rguenther@suse.de>
767
768         PR tree-optimization/28905
769         * tree-vrp.c (fix_equivalence_set): Manually implement
770         !value_ranges_intersect_p to also handle symbolic ranges.
771
772 2006-09-05  Richard Guenther  <rguenther@suse.de>
773
774         PR middle-end/28935
775         * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
776         of a COND_EXPR.
777
778 2006-09-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
779
780         PR rtl-optimization/27616
781         * cse.c (table_size): New static variable.
782         (new_basic_block): Initialize it to 0.
783         (remove_from_table): Decrement it.
784         (insert): Increment it.
785         (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
786         (fold_rtx_mem): Enforce a cap on the recursion depth.  Call
787         fold_rtx_mem_1 if under the cap.
788         (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
789         the lookup of the equivalent expression and test for equality of the
790         first operand of the equivalent expression before in turn looking up
791         an equivalent constant for the second operand.
792
793 2006-09-02  Geoffrey Keating  <geoffk@apple.com>
794
795         Revert this change:
796         2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
797         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
798         pointer, instead of assuming it is possible to derive the
799         correct args size from a call insn.
800
801 2006-09-02  Jakub Jelinek  <jakub@redhat.com>
802
803         PR middle-end/27567
804         * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
805         (fold_builtin_mempcpy): Rename to...
806         (fold_builtin_memory_op): ... this.  Optimize one element copy
807         into an assignment.
808         (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
809         functions.
810         (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
811         (expand_builtin_memcpy, expand_builtin_mempcpy,
812         expand_builtin_memmove): Likewise.  Use fold_builtin_memory_op.
813         (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
814         BUILT_IN_BCOPY.  Use fold_builtin_memory_op for
815         BUILT_IN_MEM{CPY,PCPY,MOVE}.
816
817 2006-09-01  DJ Delorie  <dj@redhat.com>
818
819         * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
820         (stzx_16): Likewise.
821         ("stzx_24_<mode>"): Likewise.
822         ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
823         ("cmp<mode>_op"): New.
824         (cmp<mode>): Change to expander; just save operands.
825         (b<code>_op): New.
826         (b<code>): Change to expander, emit compare here.
827         (s<code>_op): Change to use split and expander.
828         (s<code>_24_op): Likewise.
829         (s<code>_<mode>): New.
830         (s<code>_<mode>_24): New.
831         (movqicc_<code>_<mode): New.
832         (movhicc_<code>_<mode>): New.
833         (s<code>): New.
834         (s<code>_24): New.
835         * config/m32c/m32c.c (compare_op0, compare_op1): New.
836         (m32c_pend_compare): New.
837         (m32c_unpend_compare): New.
838         (m32c_expand_scc): New.
839         (m32c_expand_movcc): Emit the compare also.
840         * config/m32c/predicates.md (mra_nopp_operand): New.
841
842 2006-09-01  J"orn Rennecke  <joern.rennecke@st.com>
843         Richard Guenther  <rguenther@suse.de>
844         Adam Nemet  <anemet@caviumnetworks.com>
845
846         PR middle-end/27226
847         * builtins.c (get_pointer_alignment): Handle more forms
848         of base addresses that can be used to derive more precise
849         information about alignment.
850
851 2006-09-01  Jason Merrill  <jason@redhat.com>
852
853         PR c++/28899
854         * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
855         want_value.
856
857         * gimplify.c (voidify_wrapper_expr): Handle null type.
858
859 2006-09-01  Josh Conner  <jconner@apple.com>
860
861         PR c++/25505
862         * tree-nrv.c (dest_safe_for_nrv_p): New function.
863         (execute_return_slot_opt): Use it.
864
865 2006-08-31  Josh Conner  <jconner@apple.com>
866
867         PR c++/25505
868         * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
869         returning aggregates.
870
871 2006-08-31  Zdenek Dvorak <dvorakz@suse.cz>
872
873         PR tree-optimization/28839
874         * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
875         blocks in that phi arguments appear.
876
877 2006-08-31  Roger Sayle  <roger@eyesopen.com>
878
879         PR other/22313
880         * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
881         NULL, otherwise use an advance_loc4 to adjust relative to the
882         current label.
883         (output_cfi) <DW_CFA_set_loc>: Update the current label.
884         (dwarf2out_switch_text_section): Reset the current label to avoid
885         using advance_loc4 over section boundaries.
886
887 2006-08-31  Andreas Krebbel  <krebbel1@de.ibm.com>
888
889         PR target/24367
890         * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
891         r12 + SYMBOLIC_CONST.
892
893 2006-08-30  Richard Guenther  <rguenther@suse.de>
894
895         * Makefile.in (see.o): Add $(EXPR_H) dependency.
896
897 2006-08-30  Zdenek Dvorak <dvorakz@suse.cz>
898
899         PR rtl-optimization/27735
900         * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
901         Add new argument to keep track of whether an irreducible region
902         was affected.  All callers changed.
903         (fix_irreducible_loops): Removed.
904         (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
905         flags were invalidated.
906
907 2006-08-29  H.J. Lu  <hongjiu.lu@intel.com>
908
909         * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
910         instead of SF operands.
911         (*fop_df_comm_sse): Likewise.
912         (*fop_df_comm_i387): Likewise.
913         (*fop_df_1_mixed): Likewise.
914         (*fop_df_1_sse): Likewise.
915
916 2006-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
917             J"orn Rennecke  <joern.rennecke@st.com>
918
919         PR tree-optimization/17506
920         * tree-ssa.c (warn_uninit): If warning about a location outside of
921         the current function, note where the variable was declared.
922
923 2006-08-28  Zdenek Dvorak <dvorakz@suse.cz>
924
925         PR tree-optimization/28411
926         * double-int.c (double_int_div): Use double_int_divmod.
927         (double_int_divmod, double_int_sdivmod, double_int_udivmod,
928         double_int_mod, double_int_smod, double_int_umod): New functions.
929         * double-int.h (double_int_divmod, double_int_sdivmod,
930         double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
931         Declare.
932         * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
933         in double_int.
934         (get_computation_aff, get_computation_cost_at): Handle double_int
935         return type of constant_multiple_of.
936
937 2006-08-28  Kazu Hirata  <kazu@codesourcery.com>
938
939         PR middle-end/26632
940         * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
941         an implicit conversion.
942
943 2006-08-28  Prafulla Thakare  <prafullat@kpitcummins.com>
944
945         * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
946
947 2006-08-27  Roger Sayle  <roger@eyesopen.com>
948
949         * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
950         x87 instructions.
951
952 2006-08-27  Kazu Hirata  <kazu@codesourcery.com>
953
954         * config/i386/crtfastmath.c: Fix a comment typo.
955
956 2006-08-26  Roger Sayle  <roger@eyesopen.com>
957
958         * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
959         temporary visit flags on CASE_LABEL_EXPRs.
960         * c-common.c (match_case_to_enum): Add function comment.  Avoid
961         O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
962         (c_do_switch_warnings):  Reorganize to record CASE_LOW_SEEN and
963         CASE_HIGH_SEEN for enumerated types.  If the switch expression is
964         a constant, only warn if that constant value isn't handled.
965
966 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
967
968         PR c++/24009
969         * input.h (restore_input_file_stack): Declare.
970         (INPUT_FILE_STACK_BITS): Define.
971         * toplev.c (fs_p, input_file_stack_history,
972         input_file_stack_restored, restore_input_file_stack): New.
973         (push_srcloc, pop_srcloc): Check for input_file_stack_tick
974         overflowing INPUT_FILE_STACK_BITS bits.  Save new state of stack.
975         (pop_srcloc): Don't free old state of stack.
976
977 2006-08-26  David Edelsohn  <edelsohn@gnu.org>
978
979         PR target/27544
980         * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
981         (PowerPC Type Attributes): New.
982
983 2006-08-26  Bob Wilson  <bob.wilson@acm.org>
984
985         * config/xtensa/xtensa.c (function_arg_boundary): New.
986         (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
987         STACK_BOUNDARY.
988         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
989         function_arg_boundary function that limits alignment to STACK_BOUNDARY.
990
991 2006-08-26  Jakub Jelinek  <jakub@redhat.com>
992
993         PR middle-end/28683
994         * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
995         3 following insns.
996
997 2006-08-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
998
999         * flow.c (verify_wide_reg): Use internal_error for consistency failure.
1000         (verify_local_live_at_start): Likewise.
1001
1002 2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>
1003
1004         PR c/27893
1005         * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
1006         omp_add_variable): Treat sizes as variable whenever not
1007         INTEGER_CST.
1008
1009 2006-08-26  Richard Guenther  <rguenther@suse.de>
1010
1011         PR middle-end/28814
1012         * fold-const.c (fold_binary): Fold temporary to correct
1013         type before constructing new comparison.
1014
1015 2006-08-25  Fariborz Jahanian  <fjahanian@apple.com>
1016
1017         PR c/28418
1018         * c-gimplify.c (gimplify_compound_literal_expr): Don't add
1019         variable again if DECL_SEEN_IN_BIND_EXPR_P.
1020
1021 2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>
1022
1023         PR c/28299
1024         * c-decl.c (start_function): Don't try to process prototype
1025         information from old declaration that isn't a function.
1026
1027 2006-08-25  Jan Hubicka  <jh@suse.cz>
1028
1029         PR target/28621
1030         * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
1031
1032 2006-08-25  Alan Modra  <amodra@bigpond.net.au>
1033
1034         PR target/27075
1035         * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
1036         for 8 byte objects.
1037
1038 2006-08-25  J"orn Rennecke  <joern.rennecke@st.com>
1039
1040         PR tree-optimization/16876
1041         * c-typeck.c (c_convert_parm_for_inlining): Don't take early
1042         exit if PARM doesn't match VALUE.
1043
1044 2006-08-25  Bob Wilson  <bob.wilson@acm.org>
1045
1046         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
1047         literal_prefix directive.
1048         (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
1049         * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1050         * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1051
1052 2006-08-25  David Edelsohn  <edelsohn@gnu.org>
1053
1054         PR target/28753
1055         * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
1056         predicate to general_operand.  Add 0->y and I->r alternatives.
1057
1058 2006-08-25  Kazu Hirata  <kazu@codesourcery.com>
1059
1060         * doc/tm.texi: Fix a typo.
1061         * predict.c: Fix comment typos.
1062
1063 2006-08-25  Nick Clifton  <nickc@redhat.com>
1064
1065         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1066         assertions of "cpu" and "machine".
1067
1068 2006-08-24  Andrew Pinski  <pinskia@physics.uc.edu>
1069
1070         PR tree-opt/28807
1071         * tree-ssa-operands.c (access_can_touch_variable): Don't say
1072         the access through a base which has an alias set of 0 cannot
1073         touch the variable.
1074
1075 2006-08-24  Bill Wendling  <wendling@apple.com>
1076
1077         * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
1078
1079 2006-08-24  Jan Hubicka  <jh@suse.cz>
1080
1081         * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
1082
1083 2006-08-24  Jan Hubicka  <jh@suse.cz>
1084
1085         PR debug/26881
1086         * cgraph.c: Fix comments.
1087         (cgraph_varpool_mark_needed_node): Mark only variables not already
1088         output to file.
1089         * cgraphunit.c: Update comments; include gt-cgraphunit.h
1090         (cgraph_varpool_assembled_nodes_queue): New static variable.
1091         (cgraph_varpool_assemble_decl): Record output decls for debug out code.
1092         (cgraph_varpool_output_debug_info): New function.
1093         (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
1094         * Makefile.in: Add gt-cgraphunit.h
1095
1096 2006-08-24  Jan Hubicka  <jh@suse.cz>
1097
1098         * predict.c (probability_reliable_p): New predicate.
1099         (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
1100         (predict_loops): Do not predict loop exit with less than 2%
1101         probability.
1102         * basic-block.h (edge_probability_reliable_p,
1103         br_prob_note_reliable_p): Declare.
1104         * ia64.h (ia64_print_operand): Do not disable on-chip branch
1105         prediction when static predictor is not reliable.
1106         * rs6000.c (output_cbranch): Likewise.
1107
1108 2006-08-23  Stuart Hastings  <stuart@apple.com>
1109
1110         PR 28825
1111         * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
1112         ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
1113
1114 2006-08-21  Geoffrey Keating  <geoffk@apple.com>
1115
1116         PR debug/28692
1117         * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
1118         complex values, nor for generic vector values.
1119
1120 2006-08-22  Richard Guenther  <rguenther@suse.de>
1121
1122         PR middle-end/28776
1123         * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
1124         parameter.  Convert arguments to arithmetic expression to the
1125         chrecs type.
1126         (analyze_scalar_evolution_1): Adjust caller.
1127
1128 2006-08-22  Jan Hubicka  <jh@suse.cz>
1129
1130         Patch by Paolo Bonzini
1131         * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
1132         my previous patch.
1133
1134 2006-08-22  Daniel Berlin  <dberlin@dberlin.org>
1135
1136         PR tree-optimization/28003
1137         * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
1138         before grouping aliases.
1139
1140 2006-08-22  Roger Sayle  <roger@eyesopen.com>
1141
1142         * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
1143         if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
1144
1145 2006-08-21  Jason Merrill  <jason@redhat.com>
1146
1147         PR c++/27115
1148         * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
1149         wrapper.  Loop to handle nested wrappers.
1150         (gimplify_bind_expr): Remove temp parameter.
1151         (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
1152         and STATEMENT_LIST on the rhs.
1153         (gimplify_statement_list): Voidify the STATEMENT_LIST.
1154         (gimplify_expr): Pass pre_p to gimplify_statement_list.
1155         (gimplify_target_expr): Remove special BIND_EXPR handling.
1156
1157 2006-08-21  J"orn Rennecke  <joern.rennecke@st.com>
1158
1159         * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
1160         #if !__SHMEDIA__ .
1161
1162 2006-08-21  Olivier Hainque  <hainque@adacore.com>
1163
1164         * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
1165         Arrange for the temporary captures of components overlapping the lhs
1166         to happen before the lhs is possibly cleared.
1167
1168 2006-08-21  Mark Shinwell  <shinwell@codesourcery.com>
1169
1170         * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
1171         necessary places to pass the correct "number of registers" values
1172         to _Unwind_VRS_Pop.
1173
1174 2006-08-20  Jan Hubicka  <jh@suse.cz>
1175
1176         * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
1177         (create_name_tags): Instead of quadratic checking use hashtable.
1178         * bitmap.h: Include hashtab.h.
1179         (bitmap_hash): Declare.
1180         * bitmap.c (bitmap_hash): New function.
1181
1182 2006-08-20  Jan Hubicka  <jh@suse.cz>
1183
1184         PR rtl-optimization/28071
1185         * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
1186         twice.
1187         * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
1188         * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
1189         (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
1190         cgraph_decide_inlining_incrementally): Update use of
1191         cgraph_check_inline_limits.
1192         * cgraph.c (edge_hash, edge_eq): New function.
1193         (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
1194         cgraph_edge_remove_caller, cgraph_node_remove_callees,
1195         cgraph_remove_node): Maintain call site hash.
1196         * cgraph.h (struct cgraph_node): Add call_site_hash.
1197         (cgraph_set_call_stmt): New function.
1198
1199 2006-08-20  Jan Hubicka  <jh@suse.cz>
1200
1201         PR rtl-optimization/28071
1202         * reload1.c (reg_has_output_reload): Turn into regset.
1203         (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
1204         choose_reload_regs, emit_reload_insns): Update to new
1205         reg_has_output_reload.
1206
1207 2006-08-20  Jan Hubicka  <jh@suse.cz>
1208
1209         PR middle-end/28779
1210         * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
1211         function body sizes.
1212         * cgraphunit.c (cgraph_analyze_function): Don't do so.
1213
1214 2006-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
1215
1216         PR target/28648 c:
1217         * tree.c (handle_dll_attribute): Return early if not a
1218         var or function decl.
1219
1220 2006-08-18  Joseph Myers  <joseph@codesourcery.com>
1221
1222         PR target/27565
1223         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
1224         alignment of SPE vector types.
1225
1226 2006-08-18  Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
1227
1228         * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
1229
1230 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1231
1232         PR c/28744
1233         * cgraph.h (struct cgraph_node): Remove externally_visible
1234         bitfield.
1235         * cgraphunit.c (process_function_and_variable_attributes): Set
1236         local.externally_visible rather than externally_visible.
1237
1238         PR c/28744
1239         * c-common.c (handle_externally_visible_attribute): First look
1240         at TREE_CODE and only if it is function or var decl, check for
1241         non-public objects.  Don't warn for DECL_EXTERNAL.
1242         * cgraphunit.c (process_function_and_variable_attributes): Warn
1243         if externally_visible attribute is used on non-public object.
1244
1245 2006-08-17  Jan Hubicka  <jh@suse.cz>
1246
1247         PR tree-optimization/27865
1248         * reload1.c (forget_marked_reloads): New function.
1249         (forget_old_reloads_1): When data are passed, just mark the registers
1250         for later removal.
1251         (reload_as_needed): Use the new mechanizm.
1252
1253 2006-08-17  Alexandre Oliva  <aoliva@redhat.com>
1254
1255         PR target/28146
1256         * reload.h (reg_equiv_alt_mem_list): New declaration.
1257         * reload1.c (reg_equiv_alt_mem_list): New definition.
1258         (reload): Initialize it and release it.
1259         (delete_output_reload): Use it.
1260         * reload.c (push_reg_equiv_alt_mem): New function.
1261         (find_reloads_toplev): Call it.
1262         (find_reloads_address, find_reloads_address_1): Likewise.
1263         (find_reloads_subreg_address): Likewise.
1264
1265 2006-08-17  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1266
1267         PR rtl-optimization/28489
1268         * sched-ebb.c (begin_schedule_ready): Create basic block
1269         at the right place.
1270         (advance_target_bb): Skip empty blocks.
1271         * haifa-sched.c (bb_note): Make global.
1272         * sched-int.h (bb_note): Add prototype.
1273
1274 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1275
1276         PR tree-optimization/27865
1277         * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
1278         for pointer types.
1279         * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
1280         fold_used_pointer, pointer_used_p): New functions.
1281         (analyze_scalar_evolution_1): Use fold_used_pointer.
1282         * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
1283         * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
1284         for pointers.
1285
1286 2006-08-17  Paolo Bonzini <bonzini@gnu.org>
1287
1288         PR c++/28573
1289         * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
1290         or the INTEGER_CST.  Fail on a CALL_EXPR.
1291         (fold_offsetof): Pass new argument to fold_offsetof_1.
1292         * c-parser.c (c_parser_postfix_expression): Don't include a NULL
1293         operand into an INDIRECT_REF.
1294         * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
1295
1296 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1297
1298         PR gcov/profile/26570
1299         * value-prof.c (static_values): Removed.
1300         (tree_find_values_to_profile): Do not set static_values.
1301         (find_values_to_profile): Do not free static_values.
1302         * profile.c (instrument_values): Do not free the values.
1303         (branch_prob): Free the values.
1304
1305 2006-08-16  Naveen.H.S  <naveenh@kpitcummins.com>
1306
1307         * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
1308
1309 2006-08-16  Joseph S. Myers  <joseph@codesourcery.com>
1310
1311         PR c/27697
1312         * c-typeck.c (build_component_ref): Combine qualifiers of
1313         structure or union and field.
1314
1315 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1316
1317         PR rtl-optimization/28071
1318         * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
1319         * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
1320         * tree-into-ssa.c (struct dom_dfsnum): New.
1321         (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
1322         functions.
1323         (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
1324         compute_global_livein.
1325         (prepare_block_for_update, prepare_use_sites_for): Mark the uses
1326         in phi nodes in the correct blocks.
1327
1328 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1329
1330         PR tree-optimization/28364
1331         * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
1332         correctly.
1333         (fold_affine_expr): New function.
1334         (may_eliminate_iv): Use fold_affine_expr.
1335
1336 2006-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1337
1338         PR c/27489
1339         * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
1340         Clean up.
1341
1342 2006-08-16  Mike Stump  <mrs@apple.com>
1343
1344         * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
1345         * doc/cppopts.texi (-MD): Likewise.
1346
1347 2006-08-15  Danny Smith  <dannysmith@users.sourceforge.net>
1348
1349         PR c/28287
1350         * c-common.c (handle_weak_attribute): Ignore and warn if
1351         not a FUNCTION_ or VAR_DECL.
1352
1353 2006-07-15  Mike Stump  <mrs@apple.com>
1354
1355         PR c/28280
1356         * c-parser.c (c_parser_typeof_specifier): Don't use
1357         c_finish_expr_stmt, open code desired semantics instead.
1358
1359 2006-08-15  Nick Clifton  <nickc@redhat.com>
1360
1361         * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
1362         fragment to tmake_file only if threads are enabled.
1363         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
1364         * config/i386/t-gthr-win32: New file. ... here.
1365
1366 2006-08-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1367
1368         PR c/28649
1369         * c-parser.c (c_parser_compound_statement_nostart): Reset
1370         parser->error after each statement.
1371
1372 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
1373
1374         PR middle-end/28713
1375         * omp-low.c (lower_omp_parallel): Convert t to
1376         receiver_decl's type.
1377         (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
1378         source before comparison.
1379
1380         PR middle-end/28724
1381         * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
1382         to itype in assignment to oldival2.
1383
1384 2006-07-14  Andrew Pinski  <pinksia@physics.uc.edu>
1385
1386         PR c/27490
1387         PR c/27489
1388         * c-typeck.c (build_compound_expr): If the second expression
1389         is an error mark, then just return an error mark instead of
1390         creating a COMPOUND_EXPR.
1391
1392 2006-07-14  Mike Stump  <mrs@apple.com>
1393
1394         * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
1395
1396 2006-08-14  Kazu Hirata  <kazu@codesourcery.com>
1397
1398         * c-decl.c, var-tracking.c: Fix comment typos.
1399
1400 2006-08-14  Richard Sandiford  <richard@codesourcery.com>
1401
1402         PR rtl-optimization/28634
1403         * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
1404         for floating-point modes unless flag_unsafe_math_optimizations.
1405
1406 2006-08-13  Alexandre Oliva  <aoliva@redhat.com>
1407             Andrew Pinski  <pinskia@physics.uc.edu>
1408
1409         PR c/27184
1410         * tree.c (build_array_type): Unify array types with
1411         unspecified index_type.
1412         * c-decl.c (grokdeclarator): Make sure we do not modify a
1413         unified incomplete array type.
1414         * c-typeck.c (store_init_value): Create distinct type before
1415         filling in the index type in an initializer from a compound
1416         literal.
1417
1418         * c-decl.c (grokdeclarator): Remove code where we copy the
1419         array type over.
1420
1421 2006-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
1422
1423         * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
1424         into account for TODO_dump_cgraph.
1425         (TODO_update_ssa_no_phi): Likewise.
1426         (TODO_update_ssa_full_phi): Likewise.
1427         (TODO_update_ssa_only_virtuals): Likewise.
1428         (TODO_remove_unused_locals): Likewise.
1429         (TODO_set_props): Likewise.
1430         (TODO_update_stmt_usage): Likewise.
1431
1432 2006-08-13  Dirk Mueller  <dmueller@suse.de>
1433
1434         * c-common.c (strict_aliasing_warning): Fix formatting.
1435
1436 2006-08-13  Matthias Klose  <doko@debian.org>
1437
1438         * doc/invoke.texi: Fix spelling errors.
1439
1440 2006-08-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
1441
1442         PR rtl-optimization/23454
1443         * reorg.c (relax_delay_slots): Update comment.
1444
1445 2006-08-11  Richard Guenther  <rguenther@suse.de>
1446
1447         PR middle-end/28651
1448         * simplify-rtx.c (simplify_const_relational_operation):
1449         Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
1450         codes.
1451
1452 2006-08-10  Eric Botcazou  <ebotcazou@adacore.com>
1453
1454         * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
1455         TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
1456
1457 2006-08-10  Paul Brook  <paul@codesourcery.com>
1458
1459         * final.c (final_scan_insn): Clear current_insn_predicate before
1460         outputting inline asm.
1461
1462 2006-08-10  Dorit Nuzman  <dorit@il.ibm.com>
1463
1464         PR tree-optimization/26197
1465         * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
1466         get_ref_base_and_extent and overlap_subvar to add only relevant
1467         subvars as may-aliases.
1468         (add_may_alias_for_new_tag): New function, factored out of
1469         new_type_alias.
1470         * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
1471         with additional argument.
1472         * tree-flow.h (new_type_alias): Takes additional argument.
1473
1474 2006-08-09  Nathan Sidwell  <nathan@codesourcery.com>
1475
1476         * gcov.c (no_data_file): New flag.
1477         (read_count_file): Set it if data file not present.  Assume counts
1478         zero if not found.
1479         (output_lines): Don't name the data file, if there wasn't one.
1480
1481 2006-08-09  Eric Botcazou  <ebotcazou@adacore.com>
1482
1483         * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
1484         (rs6000_generate_compare): Tweak comments.
1485         * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
1486
1487 2006-08-09  Alexandre Oliva  <aoliva@redhat.com>
1488
1489         * var-tracking.c (enum micro_operation_type): Add MO_COPY.
1490         (var_debug_decl): New function.
1491         (var_reg_set): Follow debug decl link.  Add location even if
1492         reg is already known to hold some other variable.
1493         (var_mem_set): Follow debug decl link.
1494         (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
1495         decl link.  Delete other known locations of the variable part
1496         if requested.
1497         (var_reg_delete, var_mem_delete): Delete other known locations
1498         of the variable part if requested.
1499         (same_variable_part_p): New function.
1500         (add_stores): Select MO_COPY when appropriate.
1501         (vt_initialize): Handle it.
1502         (compute_bb_dataflow, emit_notes_in_bb): Likewise.  Delete
1503         known locations for MO_SET and MO_CLOBBER.
1504         (find_variable_location_part): New function.
1505         (set_variable_part, delete_variable_part): Use it.
1506         (clobber_variable_part): New function.
1507         * dwarf2out.c (dwarf2out_var_location): Do not follow debug
1508         decl link.
1509
1510 2006-08-07  Victor Kaplansky <victork@il.ibm.com>
1511
1512         PR tree-optimization/26969
1513         * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
1514         with an empty list of PHIs.
1515
1516 2006-08-06  Paolo Bonzini  <bonzini@gnu.org>
1517
1518         PR target/27827
1519
1520         * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
1521         instructions.
1522
1523 2006-08-06  Andreas Schwab  <schwab@suse.de>
1524
1525         * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
1526         string.  Whitespace and comment fixup.
1527
1528 2006-08-05  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1529
1530         PR c/28502
1531         * c-decl.c (validate_proto_after_old_defn): Return false on invalid
1532         argument.
1533
1534         PR c/27721
1535         * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
1536
1537         PR c/28136
1538         * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
1539
1540 2006-08-04  Jan Hubicka  <jh@suse.cz>
1541
1542         PR target/26655
1543         PR target/28270
1544         * reload.c (push_reload): Patch out the mismatching instruction;
1545         return early.
1546         (find_reload): Bail out if the instruction was patched out.
1547
1548 2006-08-04  Jan Hubicka  <jh@suse.cz>
1549
1550         PR tree-optimization/24888
1551         * tree-inline.c (expand_call_inline): Do not re-record variables.
1552         (declare_inline_vars): Add variable to unexpanded_var_list.
1553
1554 2006-08-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1555             Roger Sayle  <roger@eyesopen.com>
1556
1557         PR rtl-optimization/26244
1558         * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
1559         inner_const are negative or greater than or equal to the bitsize of
1560         MODE.  If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
1561         Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
1562         Simplify complicated if statement.  For ASHIFT and LSHIFTRT, return
1563         CONST0_RTX (mode) when the new shift count is greater than or equal to
1564         to the bitsize of the object being shifted and XEXP (y, 0) has no side
1565         effects.
1566
1567 2006-08-04  Kazu Hirata  <kazu@codesourcery.com>
1568
1569         * tree-cfg.c: Fix a comment typo.
1570
1571 2006-08-03  Mark Mitchell  <mark@codesourcery.com>
1572
1573         PR c++/28148
1574         * varasm.c (output_constant): Give the front end another chance to
1575         expand constants, after stripping NOPs.
1576
1577 2006-08-03  Jan Hubicka  <jh@suse.cz>
1578
1579         * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
1580         implementation.
1581
1582 2006-08-03  Dorit Nuzman  <dorit@il.ibm.com>
1583
1584         PR tree-optimization/27770
1585         * tree-vectorizer.h (get_vectype_for_scalar_type): Function
1586         declaration removed (moved to tree-flow.h).
1587         (vect_can_force_dr_alignment_p): Likewise.
1588         * tree-flow.h (get_vectype_for_scalar_type): New function declaration
1589         (moved from tree-vectorizer.h).
1590         (vect_can_force_dr_alignment_p): Likewise.
1591         * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
1592         from outside the vectorizer - in particular from cgraph stage.
1593         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
1594         the alignment of global arrays when -fsection-anchors is enabled.
1595         * cgraphunit.c (cgraph_increase_alignment): New function.
1596         (cgraph_optimize): Call cgraph_increase_alignment.
1597
1598 2006-08-03  David Edelsohn  <edelsohn@gnu.org>
1599
1600         PR target/27566
1601         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1602         not reload a SPE symbol_ref into a lo_sum address.
1603
1604 2006-08-02  Daniel Jacobowitz  <dan@codesourcery.com>
1605
1606         PR debug/28063
1607         * dwarf2out.c (prune_unused_types_prune): Move call to
1608         prune_unused_types_update_strings to cover the parent DIE also.
1609
1610 2006-08-02  Jan Hubicka  <jh@suse.cz>
1611
1612         PR gcov/profile/28480
1613         * tree-cfg.c (change_bb_for_stmt): New function.
1614         (tree_merge_blocks, tree_split_blocks): Use it.
1615
1616 2006-08-01  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1617
1618         PR c++/28250
1619         PR c++/28257
1620         PR c++/28259
1621         PR c++/28267
1622         * toplev.c (compile_file): Return early on errorcount or sorrycount.
1623         * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
1624         (cgraph_optimize): Likewise.
1625
1626 2006-08-01  Stuart Hastings  <stuart@apple.com>
1627
1628         * rtl.h (UINTVAL) New.
1629         * config/rs6000/rs6000.c (SMALL_INT) Use it.
1630         * testsuite/gcc.dg/20060801-1.c: New.
1631
1632 2006-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
1633
1634         PR debug/23336
1635         * c-typeck.c (build_external_type): Mark used enum types.
1636         * dwarf2out.c (dwarf2out_abstract_function): Save and restore
1637         cfun also.
1638         (gen_subprogram_die): Whitespace fix.
1639
1640 2006-08-01  Jan Hubicka  <jh@suse.cz>
1641
1642         * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
1643         bitmap when not needed.
1644         * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
1645         bitmaps.
1646
1647 2006-08-01  Dirk Mueller  <dmueller@suse.de>
1648
1649         * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
1650
1651 2006-07-31  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1652
1653         * Makefile.in: Revert part of previous patch:
1654         Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
1655         and REGS_H.
1656
1657 2006-07-30  Eric Christopher  <echristo@apple.com>
1658
1659         PR target/27543
1660         * doc/extend.texi (i386 Variable Attributes): Add anchor.
1661         (PowerPC Variable Attributes): New section.
1662
1663 2006-07-30  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
1664
1665         PR target/28126 (partial fix)
1666         * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
1667
1668 2006-07-28  Jan Hubicka  <jh@suse.cz>
1669
1670         PR rtl-optimization/28071
1671         * cfgrtl.c (rtl_delete_block): Free regsets.
1672         * flow.c (allocate_bb_life_data): Re-use regsets if available.
1673
1674 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1675
1676         * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
1677         and variables used in dependencies.
1678
1679 2006-07-27  Arjan van de Ven <arjan@linux.intel.com>
1680
1681         * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
1682         %fs for -mcmodel=kernel.
1683         (stack_tls_protect_test_di): Likewise.
1684
1685 2006-07-27  Carlos O'Donell  <carlos@codesourcery.com>
1686
1687         * Makefile.in: Use mkinstalldirs.
1688
1689 2006-07-27  H.J. Lu  <hongjiu.lu@intel.com>
1690
1691         PR driver/28437
1692         * opts-common.c (prune_options): Skip joined switches.
1693
1694 2006-07-27  Jan Hubicka  <jh@suse.cz>
1695
1696         PR rtl-optimization/28071
1697         * cselib.c (cselib_process_insn): Don't remove useless values too
1698         often for very large hashtables.
1699
1700 2006-07-27  Jan Hubicka  <jh@suse.cz>
1701
1702         PR rtl-optimization/28071
1703         * global.c (greg_obstack): New obstack.
1704         (allocate_bb_info): Use it.
1705         (free_bb_info): Likewise.
1706         (modify_reg_pav): Likewise.
1707
1708 2006-07-27  Roger Sayle  <roger@eyesopen.com>
1709
1710         * builtins.c (fold_fixed_mathfn): When long and long long are the
1711         same size, canonicalize llceil*, llfloor*, llround* and llrint*
1712         functions to their lceil*, lfloor*, lround* and lrint* forms.
1713
1714 2006-07-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1715
1716         PR gcc/28508
1717         * config/m32r/m32r.md (branch_insn): Reduce pc range for short
1718         branch.
1719         (rev_branch_insn): Likewise.
1720
1721 2006-07-27  Jan Hubicka  <jh@suse.cz>
1722
1723         PR rtl-optimization/28071
1724         * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
1725         (reg_set_in_bb, max_reg_computed): New static variables.
1726         (regmove_optimize): Free the new array.
1727         (fixup_match_1): Update call of reg_is_remote_constant_p.
1728
1729 2006-07-26  Jan Hubicka  <jh@suse.cz>
1730
1731         PR tree-optimization/27882
1732         * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
1733         and decl fields.
1734         * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
1735         next pointer
1736         (cgraph_analyze_compilation_unit): Likewise.
1737         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
1738         * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
1739         (cgraph_early_inlinine): Make order garbage collected.
1740         * Makefile.in (gt-ipa-inline): New garbagecollected file.
1741
1742 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
1743
1744         * dbxout.c (output_types_sort): Add a comment.
1745         (output_used_types): Free the VEC.
1746
1747 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
1748
1749         * function.c (reorder_fix_fragments): Delete.
1750         (reorder_blocks): Don't call it.
1751         (reorder_blocks_1): Put all subblocks under the origin block.
1752
1753 2006-07-26  Zdenek Dvorak <dvorakz@suse.cz>
1754
1755         PR rtl-optimization/27907
1756         * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
1757         FLOAT_TRUNCATE.
1758
1759 2006-07-25  Roger Sayle  <roger@eyesopen.com>
1760
1761         PR middle-end/28473
1762         * convert.c (convert_to_integer): When transforming (T)foo(x) into
1763         bar(x) check that bar's result type can represent all the values of T.
1764
1765 2006-07-25  Zdenek Dvorak <dvorakz@suse.cz>
1766
1767         * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
1768
1769 2006-07-25  Nick Clifton  <nickc@redhat.com>
1770
1771         * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
1772         size_lookup[] array.
1773         (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
1774         (ggc_pch_count_object): Likewise.
1775         (ggc_pch_alloc_object): Likewise.
1776         (ggc_pch_write_object): Likewise.
1777         (init_ggc): Do not attempt to initialize entries in the
1778         size_lookup[] array for objects whose size is greater than than
1779         the length of the array.
1780
1781 2006-07-25  Daniel Jacobowitz  <dan@codesourcery.com>
1782
1783         * dbxout.c (output_used_types_helper): Push queued types
1784         on a VEC.
1785         (output_types_sort): New.
1786         (output_used_types): Collect used types on a VEC and sort them
1787         before emission.
1788
1789 2006-07-24  Richard Guenther  <rguenther@suse.de>
1790
1791         PR middle-end/28463
1792         * cgraph.c (cgraph_remove_node): Do not check if dumps
1793         are enabled.
1794         * cgraphunit.c (cgraph_optimize): Likewise.
1795
1796 2006-07-24  Jan Hubicka  <jh@suse.cz>
1797
1798         PR rtl-optimization/28071
1799         * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
1800         * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
1801         splitting before first stmt.
1802
1803 2006-07-24  Jan Hubicka  <jh@suse.cz>
1804
1805         PR rtl-optimization/28071
1806         * ipa-inline.c (update_caller_keys): Remove edges that
1807         are no longer inline candidates.
1808
1809 2006-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
1810
1811         PR debug/27473
1812         * dbxout.c (output_used_types_helper, output_used_types): New.
1813         (dbxout_symbol): Call output_used_types.
1814
1815 2006-07-23  Jan Hubicka  <jh@suse.cz>
1816
1817         PR c/25795
1818         PR c++/27369
1819         * cgraph.c (cgraph_varpool_nodes): Export.
1820         (decide_is_variable_needed): Ignored "used" attribute in
1821         unit-at-a-time mode.
1822         * cgraph.h (cgraph_varpool_nodes): Declare.
1823         * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
1824         unit-at-a-time mode.
1825
1826 2006-07-23  Roger Sayle  <roger@eyesopen.com>
1827
1828         PR target/28247
1829         * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
1830         mutex_destroy even when !_LIBOOBJC.  Remove duplicate prototype of
1831         the __gthrw form of thr_keycreate.
1832         (__gthread_key_delete): Silence the unused argument warning.
1833
1834 2006-07-23  Steven Bosscher  <steven@gcc.gnu.org>
1835
1836         PR debug/25468
1837         * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
1838         Cache the last found '\0' marker to avoid quadratic behavior.
1839
1840 2006-07-23  Jan Hubicka  <jh@suse.cz>
1841
1842         * i386.md (subsi_3_zext): Fix output template.
1843
1844 2006-07-21  Mike Stump  <mrs@apple.com>
1845
1846         * doc/invoke.texi (C++ Dialect Options): Note that
1847         -fvisibility-inlines-hidden doesn't affect explicitly
1848         instantiationed inline methods.
1849
1850 2006-07-20  Roger Sayle  <roger@eyesopen.com>
1851
1852         * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
1853         if the target assembler is GNU binutils' gas.
1854         * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
1855         whether to pass GNU gas or native as command line options.
1856
1857 2006-07-20  Jason Merrill  <jason@redhat.com>
1858
1859         * tree.c (remove_attribute): New fn.
1860         * tree.h: Declare it.
1861
1862 2006-07-20  Paul Brook  <paul@codesourcery.com>
1863
1864         PR 27363
1865         * cse.c (cse_insn): Add destination addresses to hash table. Check if
1866         they are invalidated by this instruction.
1867
1868 2006-07-21  Danny Smith  <dannysmith@users.sourceforge.net>
1869
1870         PR target/28427
1871         * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
1872
1873 2006-07-20  Eric Christopher  <echristo@apple.com>
1874
1875         PR target/26877
1876         * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
1877
1878 2006-07-19  Eric Christopher  <echristo@apple.com>
1879
1880         * config/t-slibgcc-darwin (stmp-lipo): Remove.
1881         Rewrite dependencies for libgcc_s.1.dylib.
1882
1883 2006-07-19  Jakub Jelinek  <jakub@redhat.com>
1884
1885         * except.c (duplicate_eh_regions_1): Clear next_peer.
1886
1887 2006-07-17  Nathan Sidwell  <nathan@codesourcery.com>
1888
1889         * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
1890         -mlongcall does not guarantee all calls will be long.
1891         * doc/extend.texi (long_call/short_call): Document that longcall
1892         does not guarantee a long call will be used.
1893         (longcall/shortcall): Likewise.
1894
1895 2006-07-18  Roger Sayle  <roger@eyesopen.com>
1896
1897         PR middle-end/28283
1898         * expmed.c (expand_shift): Additionally check that the shift_cost
1899         is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
1900         before implementing a LSHIFT_EXPR as a sequence of additions.
1901         * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
1902         middle-end that DImode shifts need to be synthesized by expand.
1903
1904 2006-07-18  Diego Novillo  <dnovillo@redhat.com>
1905
1906         PR 28410
1907         * tree-ssa-operands.c (access_can_touch_variable): Update
1908         comment.
1909         Return true if ALIAS is .GLOBAL_VAR.
1910
1911 2006-07-18  David Daney  <ddaney@avtrex.com>
1912
1913         * gcc.c (display_help): Fix typo in help text.
1914
1915 2006-07-18  Olivier Hainque  <hainque@adacore.com>
1916
1917         * tree.h (categorize_ctor_elements): Adjust prototype and add
1918         descriptive comment, both in accordance with the interface change
1919         described below.
1920         * varasm.c (constructor_static_from_elts_p): New function.
1921         Whether a constructor node is a valid static constant initializer
1922         if all its elements are.
1923         (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
1924         * output.h: Declare it.
1925         * expr.c (categorize_ctor_elements_1): Return whether the constructor
1926         is a valid constant initializer instead of computing the number of
1927         non-constant elements.  Use constructor_static_from_elts_p for this
1928         purpose.  Replace the head comment with an indication that this is a
1929         helper for categorize_ctor_elements.
1930         (categorize_ctor_elements): Same interface change as for the _1
1931         helper.  Former head comment from this helper moved here, adjusted to
1932         account for the interface changes.
1933         (mostly_zeros_p): Adjust call to categorize_ctor_elements.
1934         (all_zeros_p): Likewise.
1935         * gimplify.c (gimplify_init_constructor): Decide whether we can make
1936         static versions of the constructor from the categorize_ctor_elements
1937         return value instead of the formerly computed number of non-constant
1938         elements.
1939
1940 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
1941
1942         * configure: Regenerate.
1943         * Makefile.in (build_libsubdir): New configure substitution
1944         (build_libobjdir): New variable.
1945         (BUILD_LIBIBERTY): Use it.
1946
1947 2006-07-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1948
1949         PR c/28286
1950         * c-pragma.c (handle_pragma_pack): Handle invalid constants.
1951
1952 2006-07-18  Alexandre Oliva  <aoliva@redhat.com>
1953
1954         PR c/26993
1955         * c-common.c (handle_weakref_attribute): Ignore attribute in
1956         the same conditions the alias attribute is ignored.
1957
1958 2006-07-17  Carlos O'Donell  <carlos@codesourcery.com>
1959
1960         * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
1961         (dbxout_begin_prologue): Increment scope_labelno.
1962
1963 2006-07-17  Richard Henderson  <rth@redhat.com>
1964
1965         PR 27889
1966         * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
1967         if needed.
1968
1969 2006-07-17  Roger Sayle  <roger@eyesopen.com>
1970             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1971
1972         * config/i386/gmon-sol2.c: Silence compilation warnings by partially
1973         synchronizing code with config/sparc/gmon-sol2.c.  Remove #if 0
1974         blocks.  #include "tconfig.h" and "tsystem.h" to prototype system
1975         functions such as sbrk, write, etc..  Add function prototypes.
1976         Convert function declarations from K&R to ISO C.  Cast pointers
1977         to "long" and "unsigned long" instead of "int" and "unsigned int".
1978         Convert tokens following #endif into comments.
1979
1980 2006-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
1981
1982         * invoke.texi: Remove mention of f77; Reformat table for
1983         inline parameter options correctly; mention that -malign-double
1984         is default on x86-64 targets.
1985
1986 2006-07-17  Zdenek Dvorak <dvorakz@suse.cz>
1987
1988         * tree-chrec.c (avoid_arithmetics_in_type_p): New.
1989         (convert_affine_scev, chrec_convert_aggressive): Use
1990         avoid_arithmetics_in_type_p.  Do not check for the subtypes
1991         separately.
1992
1993 2006-07-17  Richard Sandiford  <richard@codesourcery.com>
1994
1995         PR middle-end/28403
1996         * optabs.c (expand_doubleword_shift): Wrap the call to
1997         do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
1998
1999 2006-07-17  Richard Sandiford  <richard@codesourcery.com>
2000
2001         PR middle-end/28402
2002         * optabs.c (expand_binop): Pass next_methods rather than methods
2003         to expand_doubleword_shift.
2004
2005 2006-07-17  J"orn Rennecke  <joern.rennecke@st.com>
2006
2007         PR other/28251
2008         * tree.h (dump_addr): Declare.
2009         * print-tree.c (dump_addr): New function.
2010         (print_node_brief, print_node): Use it.
2011         * print-rtl.c (print_rtx): Likewise.
2012         * common.opt (-fdump-noaddr): New option.
2013         * doc/invoke.texi (-fdump-noaddr): Document.
2014         * loop-unroll.c (si_info_hash): Make hash independent of addresses.
2015         (ve_info_hash): Likewise.
2016
2017 2006-07-13  Andrew Haley  <aph@redhat.com>
2018
2019         PR tree-optimization/19505
2020         * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
2021         edge leaving this block, make sure that the destination of this
2022         block has only one predecessor.
2023
2024 2006-07-17  Richard Guenther  <rguenther@suse.de>
2025
2026         PR tree-optimization/28238
2027         * tree-inline.c (copy_bb): Check if we produced valid
2028         gimple copying and substituting a stmt.  If not, gimplify
2029         it.
2030
2031 2006-07-16  Eric Botcazou  <ebotcazou@adacore.com>
2032
2033         * optabs.c (maybe_encapsulate_block): New function extracted from...
2034         (emit_libcall_block): ...here.  Invoke it on the block of insns to
2035         maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
2036         (emit_no_conflict_block): Likewise.
2037
2038 2006-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
2039
2040         * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
2041
2042 2006-07-15  Roger Sayle  <roger@eyesopen.com>
2043
2044         * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
2045         a new NOP_EXPR case of the switch statement.
2046
2047 2006-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2048
2049         PR middle-end/28160
2050         * stor-layout.c (place_field): Take the bit field with
2051         an excessive size into account in the ms-bitfiled case.
2052
2053         PR middle-end/28161
2054         * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
2055         the previous bit field.
2056
2057 2006-07-14  Eliot Dresselhaus  <eliot@sonic.net>
2058
2059         PR target/27287
2060         * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
2061
2062 2006-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
2063
2064         * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
2065         signal frames correctly even when the signal was installed with
2066         sa_restorer set.
2067
2068 2006-07-14  Carlos O'Donell  <carlos@codesourcery.com>
2069
2070         * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
2071         (dbxout_function_end): Use local label LFBB. Remove hook
2072         DBX_OUTPUT_NFUN.
2073         (dbxout_source_line): Use local label LFBB.
2074         (dbxout_block): Likewise.
2075         (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
2076         (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
2077         * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
2078         and DBX_OUTPUT_NFUN.
2079
2080 2006-07-13  Janis Johnson  <janis187@us.ibm.com>
2081
2082         * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
2083
2084 2006-07-13  Jan Hubicka  <jh@suse.cz>
2085
2086         * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
2087         align_variable.
2088         * output.h (align_variable): Declare.
2089         * varasm.c (align_variable): Export.
2090         * value-prof.c (tree_value_profile_transformations): Recompute iterator
2091         when basic block changed.
2092
2093 2006-07-13  Nick Clifton  <nickc@redhat.com>
2094
2095         * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
2096         walking the LOG_LINKS chain.
2097
2098 2006-07-12  Geoffrey Keating  <geoffk@apple.com>
2099
2100         * doc/invoke.texi (C++ Dialect Options): Explain difference
2101         between -fvisibility-inlines-hidden and setting hidden
2102         visibility explicitly.
2103
2104 2006-07-12  Eric Christopher  <echristo@apple.com>
2105
2106         * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
2107         (stmp-lipo): Depend on libgcc.a.
2108
2109 2006-07-12  Kazu Hirata  <kazu@codesourcery.com>
2110
2111         * tree.c: Fix a comment typo.
2112
2113 2006-07-12  Naveen.H.S  <naveenh@kpitcummins.com>
2114
2115         * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
2116         dest.
2117         (umulhisi3_r): Likewise.
2118
2119 2006-07-12  Paolo Carlini  <pcarlini@suse.de>
2120
2121         PR libstdc++/27878
2122         * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
2123         x < 19, vs wchar_t support.
2124
2125 2006-07-12  Nick Clifton  <nickc@redhat.com>
2126
2127         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
2128         instead of -isa=sh4.
2129
2130 2006-07-12  Mike Stump  <mrs@apple.com>
2131
2132         * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
2133
2134 2006-07-10  Eric Christopher  <echristo@apple.com>
2135
2136         * config/t-slibgcc-darwin: Rewrite.
2137
2138 2006-07-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2139
2140         PR bootstrap/20437
2141         * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
2142         dependencies.
2143
2144 2006-07-08  Matthias Klose  <doko@debian.org>
2145
2146         * doc/sourcebuild.texi: Fix typo.
2147
2148 2006-07-07  Mike Stump  <mrs@apple.com>
2149
2150         * toplev.c (process_options): Don't give -ffunction-sections may
2151         affect debugging warning for Mach-O.
2152
2153 2006-07-07  James E Wilson  <wilson@specifix.com>
2154
2155         * config/mips/mips.md (cpu): Add sb1a.
2156         * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
2157         addition to sb1.  Adjust comments to clarify SB-1A differences from
2158         SB-1.
2159         (ir_sb1a_load): New.  Modify bypasses to use it.
2160         (ir_sb1a_simple_alu): Likewise.
2161         * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
2162         (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
2163         (mips_issue_rate): Add PROCESSOR_SB1A.
2164         (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
2165         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
2166         (TARGET_SB1): Add PROCESSOR_SB1A check.
2167         (TUNE_SB1): Likewise.
2168
2169         * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
2170         * config/mips/mips.c (mips_store_data_bypass_p): New.
2171         * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
2172         store_data_bypass_p.
2173
2174 2006-07-08  Paul Brook  <paul@codesourcery.com>
2175
2176         PR target/27991
2177         * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
2178
2179 2006-07-07   Richard Guenther  <rguenther@suse.de>
2180
2181         PR middle-end/28268
2182         * tree.h (build_one_cst): Declare.
2183         * tree.c (build_one_cst): New function.
2184         * tree-ssa-math-opts.c (get_constant_one): Remove.
2185         (insert_reciprocals): Use build_one_cst.
2186         * fold-const.c (fold_plusminus_mult): Likewise.
2187
2188 2006-07-07  Roger Sayle  <roger@eyesopen.com>
2189
2190         * pointer-set.c (pointer_set_destroy): Correct whitespace.
2191         * cfgloopanal.c (dump_graph): Likewise.
2192         * dojump.c (discard_pending_stack_adjust): Likewise.
2193         * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
2194         Likewise.
2195         * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
2196         * function.c (finalize_block_changes): Likewise.
2197         * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
2198         * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
2199         * rtl.c (dump_rtx_statistics): Likewise.
2200         * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
2201         Likewise.
2202         * varray.c (dump_varray_statistics): Likewise.
2203         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
2204         decode_decimal64, encode_decimal128, decode_decimal128,
2205         decimal_real_to_decimal): Likewise.
2206
2207 2006-07-07  Richard Guenther  <rguenther@suse.de>
2208
2209         PR tree-optimization/28187
2210         * tree-vrp.c (vrp_operand_equal_p): New function.
2211         (vrp_bitmap_equal_p): Likewise.
2212         (update_value_range): Use them to compare old and new
2213         max and min values.
2214
2215 2006-07-06  Roger Sayle  <roger@eyesopen.com>
2216
2217         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
2218         a default case to switch statement to silence compiler warnings.
2219
2220 2006-07-06  Roger Sayle  <roger@eyesopen.com>
2221
2222         PR target/27968
2223         * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
2224         the configured assembler supports the x87's ffreep mnemonic.
2225         * configure: Regenerate.
2226         * config.in: Regenerate.
2227
2228         * config/i386/i386.c (output_387_ffreep): New function.
2229         (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
2230         (output_387_reg_move): Likewise.
2231
2232 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2233
2234         Port to hosts whose 'sort' and 'tail' implementations
2235         treat operands with leading '+' as file names, as POSIX
2236         has required since 2001.  However, make sure the code still
2237         works on pre-POSIX hosts.
2238         * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
2239         which says you should use "tail -c +N" rather than "tail +Nc".
2240         Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
2241
2242 2006-07-06  Zdenek Dvorak <dvorakz@suse.cz>
2243
2244         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
2245         argument name.
2246
2247 2006-07-06  David Edelsohn  <edelsohn@gnu.org>
2248
2249         PR target/28150
2250         * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
2251         PRE_{INC,DEC} of TFmode.
2252
2253 2006-07-06  David Edelsohn  <edelsohn@gnu.org>
2254             Alan Modra  <amodra@bigpond.net.au>
2255
2256         PR target/28170
2257         * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
2258         bounds. Simplify.
2259
2260 2006-07-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2261
2262         PR target/28285
2263         * config/alpha/predicates.md (alpha_swapped_comparison_operator):
2264         Remove duplicate gtu.
2265
2266 2006-07-05  Jason Merrill  <jason@redhat.com>
2267
2268         PR c++/13983
2269         PR c++/17519
2270         * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
2271         * c-common.c (handle_packed_attribute): So don't copy it here.
2272         * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
2273
2274 2006-07-05  Mike Stump  <mrs@apple.com>
2275
2276         * doc/invoke.texi (Invoking G++): Clarify prose for g++.
2277
2278 2006-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2279
2280         PR target/26146
2281         * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
2282
2283 2006-07-05  Richard Guenther  <rguenther@suse.de>
2284
2285         PR target/28158
2286         * config/i386/i386.md (*negdf2_1): Restrict pattern to
2287         TARGET_SSE2 targets if using SSE math.
2288         (*absdf2_1): Likewise.
2289
2290 2006-07-05  Richard Guenther  <rguenther@suse.de>
2291
2292         PR tree-optimization/28162
2293         * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
2294         make sure to convert the operands to the correct type.
2295
2296 2006-07-04  Paolo Bonzini  <bonzini@gnu.org>
2297
2298         PR tree-optimization/28218
2299
2300         * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
2301         to calculate and free the dominator information.
2302
2303 2006-07-04  Peter O'Gorman  <peter@pogma.com>
2304
2305         * mklibgcc.in: chmod 644 before ranlib during install.
2306
2307 2006-07-04  Andrew Stubbs <andrew.stubbs@st.com>
2308             J"orn Rennecke <joern.rennecke@st.com>
2309
2310         * configure.ac (.eh_frame data check): Use diff -b.
2311
2312 2006-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2313
2314         PR bootstrap/18058
2315         * Makefile.in (BUILD_RTL): Add build/vec.o.
2316         (build/gencondmd.o): Filter out -fkeep-inline-functions.
2317         (build/genextract): Delete.
2318         (build/genautomata): Likewise.
2319
2320 2006-07-04  Alan Modra  <amodra@bigpond.net.au>
2321
2322         PR target/28207
2323         * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
2324         128-bit IBM long doubles for ABI_V4.
2325
2326 2006-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2327
2328         * tree.c (range_in_array_bounds_p): New predicate.
2329         * tree.h (range_in_array_bounds_p): Declare it.
2330         * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
2331         return a less conservative answer.
2332         * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
2333         and flag 'is_group'.
2334         (IS_ELEMENT_FOR_GROUP): New macro.
2335         (FOR_EACH_ACTUAL_CHILD): Likewise.
2336         (next_child_for_group): New helper function.
2337         (can_completely_scalarize_p): Take into account groups.
2338         (sra_hash_tree): Handle RANGE_EXPR.
2339         (sra_elt_eq): Likewise.
2340         (lookup_element): Be prepared for handling groups.
2341         (is_valid_const_index): Delete.
2342         (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
2343         instead of is_valid_const_index.
2344         <ARRAY_RANGE_REF>: New case.
2345         (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
2346         is_valid_const_index.
2347         <ARRAY_RANGE_REF>: Do not unconditionally punt.
2348         (scan_dump): Dump info for groups too.
2349         (decide_instantiation_1): Likewise.
2350         (decide_block_copy): Assert that the element is not a group.
2351         Propagate decision to groups.
2352         (generate_one_element_ref): Handle RANGE_EXPR.
2353         (mark_no_warning): Iterate over actual childs.
2354         (generate_copy_inout): Likewise.
2355         (generate_element_copy): Likewise.
2356         (generate_element_zero): Likewise.
2357         (generate_element_init_1): Likewise.
2358         (dump_sra_elt_name): Handle RANGE_EXPR.
2359
2360 2006-07-03  Roger Sayle  <roger@eyesopen.com>
2361
2362         PR tree-optimization/26251
2363         * tree-ssa-threadupdate.c (redirection_block_p): New function.
2364         (thread_block): When optimizing for size refuse to thread jumps
2365         that would require duplication of blocks other than redirection
2366         blocks.
2367
2368 2006-07-03  Paolo Bonzini  <bonzini@gnu.org>
2369
2370         * configure.ac: Fix thinko in previous check-in.
2371         * configure: Regenerate.
2372
2373 2006-07-03  Paolo Bonzini  <bonzini@gnu.org>
2374
2375         PR other/27063
2376         * configure.ac (for lang...): Simplify nesting of conditionals.
2377         Test subdir_requires for non-enabled languages.  Move processing
2378         of lang_opt_files and lang_tree_fiels below that test.
2379         * configure: Regenerate.
2380         * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
2381
2382 2006-07-01  Martin Michlmayr  <tbm@cyrius.com>
2383
2384         * doc/gcov.texi (Invoking Gcov): Add a missing word.
2385
2386 2006-06-30  Kazu Hirata  <kazu@codesourcery.com>
2387
2388         * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
2389         comment typos.
2390
2391 2006-06-29  Jason Merrill  <jason@redhat.com>
2392
2393         PR c++/26905
2394         PR c++/26612
2395         PR c++/27000
2396         PR c++/26984
2397         PR c++/19134
2398         * tree.c (build_decl_stat): Don't hande #pragma visibility here.
2399         * c-common.c (c_determine_visibility): Handle it here.
2400         * c-decl.c (finish_decl): Call c_determine_visibility for
2401         functions, too.
2402         * flags.h (enum symbol_visibility): Sort from most to least visibility.
2403         * tree.h: Likewise.
2404         * varasm.c (default_assemble_visibility): Likewise.
2405         * c-common.c (handle_visibility_attribute): Complain about trying
2406         to give visibility to an already defined class, or trying to change
2407         declared visibility. Always attach the attribute.
2408
2409         PR c++/26905
2410         PR c++/21675
2411         PR c++/17470
2412         * attribs.c (decl_attributes): Ignore type-in-place attributes
2413         once the type has been defined.
2414
2415 2006-06-29  Roger Sayle  <roger@eyesopen.com>
2416
2417         PR middle-end/27428
2418         * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
2419         to indicate the cpplib has issued an error message for us.
2420
2421 2006-06-29  Asher Langton  <langton2@llnl.gov>
2422
2423         PR target/25765
2424         * config/i386/i386.c (ix86_output_function_epilogue): Don't
2425         insert a label at the end of an function under Mach-O.
2426
2427 2006-06-29  Eric Christopher  <echristo@apple.com>
2428             Evan Cheng  <evan.cheng@apple.com>
2429
2430         * predicates.md (vector_all_ones_operand): New.
2431         (nonimmediate_or_sse_const_operand): Ditto.
2432         * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
2433         * config/i386/i386.c (standard_sse_constant_opcode): Define.
2434         (standard_sse_mode_p): Ditto.
2435         (standard_sse_constant_p): Add case for -1 vector.
2436         (ix86_expand_vector_move): Try to use.
2437         * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
2438         Call standard_sse_constant_opcode.
2439         (*movv4sf_internal): Ditto.
2440         (*movv2df_internal): Ditto.
2441
2442 2006-06-29  Roger Sayle  <roger@eyesopen.com>
2443
2444         * genpreds.c (write_match_code_switch): Correctly use XSTR instead
2445         of XEXP to extract the operands of a MATCH_CODE rtx.
2446
2447 2006-06-28  Andrew Pinski  <pinskia@gmail.com>
2448
2449         * tree.c (tree_size): Do not waste tail padding in
2450         struct tree_string and make the size be the same as
2451         build_string will generate.
2452
2453 2006-06-28  Jason Merrill  <jason@redhat.com>
2454
2455         PR c++/27768
2456         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2457         may_aliases already in the tag's annotations to the bitmap.
2458
2459 2006-06-28  Roger Sayle  <roger@eyesopen.com>
2460
2461         * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
2462
2463 2006-06-28  Roger Sayle  <roger@eyesopen.com>
2464
2465         * genpreds.c (generate_switch_p): New function.
2466         (add_mode_tests): Push the new mode test down inside an AND expr
2467         if this allows the switch-suitable MATCH_CODE to be near the root.
2468         (write_match_code_switch): New function to write a MATCH_CODE as
2469         a switch statement.
2470         (write_predicate_stmts): New function to write a predicate RTX
2471         expression as a sequence of statements.
2472         (write_one_predicate_function): Use write_predicate_stmts.
2473         (write_tm_constrs_h): Likewise.
2474
2475 2006-06-26  Fred Fish  <fnf@specifix.com>
2476
2477         * config/mips/t-sb1: New file.
2478         * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
2479         tmake_file list.
2480
2481 2006-06-26  DJ Delorie  <dj@redhat.com>
2482
2483         * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
2484
2485 2006-06-26  Naveen H.S  <naveenh@kpitcummins.com>
2486             Jayant Sonar  <jayants@kpitcummins.com>
2487             Jaydeep Vipradas  <jaydeepv@kpitcummins.com>
2488
2489         * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
2490         (subsi3, subsi3_1, subsi3_2): New.
2491         * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
2492         * config/m32c/mov.md (SI mov peephole): New.
2493         * config/m32c/m32.c (m32c_immd_dbl_mov): New.
2494         * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
2495
2496 2006-06-26  Olivier Hainque  <hainque@adacore.com>
2497
2498         * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
2499         a CALL_EXPR target function declaration.
2500
2501 2006-06-26  Richard Guenther  <rguenther@suse.de>
2502
2503         * tree.c (build_string): Do not waste tail padding in
2504         struct tree_string.
2505
2506 2006-06-26  Richard Guenther  <rguenther@suse.de>
2507
2508         * ggc-page.c (init_ggc): Add missing element to size_lookup
2509         table.
2510
2511         Revert
2512         2006-06-23  Richard Guenther  <rguenther@suse.de>
2513
2514         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2515         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
2516         alignment requests instead.  Add verification code.
2517         Add struct tree_function_decl and struct tree_binfo size to
2518         extra_order_size_table.  Add missing element to size_lookup
2519         table.
2520
2521 2006-06-25  Eric Botcazou  <ebotcazou@adacore.com>
2522
2523         PR middle-end/28151
2524         * fold-const.c (const_binop): Be prepared for self returning zero.
2525         Simplify code handling complex values.
2526
2527 2006-06-24  Olivier Hainque  <hainque@adacore.com>
2528
2529         * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
2530         (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
2531         aggregate types.
2532
2533 2006-06-24  Olivier Hainque  <hainque@adacore.com>
2534
2535         * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
2536         ARRAY_REF, so have the callback called for the low bound expression.
2537
2538 2006-06-23  Janis Johnson  <janis187@us.ibm.com>
2539
2540         * tree.h (DECIMAL_FLOAT_TYPE_P): New.
2541         * c-typeck.c (c_common_type): Disallow operations on decimal float
2542         types and other float types.
2543         * convert.c (convert_to_real): Don't ignore conversions involving
2544         decimal float types.
2545
2546 2006-06-23  Olivier Hainque  <hainque@adacore.com>
2547
2548         * tree.c (max_int_size_in_bytes): New function, inspired from
2549         code in function.c:assign_temp.
2550         * tree.h (max_int_size_in_bytes): Declare.
2551         * function.c (assign_temp): Use it.
2552         * gimplify.c (create_tmp_var): Relax the assertions on the type
2553         properties, not mandating constant size any more.
2554         (force_constant_size): New static function.
2555         (gimple_add_tmp_var): Use it, forcing variable size to a
2556         constant upper bound if it is not constant on entry.
2557
2558 2006-06-23  Danny Smith   <dannysmith@users.sourceforge.net>
2559
2560         PR target/27789
2561         * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
2562         for initialization and setting of one_only flag to ...
2563         (i386_pe_encode_section_info): ...here.
2564         (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
2565         Recheck that the symbol has not been defined.
2566
2567 2006-06-23  Richard Guenther  <rguenther@suse.de>
2568
2569         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2570         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
2571         alignment requests instead.  Add verification code.
2572         Add struct tree_function_decl and struct tree_binfo size to
2573         extra_order_size_table.  Add missing element to size_lookup
2574         table.
2575
2576 2006-06-22  Roger Sayle  <roger@eyesopen.com>
2577             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2578
2579         PR middle-end/28131
2580         * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
2581         call to lang_hooks.types.type_for_mode returned NULL_TREE.
2582
2583 2006-06-23  Ben Elliston  <bje@au.ibm.com>
2584
2585         * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
2586         negate dn -- manipulate it directly.
2587
2588 2006-06-22  Roger Sayle  <roger@eyesopen.com>
2589             Steven Bosscher  <stevenb.gcc@gmail.com>
2590
2591         PR target/27531
2592         * reload1.c (gen_reload): Call mark_jump_label on the new insns
2593         generated by gen_move_insn to add REG_LABEL notes if necessary.
2594
2595 2006-06-22  Bob Wilson  <bob.wilson@acm.org>
2596
2597         * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
2598         (leaf_entry): Remove use of MIN_ESA.
2599
2600 2006-06-22  Zdenek Dvorak <dvorakz@suse.cz>
2601
2602         PR rtl-optimization/28121
2603         * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
2604         the entry edge.
2605
2606 2006-06-21  DJ Delorie  <dj@redhat.com>
2607
2608         * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
2609         (TN-16C-A156A/E).
2610         (mulhisi3_r): Likewise.
2611
2612 2006-06-21  Richard Sandiford  <richard@codesourcery.com>
2613
2614         PR middle-end/28034
2615         * coverage.c (coverage_counter_alloc): Leave the index type
2616         unspecified.
2617         (coverage_counter_alloc): Use null arguments for operands 2 and 3
2618         of the ARRAY_REF.
2619
2620 2006-06-21  Andrew Pinski  <pinskia@physics.uc.edu>
2621
2622         * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
2623         section from the "Options for Code Generation Conventions".
2624
2625 2006-06-21  Richard Henderson  <rth@redhat.com>
2626
2627         PR target/26347
2628         PR target/27082
2629         * config/alpha/predicates.md (small_symbolic_operand): Deny weak
2630         symbols.
2631         (global_symbolic_operand): Allow weak symbols, even if local_p.
2632
2633 2006-06-21  Eric Botcazou  <ebotcazou@adacore.com>
2634
2635         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
2636         (find_interesting_uses_address): Punt if above function returns true.
2637
2638 2006-06-21  Richard Guenther  <rguenther@suse.de>
2639
2640         * configure: Regenerated.
2641
2642 2006-06-21  Joseph Myers  <joseph@codesourcery.com>
2643
2644         * config/mips/mips.c (function_arg): Where one part of a
2645         complex argument is in registers and the other part in the stack,
2646         return a REG not a PARALLEL.
2647
2648 2006-06-21  Mark Mitchell  <mark@codesourcery.com>
2649
2650         * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
2651         when cross-compiling.  Do not substitute libstdcxx_incdir.
2652         * configure: Regenerated.
2653
2654 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2655
2656         * varasm.c (mergeable_string_section): Check for embedded NULs and
2657         NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
2658         rather than TREE_STRING_LENGTH bytes.
2659
2660 2006-06-21  Richard Guenther  <rguenther@suse.de>
2661
2662         * ggc-page.c (extra_order_size_table): Add var_ann_d,
2663         tree_ssa_name, bitmap_element and phi_node with 4 arguments
2664         sizes.
2665
2666 2006-06-21  Richrad Guenther  <rguenther@suse.de>
2667
2668         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
2669         Limit iteration over the dominators.
2670
2671 2006-06-20  Roger Sayle  <roger@eyesopen.com>
2672
2673         * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
2674         (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
2675
2676 2006-06-20  Richard Guenther  <rguenther@suse.de>
2677         Michael Matz  <matz@suse.de>
2678
2679         * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
2680         function.
2681         * alloc-pool.c (free_alloc_pool_if_empty): New function.
2682         * et-forest.h (et_free_pools): Prototype new function.
2683         * et-forest.c (et_free_tree_force): Free parent occurrence.
2684         (et_free_pools): New function.
2685         * dominance.c (free_dominance_info): Free et-forest alloc
2686         pools.
2687
2688 2006-06-20  Roger Sayle  <roger@eyesopen.com>
2689
2690         * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
2691         integer modes, attempt to directly construct an integer constant.
2692
2693         * fold-const.c (native_encode_vector): Determine the size of each
2694         element from the vector type instead of the first vector element.
2695
2696         * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
2697         if all of its elements/components are constant.
2698         (build_constructor_from_list): Likewise.
2699
2700 2006-06-20  Zdenek Dvorak <dvorakz@suse.cz>
2701
2702         PR tree-optimization/27331
2703         * tree-data-ref.c (free_data_ref): New function.
2704         (create_data_ref): Fail if the data reference has unknown access
2705         function.
2706         (free_data_refs): Use free_data_ref.
2707
2708 2006-06-19  Andrew Pinski  <pinskia@gmail.com>
2709
2710         PR middle-end/28075
2711         * tree-inline.c (setup_one_parameter): Strip useless
2712         type conversion before adding it to the IR.
2713         (declare_return_variable): Likewise.
2714
2715 2006-06-19  Martin Michlmayr  <tbm@cyrius.com>
2716
2717         PR c/27149
2718         * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
2719
2720 2006-06-19  Mike Stump  <mrs@apple.com>
2721
2722         * tree.c (variably_modified_type_p): VM arguments don't make the
2723         type a VM type.
2724
2725 2006-06-19  Richard Guenther  <rguenther@suse.de>
2726
2727         * tree-ssa-pre.c (try_combine_conversion): Strip useless
2728         type conversions after folding.
2729
2730 2006-06-19  Richard Guenther  <rguenther@suse.de>
2731
2732         * ggc-page.c (extra_order_size_tab): Add entries with
2733         size of struct function and basic_block.
2734         (size_lookup): Extend to cover sizes up to 511.
2735         (ggc_alloc_stat): Adjust user.
2736         (ggc_pch_count_object): Likewise.
2737         (ggc_pch_alloc_object): Likewise.
2738         (ggc_pch_write_object): Likewise.
2739
2740 2006-06-19  Zdenek Dvorak <dvorakz@suse.cz>
2741
2742         * tree-ssa-loop-niter.c (implies_ge_p): New function.
2743         (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
2744         correctly.
2745
2746 2006-06-19  Denis Chertykov  <denisc@overta.ru>
2747
2748         * config/avr/libgcc.S : Correct my wrong previous commit.
2749
2750 2006-06-19  Roger Sayle  <roger@eyesopen.com>
2751
2752         PR target/27861
2753         * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
2754         have stripped a SUBREG from the shift count, so we may need to
2755         convert_to_mode back to the type's mode before calling make_tree.
2756         Use new_amount instead of amount to avoid expanding a tree twice.
2757
2758 2006-06-19  Richard Guenther  <rguenther@suse.de>
2759
2760         PR middle-end/28045
2761         * fold-const.c (operand_equal_p): Check if the argument types
2762         have the same precision before stripping NOPs.
2763
2764 2006-06-19  Daniel Berlin  <dberlin@dberlin.org>
2765
2766         Fix PR tree-optimization/27341
2767         * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
2768         statement we get.
2769         * tree-complex.c (pass_lower_complex): Update SMT usage.
2770
2771 2006-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2772
2773         * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
2774         Add a new alternative to the constraint strings. Add move of
2775         operand 1 to 3 to the splitter definition.
2776         ("doloop_si_long"): Second contraint alternative removed.
2777
2778 2006-06-08  Anatoly Sokolov <aesok@post.ru>
2779
2780         * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
2781         (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
2782         __AVR_HAVE_LPMX__.
2783         (AVR_HAVE_MOVW) Define.
2784         (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
2785         (ASM_SPEC): Add avr25.
2786         (LINK_SPEC): Add avr25.
2787         * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
2788         (base_arch_s): Add new member 'have_movw_lpmx'.
2789         (avr_arch_types): Init 'have_movw_lpmx'.
2790         (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
2791         attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
2792         attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
2793         (avr_override_options): Init 'avr_have_movw_lpmx_p'.
2794         (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
2795         AVR_HAVE_MOVW.
2796         (avr_file_start): Do not output '.arh' derective.
2797         * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
2798         (__do_copy_data): Use __AVR_HAVE_LPMX__.
2799         * config/avr/avr.md (mcu_enhanced): Delete.
2800         (mcu_have_movw): Define.
2801         (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
2802         (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
2803         * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
2804         (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
2805         attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
2806         attiny861 and at86rf401 devices.
2807
2808 2006-06-18  Jie Zhang  <jie.zhang@analog.com>
2809
2810         * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
2811         of 4096.
2812
2813 2006-06-17  Karl Berry  <karl@gnu.org>
2814
2815         * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
2816         doc/gccint.texi, doc/install.texi (@dircategory): Use
2817         "Software development" instead of "Programming", following
2818         the Free Software Directory.
2819
2820 2006-06-17  Alexandre Oliva  <aoliva@redhat.com>
2821
2822         * config/i386/i386.c (legitimate_tls_address)
2823         <TARGET_GNU2_TLS>: Add tp after DTPOFF.
2824         * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
2825         (*tls_dynamic_gnu2_combine_64): Likewise.
2826
2827 2006-06-16  Richard Guenther  <rguenther@suse.de>
2828
2829         PR middle-end/27116
2830         * fold-const.c (negate_expr_p): Do not introduce undefined
2831         overflow in negating INTEGER_CSTs.
2832         (fold_negate_expr): Rename from negate_expr.  Revert last
2833         change for folding BIT_NOT_EXPR.  Change semantics to
2834         return NULL_TREE for non-simplified negations.  Do not
2835         strip type conversions and unify type handling.
2836         (negate_expr): New function, wrap around fold_negate_expr
2837         but ensure building a tree always.  Strip type conversions
2838         here, fold to result type.
2839         (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
2840
2841 2006-06-16  Roger Sayle  <roger@eyesopen.com>
2842
2843         PR middle-end/27802
2844         * reg-stack.c (subst_stack_regs): Handle noreturn function calls
2845         that (would) return their results in stack registers.
2846
2847 2006-06-16  Michael Matz  <matz@suse.de>
2848         Richard Guenther  <rguenther@suse.de>
2849
2850         * fold-const.c (fold_truthop): Only return new tree node if
2851         we canonicalized something.
2852
2853 2006-06-16  Richard Guenther  <rguenther@suse.de>
2854
2855         * function.h (enum function_frequency): Move declaration
2856         out of struct function.
2857         (struct function): Move bool fields and the enum to the bitfield
2858         section.  Reorder elements to avoid padding.  Remove unused
2859         fields left over from the RTL inliner removal.
2860         * function.c (free_after_compilation): Do not zero removed fields.
2861         * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
2862         (ipa-type-escape.o): Likewise.
2863
2864 2006-06-16  Richard Guenther  <rguenther@suse.de>
2865
2866         * cgraph.h (struct cgraph_local_info): Turn bool elements
2867         into a bitfield.
2868         (struct cgraph_node): Likewise.
2869         (struct cgraph_varpool_node): Likewise.
2870
2871 2006-06-15  Richard Guenther  <rguenther@suse.de>
2872
2873         * fold-const.c (fold_truth_not_expr): Rename from
2874         invert_truthvalue.  Give it fold_* semantics to avoid
2875         generating garbage.
2876         (invert_truthvalue): New function.  Wrapper around
2877         fold_truth_not_expr.
2878         (optimize_minmax_comparison): Avoid creating garbage.
2879         (fold_unary): Use fold_truth_not_expr for folding
2880         TRUTH_NOT_EXPR.
2881         (fold_ternary): Replace uses of invert_truthvalue with
2882         fold_truth_not_expr where applicable.
2883         * tree.h (fold_truth_not_expr): Prototype.
2884
2885 2006-06-16  Richard Guenther  <rguenther@suse.de>
2886
2887         PR tree-optimization/27781
2888         * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
2889         * ipa-pure-const.c (target.h): Include.
2890         (analyze_function): Do not analyze functions that do not
2891         bind locally.
2892
2893 2006-06-15  Andrew MacLeod  <amacleod@redhat.com>
2894
2895         PR middle-end/27793
2896         * tree-dfa.c (referenced_vars_dup_list): Remove.
2897         (find_referenced_vars): Remove assert.
2898         (referenced_var_check_and_insert): Replace dup list with assert.
2899         * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
2900         * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
2901
2902 2006-06-15  Richard Guenther  <rguenther@suse.de>
2903
2904         * tree-ssa-structalias.c (alias_get_name): Avoid creating
2905         extra unused identifiers if not dumping.
2906         (create_variable_info_for): Likewise.
2907
2908 2006-06-15  Zdenek Dvorak <dvorakz@suse.cz>
2909
2910         * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
2911         (derive_constant_upper_bound): Derive more precise upper bound in
2912         common cases.  Return type changed to double_int.
2913         (record_estimate): Reflect the changed return type of
2914         derive_constant_upper_bound.
2915         * double-int.c (double_int_zext, double_int_sext): Fix.
2916
2917 2006-06-15  Paolo Bonzini  <bonzini@gnu.org>
2918
2919         * configure.ac (CFLAGS): Get them from the toplevel or from the
2920         configure invocation.
2921         * configure: Regenerate.
2922         * Makefile.in (CFLAGS): Substitute value provided by configure.
2923
2924 2006-06-14  Mark Mitchell  <mark@codesourcery.com>
2925
2926         PR c++/26559
2927         * c-common.h (c_finish_omp_atomic): Adjust declaration.
2928         * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
2929         rather than calling add_stmt on it.
2930         * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
2931
2932 2006-06-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2933
2934         PR middle-end/27959
2935         * reload1.c (reload): Remove registers returned by update_eliminables
2936         from used_spill_regs.
2937
2938 2006-06-13  DJ Delorie  <dj@redhat.com>
2939
2940         * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
2941
2942 2006-06-13  Carlos O'Donell  <carlos@codesourcery.com>
2943
2944         * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
2945         html__strip_dir, html__mkdir_p. Enhance install-html target.
2946         * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
2947         * configure: Regenerate.
2948
2949 2006-06-13  Fariborz Jahanian <fjahanian@apple.com>
2950
2951         * fold-const.c (fold_cond_expr_with_comparison): Check for
2952         Objective-C++ as language in deciding COND_EXPR transformation.
2953
2954 2006-06-06  J"orn Rennecke <joern.rennecke@st.com>
2955
2956         PR target/28014:
2957         * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
2958         * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
2959         * config/sh/lib1funcs.h (SL, SL1): Define.
2960         * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
2961         * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
2962         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
2963         (OBJS_Os_4_200): New variable.
2964         ($(T)libgcc-Os-4-200.a): Use it.
2965         * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
2966         when dividing 1 and/or by 0.
2967
2968 2006-06-13  Roger Sayle  <roger@eyesopen.com>
2969
2970         * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
2971         before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
2972         * configure: Regenerate.
2973
2974 2006-06-13  Jie Zhang  <jie.zhang@analog.com>
2975
2976         * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
2977         for real instruction.
2978
2979 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2980
2981         PR middle-end/26807
2982         * haifa-sched.c (check_cfg): Handle special case.
2983
2984 2006-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2985
2986         PR debug/26754
2987         * gimplify.c (declare_tmp_vars): Rename into declare_vars.
2988         Add debug_info parameter.  Chain the vars to the BLOCK instead
2989         of the BIND_EXPR if debug info are requested for them.
2990         (pop_gimplify_context): Adjust for above change.
2991         (gimple_add_tmp_var): Likewise.
2992         * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
2993         Add bool parameter.
2994         * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
2995         (convert_local_reference): Likewise.
2996         (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
2997         (finalize_nesting_tree_1): Request that debug info be emitted
2998         for debug_var_chain.
2999
3000 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3001
3002         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
3003         for PR target/27863.
3004
3005 2006-06-13  Richard Guenther  <rguenther@suse.de>
3006
3007         PR middle-end/27536
3008         * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
3009
3010 2006-06-13  Richard Guenther  <rguenther@suse.de>
3011
3012         PR tree-optimization/27830
3013         * tree-inline.c (copy_body_r): For copying the operand
3014         of an ADDR_EXPR make sure to fold &* afterwards.
3015
3016 2006-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3017
3018         * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
3019         lvalues in the fb_none case with side-effects.
3020
3021 2006-06-12  Kazu Hirata  <kazu@codesourcery.com>
3022
3023         * tree-flow.h: Remove the prototype for
3024         compute_phi_arg_on_exit.
3025         * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
3026         protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
3027         Remove.
3028
3029 2006-06-12  Mark Shinwell  <shinwell@codesourcery.com>
3030
3031         * builtins.c (expand_builtin_return_addr): Only use
3032         frame_pointer_rtx when count == 0 and we are expanding
3033         __builtin_return_address.
3034
3035 2006-06-12  Fred Fish  <fnf@specifix.com>
3036
3037         * config/mips/mips.c (mips_file_start): Create special section
3038         ".gcc_compiled_longXX" for o64 ABI as well as EABI.
3039
3040 2006-06-11  Eric Christopher  <echristo@apple.com>
3041
3042         PR middle-end/27948
3043         * stor-layout.c (place_field): Remove check for
3044         remaining_in_alignment when aligning at the end of a run.
3045
3046 2006-06-11  Eric Christopher  <echristo@apple.com>
3047
3048         PR 27542
3049         * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
3050         pragma.
3051
3052 2006-06-11  Roger Sayle  <roger@eyesopen.com>
3053
3054         PR target/27858
3055         Revert incorrect fix for PR target/27158
3056         2006-05-08  Roger Sayle  <roger@eyesopen.com>
3057         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
3058         of a reg_equiv_constant if the result is a legitimate constant.
3059
3060 2006-06-11  Roger Sayle  <roger@eyesopen.com>
3061
3062         PR target/27158
3063         * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
3064         extract a CONST_VECTOR element and interpret it as an integer.
3065         (vspltis_constant): Use const_vector_elt_as_int instead of the
3066         macro CONST_VECTOR_ELT in order to handle FP vector modes.
3067         * config/rs6000/predicates.md (easy_vector_const): Consider
3068         floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
3069
3070 2006-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3071
3072         PR middle-end/27942
3073         * stor-layout.c (update_alignment_for_field): Don't add extra
3074         alignment for packed non-bitfield fields in ms_bitfield_layout_p
3075         code.
3076
3077 2006-06-09  Ralf Corsepius  <ralf.corsepius@rtems.org>
3078
3079         * config/mips/t-rtems: Add EL/EB multilib variants.
3080
3081 2006-06-09  Mike Stump  <mrs@apple.com>
3082
3083         * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
3084
3085 2006-06-09  David Daney  <ddaney@avtrex.com>
3086
3087         * doc/install.texi: Add binutils version recommendation for mips-*-*.
3088
3089 2006-06-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3090
3091         * reload.c (find_reloads): Unset force_reload for 'X' constraint.
3092
3093 2006-06-09  Richard Guenther  <rguenther@suse.de>
3094
3095         PR tree-optimization/26998
3096         * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
3097         of signed types, only TYPE_MIN_VALUE is special, but for both,
3098         minimum and maximum value.  Likewise VR_ANTI_RANGE is special
3099         in this case, as is -fwrapv.
3100
3101 2006-06-08  Mike Stump  <mrs@apple.com>
3102
3103         PR target/26427
3104         * config/darwin.c (darwin_asm_output_anchor): Disable
3105         -fsection-anchors on darwin for now.
3106         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
3107         * rs6000/rs6000.c (optimization_options): Likewise.
3108
3109 2006-06-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3110
3111         PR target/27421
3112         * config/i386/i386.c (classify_argument): Skip fields with invalid
3113         types in unions.
3114
3115 2006-06-08  Steven Bosscher  <steven@gcc.gnu.org>
3116
3117         * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
3118         (cse_insn): Likewise for the stack_pointer_rtx.
3119
3120 2006-06-08  Roger Sayle  <roger@eyesopen.com>
3121
3122         * tree-ssa-dom.c (record_conditions): Only record "unordered"
3123         conditions from floating point comparisons.
3124
3125 2006-06-08  Paolo Bonzini  <bonzini@gnu.org>
3126
3127         PR middle-end/27733
3128         * expmed.c (struct alg_hash_entry): Fix type of field T
3129         to match synth_mult argument.
3130         (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
3131
3132 2006-06-08  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3133
3134         PR target/27863
3135         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
3136         block boundaries.
3137
3138 2006-06-08  Richard Guenther  <rguenther@suse.de>
3139
3140         PR middle-end/27116
3141         * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
3142         only, if overflow is defined and not trapping.
3143         (negate_expr): Likewise.
3144
3145 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
3146
3147         PR tree-optimization/27872
3148         * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
3149         flag on the new exit edge of the unrolled loop.
3150
3151 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
3152
3153         PR rtl-optimization/26449
3154         * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
3155
3156 2006-06-07  Andrew MacLeod  <amacleod@redhat.com>
3157
3158         PR middle-end/27793
3159         * tree-dfa.c (referenced_vars_dup_list): New.  List of duplicate
3160         referenced_variables with matching DECL_UID's.
3161         (find_referenced_vars): Make sure duplicate list is empty to start.
3162         (referenced_var_p): Remove.
3163         (referenced_var_check_and_insert): Renamed from referenced_var_insert.
3164         Check if var is in the list, and add if needed.  Update the duplicate
3165         list if a different var is in the list with the same DECL_UID.
3166         (add_referenced_var): Call routine to check and insert.
3167         * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
3168         * tree-flow.h (referenced_vars_dup_list): External declaration.
3169
3170 2006-06-07  Fred Fish  <fnf@specifix.com>
3171
3172         * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
3173         into single entry.
3174
3175 2006-06-07  Paolo Bonzini  <bonzini@gnu.org>
3176
3177         PR target/27390
3178         * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
3179         the imaginary and real parts of a clobbered register.
3180         Emit insn to set the imaginary part.
3181
3182 2006-06-06  Peter Lemieszewski  <lemie@us.ibm.com>
3183
3184         * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
3185         in lieu of unwind-dw2-fde.c.
3186
3187 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3188
3189         * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
3190
3191 2006-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
3192
3193         PR target/27842
3194         * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
3195         ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
3196         ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
3197         V4SImode temporaries and operations instead.
3198
3199 2006-06-06  Joseph S. Myers  <joseph@codesourcery.com>
3200
3201         * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
3202         dp-bit.c.
3203
3204 2006-06-06  Mike Stump  <mrs@apple.com>
3205
3206         * Makefile.in: Rename to htmldir to build_htmldir to avoid
3207         installing during build.
3208
3209 2006-06-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3210
3211         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
3212         value to 0.
3213         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
3214         * config/ia64/ia64.c (params.h): New header.
3215         (ia64_optimization_options): New function to adjust parameters.
3216         * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
3217         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
3218         * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
3219
3220 2006-06-05  Kazu Hirata  <kazu@codesourcery.com>
3221
3222         * stor-layout.c (debug_rli): Fix a typo in a debug message.
3223
3224 2006-06-05  Steve Ellcey  <sje@cup.hp.com>
3225
3226         PR target/27051
3227         * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
3228
3229 2006-06-05  Dorit Nuzman  <dorit@il.ibm.com>
3230             Victor Kaplansky  <victork@il.ibm.com>
3231
3232         PR tree-optimization/26360
3233         * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
3234         stmts.
3235
3236 2006-06-04  Roger Sayle  <roger@eyesopen.com>
3237             Andrew Pinski  <pinskia@physics.uc.edu>
3238
3239         PR middle-end/27382
3240         * c-common.c (c_common_truthvalue_conversion): Explicitly check
3241         for LABEL_DECL before calling DECL_WEAK.
3242
3243         PR c/27150
3244         * c-typeck.c (build_binary_op): Likewise, explicitly check for
3245         LABEL_DECL and PARM_DECL.
3246
3247 2006-06-05  Joseph S. Myers  <joseph@codesourcery.com>
3248
3249         PR c/25161
3250         PR c/27020
3251         * c-decl.c (grokdeclarator): Disallow variably modified types at
3252         file scope.  Avoid marking shared array type of constant size as
3253         VLA.
3254
3255 2006-06-04  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3256
3257         PR c++/27601
3258         * c-common.c (fold_offsetof_1): Handle static members.
3259
3260 2006-06-04 Eric Christopher <echristo@apple.com>
3261
3262         * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
3263         (debug_rli): Output value for remaining_in_alignment.
3264         (update_alignment_for_field): Unconditionalize
3265         ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
3266         extra alignment code.
3267         (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
3268         ms_bitfield_layout_p code. Rewrite handling of structure fields.
3269         * tree.h (record_layout_info_s): Remove prev_packed.
3270         * doc/extend.texi (ms_struct): Add documentation of format.
3271
3272 2006-06-04  Mark Shinwell  <shinwell@codesourcery.com>
3273
3274         * tree.h: Declare folding_initializer.
3275         * builtins.c (fold_builtin_constant_p): Give definite answer
3276         if folding inside an initializer.
3277         * fold-const.c: Define folding_initializer.
3278         (START_FOLD_INIT): Save and then set folding_initializer.
3279         (END_FOLD_INIT): Restore folding_initializer.
3280
3281 2006-06-04  Richard Guenther  <rguenther@suse.de>
3282
3283         PR tree-optimization/27039
3284         * fold-const.c (fold_comparison): Handle pointer comparison
3285         again for all comparison codes.  Compare offsets in signed
3286         size type.
3287         (fold_binary): Move code from here.
3288
3289 2006-06-03  Roger Sayle  <roger@eyesopen.com>
3290
3291         PR target/26223
3292         * config/i386/i386.c (construct_container): Split static issued_error
3293         flag into issued_sse_arg_error, issued_sse_ret_error and
3294         issued_x87_ret_error.  Issue a daignostic if the x86-64 ABI
3295         requires the use of x87 registers and the user explicitly
3296         specified the -mno-80387 command line option.
3297
3298 2006-06-02  Geoffrey Keating  <geoffk@apple.com>
3299
3300         * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
3301         HAVE_DECL_SIGALTSTACK.
3302         (MC_FLD): New.
3303         (segv_handler): Use MC_FLD.
3304         * configure.ac: Check for a sigaltstack declaration.
3305         Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
3306         * configure: Regenerate.
3307         * config.in: Regenerate.
3308
3309 2006-06-03  J"orn Rennecke <joern.rennecke@st.com>
3310
3311         PR other/27850
3312         * Makefile.in (stmp-fixinc): Fix typo.
3313
3314 2006-06-02  Roger Sayle  <roger@eyesopen.com>
3315
3316         * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
3317         are type correct.  Clean-up.
3318         <REALPART_EXPR>: Likewise.  Optimize creal(~z) as creal(z).
3319         <IMAGPART_EXPR>: Likewise.  Optimize cimag(~z) as -cimag(z).
3320
3321 2006-06-01  DJ Delorie  <dj@redhat.com>
3322
3323         * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
3324         shift, as we've disabled the "switch" insn that needs it.
3325
3326 2006-06-01  Per Bothner  <bothner@bothner.com>
3327
3328         Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
3329         * c-opts.c (finish_options): Use internal line 0 for <command-line>.
3330         * c-ppoutput.c (cb_define): Don't increment line 0.
3331
3332 2006-06-01  Pete Steinmetz  <steinmtz@us.ibm.com>
3333
3334         * doc/invoke.texi: Add cpu_type power6.
3335         * config.gcc: Add cpu_type power6.
3336         * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
3337         to power5+ with Altivec.
3338         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
3339         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
3340
3341 2006-05-30  Anatoly Sokolov <aesok@post.ru>
3342
3343         * config/avr/avr.h (SET_ASM_OP): Define.
3344
3345 2006-06-01  Kazu Hirata  <kazu@codesourcery.com>
3346
3347         * config/bfin/bfin.c: Fix comment typos.
3348
3349 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
3350
3351         PR 25453
3352         * doc/install.texi: Document --enable-bootstrap and
3353         --disable-bootstrap.
3354
3355 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
3356
3357         * doc/install.texi: Document that InfoZIP can replace jar.
3358
3359 2006-05-31  Roger Sayle  <roger@eyesopen.com>
3360
3361         * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
3362         isn't available, directly generate the simpler x87 patterns without
3363         the (use (const_int 0)).
3364         * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
3365         implementation isn't available.
3366         (*negdf2_1): Likewise.
3367         (*negxf2_1): XF mode negation is always done using the x87.
3368         (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
3369
3370 2006-05-31  Roger Sayle  <roger@eyesopen.com>
3371
3372         * builtins.c (fold_builtin_cabs): Delete prototype.  Require an
3373         additional FNDECL argument.  Optimize cabs(-z) and cabs(~z) as
3374         cabs(z).
3375         (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
3376
3377 2006-05-31  Jie Zhang  <jie.zhang@analog.com>
3378
3379         * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
3380         * config/bfin/bfin.c (basic-block.h): Include.
3381         (struct machine_function): New.
3382         (bfin_init_machine_status): New.
3383         (override_options): Initialize init_machine_status.
3384         (bfin_hardware_loop): New.
3385         (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
3386         (DEF_VEC_P (loop_info)): New.
3387         (DEF_VEC_ALLOC_P (loop_info,heap)): New.
3388         (struct loop_info): New.
3389         (loop_info): New typedef.
3390         (struct loop_work): New.
3391         (loop_work): New typedef.
3392         (DEF_VEC_O (loop_work)): New.
3393         (DEF_VEC_ALLOC_O (loop_work,heap)): New.
3394         (bfin_dump_loops): New.
3395         (bfin_bb_in_loop): New.
3396         (bfin_scan_loop): New.
3397         (bfin_optimize_loop): New.
3398         (bfin_reorg_loops): New.
3399         (bfin_reorg): Use bfin_reorg_loops.
3400         * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
3401         loop registers.
3402         (I_REGNO_P): Simplify.
3403         (DP_REGNO_P, DPREG_P): New macros.
3404         (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
3405         REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
3406         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
3407         Add LT_REGS, LC_REGS, LB_REGS.
3408         (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
3409         'l' for LB_REGS.
3410         (REGNO_REG_CLASS): Deal with loop registers.
3411         * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
3412         letters.
3413         (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
3414         New constants for loop registers.
3415         (UNSPEC_LSETUP_END): New.
3416         (seq_insns): New define_attr. Set it for appropriate insns.
3417         (movsi_insn): Add alternatives for move from/to
3418         loop count registers.
3419         (doloop_end): New define_expand.
3420         (loop_end): New define_insn.
3421         (define_split for bad doloop_end): New.
3422         (lsetup_with_autoinit): New define_insn.
3423         (lsetup_without_autoinit): New define_insn.
3424         (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
3425         * config/bfin/predicates.md (lc_register_operand): New.
3426         (lt_register_operand): New.
3427         (lb_register_operand): New.
3428         (nondp_register_operand): New.
3429         (nondp_reg_or_memory_operand): New.
3430         * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
3431
3432 2006-05-31  Jie Zhang  <jie.zhang@analog.com>
3433
3434         * config/bfin/bfin.c (bfin_delegitimize_address): New.
3435         (TARGET_DELEGITIMIZE_ADDRESS): Define.
3436
3437 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
3438
3439         * Makefile.in (CATALOGS): Add po/ prefix.
3440         * configure: Regenerated.
3441
3442 2006-05-31  Richard Earnshaw  <richard.earnshaw@arm.com>
3443
3444         PR target/27829
3445         * arm.c (arm_print_operand case 'S'): Validate that the operand is
3446         a shift operand before calling shift_op.  Avoid redundant call of
3447         shift_op.
3448
3449 2006-05-30  Naveen.H.S  <naveenh@kpitcummins.com>
3450             DJ Delorie  <dj@redhat.com>
3451
3452         * config/m32c/m32c.c (m32c_expand_insv): Check that the value
3453         we're inserting is a singlt-bit constant.
3454
3455 2006-05-30  Roger Sayle  <roger@eyesopen.com>
3456
3457         * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
3458         width to HOST_WIDE_INT to avoid comparison warnings on some targets.
3459
3460 2006-05-30  Roger Sayle  <roger@eyesopen.com>
3461
3462         PR tree-optimization/23452
3463         * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
3464         to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
3465         (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
3466         complex values and with -ffast-math for FP complex values.
3467
3468 2006-05-30  Kazu Hirata  <kazu@codesourcery.com>
3469
3470         * c-common.h: Remove the prototype for yyparse.
3471         * rtl.h: Remove the prototype for init_loop.
3472
3473 2006-05-30  Andreas Krebbel  <krebbel1@de.ibm.com>
3474
3475         * cse.c (validate_canon_reg, cse_insn): Don't change insns without
3476         calling recog.
3477
3478 2006-05-30  Roger Sayle  <roger@eyesopen.com>
3479
3480         * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
3481         and rotate cases.
3482         <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
3483         log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
3484
3485 2006-05-30  Dirk Mueller  <dmueller@suse.de>
3486
3487         PR c/27273
3488         * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
3489         for CONSTANT_CLASS_P expresisons.
3490
3491 2006-05-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3492
3493         PR c/27718
3494         * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
3495
3496 2006-05-30  Zdenek Dvorak <dvorakz@suse.cz>
3497
3498         PR tree-optimization/27779
3499         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
3500         initial_condition instead of CHREC_LEFT.
3501
3502 2006-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
3503
3504         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
3505         * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
3506         Make prototypes ISO C90.
3507
3508 2006-05-30  Mircea Namolaru  <namolaru@il.ibm.com>
3509             Leehod Baruch    <leehod.baruch@weizmann.ac.il>
3510
3511         * see.c (see_analyze_one_def): Correct check.
3512         (see_get_extension_data): Check if extension is parallel.
3513         (see_get_extension_reg): Likewise.
3514
3515 2006-05-30  Uros Bizjak  <uros@kss-loka.si>
3516
3517         PR target/27790
3518         * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
3519         into register for (code == GTU).
3520
3521 2006-05-29  Roger Sayle  <roger@eyesopen.com>
3522
3523         PR tree-optimization/24964
3524         * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
3525         <MULT>: Minor clean-up.  Don't convert x*-1.0 into -x if we honor
3526         signaling NaNs.  Optimize -x*-x as x*x for all float modes, and
3527         abs(x)*abs(x) as x*x for scalar floating point modes.
3528
3529 2006-05-29  Sebastian Pop  <pop@cri.ensmp.fr>
3530
3531         PR middle-end/27745
3532         * lambda-code.c (perfect_nestify): Don't copy statements
3533         in the inner loop: move them to the inner loop header.
3534
3535 2006-05-29  Diego Novillo  <dnovillo@redhat.com>
3536
3537         PR 26237
3538         * c-tree.texi: Document OpenMP directives and clauses.
3539
3540 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
3541
3542         * varasm.c (globalize_decl): Fix indentation.
3543
3544 2006-05-29  Diego Novillo  <dnovillo@redhat.com>
3545
3546         PR 26242
3547         * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
3548         pass_fre, pass_store_ccp, pass_copy_prop,
3549         pass_store_copy_prop, pass_merge_phi, pass_nrv,
3550         pass_return_slot, pass_object_size, pass_lim,
3551         pass_linear_transform, pass_empty_loop, pass_complete_unroll,
3552         pass_loop_prefetch and pass_stdarg.
3553
3554 2005-05-29  Bernd Schmidt  <bernd.schmidt@analog.com>
3555
3556         * config/bfin/bfin.opt (mfdpic): New option.
3557         * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
3558         (EXTRA_MULTILIB_PARTS): Likewise.
3559         (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
3560         (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
3561         multilib.
3562         * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
3563         (CRT_CALL_STATIC_FUNCTION): New.
3564         * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
3565         -shared.
3566         (CRT_CALL_STATIC_FUNCTION): New.
3567         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Handle
3568         FD-PIC moves.
3569         (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
3570         (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
3571         (initialize_trampoline): Changed to handle FD-PIC code generation.
3572         (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
3573         (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
3574         (override_options): Disallow -mid-shared-library -mfdpic combination.
3575         Can't do unaligned ops if FD-PIC.
3576         Turn off flag_pic if trying to generate non-id-shared-library
3577         non-fdpic code, since it's not supported.
3578         (bfin_assemble_integer): New function.
3579         (TARGET_ASM_INTEGER): Define.
3580         * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
3581         __BFIN_FDPIC__.
3582         * config/bfin/crtn.s: Restore them.
3583         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
3584         if TARGET_FDPIC.
3585         (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3586         LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
3587         (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
3588         (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
3589         (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
3590         call-used.
3591         (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
3592         FDPIC_REGS and FDPIC_FPTR_REGS.
3593         (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
3594         * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
3595         UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
3596         (load_funcdescsi): New pattern.
3597         (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
3598         sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
3599         call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
3600
3601 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
3602
3603         * gcse.c, rtlanal.c: Remove obsolete comments associated with
3604         loop.c.
3605
3606         * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
3607
3608         * tree-flow.h: Remove the prototype for add_type_alias.
3609         * tree-ssa-alias.c (add_type_alias): Remove.
3610
3611 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
3612
3613         * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
3614         config/fr30/fr30.md, config/i386/i386-interix.h,
3615         config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
3616         config/sh/superh64.h, config/v850/v850.c, df-core.c,
3617         df-problems.c, df.h, except.c, final.c, haifa-sched.c,
3618         lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
3619         reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
3620         tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
3621         Follow spelling conventions.
3622         * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
3623         Follow spelling conventions.
3624
3625 2006-05-27  Richard Guenther  <rguenther@suse.de>
3626
3627         PR middle-end/27773
3628         * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
3629         to produce a constant of value 1 of generic type.
3630
3631 2006-05-27  Dirk Mueller  <dmueller@suse.de>
3632
3633         * cgraphunit.c (decide_is_function_needed): Fix wrong
3634         PR reference.
3635
3636 2006-05-26  Ulrich Weigand  <uweigand@de.ibm.com>
3637
3638         PR rtl-optimization/27661
3639         * reload.c (find_reloads): When reloading a VOIDmode constant
3640         as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
3641         use Pmode as mode of the reload register.
3642
3643 2006-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3644
3645         * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
3646         is enabled at -O and above.
3647
3648 2006-05-26  Steven Bosscher  <steven@gcc.gnu.org>
3649
3650         PR target/27571
3651         * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
3652         table data.
3653
3654 2006-05-25  Mark Mitchell  <mark@codesourcery.com>
3655
3656         PR c++/20103
3657         * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
3658         for anonymous variables explicitly declared by front ends.
3659
3660 2006-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3661
3662         * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
3663         (struct alias_info): Add new field ref_all_symbol_mem_tag.
3664         * tree-ssa-alias.c (compute_may_aliases): If the program contains
3665         ref-all pointers, run a finalization pass for them.
3666         (compute_flow_insensitive_aliasing): Skip ref-all pointers.
3667         (finalize_ref_all_pointers): New function.
3668         (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
3669         regular pointer type to a ref-all pointer type.
3670         (get_tmt_for): Return the special memory tag for ref-all pointers.
3671
3672 2006-05-25  Richard Guenther  <rguenther@suse.de>
3673
3674         PR middle-end/27743
3675         * fold-const.c (fold_binary): Do not look at the stripped
3676         op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
3677
3678 2006-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3679
3680         * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
3681         for LT and GT if the computed range is effectively empty.
3682
3683 2006-05-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3684
3685         PR target/27627
3686         * pa/pa-modes.def: Use mips_single_format, mips_double_format and
3687         mips_quad_format formats instead of ieee_single_format,
3688         ieee_double_format and ieee_quad_format formats, respectively.
3689
3690 2006-05-24  Zdenek Dvorak <dvorakz@suse.cz>
3691
3692         PR tree-optimization/27639
3693         PR tree-optimization/26719
3694         * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
3695         call to scev_probably_wraps_p.
3696         * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
3697         used_in_pointer_arithmetic_p, convert_step): Removed.
3698         (nowrap_type_p): New function.
3699         (scev_probably_wraps_p): Rewritten.
3700         * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
3701         chrec_convert if chrec_convert_aggressive might have been used.
3702         * tree-chrec.c (convert_affine_scev, chrec_convert_1,
3703         scev_direction): New functions.
3704         (chrec_convert): Changed to a wrapper over chrec_convert_1.
3705         * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
3706         instead of convert_step.
3707         * tree-flow.h (scev_probably_wraps_p): Declaration changed.
3708         (convert_step): Declaration removed.
3709         (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
3710
3711 2006-05-23  Kenneth Zadeck <zadeck@naturalbridge.com>
3712
3713         * df-core.c: Added to header comments.
3714         * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
3715         df_ur_bb_info, df_urec_bb_info): Added comments.
3716         * df-problems (df_ref_bitmap, ru, rd, lr, ur,
3717         urec, ri problems): Fixed header comments.
3718         (df_ru_transfer_function): Fixed in-out set dyslexia when copying
3719         code from df_rd_transfer_function.
3720
3721 2006-05-23  Richard Sandiford  <richard@codesourcery.com>
3722
3723         * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
3724         (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
3725         MIN_UNITS_PER_WORD to set the default.  Also use it in the guard.
3726
3727 2006-05-23  Joseph Myers  <joseph@codesourcery.com>
3728
3729         * expr.c (undefined_operand_subword_p): New.
3730         (emit_move_multi_word): Do not generate move from undefined bits
3731         of a paradoxical subreg.
3732
3733 2006-05-23  Richard Sandiford  <richard@codesourcery.com>
3734
3735         PR rtl-optimization/27736
3736         * combine.c (replaced_rhs_value): New variable.
3737         (combine_instructions): Set it.
3738         (distribute_notes): When distributing a note in replaced_rhs_insn,
3739         check whether the value was used in replaced_rhs_value.
3740
3741 2006-05-23  Andrew MacLeod  <amacleod@redhat.com>
3742
3743         PR c++/26757
3744         * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
3745         add_referenced_var instead of add_referenced_tmp_var.
3746         * tree-complex.c (create_one_component_var): Use add_referenced_var.
3747         * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
3748         add_referenced_var.
3749         * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
3750         tree_optimize_tail_calls_1): Use add_referenced_var.
3751         * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
3752         * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
3753         Use add_referenced_var.
3754         * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
3755         * gimplify.c (force_gimple_operand): Use add_referenced_var.
3756         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
3757         Use add_referenced_var.
3758         * tree-dfa.c (struct walk_state): Remove.
3759         (find_referenced_vars): Remove walk state and vars_found hash table.
3760         (make_rename_temp): Use add_referenced_var.
3761         (find_vars_r): Pass less parameters to add_referenced_var.
3762         (referenced_var_p): New.  Is var in referenced_var hash table.
3763         (referenced_var_insert): Assert var isn't already in hash table.
3764         (add_referenced_var): Don't need walk_state parameter.  Add var if it
3765         isn't already in the hash table.
3766         (add_referenced_tmp_var): Remove.
3767         (find_new_referenced_vars_1): Use add_referenced_var.
3768         * tree-ssa-pre.c (create_expression_by_pieces,
3769         insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
3770         Use add_referenced_var.
3771         * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
3772         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
3773         lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
3774         add_referenced_var.
3775         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
3776         vect_create_data_ref_ptr, vect_create_destination_var,
3777         vect_init_vector, vect_build_loop_niters,
3778         vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
3779         vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
3780         Use add_referenced_var.
3781         * tree-outof-ssa.c (create_temp): Use add_referenced_var.
3782         * tree-flow.h (add_referenced_tmp_var): Remove prototype
3783         (add_referenced_var): Add prototype.
3784         * tree-ssa-structalias.c (get_constraint_for,
3785         intra_create_variable_infos): Use add_referenced_var.
3786
3787 2006-05-23  Alexandre Oliva  <aoliva@redhat.com>
3788
3789         * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
3790         big-endian paradoxical subregs.
3791         * var-tracking.c (struct micro_operation_def): Document that,
3792         for modify micro operations, insn is the subsequent instruction.
3793         (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
3794         (var_reg_set, var_mem_set): ... new functions.
3795         (add_stores): Record subsequent insn.
3796         (compute_bb_dataflow): Use new functions for MO_USE.
3797         (emit_notes_in_bb): Use new functions for MO_USE.  Emit use
3798         notes after the insn, and modify notes before the insn known
3799         to be the subsequent one.
3800         (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
3801
3802 2006-05-23  Kazu Hirata  <kazu@codesourcery.com>
3803
3804         PR target/27696
3805         * config/i386/i386.c (ix86_expand_builtin): Use
3806         gen_sse3_monitor64 for TARGET_64BIT.
3807
3808 2006-05-22  Kenneth Zadeck <zadeck@naturalbridge.com>
3809
3810         PR rtl-optimization/26375
3811         PR rtl-optimization/26855
3812         * df-problems (df_ru_bb_local_compute_process_def): Removed update
3813         to gen set.
3814         (df_ru_bb_local_compute): Reversed statements and removed bogus
3815         comment explaining why they should be in wrong order.
3816         (df_ru_dump, df_rd_dump): Enhanced debug info.
3817         * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
3818         debug info.
3819         * ddg.c (add_deps_for_def): Converted use of reaching defs to
3820         reaching uses and fixed space problem.
3821
3822 2006-05-23  Jan Hubicka  <jh@suse.cz>
3823
3824         * cgraphunit.c (decide_is_function_needed): Also nested functions
3825         and functions declared inline can be optimized out at -O0.
3826
3827 2006-05-22  Gerald Pfeifer  <gerald@pfeifer.com>
3828
3829         * doc/install.texi (Configuration): Remove reference to CrossGCC
3830         FAQ which was gone.
3831         (Building): Ditto.
3832
3833 2006-05-22  Kazu Hirata  <kazu@codesourcery.com>
3834
3835         PR target/27266
3836         * config/i386/i386.c (ix86_expand_branch): Jump to simple if
3837         ix86_compare_emitted is non-NULL.
3838
3839 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3840
3841         PR c++/27451
3842         * stmt.c (expand_asm_operands): Skip asm statement with erroneous
3843         clobbers.
3844
3845 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
3846
3847         PR rtl-optimization/25514
3848         * combine.c (replaced_rhs_insn): New variable.
3849         (combine_instructions): Set replaced_rhs_insn when trying to replace
3850         a SET_SRC with a REG_EQUAL note.
3851         (distribute_notes): Use replaced_rhs_insn when determining the live
3852         range of a REG_DEAD register.
3853
3854 2006-18-05  Joerg Wunsch <j.gnu@uriah.heep.sax.de>
3855             Anatoly Sokolov <aesok@post.ru>
3856
3857         * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
3858         attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
3859         attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
3860         atmega164p, atmega324p, atmega644p, atmega644, atmega329,
3861         atmega3290, atmega649, atmega6490, atmega406, atmega640,
3862         atmega1280, atmega1281, at90can32, at90can64, at90usb646,
3863         at90usb647, at90usb1286 and at90usb1287 devices.
3864         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3865         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3866
3867 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
3868
3869         * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
3870
3871 2006-05-22  Richard Guenther  <rguenther@suse.de>
3872
3873         Revert
3874         2006-01-31  Richard Guenther  <rguenther@suse.de>
3875         Paolo Bonzini  <bonzini@gnu.org>
3876
3877         * doc/install.texi (--disable-libgcc-math): Document.
3878
3879 2006-05-22  Richard Guenther  <rguenther@suse.de>
3880
3881         Revert
3882         2006-01-31  Richard Guenther  <rguenther@suse.de>
3883
3884         * doc/invoke.texi (-msselibm): Document.
3885         * target.h (expand_library_builtin): New target hook.
3886         * builtins.c (expand_builtin): Use expand_library_builtin.
3887         (default_expand_library_builtin): New function.
3888         * gcc.c (LINK_GCC_MATH_SPEC): Define.
3889         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
3890         (link_gcc_math_spec): Declare.
3891         (static_specs): Add link_gcc_math_spec.
3892         * expr.h (default_expand_library_builtin): Declare.
3893         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
3894         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
3895         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
3896         * config/i386/i386.opt (msselibm): New target option.
3897         * config/i386/i386.c (ix86_builtin_function_variants): New array.
3898         (ix86_init_sse_abi_builtins): New function.
3899         (ix86_expand_library_builtin): Likewise.
3900         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
3901         (override_options): Handle error conditions wrt -msselibm.
3902         (ix86_builtins): Add function codes for SSE2 ABI builtins.
3903         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
3904         * doc/extend.texi (__builtin_sse2_*): Document new target specific
3905         builtins.
3906
3907 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3908
3909         PR c/27420
3910         * c-common.c (self_promoting_args_p): Skip erroneous args.
3911
3912         PR c/26818
3913         * c-decl.c (finish_struct): Skip erroneous fields.
3914
3915 2006-05-22  Nick Clifton  <nickc@redhat.com>
3916
3917         * config/cris/cris.opt (march): Remove VarExists attribute.
3918         (max-stackframe=): Likewise.
3919
3920 2006-05-22  Kazu Hirata  <kazu@codesourcery.com>
3921
3922         * doc/rtl.texi: Fix a typo.
3923         * see.c: Fix comment typos.
3924
3925         * tree-ssa-structalias.h (alias_info): Remove num_references.
3926
3927 2006-05-21  Mike Stump  <mrs@apple.com>
3928
3929         * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
3930         (BAD2): Add.
3931         (darwin_pragma_options): Use BAD instead.
3932         (darwin_pragma_unused): Likewise.
3933         (darwin_pragma_ms_struct): Likewise.
3934
3935 2006-05-21  David Edelsohn  <edelsohn@gnu.org>
3936
3937         * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
3938
3939 2006-05-21  Kazu Hirata  <kazu@codesourcery.com>
3940
3941         PR rtl-optimization/27671
3942         * simplify-rtx.c (simplify_relational_operation_1): Fix
3943         simplifications of (eq/ne (xor x y) y) and
3944         (eq/ne (xor x y) x).
3945
3946         PR tree-optimization/26622.
3947         * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
3948         on arg1.
3949
3950 2006-05-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3951
3952         * tree-cfg.c: Prune whitespace.
3953         (debug_tree_cfg): Point to correct header containing the
3954         TDF_* defines.
3955
3956 2006-05-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3957
3958         PR middle-end/25776
3959         * cgraphunit.c (verify_cgraph_node): Typo in error message.
3960
3961 2006-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
3962
3963         PR middle-end/25776
3964         * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
3965         or sorry count is non zero.
3966
3967 2006-05-20  Andreas Schwab  <schwab@suse.de>
3968
3969         * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
3970
3971 2006-05-19  Daniel Berlin  <dberlin@dberlin.org>
3972             Kenneth Zadeck <zadeck@naturalbridge.com>
3973
3974         PR rtl-optimization/26855
3975
3976         * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
3977         multiword refs.
3978         (df_scan_alloc): Added code to properly handle multiword hard
3979         registers and add all_blocks parameter.
3980         (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
3981         code to properly handle multiword hard registers.
3982         (df_rescan_blocks): Added code to remove deleted blocks from
3983         bitmap.
3984         (df_ref_create_structure, df_ref_record): Added code to properly
3985         handle subregs.
3986         (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
3987         and set DF_REF_PARTIAL.
3988         (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
3989         (df_uses_record): Added DF_REF_PARTIAL for subreg.
3990         (df_scan_add_problem): Added flags parameter.
3991         (df_ref_create_structure): Changed switching structure.
3992         (df_bb_refs_record): Fixed case where duplicate artificial refs
3993         were created.  Changed location of flags.
3994         (df_record_entry_block_defs): Added code to make stack pointer
3995         live in entry block.  Refined cases where frame pointer is needed.
3996         Changed location of flags.
3997         (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
3998         (df_set_state): Removed function.
3999         (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
4000         df_insn_create_insn_record, df_insn_refs_delete,
4001         df_ref_create_structure): Formatting changes.
4002         * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
4003         df_delete_basic_block): New function.
4004         (df_init): Changed location of flags.
4005         (df_add_problem): Added flags parameter and the way flags are
4006         processed.
4007         (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
4008         debug_df_chain): Improved debugging output.
4009         (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
4010         (df_refs_chain_dump): Removed df parameter.
4011         (df_iterative_dataflow): Added consistency check.
4012         (df_prune_to_subcfg): Made public.
4013         (df_analyze_problem): Added blocks_to_init parameter and made
4014         public.
4015         (df_ref_record, df_bb_refs_record, df_mark_reg,
4016          df_record_exit_block_uses): Whitespace changes.
4017         (df_dump): Whitespace changes.
4018         * df.h: Some reordering to remove forward references.
4019         (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
4020         DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
4021         (df_ref_flags.DF_REF_CLOBBER): Deleted field.
4022         (dataflow.flags): New field.
4023         (df.flag): Deleted field.
4024         (df_alloc_function): Added additional bitmap parameter.
4025         (df_dependent_problem_function): New type.
4026         (df_problem.changeable_flags): New field.
4027         (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
4028         DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
4029         (df_mw_hardreg): New struct.
4030         (DF_INSN_UID_MWS): New macro.
4031         (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
4032         parameter.
4033         (df_add_problem, df_ru_add_problem, df_rd_add_problem,
4034         df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
4035         df_ri_add_problem, df_scan_add_problem): Added flags parameter.
4036         (df_set_state): Removed function.
4037         (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
4038         * df-problems.c (df_chain_dump): Removed df parameter.
4039         (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
4040         df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
4041         parameter.
4042         (df_ru_alloc, df_rd_alloc): Now resets all blocks.
4043         (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
4044         df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
4045         Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
4046         DF_REF_MUST_CLOBBER cases.
4047         (df_ru_bb_local_compute_process_def,
4048         df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
4049         df_lr_bb_local_compute, df_ur_bb_local_compute,
4050         df_chain_create_bb): Made subreg aware.
4051         (df_ru_bb_local_compute, df_rd_bb_local_compute,
4052         df_lr_bb_local_compute, df_lr_bb_local_compute,
4053         df_chain_create_bb): Cleanup to use proper macros.
4054         (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
4055         code to fixup bitvectors.
4056         (df_ri_alloc): Cleared lifetime.
4057         (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
4058         df_create_unused_note): New function.
4059         (df_ri_bb_compute, df_ri_compute): Added code to create/update
4060         REG_DEAD and REG_UNUSED notes as well as register information.
4061         (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
4062         df_chains_dump): Fixed crash if problem was never run.
4063         (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
4064         df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
4065         df_ri_add_problem): Processes flags in uniform manner.
4066         (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
4067         df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
4068         df_rd_dump, df_urec_free_bb_info): Formatting changes.
4069         (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
4070         df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
4071         df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
4072         df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
4073         df_ur_dump, df_urec_free_bb_info, df_urec_dump,
4074         df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
4075         * modulo-sched.c (sms_schedule): Added flag parameter to calls.
4076         * see.c (see_initialize_data): Ditto.
4077         * final.c (rest_of_clean_state) Added regstack_completed.
4078         * rtl.h (regstack_completed): Ditto.
4079         * reg-stack.c (regstack_completed): Ditto.
4080
4081 2006-05-19  Mike Stump  <mrs@apple.com>
4082
4083         * c-tree.h (default_conversion): Remove.
4084         * c-common.h (default_conversion): Add.
4085
4086 2006-05-19  Zdenek Dvorak <dvorakz@suse.cz>
4087
4088         * tree-vrp.c (valid_value_p): New function.
4089         (adjust_range_with_scev): Fail if the value of bound is not
4090         simple.
4091
4092 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
4093
4094         * config/mips/linux-unwind.h: Include <asm/unistd.h>
4095         (mips_fallback_frame_state): Use syscall numbers to determine
4096         the appropriate li instruction for the current ABI.  Only use
4097         __NR_sigreturn for o32.
4098
4099 2006-05-19  Nicolas Setton  <setton@adacore.com>
4100
4101         * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
4102         * langhooks.c (lhd_dwarf_name): New function.
4103         * langhooks-def.h (lhd_dwarf_name): Declare.
4104         (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
4105         * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
4106         * ada/misc.c (gnat_dwarf_name): New function.
4107         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
4108
4109 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
4110
4111         * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
4112         libgcc2.h.
4113         (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
4114         MIN_UNITS_PER_WORD logic from libgcc2.h.  Do nothing if
4115         LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
4116         * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
4117         Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
4118         determine the size of Wtype, etc.
4119         * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
4120         (swfloatfuncs): New variable.
4121         (dwfloatfuncs): Likewise.
4122         (lib2funcs): Remove floating-point conversion functions from
4123         initial assignment.  Use LIB2_SIDITI_CONV_FUNCS to determine
4124         the set of conversion routines needed.  Allow entries to specify
4125         an object name, filename and word size.  Update users accordingly.
4126         * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
4127         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
4128
4129         Revert:
4130
4131         2006-02-08  Roger Sayle  <roger@eyesopen.com>
4132
4133         PR target/22209
4134         * config/fixtfdi.c: New libgcc source file.
4135         * config/fixunstfdi.c: New source file.
4136         * config/floatditf.c: New source file.
4137         * config/floatunditf.c: New souce file.
4138         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
4139         files above instead of config/mips/_tilib.c.
4140         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
4141
4142 2006-05-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4143
4144         * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
4145         * pa/pa-hpux11.h (LIB_SPEC): Update comment.
4146
4147 2006-05-18  Mike Stump  <mrs@apple.com>
4148
4149         Fix up vla, vm and [*] sematics.
4150
4151         PR c/18740
4152         PR c/7948
4153         PR c/25802
4154         PR c/27673
4155         * c-tree.h (struct c_arg_info): Add had_vla_unspec.
4156         (c_vla_unspec_p): Add.
4157         (c_vla_type_p): Add.
4158         * c-decl.c (struct c_scope): Add had_vla_unspec.
4159         (build_array_declarator): Add support for [*].
4160         (grokdeclarator): Likewise.
4161         (grokparms): Likewise.
4162         (get_parm_info): Likewise.
4163         * c-objc-common.c (c_vla_unspec_p): Likewise.
4164         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
4165         * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
4166         typeof when argument is a variably modified type not inside sizeof or alignof.
4167         (c_parser_direct_declarator_inner): Propagate errors.
4168         (c_parser_sizeof_expression): Add support for [*].
4169         (c_parser_parms_declarator): Initialize had_vla_unspec.
4170         (c_parser_parms_list_declarator): Likewise.
4171         * c-typeck.c (c_vla_type_p): Add.
4172         (composite_type): Add support for vla compositing.
4173         (comptypes_internal): Add support for vla compatibility.
4174         (c_expr_sizeof_expr): Evaluate vla arguments.
4175         * tree.c (variably_modified_type_p): Update comment for [*].
4176
4177 2006-05-18  Michael Matz  <matz@suse.de>
4178
4179         PR target/27599
4180         * config.host: Make assignments to host_xmake_file cumulative.
4181         * config.host (*-darwin*): Test $host, not $target.
4182
4183 2006-05-12  Stuart Hastings  <stuart@apple.com>
4184
4185         * config/i386/i386.opt (-mstackrealign): New flag.
4186         * config/i386/i386.c (force_align_arg_pointer): New attribute.
4187         (ix86_handle_cconv_attribute): Emit error when
4188         force_align_arg_pointer attribute collides with too many regparms.
4189         (ix86_function_regparm): Limit regparms when used with
4190         force_align_arg_pointer attribute.  (ix86_internal_arg_pointer):
4191         Support stack-realigning prologue in non-main functions.  Emit
4192         warning for nested functions under -mstackrealign, emit error for
4193         nested functions with force_align_arg_pointer attribute.
4194         * doc/extend.texi (force_align_arg_pointer): Document it.
4195         * doc/invoke.texi (-mstackrealign): Document it.
4196
4197 2006-05-17  Kazu Hirata  <kazu@codesourcery.com>
4198
4199         PR rtl-optimization/27477
4200         * combine.c (try_combine): Don't split a parallel consisting
4201         of two sets into two individual sets if both sets reference
4202         cc0.
4203
4204 2006-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4205
4206         * config/arm/arm.opt (target_fpe_name): Remove VarExists.
4207         * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
4208
4209         * doc/options.texi (VarExists): Updated.
4210
4211 2006-05-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4212
4213         * unwind-dw2.c: Add declarations for uw_update_context and
4214         uw_frame_state_for.
4215         * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
4216         detected, advance frame state and context once to skip over stub.
4217
4218 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
4219
4220         PR middle-end/20256
4221         PR middle-end/26435
4222         * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
4223         Call rewrite_into_loop_closed_ssa only when something changed.
4224         * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
4225         * lambda-code.c (can_convert_to_perfect_nest): Declared.
4226         (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
4227         Test for perfect_nest_p here.  Fix formating.
4228         (replace_uses_equiv_to_x_with_y): Fix formating.
4229         (stmt_uses_op): Removed.
4230         (can_convert_to_perfect_nest): Removed loopivs parameter.
4231         Complete the test by checking the scalar dependences.
4232         (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
4233         Fix formating.
4234
4235 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
4236
4237         PR bootstrap/22541
4238         From Dan Kegel <dank@kegel.com>:
4239         * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
4240
4241 2006-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4242
4243         * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
4244         if the element type is variably modified without recursing.
4245
4246 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
4247
4248         PR middle-end/27332
4249         * tree-loop-linear.c (try_interchange_loops): Test for
4250         no data dependences.
4251
4252 2006-05-17  Zdenek Dvorak <dvorakz@suse.cz>
4253
4254         PR tree-optimization/27548
4255         * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
4256         range of ssa names that appear on abnormal edges.
4257         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
4258         * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
4259
4260 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
4261
4262         PR middle-end/27620
4263         * expr.c (safe_from_p): Handle CONSTRUCTOR again.
4264
4265 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
4266
4267         PR middle-end/27415
4268         * tree.h (OMP_PARALLEL_COMBINED): Define.
4269         * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
4270         (new_omp_context): Add is_combined_parallel argument.
4271         (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
4272         new_omp_context caller.
4273         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
4274         Adjust gimplify_scan_omp_clauses callers.
4275         (omp_is_private): Issue errors if iteration variable is firstprivate
4276         or reduction in the current context.
4277         * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
4278         on combined parallel workshare constructs.
4279
4280 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4281
4282         * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
4283         (gcc-options.o): New rule.
4284
4285         * optc-gen.awk: Protect variables for gcc-options.o with
4286         #ifdef GCC_DRIVER/#endif.
4287
4288 2006-05-16  Daniel Berlin <dberlin@dberlin.org>
4289
4290         Fix PR tree-optimization/27373
4291         * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
4292          (forward_propagate_addr_expr): Update call.
4293
4294 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4295
4296         * doc/options.texi: Move the Negative option.
4297
4298 2006-05-16  Richard Guenther  <rguenther@suse.de>
4299
4300         PR tree-optimization/22303
4301         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
4302         from STRING_CSTs.
4303         (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
4304         ccp_fold did not simplify the statement.
4305
4306 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4307
4308         PR driver/26885
4309         * Makefile.in (GCC_OBJS): New.
4310         (OBJS-common): Add opts-common.o.
4311         (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
4312         (cpp$(exeext)): Likewise.
4313         (gcc.o): Also depend on opts.h.
4314         (opts-common.o): New.
4315
4316         * common.opt (gcoff): Add Negative(gdwarf-2).
4317         (gdwarf-2): Add Negative(gstabs).
4318         (gstabs): Add Negative(gstabs+).
4319         (gstabs+): Add Negative(gvms).
4320         (gvms): Add Negative(gxcoff).
4321         (gxcoff): Add Negative(gxcoff+).
4322         (gxcoff+): Add Negative(gcoff).
4323         * config/i386/i386.opt (m32): Add Negative(m64).
4324         (m64): Add Negative(m32).
4325
4326         * doc/options.texi: Document the Negative option.
4327
4328         * gcc.c: Include "opts.h".
4329         (main): Call prune_options after expandargv.
4330
4331         * optc-gen.awk: Generate common declarations for all flag
4332         variables in options.c. Output the neg_index field.
4333
4334         * opts.c (find_opt): Moved to ...
4335         * opts-common.c: Here. New file.
4336
4337         * opts.h (cl_option): Add a neg_index field.
4338         (find_opt): New.
4339         (prune_options): Likewise.
4340
4341 2006-05-16  Jakub Jelinek  <jakub@redhat.com>
4342
4343         PR middle-end/27573
4344         * omp-low.c (expand_omp_parallel): Don't assert
4345         .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
4346         instead search for it.
4347
4348         PR c/27499
4349         * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
4350         is signed.
4351
4352 2006-05-16  Andreas Schwab  <schwab@suse.de>
4353
4354         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
4355         defmac.
4356
4357 2006-05-15  Roger Sayle  <roger@eyesopen.com>
4358
4359         PR target/26600
4360         * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
4361         integer constants other than zero are only legitimate on TARGET_64BIT.
4362         <CONST_VECTOR> Only zero vectors are legitimate.
4363         (ix86_cannot_force_const_mem): Integral and vector constants can
4364         always be put in the constant pool.
4365
4366 2006-05-16  DJ Delorie  <dj@redhat.com>
4367
4368         * crtstuff.c (__dso_handle): Set section from
4369         TARGET_LBIGCC_SDATA_SECTION if defined.
4370         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
4371         * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
4372
4373 2006-05-16  Danny Smith  <dannysmith@users.sourceforge.net>
4374
4375         PR target/27599
4376         * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
4377         host_xmake_file.
4378
4379 2006-05-16  Ben Elliston  <bje@au.ibm.com>
4380
4381         * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
4382
4383 2006-05-15  Per Bothner  <per@bothner.com>
4384
4385         * tree.c: (last_annotated_node): Use source_locus typedef.
4386         This permits bootstrapping with --enable-mapped-location.
4387
4388 2006-05-15  Zdenek Dvorak <dvorakz@suse.cz>
4389
4390         PR tree-optimization/26830
4391         * tree-into-ssa.c (struct ssa_name_info): Add age field.
4392         (info_for_ssa_name, current_info_for_ssa_name_age,
4393         blocks_to_update): New variables.
4394         (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
4395         (clear_ssa_name_info, initialize_flags_in_bb,
4396         mark_block_for_update): New functions.
4397         (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
4398         (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
4399         prepare_def_site_for): Use mark_block_for_update.
4400         (mark_def_interesting): Assert that the processed block is marked in
4401         blocks_to_update.  Do not take blocks argument.
4402         (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
4403         argument.
4404         (rewrite_update_init_block, rewrite_update_stmt): Only process
4405         blocks with statements to rewrite.
4406         (delete_update_ssa): Do not clear SSA_NAME_AUX.
4407         (update_ssa): Initialize and free blocks_to_update.  Do not
4408         clear flags on statements.  Do not use blocks bitmap.
4409         * tree.h (SSA_NAME_AUX): Removed.
4410         (struct tree_ssa_name): Removed aux field.
4411         * print-tree.c (print_node): Do not print SSA_NAME_AUX.
4412
4413 2006-05-15  Richard Guenther  <rguenther@suse.de>
4414
4415         PR tree-optimization/27603
4416         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
4417         Do computations in original type.
4418
4419 2006-05-15  Mircea Namolaru  <namolaru@il.ibm.com>
4420
4421         * see.c: Code style changes such as redundant paranthesis,
4422         redundant intialization of local variables etc.
4423         (see_main): Declared now as static.
4424         * doc/invoke.texi: Update that -fsee is not enabled by
4425         default at -O3.
4426
4427 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
4428
4429         * omp-low.c (check_omp_nesting_restrictions): New function.
4430         (scan_omp_1): Call it.
4431
4432         PR middle-end/27416
4433         * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
4434         construct, return *VAR.
4435
4436 2006-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
4437
4438         PR rtl-optimization/27406
4439         * bt-load.c (migrate_btr_def): Skip the block having abnormal
4440         edges.
4441
4442 2006-05-14  Roger Sayle  <roger@eyesopen.com>
4443
4444         PR rtl-optimization/27538
4445         * combine.c (expand_compound_operation): Call gen_lowpart
4446         before calling simplify_shift_const.
4447
4448 2006-05-14  Roger Sayle  <roger@eyesopen.com>
4449
4450         PR rtl-optimization/22563
4451         * expmed.c (store_fixed_bit_field): When using AND and IOR to store
4452         a fixed width bitfield, always force the intermediates into psuedos.
4453
4454 2006-05-14  Bernhard Fischer  <aldot@gcc.gnu.org>
4455
4456         PR 27501
4457         * mkconfig.sh: Use operator = instead of == for test.
4458
4459 2006-05-13  Nick Clifton  <nickc@redhat.com>
4460
4461         * dwarf2out.c (dbx_reg_number): Check return value from
4462         LEAF_REG_REMAP and only use it if it is valid.
4463         (multiple_reg_loc_descriptor): Likewise.
4464
4465 2006-05-13  Richard Guenther  <rguenther@suse.de>
4466
4467         * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
4468         host_xmake_file.
4469
4470 2006-05-13  Steven Bosscher  <stevenb.gcc@gmail.com>
4471
4472         * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
4473         information attached to non-INSNs such as NOTEs.
4474         (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
4475
4476 2006-05-12  Andreas Krebbel  <krebbel1@de.ibm.com>
4477
4478         * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
4479         On contraint.
4480         * config/s390/s390.md: Adjust comment describing On constraint.
4481
4482 2006-05-11  Jan Hubicka  <jh@suse.cz>
4483
4484         * cgraphunit.c (decide_is_function_needed): Don't force always_inline
4485         to be output at -O0.
4486
4487 2006-05-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4488
4489         PR middle-end/27384
4490         * fold-const.c (size_binop): Move sanity check for arguments to
4491         the beginning of the function.
4492
4493         PR middle-end/27488
4494         * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
4495         expression.
4496
4497 2006-05-11  Richard Guenther  <rguenther@suse.de>
4498
4499         PR middle-end/27529
4500         * fold-const.c (fold_unary): Handle intermediate conversion
4501         to a pointer type like intermediate conversion to an integer
4502         type in folding of (T1)(T2)var to var.
4503         Match the code to the comment in the final conversion for
4504         (T1)(T2)var to (T1)var regarding to type precision.  Rather
4505         than disallow T1 being of pointer type, assert that both T1
4506         and var are of pointer type or not.  Make sure not to fall
4507         over the frontends lazyness wrt array to pointer decay though.
4508
4509 2006-05-10  Richard Earnshaw  <rearnsha@arm.com>
4510
4511         * arm.c (arm_struct_value_rtx): Delete.
4512         (TARGET_STRUCT_VALUE_RTX): Use the default definition.
4513         (arm_init_cumulative_args): Always initialize nregs to zero.
4514
4515 2006-05-10  Richard Guenther  <rguenther@suse.de>
4516
4517         PR tree-optimization/27532
4518         * tree-object-size.c (plus_expr_object_size): Fix typo.
4519
4520 2006-05-10  Kazu Hirata  <kazu@codesourcery.com>
4521
4522         PR target/24949
4523         * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
4524         ashrdi_const, ashrdi3): Use a scratch register.
4525
4526 2006-05-10  Richard Guenther  <rguenther@suse.de>
4527
4528         PR tree-optimization/27302
4529         * fold-const.c (operand_equal_p): For two comparisons,
4530         try comparison of one comparison code swapped if that yields
4531         the same code.
4532
4533 2006-05-10  Ben Elliston  <bje@au.ibm.com>
4534
4535         * tree-pretty-print.c (pretty_print_string): No need to handle
4536         '\0' as a special character.
4537
4538         * tree.h: Include "hashtab.h".
4539         (iterative_hash_expr): Use hashval_t in its prototype.
4540         * Makefile.in (TREE_H): Add $(HASHTAB_H).
4541
4542 2006-05-09  Steve Ellcey  <sje@cup.hp.com>
4543
4544         PR bootstrap/26872
4545         * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
4546         (hppa*64*-*-hpux11*): Ditto.
4547         (hppa[12]*-*-hpux11*): Ditto.
4548
4549 2006-05-09  David Edelsohn  <edelsohn@gnu.org>
4550
4551         PR target/26545
4552         * config/rs6000/aix41.h (TARGET_64BIT): Define.
4553
4554 2006-05-09  Michael Matz  <matz@suse.de>
4555
4556         * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
4557         host_extra_gcc_objs and host_xmake_file.
4558         (<*-*-linux*>): Don't overwrite host_xmake_file.
4559         * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
4560         * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
4561         (host_detect_local_cpu): Declare.
4562         (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
4563         * config/i386/i386.c (override_options): Handle -mtune=native
4564         as -mtune=generic.
4565         * config/i386/x-i386: New file.
4566         * config/i386/driver-i386.c: New file.
4567         * doc/invoke.texi (<i386 and x86-64 Options>): Describe
4568         cpu-type "native".
4569
4570 2006-05-09  Dirk Mueller  <dmueller@suse.de>
4571         Richard Guenther  <rguenther@suse.de>
4572
4573         PR middle-end/27498
4574         * fold-const.c (fold_read_from_constant_string): Relax check
4575         for matching types to matching modes.
4576
4577 2006-05-09  Zdenek Dvorak <dvorakz@suse.cz>
4578
4579         PR rtl-optimization/27335
4580         * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
4581         loops.
4582
4583 2006-05-08  Chao-ying Fu  <fu@mips.com>
4584             Richard Sandiford  <richard@codesourcery.com>
4585
4586         * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
4587         (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
4588         * config/mips/mips.md (UNSPEC_SCC): New constant.
4589         * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
4590         * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
4591         (mips_emit_compare): Use it.
4592         (mips_expand_vcondv2sf): New function.
4593
4594 2006-05-08  Daniel Berlin  <dberlin@dberlin.org>
4595
4596         Fix PR tree-optimization/27093
4597         * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
4598         renaming when they become not-used_alone.
4599
4600 2006-05-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4601
4602         * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
4603         relocation and relocation stubs.
4604
4605 2006-05-08  Eric Christopher  <echristo@apple.com>
4606
4607         * unwind-dw2-fde-darwin.c (examine_objects): Only check data
4608         section for ppc.
4609
4610 2006-05-08  Jan Hubicka  <jh@suse.cz>
4611
4612         PR middle-end/24561
4613         * cgraphunit.c (decide_is_function_needed): When not optimizing even
4614         unused static functions are needed.
4615
4616 2006-05-08  Roger Sayle  <roger@eyesopen.com>
4617
4618         PR target/27158
4619         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
4620         of a reg_equiv_constant if the result is a legitimate constant.
4621
4622 2006-05-08  Uros Bizjak  <uros@kss-loka.si>
4623
4624         PR target/27277
4625         * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
4626         standard 80387 constants, raise the cost to prevent
4627         compress_float_constant() to generate load from memory.
4628
4629 2006-05-08  Kazu Hirata  <kazu@codesourcery.com>
4630
4631         * config/arm/constraints.md (c): Fix a typo.
4632
4633         * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
4634         typos.
4635
4636 2006-05-07  H.J. Lu  <hongjiu.lu@intel.com>
4637
4638         PR target/24879
4639         * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
4640         inline function.
4641         (_mm_mwait): Likewise.
4642
4643         * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
4644         "mwait".
4645         (sse3_monitor): Make it 32bit only.
4646         (sse3_monitor64): New. 64bit monitor.
4647
4648 2006-05-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4649
4650         PR target/27421
4651         * config/i386/i386.c (classify_argument): Skip fields with invalid
4652         types.
4653
4654 2006-05-07  Richard Guenther  <rguenther@suse.de>
4655
4656         PR tree-optimization/27409
4657         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4658         Do not try to find zero-sized subvars.
4659
4660 2006-05-07  Richard Guenther  <rguenther@suse.de>
4661
4662         PR tree-optimization/27136
4663         * tree-ssa-loop-niter.c (get_val_for): Correct function
4664         comment, assert requirements.
4665         (loop_niter_by_eval): Stop processing if the iterated
4666         value did not simplify.
4667
4668 2006-05-07  Mircea Namolaru  <namolaru@il.ibm.com>
4669
4670         * opts.c (flag_see): remove its setting at -O3.
4671
4672 2006-05-07  Richard Earnshaw  <rearnsha@arm.com>
4673
4674         * genpeep.c (main): Make insn-peep.c depend on flags.h.
4675         * arm/constraints.md: New file.
4676         * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
4677         (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
4678         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
4679         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
4680         (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
4681         (EXTRA_MEMORY_CONSTRAINT): Likewise.
4682         * arm.md: Include constraints.md.
4683         (thumb_movsi_insn): Use satisfies_constraint_J.
4684         (movhi, movqi): Use satisfies_constraint_I.
4685
4686 2006-04-29 Anatoly Sokolov <aesok@post.ru>
4687
4688         * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
4689         for atmeg a645 device.
4690
4691 2006-05-06   Richard Guenther  <rguenther@suse.de>
4692
4693         PR tree-optimization/27151
4694         * tree-vect-transform.c (vectorizable_condition): Punt on
4695         values that have a different type than the condition.
4696
4697 2006-05-03  Aldy Hernandez  <aldyh@redhat.com>
4698
4699         PR/21391
4700         * c-parser.c (c_parser_cast_expression): Only insert casts into
4701         hash table if pointer.
4702         * function.c (used_types_insert_helper): Rename from
4703         used_types_insert.
4704         (used_types_insert): Call used_types_insert_helper.
4705         * function.h (used_types_insert): Accept only one argument.
4706
4707 2006-05-05  David Edelsohn  <edesohn@gnu.org>
4708
4709         * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
4710         scratch with output modifier.
4711
4712 2006-05-04  David Edelsohn  <edelsohn@gnu.org>
4713
4714         PR target/26481
4715         * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
4716         with output modifier.
4717
4718 2006-05-04  Richard Sandiford  <richard@codesourcery.com>
4719
4720         PR target/26765
4721         * config/mips/mips.c (mips_symbolic_address_p): Return true
4722         for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
4723         SYMBOL_GOTTPREL, and SYMBOL_TLS.
4724
4725 2006-05-04  Richard Guenther  <rguenther@suse.de>
4726
4727         PR tree-optimization/14287
4728         PR tree-optimization/14844
4729         PR tree-optimization/19792
4730         PR tree-optimization/21608
4731         PR tree-optimization/27090
4732         * tree-ssa-pre.c (try_combine_conversion): New function.
4733         (compute_avail): After constructing the value-handle
4734         expression, use try_combine_conversion to combine NOP_EXPRs
4735         with previous value-handle expressions and use the result if it
4736         is available.
4737
4738 2006-05-04  Joseph S. Myers  <joseph@codesourcery.com>
4739
4740         * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
4741
4742 2006-05-04  Jan Hubicka  <jh@suse.cz>
4743
4744         PR middle-end/25962
4745         * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
4746
4747 2006-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
4748
4749         * config/bfin/predicates.md (const01_rtx): Tell generator programs
4750         that this only matches CONST_INTs.  All users changed to VOIDmode
4751         operands.
4752
4753         * config/bfin/bfin.c: Include "optabs.h".
4754         (bfin_rtx_costs): Some costs for vector operations, to allow combine
4755         to do more work.
4756         (enum bfin_builtins): Add a number of fractional and vector builtins.
4757         (bfin_init_builtins): Likewise.
4758         (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
4759         (safe_vector_operand, bfin_expand_binop_builtin,
4760         bfin_expand_unop_builtin): New functions.
4761         (bfin_expand_builtin): Handle the new builtins.
4762         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4763         __ADSPBLACKFIN__.
4764
4765 2006-05-04  Leehod Baruch  <leehod@il.ibm.com>
4766
4767         * see.c: New file.
4768         * Makefile.in (OBJS-common): Add see.o.
4769         (see.o): Add dependencies.
4770         * common.opt (fsee): New flag for the see optimization was added.
4771         * opts.c (flag_see): Initialized.
4772         * passes.c (init_optimization_passes, pass_see): New pass.
4773         * rtl.h (see_main): Declaration as extern.
4774         * timevar.def (TV_SEE): New.
4775         * tree-pass.h (pass_see): Declaration as extern.
4776         * invoke.texi (-fsee): Document.
4777         * recog.c (validate_simplify_insn): New function.
4778         * recog.h (validate_simplify_insn): Declaration as extern.
4779         * df-problems.c (df_chain_dump): Check for NULL.
4780
4781 2006-05-04  Kenneth Zadeck <zadeck@naturalbridge.com>
4782             Daniel Berlin  <dberlin@dberlin.org>
4783
4784         * cfgrtl.c (insert_insn_bb_end_new): New function.
4785         * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
4786
4787 2006-05-04  Leehod Baruch  <leehod.baruch@weizmann.ac.il>
4788
4789         * df.h (struct web_entry): Moved from web.c.
4790         (union_defs): Declaration as extern.
4791         (unionfind_root): Likewise.
4792         (unionfind_union): Likewise.
4793         * web.c (struct web_entry): Moved to df.h.
4794         (unionfind_root): Remove static declaration.
4795         (unionfind_union): Likewise.
4796         (union_defs): Likewise and generalize to use callback function.
4797         (web_main): Update arguments for union_defs function call.
4798
4799 2006-05-04  Richard Guenther  <rguenther@suse.de>
4800
4801         PR tree-optimization/26447
4802         * tree-ssa-pre.c (realify_fake_stores): For necessary loads
4803         produce SSA_NAME copies before the store stmt to avoid
4804         breaking exception handling.
4805
4806 2006-05-04  Jakub Jelinek  <jakub@redhat.com>
4807
4808         PR middle-end/27388
4809         * gimplify.c (omp_is_private): If var is shared in some outer context,
4810         return false instead of true.  Stop searching on parallel context
4811         boundary.
4812
4813 2006-05-03  Alexandre Oliva  <aoliva@redhat.com>
4814
4815         PR java/8260
4816         * coverage.c: Use get_gcov_unsigned_t() instead of
4817         unsigned_type_node all over.
4818
4819 2006-05-02  Andrew MacLeod  <amacleod@redhat.com>
4820
4821         PR tree-optimization/27381
4822         * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
4823         maintain the same immediate_use links.
4824         * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
4825         node rather than segfaulting.
4826
4827 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
4828
4829         PR fortran/27395
4830         * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
4831         rather than TREE_CODE to OMP_CLAUSE_REDUCTION.  Set also GOVD_SEEN
4832         bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
4833
4834 2006-05-02  Daniel Berlin  <dberlin@dberlin.org>
4835
4836         Fix PR tree-optimization/26626
4837         * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
4838         always.
4839         * tree-ssa-operands.c (access_can_touch_variable): Allow
4840         typecasting through union pointers.
4841
4842 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
4843
4844         PR c++/26943
4845         * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
4846         (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
4847         to find if var will be a global variable even in the nested context.
4848         (omp_copy_decl): Only check for global variable at the end, it might
4849         be overridden in outer contexts.
4850         (scan_sharing_clauses): For global variables don't create a field.
4851         (lower_rec_input_clauses): Do nothing for global shared variables.
4852         Emit a barrier at the end of ILIST if there were any decls in both
4853         firstprivate and lastprivate clauses.
4854         (lower_send_clauses): Do nothing for global variables except for
4855         COPYIN.
4856
4857 2006-05-02  Zdenek Dvorak <dvorakz@suse.cz>
4858
4859         * tree.c (unsigned_type_for, signed_type_for): Make sure a type
4860         of the correct signedness is returned.
4861
4862 2006-05-02  Jeff Law  <law@redhat.com>
4863
4864         PR tree-optimization/27364
4865         * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
4866         multiply expressions.
4867
4868 2006-05-02  Tom Tromey  <tromey@redhat.com>
4869
4870         * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
4871
4872 2006-05-02  Kazu Hirata  <kazu@codesourcery.com>
4873
4874         PR target/27387
4875         * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
4876         -mthumb -fPIC are used.
4877
4878 2006-05-02  Stanislaw Skowronek  <skylark@linux-mips.org>
4879             Joshua Kinard  <kumba@gentoo.org>
4880
4881         PR target/25871
4882         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
4883         with 64-bit pointers.
4884
4885 2006-05-02  Paul Brook  <paul@codesourcery.com>
4886
4887         * config/arm/arm.c (add_minipool_forward_ref): Check if insn
4888         and pool overlap.
4889         (create_fix_barrier): Check that a suitable barrier location is
4890         found.
4891         (arm_reorg): Include ftmp->address in allowable range of addresses.
4892
4893 2006-05-02  David Billinghurst <David.Billinghurst@riotinto.com>
4894
4895         PR ada/27366
4896         * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
4897         on Cygwin.
4898
4899 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
4900
4901         PR middle-end/27337
4902         * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
4903         around RESULT_DECL for result passed by reference.
4904         (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
4905         * omp-low.c (use_pointer_for_field): Don't look at
4906         DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
4907         (scan_omp_1): Call remap_decl on RESULT_DECLs.
4908         (lower_rec_input_clauses): Don't allocate VLA memory for the second
4909         time or var for passing by reference for
4910         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses.  Allow creation of
4911         TREE_ADDRESSABLE variables when passing by reference.
4912
4913         * omp-low.c (dump_omp_region): Fix output formatting.
4914
4915         PR middle-end/27328
4916         * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
4917         (expand_omp_parallel): Likewise.
4918         * tree-cfg.c (move_sese_region_to_fn): Likewise.
4919
4920         PR middle-end/27325
4921         * omp-low.c (lower_omp_sections): Call maybe_catch_exception
4922         on statement list containing also constructors and destructors.
4923         (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
4924
4925         PR middle-end/27310
4926         * except.c (duplicate_eh_regions): Fix clearing of
4927         cfun->eh->region_array entries.
4928
4929 2006-05-01  DJ Delorie  <dj@redhat.com>
4930
4931         * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
4932         build!=host.
4933         (gcc_cv_objdump): Likewise.
4934         * configure: Regenerated.
4935
4936 2006-05-01  Kazu Hirata  <kazu@codesourcery.com>
4937
4938         PR target/27374
4939         * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
4940         templates for case 3 and 4.
4941
4942 2006-05-01  DJ Delorie  <dj@redhat.com>
4943
4944         * vec.c: Include bconfig.h when appropriate.
4945         * Makefile.in (build/vec.o): Adjust dependencies.
4946         * mkconfig.sh: Make sure config.h isn't used for build machine
4947         compiles.
4948
4949 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
4950
4951         * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
4952         variables.
4953         (mark_phi_for_rewrite): New function.
4954         (insert_phi_nodes_for, mark_use_interesting): Call
4955         mark_phi_for_rewrite.
4956         (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
4957         (update_ssa): Initialize and free phis_to_rewrite.
4958
4959 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
4960
4961         PR rtl-optimization/27291
4962         * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
4963         folded to a constant.
4964
4965 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
4966
4967         PR tree-optimization/27283
4968         * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
4969         not whole # of iteration descriptions.
4970         (niter_for_exit): Return just # of iterations.  Fail if # of iterations
4971         uses abnormal ssa name.
4972         (niter_for_single_dom_exit): Ditto.
4973         (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
4974         return just the number of iterations.
4975
4976 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
4977
4978         PR tree-optimization/27144
4979         * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
4980         (record_estimate): Only record constant upper bound.
4981         (infer_loop_bounds_from_undefined): Call
4982         compute_estimated_nb_iterations just once.
4983         (proved_non_wrapping_p): Renamed to ...
4984         (n_of_executions_at_most): ... this.  Expect bound to be a constant.
4985         (convert_step_widening, scev_probably_wraps_p): Call
4986         n_of_executions_at_most instead of proved_non_wrapping_p.
4987         (substitute_in_loop_info): Do not replace values in bounds.
4988         * cfgloop.h (struct nb_iter_bound): Remove "additional" field.  Update
4989         comments.
4990
4991 2006-05-01  Richard Henderson  <rth@redhat.com>
4992
4993         PR c/27358
4994         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
4995         c_parser_skip_to_pragma_eol.  Convert to switch statement.  Handle
4996         CPP_PRAGMA.
4997
4998 2006-05-01  Roger Sayle  <roger@eyesopen.com>
4999
5000         * c-typeck.c (parser_build_binary_op): Don't call the function
5001         unsigned_conversion_warning to spot operand/result type overflow.
5002         (build_binary_op): Instead, call convert_and_check instead of
5003         convert to report the problem when the operands are promoted.
5004         * c-common.c (unsigned_conversion_warning): Make static.
5005         * c-common.h (unsigned_conversion_warning): Delete prototype.
5006
5007 2006-05-01  Richard Guenther  <rguenther@suse.de>
5008
5009         PR tree-optimization/26726
5010         * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
5011         problem ...
5012         (find_interesting_uses_address): ... we work around here
5013         by folding INDIRECT_REFs in the substituted base.
5014
5015 2006-05-01  Diego Novillo  <dnovillo@redhat.com>
5016
5017         * omp-low.c (dump_omp_region): Add newlines.
5018
5019 2006-04-30  Roger Sayle  <roger@eyesopen.com>
5020
5021         * common.opt (Woverflow): New command line option.
5022         * c-common.c (constant_expression_warning): Check warn_overflow.
5023         (overflow_waring): Pass OPT_Woverflow to warning.
5024         (unsigned_conversion_warning): Likewise.
5025         (convert_and_check): Likewise.
5026         * doc/invoke.texi: Document new command line option.
5027
5028 2006-04-30  David Edelsohn  <edelsohn@gnu.org>
5029
5030         * config/rs6000/rs6000.c (rs6000_override_options): Enable
5031         TARGET_NO_FP_IN_TOC for section anchors.
5032         (optimization_options): Enable section anchors for all
5033         non-"Objective" languages.
5034
5035 2006-04-28  Eric Christopher  <echristo@apple.com>
5036
5037         * config/darwin-c.c (darwin_ms_struct): Move this
5038         (darwin_set_default_type_attributes): and this...
5039         * config/darwin.c: ... here.
5040         * config/darwin.h (darwin_ms_struct): Declare.
5041
5042 2006-04-28  Andrew MacLeod  <amacleod@redhat.com>
5043
5044         * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
5045
5046 2006-04-28  Roger Sayle  <roger@eyesopen.com>
5047
5048         PR c/25309
5049         * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
5050         (push_array_bounds): Delete prototype.  Change BOUNDS argument to
5051         an unsigned HOST_WIDE_INT.
5052         (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
5053         array index.
5054         (really_start_incremental_init): No need to call convert because
5055         bitsize_zero_node is already of type bitsizetype.
5056         (push_init_level): Extract the value of constructor_index as an
5057         unsigned HOST_WIDE_INT quantity, using tree_low_cst.
5058         (process_init_element): Likewise.
5059
5060 2006-04-28  Joseph S. Myers  <joseph@codesourcery.com>
5061
5062         * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
5063         value before passing to make_relative_prefix.
5064
5065 2006-04-28  Alan Modra  <amodra@bigpond.net.au>
5066
5067         PR middle-end/27260
5068         * builtins.c (expand_builtin_memset): Expand val in original mode.
5069
5070 2006-04-27  Eric Christopher  <echristo@apple.com>
5071
5072         * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
5073         with #ifndef/#endif.
5074         * config/darwin-c.c (darwin_ms_struct): New.
5075         (darwin_pragma_ms_struct): Ditto.
5076         (darwin_set_default_type_attributes): Ditto.
5077         * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
5078         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
5079         Register ms_struct pragma.
5080         * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
5081         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
5082         * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
5083         darwin_set_default_type_attributes if TARGET_MACHO.
5084
5085 2006-04-27  Andrew MacLeod  <amacleod@redhat.com>
5086
5087         PR tree-optimization/26854
5088         * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
5089         * doc/tree-ssa.texi: Update immuse iterator documentation.
5090         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
5091         * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
5092         * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
5093         first_safe_imm_use, next_safe_imm_use): Remove.
5094         (end_imm_use_stmt_p): New.  Check for end of immuse stmt traversal.
5095         (end_imm_use_stmt_traverse): New.  Terminate immuse stmt traversal.
5096         (move_use_after_head): New.  Helper function to sort immuses in a stmt.
5097         (link_use_stmts_after): New.  Link all immuses in a stmt consescutively.
5098         (first_imm_use_stmt): New.  Get first stmt in an immuse list.
5099         (next_imm_use_stmt): New.  Get next stmt in an immuse list.
5100         (first_imm_use_on_stmt): New.  Get first immuse on a stmt.
5101         (end_imm_use_on_stmt_p): New.  Check for end of immuses on a stmt.
5102         (next_imm_use_on_stmt): New.  Move to next immuse on a stmt.
5103         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
5104         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
5105         (perfect_nestify): Use new iterator.
5106         * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
5107         iterator.
5108         * tree-flow.h (struct immediate_use_iterator_d): Add comments.
5109         (next_imm_name): New field in struct immediate_use_iterator_d.
5110         (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
5111         (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
5112         FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
5113         * tree-cfg.c (replace_uses_by): Use new iterator.
5114         * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
5115         * tree-ssa-operands.c (correct_use_link): Remove.
5116         (finalize_ssa_use_ops): No longer call correct_use_link.
5117
5118 2006-04-27  Stuart Hastings  <stuart@apple.com>
5119
5120         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
5121         * config/t-darwin (crt3.o): Use it.
5122         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
5123         'pmode', use Pmode instead of SImode for SYMBOL_REF.
5124         * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
5125         call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
5126         call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
5127         support.
5128
5129 2006-04-27  Roger Sayle  <roger@eyesopen.com>
5130
5131         * expmed.c (store_fixed_bit_field): If we're not optimizing for
5132         size, force the intermediate into a new pseudo rather instead of
5133         performing both a bitwise AND and a bitwise IOR in memory.
5134
5135 2006-04-27  Richard Guenther  <rguenther@suse.de>
5136
5137         PR rtl-optimization/26685
5138         * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
5139         this one "max-flow-memory-locations".
5140
5141 2006-04-27  Richard Guenther  <rguenther@suse.de>
5142
5143         PR tree-optimization/25148
5144         * tree-vrp.c (compare_values): Remove code dealing with
5145         comparisons against type min/max value.  Honour overflow
5146         and negative constants in code dealing with comparisons
5147         of plus and minus expressions.
5148         (value_inside_range): Use fold_binary with LE_EXPR and
5149         GE_EXPR rather than compare_values.
5150
5151 2006-04-27  Dirk Mueller  <dmueller@suse.de>
5152
5153         * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
5154         prototype for SSE.
5155
5156 2006-04-26  Kenneth Zadeck <zadeck@naturalbridge.com>
5157
5158         * basic-block.h (safe_insert_insn_on_edge): Removed.
5159         * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
5160
5161 2006-04-26  David Edelsohn  <edelsohn@gnu.org>
5162             Paolo Bonzini  <bonzini@gnu.org>
5163
5164         PR middle-end/27282
5165         * combine.c (simplify_and_const_int_1): Use gen_int_mode.
5166         (simplify_and_const_int): Same.
5167
5168 2006-04-26  Aldy Hernandez  <aldyh@redhat.com>
5169
5170         * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
5171
5172 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
5173
5174         PR c/26171
5175         * cgraph.c (cgraph_varpool_finalize_decl): Don't call
5176         cgraph_varpool_assemble_pending_decls if -fopenmp, unless
5177         cgraph_global_info_ready.
5178
5179         PR middle-end/26913
5180         * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
5181
5182         PR c/25996
5183         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
5184         either decl or init is error_mark_node.
5185
5186         PR middle-end/25989
5187         * tree-flow.h (struct omp_region): Add sched_kind.
5188         * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
5189         instead of extracting omp for data.
5190         (expand_omp_for): Save extracted sched_kind.
5191
5192 2006-04-25  Roger Sayle  <roger@eyesopen.com>
5193
5194         * expmed.c (store_bit_field): Also check whether the bitsize is
5195         valid for the machine's "insv" instruction before moving the
5196         target into a pseudo for use with the insv.
5197         * config/i386/predicates.md (const8_operand): New predicate.
5198         * config/i386/i386.md (extv, extzv, insv): Use the new
5199         const8_operand predicate where appropriate.
5200
5201 2006-04-25  DJ Delorie  <dj@redhat.com>
5202
5203         * doc/install.texi (Specific): Clarify that this is not a list of
5204         supported hosts or targets.
5205
5206 2006-04-25  Richard Sandiford  <richard@codesourcery.com>
5207
5208         PR rtl-optimization/26725
5209         * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
5210         block's BB_DIRTY flag.
5211
5212 2006-04-25  Geoffrey Keating  <geoffk@apple.com>
5213
5214         * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
5215         are no branches.
5216
5217         * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
5218         to print an integer.
5219
5220 2006-04-25  David Edelsohn  <edelsohn@gnu.org>
5221
5222         * varasm.c (align_variable): New function.
5223         (get_block_for_decl): Apply align_variable to DECL before
5224         calculating section information.
5225         (assemble_variable): Split out alignment computation.
5226
5227 2006-04-25  Andreas Krebbel  <krebbel1@de.ibm.com>
5228
5229         * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
5230         machines.
5231
5232 2006-04-25  Bernd Schmidt  <bernd.schmidt@analog.com>
5233
5234         * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
5235         MODE_PARTIAL_INT mode.
5236         * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
5237         * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
5238         for CONST_INTs.
5239         (hard_regno_mode_ok): V2PDImode is ok for accumulators.
5240         * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
5241         V2PDImode.
5242         * config/bfin/predicates.md (const01_operand, vec_shift_operand):
5243         New predicates.
5244         * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
5245         New constants.
5246         (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
5247         MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
5248         MACFLAG_IH): Likewise.
5249         (movstricthi_1): Renamed from "*movstricthi".
5250         (load_accumulator, load_accumulator_pair, movsi_insv, insv,
5251         ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
5252         abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
5253         movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
5254         movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
5255         movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
5256         addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
5257         sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
5258         addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
5259         mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
5260         ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
5261         flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
5262         flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
5263         flag_macv2hi_parts, flag_macv2hi_parts_acconly,
5264         flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
5265
5266         * doc/rtl.texi (ss_ashift): Improve wording.
5267
5268 2006-04-24  Geoffrey Keating  <geoffk@apple.com>
5269
5270         * dwarf2out.c (verify_marks_clear): New.
5271         (prune_unused_types): Call verify_marks_clear initially, not
5272         prune_unmark_dies.
5273
5274 2006-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
5275
5276         * rtl.def (SS_ASHIFT, SS_NEG): New codes.
5277         * doc/rtl.texi: Document them.
5278         * simplify-rtx.c (simplify_unary_operation,
5279         simplify_binary_operation_1): Don't abort when we see them.
5280
5281 2006-04-24  Mark Mitchell  <mark@codesourcery.com>
5282
5283         Revert:
5284         2006-04-23  Mark Mitchell  <mark@codesourcery.com>
5285         * configure.ac: Completely disregard languages that are not
5286         enabled.
5287         * configure: Regenerated.
5288
5289 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
5290         Richard Guenther  <rguenther@suse.de>
5291
5292         PR tree-optimization/27236
5293         * tree-inline.c (copy_body_r): Make sure to copy
5294         TREE_THIS_VOLATILE flag.
5295
5296 2006-04-24  Richard Guenther  <rguenther@suse.de>
5297
5298         PR middle-end/26869
5299         * tree-complex.c (update_parameter_components): Don't handle
5300         unused parameters which have no default def.
5301
5302 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
5303         Richard Guenther  <rguenther@suse.de>
5304
5305         PR tree-optimization/27218
5306         * tree-inline.c (expand_call_inline): Strip useless type
5307         conversions for the return slot address.
5308
5309 2006-04-24  Richard Guenther  <rguenther@suse.de>
5310
5311         * cfgloop.h (struct loops): Remove unused field array.  Reorder
5312         state after num.
5313         (LOOP_PREFETCH): Remove.
5314
5315 2006-04-24  Richard Guenther  <rguenther@suse.de>
5316
5317         PR tree-optimization/22525
5318         * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
5319         variable, adjust types of generated expressions.
5320
5321 2006-04-23  H.J. Lu  <hongjiu.lu@intel.com>
5322
5323         * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
5324         (tree-vect-patterns.o): Likewise.
5325         (jump.o): Likewise.
5326         (cselib.o): Likewise.
5327         (loop-doloop.o): Likewise.
5328         (regclass.o): Likewise.
5329         (reload1.o): Likewise.
5330         (explow.o): Replace target.h with $(TARGET_H).
5331         (ipa-prop.o): Likewise.
5332         (ipa-cp.o): Likewise.
5333         (ipa-inline.o): Likewise.
5334         (reorg.o): Likewise.
5335         (reg-stack.o): Likewise.
5336
5337 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5338
5339         * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
5340
5341 2006-04-23  Mark Mitchell  <mark@codesourcery.com>
5342
5343         * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
5344
5345         * configure.ac: Completely disregard languages that are not
5346         enabled.
5347         * configure: Regenerated.
5348
5349         PR c++/26534
5350         * c-common.h (c_build_bitfield_integer_type): Declare.
5351         * c-decl.c (c_build_bitfield_integer_type): Move to ...
5352         * c-common.c (c_build_bitfield_integer_type): ... here.
5353
5354 2006-04-23  Roger Sayle  <roger@eyesopen.com>
5355
5356         PR target/21283
5357         * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
5358         a SImode SUBREG of a floating point register after no_new_pseudos.
5359
5360 2006-04-23  Roger Sayle  <roger@eyesopen.com>
5361
5362         * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
5363         identify potentially eliminable registers to additionally catch
5364         VIRTUAL_INCOMING_ARGS_REGNUM.
5365         (addsi3): Update the conditions on when to use addsi_small_int.
5366
5367 2006-04-23  Roger Sayle  <roger@eyesopen.com>
5368
5369         PR target/16641
5370         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
5371         STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
5372         rtx to stack_pointer_rtx or frame_pointer_rtx directly.
5373
5374 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5375
5376         * fold-const.c (range_predecessor): Use operand_equal_p
5377         as the predicate for equality.
5378         (range_successor): Likewise.
5379
5380 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
5381
5382         Revert:
5383         * config/soft-fp/op-common.h: Fix a typo.
5384
5385 2006-04-22  Frank Ch. Eigler  <fche@redhat.com>
5386
5387         PR libmudflap/26864
5388         * common.opt (flag_mudflap_threads): Overload flag_mudflap.
5389         * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
5390
5391 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
5392
5393         * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
5394         Fix comment typos.
5395         * doc/tm.texi: Fix a typo.
5396
5397 2006-04-21  Geoffrey Keating  <geoffk@apple.com>
5398
5399         * dwarf2out.c (struct die_struct): Document that die_sib makes
5400         a circular linked list.
5401         (FOR_EACH_CHILD): New.
5402         (reverse_die_lists): Delete.
5403         (reverse_all_dies): Delete.
5404         (add_dwarf_attr): Correct documentation.
5405         (remove_child_with_prev): New.
5406         (remove_child_TAG): Update for change to die_struct, use
5407         remove_child_with_prev.
5408         (add_child_die): Update for change to die_struct.
5409         (splice_child_die): Use remove_child_with_prev and add_child_die.
5410         (print_die): Use FOR_EACH_CHILD.
5411         (die_checksum): Likewise.
5412         (assign_symbol_names): Likewise.
5413         (output_location_lists): Likewise.
5414         (build_abbrev_table): Likewise.
5415         (calc_die_sizes): Likewise.
5416         (mark_dies): Likewise.
5417         (unmark_dies): Likewise.
5418         (unmark_all_dies): Likewise.
5419         (output_die): Likewise.
5420         (prune_unused_types_mark): Likewise.
5421         (prune_unused_types_walk): Likewise.
5422         (same_die_p): Update for change to die_struct.
5423         (break_out_includes): Likewise.
5424         (prune_unused_types_prune): Likewise.
5425         (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
5426         (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
5427         it's already clear.
5428         (dwarf2out_finish): Don't call reverse_all_dies.
5429
5430 2006-04-21  Eric Christopher  <echristo@apple.com>
5431
5432         * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
5433         in comments and function names.
5434
5435 2006-04-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5436
5437         PR c/25875
5438         * c-typeck.c (digest_init): Robustify.
5439
5440         * c-typeck.c (pop_init_level): Simplify.
5441
5442 2006-04-21  Steve Ellcey  <sje@cup.hp.com>
5443
5444         * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
5445
5446 2006-04-21  Paul Brook  <paul@codesourcery.com>
5447
5448         * config/arm/arm.c (arm_override_options): Error on iWMMXt and
5449         hardware floating point.
5450
5451 2006-04-21  David Edelsohn  <edelsohn@gnu.org>
5452
5453         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
5454         NON_FLOAT_REGS.
5455
5456 2006-04-21  Nick Clifton  <nickc@redhat.com>
5457
5458         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
5459         OPT_EXTRA_PARTS.
5460
5461 2006-04-21  Alan Modra  <amodra@bigpond.net.au>
5462
5463         PR target/27230
5464         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
5465         C++ lang type in traceback table for Objective-C++.
5466
5467         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
5468
5469 2006-04-20  H.J. Lu  <hongjiu.lu@intel.com>
5470
5471         * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
5472
5473 2006-04-20  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5474
5475         PR mudflap/26789
5476         * tree-mudflap.c (mudflap_finish_file): Skip function when there
5477         were errors.  Remove check for erroneous objects.
5478
5479 2006-04-20  Jeff Law  <law@redhat.com>
5480
5481         PR tree-optimization/26854
5482         * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
5483         checking for zero or one use.
5484         * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
5485         * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
5486         * tree-ssa-reassoc.c (negate_value): Similarly.
5487         (reassociate_bb): Similarly.
5488
5489 2006-04-20  Jakub Jelinek  <jakub@redhat.com>
5490
5491         * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
5492         TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
5493         than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
5494
5495 2006-04-20  Alan Modra  <amodra@bigpond.net.au>
5496
5497         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
5498         fp regs if the last fp arg doesn't fit in regs.
5499
5500 2006-04-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5501
5502         PR target/27182
5503         * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
5504         that the last insn has the REG_INC note.
5505
5506 2006-04-19  Carlos O'Donell  <carlos@codesourcery.com>
5507             Nathan Sidwell  <nathan@codesourcery.com>
5508
5509         PR c/26774
5510         * stor-layout.c (update_alignment_for_field): Do not align
5511         ERROR_MARK nodes.
5512         (place_union_field): Place union field at the start of the union.
5513         (place_field): Move ERROR_MARK check later, and use the current
5514         allocation position to maintain monotonicity.
5515
5516 2006-04-19  Zdenek Dvorak <dvorakz@suse.cz>
5517
5518         * dominance.c: Include timevar.h.
5519         (calculate_dominance_info): Use TV_DOMINANCE.
5520         * timevar.def (TV_DOMINANCE): New timevar.
5521         * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
5522
5523 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5524
5525         PR rtl-optimization/14261
5526         * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
5527         move would be an INSV insn.
5528         (noce_process_if_block): Don't optimize if the destination is a
5529         ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
5530
5531 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5532
5533         * config/s390/s390.md: Add comments with the instructions emitted
5534         by an insn pattern if macros are used.
5535
5536 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
5537
5538         PR rtl-optimization/26026
5539         * fold-const.c (fold_binary): Optimize div and mod where the divisor
5540         is a known power of two shifted left a variable amount.
5541
5542 2006-04-18  Geoffrey Keating  <geoffk@apple.com>
5543
5544         * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
5545         to hash table twice when the debug_str section has SECTION_MERGE.
5546
5547 2006-04-18  Joseph S. Myers  <joseph@codesourcery.com>
5548
5549         * config/soft-fp: New directory.  From glibc.
5550         * config/soft-fp/t-softfp: New.
5551         * config/soft-fp/README: New.
5552         * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
5553         * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
5554         (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
5555         (LIBGCC_DEPS): Add $(SFP_MACHINE).
5556         * config.gcc: Use rs6000/t-fprules-fpbit or
5557         rs6000/t-fprules-softfp and soft-fp/t-softfp together with
5558         rs6000/t-fprules.
5559         * config/rs6000/sfp-machine.h: New.  Based on glibc.
5560         * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
5561         New.
5562         * config/rs6000/t-fprules: Remove fp-bit rules.
5563         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
5564         * config/rs6000/t-linux64: Likewise.  Remove duplicates from
5565         LIB2FUNCS_EXTRA.  Remove fp-bit rules.
5566         (softfp_wrap_start, softfp_wrap_end): New.
5567
5568 2006-04-18  DJ Delorie  <dj@redhat.com>
5569
5570         * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
5571
5572 2006-04-18  Devang Patel  <dpatel@apple.com>
5573
5574         * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
5575
5576 2006-04-18  Nick Clifton  <nickc@redhat.com>
5577
5578         * config/sh/t-symbian: Add rule to build sh-c.o
5579         * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
5580         of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
5581         (sh_symbian_encode_section_info): Likewise.
5582
5583 2006-04-18  Andreas Krebbel  <krebbel1@de.ibm.com>
5584
5585         * builtins.c (expand_builtin_strcmp): Cover label definition of
5586         do_libcall with HAVE_cmpstrnsi.
5587
5588 2006-04-18  Kazu Hirata  <kazu@codesourcery.com>
5589
5590         * function.c (temp_slots_at_level, max_slot_level): Use VEC
5591         instead of VARRAY.
5592         * function.h (temp_slot_p): New.
5593         (function): Change the type of x_used_temp_slots to
5594         VEC(temp_slot_p,gc) *.
5595
5596 2006-04-18  Nick Clifton  <nickc@redhat.com>
5597
5598         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
5599         flag_strength_reduce.
5600
5601         * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
5602
5603 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
5604
5605         PR target/27117
5606
5607         Partial revert of revision 112637
5608         2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
5609                     Dale Johannesen  <dalej@apple.com>
5610
5611         PR target/19653
5612         * regclass.c (struct reg_pref): Update documentation.
5613         (regclass): Set prefclass to NO_REGS if memory is the best option.
5614         (record_reg_classes): Cope with a prefclass set to NO_REGS.
5615
5616 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
5617
5618         PR tree-optimization/26821
5619         * tree-ssa-math-opts.c (get_constant_one): New.
5620         (insert_reciprocals): Use it.
5621
5622 2006-04-17  Geoffrey Keating  <geoffk@apple.com>
5623
5624         * dwarf2out.c (free_AT): Delete.
5625         (remove_AT): Update string ref counts.
5626         (remove_child_TAG): Don't call free_die.
5627         (free_die): Delete.
5628         (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
5629         or DW_TAG_GNU_EINCL.
5630         (prune_unused_types_walk_attribs): Reset string refcounts.
5631         (prune_unused_types_update_strings): New.
5632         (prune_unused_types_prune): Don't make unnecessary stores.  Don't
5633         call free_die.  Do call prune_unused_types_update_strings.
5634         (prune_unused_types): Empty debug_str_hash.
5635
5636 2006-04-17  Roger Sayle  <roger@eyesopen.com>
5637
5638         * expr.c (expand_assignment): Optimize away no-op moves where the
5639         source and destination are equal and have no side-effects.
5640
5641 2006-04-17  Richard Guenther  <rguenther@suse.de>
5642
5643         PR target/26826
5644         * reload.c (push_reload): Guard calls to get_secondary_mem
5645         for memory subregs.
5646
5647 2006-04-16  Kazu Hirata  <kazu@codesourcery.com>
5648
5649         * alias.c (reg_base_value, old_reg_base_value): Change the
5650         type to VEC(rtx,gc) *.
5651         (REG_BASE_VALUE, find_base_value, record_set,
5652         init_alias_analysis): Use VEC instead of VARRAY.
5653
5654         * alias.c (alias_sets): Change the type to
5655         VEC(alias_set_entry,gc) *.
5656         (get_alias_set_entry, new_alias_set, record_alias_subset): Use
5657         VEC instead of VARRAY.
5658         (last_alias_set): Remove.
5659
5660         * cgraph.h (cgraph_edge_p): New.
5661         Update the prototype of cgraph_function_versioning.
5662         * cgraphunit.c (cgraph_copy_node_for_versioning,
5663         cgraph_function_versioning): Use VEC instead of VARRAY.
5664         * ipa-cp.c (ipcp_insert_stage): Likewise.
5665
5666 2006-04-16  Roger Sayle  <roger@eyesopen.com>
5667
5668         PR target/26961
5669         * fold-const.c (fold_ternary): When converting "A ? B : C" into either
5670         "A op B" or "A op C", we may need to convert A to the type of B and C.
5671
5672 2006-04-16  Adam Nemet  <anemet@caviumnetworks.com>
5673
5674         * target.h (struct gcc_target): Add mode_rep_extended.
5675         * rtlanal.c (num_sign_bit_copies_in_rep): New global.
5676         (init_num_sign_bit_copies_in_rep): Initialize it using
5677         mode_rep_extended.
5678         (truncate_to_mode): Use it.
5679         (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
5680         * targhooks.h (default_mode_rep_extended): Declare it.
5681         * targhooks.c (default_mode_rep_extended): Define it.
5682         * target-def.h (TARGET_MODE_REP_EXTENDED): New macro.  Default to
5683         default_mode_rep_extended.
5684         (TARGET_INITIALIZER): Include it.
5685         * doc/tm.texi (Misc): Document it.
5686         * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
5687         (mips_truncated_to_mode): New function.
5688
5689 2006-04-16  Roger Sayle  <roger@eyesopen.com>
5690
5691         PR middle-end/25474
5692         * expr.c (compress_float_constant): Copy the narrow constant into
5693         a new pseudo before extending it to its final width.
5694
5695 2006-04-16  Roger Sayle  <roger@eyesopen.com>
5696             Andrew Pinski  <pinskia@gcc.gnu.org>
5697             Dale Johannesen  <dalej@apple.com>
5698
5699         PR target/24076
5700         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
5701         special case code to implement V8HImode and V16QImode with SSE2.
5702
5703 2006-04-15  Roger Sayle  <roger@eyesopen.com>
5704
5705         * config/i386/i386.c (ix86_va_start): Ensure all integer constant
5706         trees are constructed with a suitable tree type.
5707
5708 2006-04-15  Roger Sayle  <roger@eyesopen.com>
5709
5710         * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
5711         (integer_onep): Likewise.
5712         (integer_all_onesp): Likewise.
5713         (integer_pow2p): Likewise.
5714         (integer_nonzerop): Likewise.
5715         (real_zerop): Likewise.
5716         (real_onep): Likewise.
5717         (real_twop): Likewise.
5718         (real_minus_onep): Likewise.
5719         (int_size_in_bytes): Likewise.
5720         (host_integerp): Likewise.
5721
5722 2006-04-15  Kazu Hirata  <kazu@codesourcery.com>
5723
5724         * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
5725         jump.c, mips-tfile.c, omp-low.c, sched-int.h,
5726         tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
5727
5728         * tree-ssa-structalias.h (alias_info): Remove num_references.
5729
5730 2006-04-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5731
5732         * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
5733         (output_bvb patterns): Likewise.
5734         * pa.c (output_bb): Use 'bb' insn for long branch case.
5735         (output_bvb): Likewise use '{bvb|bb}' for long branch case.
5736         (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
5737         1.  Correct length operand for alternatives 1 and 2.
5738         (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
5739         1, 2 and 3.  Correct length operand for alternatives 1, 2 and 3.
5740
5741 2006-04-14  Roger Sayle  <roger@eyesopen.com>
5742
5743         * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
5744         is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
5745         were accidentally reverted by r112959.
5746
5747 2006-04-15  Jakub Jelinek  <jakub@redhat.com>
5748
5749         PR middle-end/26823
5750         * except.h (eh_region_outermost): New prototype.
5751         * except.c (eh_region_outermost): New function.
5752         * tree-cfg.c (find_outermost_region_in_block): Use it.
5753
5754 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
5755
5756         * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
5757         of VARRAY.
5758         * reload1.c (reg_equiv_memory_loc_varray): Rename to
5759         reg_equiv_memory_loc_vec.  Change the type to VEC(rtx,gc) *.
5760         (init_reload, reload): Use VEC instead of VARRAY.
5761         * reload.h: Update the prototype for
5762         reg_equiv_memory_loc_varray.
5763
5764 2006-04-14  Alexey Starovoytov  <alexey.starovoytov@sun.com>
5765             Eric Botcazou  <ebotcazou@libertysurf.fr>
5766
5767         * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
5768         register save area.
5769
5770 2005-04-13  Uros Bizjak  <uros@kss-loka.si>
5771
5772         PR middle-end/27134
5773         * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
5774         to expand fallback builtin function call.
5775
5776 2006-04-14  Alan Modra  <amodra@bigpond.net.au>
5777
5778         PR middle-end/27095
5779         * builtins.c: (expand_builtin_memset): Stabilize args before expansion
5780         and emit libcall here in case the builtin fails.
5781         (expand_builtin_strcmp): Always emit the libcall here on failure.
5782
5783 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
5784
5785         * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
5786         * flow.c (reg_n_info): Change the type to
5787         VEC(reg_info_p,heap) *.
5788         * regclass.c (allocate_reg_info, free_reg_info): Use VEC
5789         instead of VARRAY.
5790         * regs.h (reg_info_p): New.
5791         (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
5792         REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
5793         REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
5794         instead of VARRAY.
5795
5796 2006-04-13  Eric Botcazou  <ebotcazou@adacore.com>
5797
5798         * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
5799         defaulting to 100.
5800         * params.h (MAX_SCHED_READY_INSNS): New macro.
5801         * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
5802         past MAX_SCHED_READY_INSNS during the first scheduling pass.
5803         (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
5804         the ready list for 1 cycle during the first scheduling pass.
5805         * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
5806
5807 2006-04-13  Richard Henderson  <rth@redhat.com>
5808
5809         PR libgomp/26651
5810         * gimple-low.c (lower_omp_directive): Remove dead code.
5811         (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
5812         * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
5813         * omp-low.c (struct omp_region): Move to tree-flow.h.
5814         (root_omp_region): Export.
5815         (omp_regions, lookup_omp_region): Remove.
5816         (determine_parallel_type): Update for struct omp_region changes.
5817         (dump_omp_region): Dump regions with block numbers.
5818         (new_omp_region): Take type and block instead of stmt; malloc
5819         instead of ggc.
5820         (free_omp_region_1, free_omp_regions): New.
5821         (expand_parallel_call): Take entry_stmt as argument; update for
5822         changes to omp_region.
5823         (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
5824         (remove_exit_barriers): New.
5825         (expand_omp_parallel): Update for struct omp_region changes.
5826         (expand_omp_synch): Likewise.
5827         (expand_omp): Likewise.
5828         (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
5829         (expand_omp_for_static_chunk): Likewise.
5830         (expand_omp_for): Likewise.
5831         (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
5832         (expand_omp_sections): Similarly, with GOMP_sections_end.
5833         (expand_omp_single): New.
5834         (build_omp_regions_1): Update for OMP_CONTINUE.
5835         (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
5836         (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
5837         OMP_SECTIONS_SECTIONS.
5838         (lower_omp_single_simple): Don't emit barrier here.
5839         (lower_omp_single_copy): Likewise.
5840         (lower_omp_single): Fix bindings, and lower to straightline now.
5841         (lower_omp_master, lower_omp_ordered): Likewise.
5842         (lower_omp_critical): Likewise.
5843         (lower_omp_for): Likewise.  Emit OMP_CONTINUE.
5844         * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
5845         omp edges, free it afterward.
5846         (make_omp_sections_edges): Remove.
5847         (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
5848         (move_stmt_r): Handle OMP_CONTINUE.
5849         * tree-flow.h (struct omp_region): Move from omp-low.c.  Switch
5850         statement pointers to basic blocks.  Add type member.
5851         (root_omp_region, new_omp_region, free_omp_regions): Declare.
5852         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
5853         * tree-inline.c (estimate_num_insns_1): Likewise.
5854         * tree-pretty-print.c (dump_generic_node): Likewise.
5855         * tree-ssa-operands.c (get_expr_operands): Likewise.
5856         * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
5857         (OMP_RETURN): Rename from OMP_RETURN_EXPR.
5858         (OMP_CONTINUE): New.
5859         * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
5860         (OMP_SECTIONS_SECTIONS): Remove.
5861         (OMP_SECTION_LAST): New.
5862         (OMP_RETURN_NOWAIT): New.
5863
5864 2006-04-13  Roger Sayle  <roger@eyesopen.com>
5865
5866         * fold-const.c (native_encode_vector, native_interpret_real):
5867         Correct obvious mistakes in the previous check-in.
5868
5869 2006-04-13  Roger Sayle  <roger@eyesopen.com>
5870
5871         * fold-const.c (native_encode_expr): New function to encode
5872         the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
5873         or VECTOR_CST into a specified buffer.
5874         (native_encode_int): New function.
5875         (native_encode_real): New function.
5876         (native_encode_complex): New function.
5877         (native_encode_vector): New function.
5878         (native_interpret_expr): Inverse of native_encode_expr to convert
5879         a target representation into an INTEGER_CST, REAL_CST etc...
5880         (native_interpret_int): New function.
5881         (native_interpret_real): New function.
5882         (native_interpret_complex): New function.
5883         (native_interpret_vector): New function.
5884         (fold_view_convert_expr): New function to constant fold/evaluate
5885         a VIEW_CONVERT_EXPR of a suitable constant expression.
5886         (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
5887         Change call of build1 to fold_build1 when constructing a
5888         VIEW_CONVERT_EXPR.
5889
5890 2006-04-13  Paolo Bonzini  <bonzini@gnu.org>
5891             Ulrich Weigand  <uweigand@de.ibm.com>
5892
5893         PR target/27006
5894         * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
5895         to be even.
5896
5897 2006-04-13  Alan Modra  <amodra@bigpond.net.au>
5898
5899         PR target/26459
5900         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5901         optimize to lo_sum for DFmode if !TARGET_FPRS.
5902
5903 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
5904
5905         * tree-ssa-alias.c (set_initial_properties, init_alias_info,
5906         delete_alias_info, compute_flow_sensitive_aliasing,
5907         group_aliases): Use VEC instead of VARRAY.
5908         * tree-ssa-structalias.c (update_alias_info): Likewise.
5909         * tree-ssa-structalias.h (alias_info): Change the type of
5910         processed_ptrs to VEC(tree,heap) *.
5911
5912 2006-04-12  J"orn Rennecke <joern.rennecke@st.com>
5913
5914         PR target/27060
5915         * config/sh/lib1funcs.h: New file, broken out of:
5916         * config/sh/lib1funcs.asm.
5917         * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
5918         New macros.
5919         * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
5920         * config/sh/lib1funcs-Os-4-200.asm: New file.
5921         * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
5922         * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
5923         (EXTRA_MULTILIB_PARTS): Include it.
5924         ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
5925         ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
5926         * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
5927         * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
5928         TARGET_SH2.
5929
5930 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
5931
5932         * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
5933         * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
5934         tpa_compact, root_var_init, type_var_init): Use VEC instead of
5935         VARRAY.
5936         * tree-ssa-live.h: Include vecprim.h.
5937         (tree_partition_associator_d): Change the type of
5938         first_partition to VEC(int,heap) *.
5939         (tpa_first_partition): Use VEC instead of VARRAY.
5940
5941         * Makefile.in (GTFILES): Move functions.h after tree.h.
5942         * function.c (reset_block_changes, record_block_change,
5943         check_block_change, free_block_changes): Use VEC instead of
5944         VARRAY.
5945         * function.h (function): Change the type of
5946         ib_boundaries_block to VEC(tree,gc) *.
5947         * tree-inline.c (copy_cfg_body): Initialize
5948         ib_boundaries_block to NULL instead of (varray_type) 0.
5949
5950 2006-04-12  Roger Sayle  <roger@eyesopen.com>
5951
5952         * expr.c (emit_group_store): Correct operand order in call to
5953         subreg_lowpart_offset.  Always create paradoxical SUBREGs with
5954         a SUBREG_BYTE of zero.
5955
5956 2006-04-12  Richard Guenther  <rguenther@suse.de>
5957
5958         * profile.c (compute_branch_probabilities): Remove code
5959         encapsulated in !ir_type (), which are remanents of the
5960         removed RTL profiling code.
5961         * rtl-profile.c: Remove.
5962
5963 2006-04-12  Alan Modra  <amodra@bigpond.net.au>
5964
5965         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
5966         magic NULL_RTX comment.
5967         (function_arg): Store entire fp arg to mem if any part should go
5968         on stack.
5969         (rs6000_arg_partial_bytes): Adjust for above change.
5970
5971 2006-04-11  Roger Sayle  <roger@eyesopen.com>
5972
5973         * dwarf2out.c (output_call_frame_info): Create debug_frame_section
5974         if it hasn't been initialized by dwarf2out_init.
5975
5976 2006-04-11  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
5977
5978         * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
5979         symbolic constants in branch patterns.
5980
5981 2006-04-11  Roger Sayle  <roger@eyesopen.com>
5982
5983         * caller-save.c: #include "addresses.h" after #include "tm_p.h".
5984
5985 2006-04-11  Richard Sandiford  <richard@codesourcery.com>
5986
5987         PR rtl-optimization/27073
5988         * gcse.c (try_replace_reg): Revert last change.  Continue to search
5989         for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
5990         on the former.
5991
5992 2006-04-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
5993
5994         * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
5995         aggregate types other than record and union types.
5996         (function_arg): Likewise.
5997         (function_arg_pass_by_reference): In 64-bit mode, return 0 for
5998         small arrays.
5999         (function_value): In 64-bit mode, return objects that require it
6000         in FP registers.
6001
6002 2006-04-11  Roger Sayle  <roger@eyesopen.com>
6003
6004         * dwarf2out.c (premark_used_types): Remove problematic prototype.
6005
6006 2006-04-11  Jakub Jelinek  <jakub@redhat.com>
6007
6008         * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
6009
6010 2006-04-03  Jeff Law  <law@redhat.com>
6011
6012         PR/27087
6013         * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
6014         alias information too.
6015
6016 2006-04-10  Mike Frysinger  <vapier@gentoo.org>
6017
6018         * Makefile.in (gcc-cross): Add $(exeext) to target name.
6019
6020 2006-04-10  Aldy Hernandez  <aldyh@redhat.com>
6021
6022         PR/21391
6023         * dwarf2out.c (struct die_struct): Add die_perennial_p field.
6024         (premark_used_types_helper): New.
6025         (premark_used_types): New.
6026         (gen_subprogram_die): Call premark_used_types.
6027         (prune_unused_types_walk): Do not prune perennial dies.
6028         * function.c (used_types_insert): New.
6029         * function.h (struct function): Add used_types_hash field.
6030         (used_types_insert): Add prototype.
6031         * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
6032         * c-parser.c (c_parser_cast_expression): Save casted types in used
6033         types hash table.
6034
6035 2006-04-11  Mark Mitchell  <mark@codesourcery.com>
6036
6037         PR target/26459
6038         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
6039         rs6000_explicit_options.float_gprs.
6040
6041 2006-04-10  Roger Sayle  <roger@eyesopen.com>
6042
6043         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
6044         from ix86_expand_vector_init_low_nonzero.  Take an additional
6045         one_var argument indicating which element is non-zero.  Support
6046         one_var != 0 for V4SFmode and V4SImode by permuting the result.
6047         (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
6048         with one_var instead of ix86_expand_vector_init_low_nonzero.
6049
6050 2006-04-10  Kazu Hirata  <kazu@codesourcery.com>
6051
6052         * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
6053         tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
6054         global.o, cfglayout.o, lambda-code.o, reg-stack.o,
6055         build/genextract.o): Depend on vecprim.h.
6056         * cfglayout.c, df-problems.c, function.c, genextract.c,
6057         global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
6058         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
6059         vecprim.h.
6060         * vecprim.h: New.
6061
6062 2006-04-10  Geoffrey Keating  <geoffk@apple.com>
6063
6064         * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
6065         Declare VECs of this type.
6066         (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
6067         (remove_children): Delete.
6068         (add_dwarf_attr): Use VEC routines.
6069         (add_AT_flag): Update for changes to add_dwarf_attr.
6070         (add_AT_int): Likewise.
6071         (add_AT_unsigned): Likewise.
6072         (add_AT_long_long): Likewise.
6073         (add_AT_vec): Likewise.
6074         (add_AT_string): Likewise.
6075         (add_AT_die_ref): Likewise.
6076         (add_AT_fde_ref): Likewise.
6077         (add_AT_loc): Likewise.
6078         (add_AT_loc_list): Likewise.
6079         (add_AT_addr): Likewise.
6080         (add_AT_lbl_id): Likewise.
6081         (add_AT_lineptr): Likewise.
6082         (add_AT_macptr): Likewise.
6083         (add_AT_offset): Likewise.
6084         (add_AT_range_list): Likewise.
6085         (get_AT): Use VEC_iterate.
6086         (remove_AT): Use VEC_ordered_remove.
6087         (free_die): Fold remove_children into here; have it use VEC_iterate.
6088         (print_die): Use VEC_iterate on attrs.
6089         (reverse_die_lists): Don't reverse attr lists.
6090         (die_checksum): Use VEC_iterate on attrs.
6091         (same_die_p): Likewise.
6092         (output_location_lists): Likewise.
6093         (build_abbrev_table): Likewise.
6094         (size_of_die): Likewise.
6095         (unmark_all_dies): Likewise.
6096         (output_abbrev_section): Likewise.
6097         (output_die): Likewise.
6098         (prune_unused_types_walk_attribs): Likewise.
6099
6100 2006-04-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6101
6102         * doc/install.texi (*-*-solaris2*): Point to the configure page.
6103
6104 2006-04-10  Jakub Jelinek  <jakub@redhat.com>
6105
6106         PR debug/27057
6107         * dwarf2out.c (is_symbol_die): Return true also for namespaces.
6108
6109 2006-04-09  Roger Sayle  <roger@eyesopen.com>
6110
6111         * expr.c (store_constructor): Don't bother clearing target if
6112         we're about to assign a vector to it using vec_init_optab.
6113
6114 2006-04-10 Daniel Berlin  <dberlin@dberlin.org>
6115
6116         * tree-ssa-alias.c (lhs_may_store_to): New function.
6117         (recalculate_used_alone): Handle LHS of calls.
6118
6119 2006-04-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6120
6121         PR target/27034
6122         PR target/26508
6123         * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
6124         * pa64-hpux.h (LIB_SPEC): Correct typo.  Don't append milli.a.
6125         (LINK_GCC_C_SEQUENCE_SPEC): Define.  Append milli.a here.
6126         (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
6127         (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
6128         (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
6129         section.  Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
6130         stubs.  Add ".align 8" directives before all ".dword" directives.
6131         (GTHREAD_USE_WEAK): Revise comment.
6132         (TARGET_ATTRIBUTE_WEAK): Define.
6133         * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
6134         dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
6135         * stublib.c: New file.
6136
6137         PR target/26743
6138         PR target/11254
6139         PR target/10274
6140         * pa.md (cbranch patterns): Revise arguments used in calls to
6141         output_cbranch, output_bb and output_bvd.  Add long branch length
6142         attributes.
6143         (fbranch patterns): Handle long branches.
6144         (jump): Revise length check.  Revise arguments for output_lbranch call.
6145         Add long branch length attributes.
6146         (decrement_and_branch_until_zero): Add long branch length attributes.
6147         (output_movb, output_parallel_addb and output_parallel_movb patterns):
6148         Likewise.  Revise arguments for output_parallel_addb and
6149         output_parallel_movb calls.
6150         * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
6151         output_parallel_movb and output_parallel_addb): Update prototypes.
6152         * pa.c (output_cbranch): Revise arguments.  Correct handling of
6153         nullification in long branches.
6154         (output_lbranch): Add new argument to control extraction of delay
6155         instruction.
6156         (output_bb): Handle long branches.
6157         (output_bvb, output_dbra, output_movb, output_parallel_movb,
6158         output_parallel_addb): Likewise.
6159
6160 2006-04-09  Richard Sandiford  <richard@codesourcery.com>
6161
6162         PR rtl-optimization/27073
6163         * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
6164         not REG_EQUIVs.
6165
6166 2006-04-08  Daniel Berlin  <dberlin@dberlin.org>
6167
6168         * tree.h (tree_memory_tag): Add old_used_alone.
6169         (SMT_OLD_USED_ALONE): New macro.
6170         * tree-ssa-alias.c (recalculate_used_alone): Stop
6171         marking things for renaming unnecessarily.
6172
6173 2006-04-08  Kazu Hirata  <kazu@codesourcery.com>
6174
6175         * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
6176         config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
6177         config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
6178         haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
6179         sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
6180         tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
6181         tree-vect-patterns.c, tree-vrp.c: Fix comment typos.  Follow
6182         spelling convensions.
6183         * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
6184         doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
6185         typos.  Follow spelling conventions.
6186
6187 2006-04-07  DJ Delorie  <dj@redhat.com>
6188
6189         * config/m32c/m32c.c (m32c_function_arg): Structures are always
6190         passed on the stack.
6191         (m32c_init_cumulative_args): When a function returns a structure,
6192         always pass the pointer to that return area on the stack.
6193         (m32c_function_arg_advance): Don't increment the parameter number
6194         if we're processing the returned structure pointer.
6195         (pushm_info): Reverse order of registers.
6196
6197 2006-04-07  Sebastian Pop  <pop@cri.ensmp.fr>
6198
6199         * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
6200         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
6201         number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
6202         estimate_numbers_of_iterations_loop): Use build_int_cst instead of
6203         build_int_cst_type.
6204         * tree-chrec.c (chrec_fold_multiply_poly_poly,
6205         chrec_fold_multiply): Same.
6206         * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
6207         force_expr_to_var_cost): Same.
6208         * tree-mudflap.c (mf_xform_derefs_1): Same.
6209         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
6210
6211 2006-04-07  David Edelsohn  <edelsohn@gnu.org>
6212
6213         * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
6214         treat CONST_DOUBLE as INTVAL.  and64_2_operands require an extra
6215         insn.
6216
6217 2006-04-07  Jan Hubicka  <jh@suse.cz>
6218
6219         * ipa-inline.c (cgraph_early_inlining): Collect garbage.
6220
6221 2006-04-07  Richard Guenther  <rguenther@suse.de>
6222
6223         PR tree-optimization/26135
6224         * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
6225         loads for store copy-prop.
6226         (copy_prop_visit_stmt): Likewise.
6227
6228 2006-04-05  Robert Millan  <robertmh@gnu.org>
6229
6230         * config/i386/linux.h: Add a comment to mark macros that are
6231         being overriden in config/k*bsd-gnu.h.
6232         * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
6233         DYNAMIC_LINKER.
6234         * config/knetbsd-gnu.h: Ditto.
6235
6236 2006-04-06  Jan Hubicka  <jh@suse.cz>
6237
6238         PR profile/20815
6239         PR profile/26399
6240         * coverage.c (coverage_checksum_string): Reorganize loop to not read
6241         after buffer.
6242
6243 2006-04-06  Mike Stump  <mrs@apple.com>
6244
6245         * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
6246         for HAVE_nonlocal_goto to be consistent.
6247         (expand_builtin_nonlocal_goto): Likewise.
6248         (expand_builtin_strcmp): Use #ifdef instead of #if
6249         for HAVE_cmpstrnsi to be consistent.
6250
6251 2006-04-05  DJ Delorie  <dj@redhat.com>
6252
6253         * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
6254         vs m32c.
6255
6256 2006-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
6257
6258         * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
6259         got-relative addressing for anything but SImode.
6260
6261         * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
6262         even if the calling function doesn't modify them.
6263
6264 2006-04-05  Richard Guenther  <rguenther@suse.de>
6265
6266         PR tree-optimization/26919
6267         * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
6268         to cgraph_estimate_size_after_inlining.
6269
6270 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
6271
6272         * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
6273
6274 2006-04-05  Sebastian Pop  <pop@cri.ensmp.fr>
6275
6276         PR tree-optimization/26996
6277         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
6278         VECTOR_TYPE variables.
6279
6280 2006-04-05  Richard Guenther  <rguenther@suse.de>
6281
6282         PR tree-optimization/26763
6283         * fold-const.c (fold_comparison): Move folding of
6284         PTR + CST CMP PTR + CST ...
6285         (fold_binary): ... here.  Fold only for EQ_EXPR and NE_EXPR.
6286
6287 2006-04-05  Gerald Pfeifer  <gerald@pfeifer.com>
6288
6289         * doc/install.texi (Prerequisites): Refine some wording on
6290         bootstrapping and ksh.
6291         Move the version numbers of DejaGnu here from the testing section
6292         and fix casing of names.
6293         Fix markup and clarify wording for autogen requirements.
6294         Refer to GCJ instead of just java.
6295         Refer to SVN instead of CVS.
6296         Describe diffutils as useful instead of necessary.
6297         (Downloading the source): Refer to SVN instead of CVS.
6298         Adjust a link to our web site accordingly.
6299         (Configuration): Fix casing of Bison.
6300         (Building): Refer to SVN instead of CVS.
6301         Fix a sentence on the use of Bison and remove duplicate (and
6302         incorrect) version number of Bison requirement.
6303         Remove one redundant list of packages needed for building.
6304         (Specific): Avoid reference to CVS.
6305
6306 2006-04-04  Eric Christopher  <echristo@apple.com>
6307
6308         * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
6309         (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
6310         (rs6000_handle_struct_attribute): New.
6311         (rs6000_ms_bitfield_layout_p): Ditto.
6312
6313 2006-04-04  Geoffrey Keating  <geoffk@apple.com>
6314
6315         * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
6316         NULL for dso parameter to atexit_common.
6317
6318 2006-04-04  Eric Christopher  <echristo@apple.com>
6319
6320         * config/i386/i386.c (machopic_output_stub): Output \t
6321         between instructions and operands.
6322
6323 2006-04-04  David Edelsohn  <edelsohn@gnu.org>
6324
6325         * config/rs6000/rs6000.c (num_insns_constant_wide): Change
6326         satisfies_constraint_[IL] to explicit tests on value.
6327
6328 2006-04-04  Sebastian Pop  <pop@cri.ensmp.fr>
6329
6330         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
6331         set_nb_iterations_in_loop): Use build_int_cst instead of
6332         build_int_cst_type.
6333         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
6334         build_int_cst instead of convert.
6335
6336 2006-04-04  Carlos O'Donell  <carlos@codesourcery.com>
6337
6338         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
6339         new value 2 for incoming.
6340         * function.c (expand_function_start): Call struct_value_rtx
6341         with incoming as 2.
6342         * config/sparc/sparc.md: Comment updated_return.
6343         * config/sparc/sparc.opt: Add -mstd-struct-return option.
6344         * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
6345         struct return if sparc_std_struct_return and incoming is 2.
6346         (print_operand): Do not adjust return if
6347         sparc_std_struct_return.
6348
6349 2006-04-04  Roger Sayle  <roger@eyesopen.com>
6350
6351         * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
6352         convert in the middle-end.
6353         * expr.c (store_expr, store_constructor, get_inner_reference,
6354         expand_expr_real_1, string_constant, try_casesi, try_tablejump):
6355         Likewise.
6356         * tree.c (build_range_type): Likewise.
6357
6358 2006-04-04  Tom Tromey  <tromey@redhat.com>
6359
6360         * doc/install.texi (Prerequisites): Mention jar.
6361
6362 2006-04-04  Daniel Berlin  <dberlin@dberlin.org>
6363
6364         * doc/tree-ssa.texi (Preserving the virtual ssa form): New
6365         subsection.
6366
6367 2006-04-04  Matthias Klose  <doko@debian.org>
6368
6369         * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
6370         * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
6371         strings.
6372
6373 2006-04-03  Geoffrey Keating  <geoffk@apple.com>
6374
6375         * doc/extend.texi (Function Attributes): Rewrite visibility
6376         attribute documentation.
6377         * doc/invoke.texi (C++ Dialect Options): Rewrite
6378         -fvisibility-inlines-hidden documentation to describe something
6379         entirely different, although in practise compatible.
6380         (Code Gen Options): Warn about system headers in -fvisibility=
6381         documentation.
6382
6383         * doc/extend.texi (Other Builtins): Document that
6384         __builtin_nan is a compile-time constant only when its argument
6385         is valid.
6386
6387 2006-04-03  Adam Nemet  <anemet@caviumnetworks.com>
6388
6389         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
6390         trying to remove TRUNCATE check if all bits outside the new mode
6391         are identical to the sign bit.
6392
6393 2006-04-03  Jeff Law  <law@redhat.com>
6394
6395         * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
6396         and operand scanning in some common cases.
6397
6398 2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
6399             Dale Johannesen  <dalej@apple.com>
6400
6401         PR target/19653
6402         * regclass.c (struct reg_pref): Update documentation.
6403         (regclass): Set prefclass to NO_REGS if memory is the best option.
6404         (record_reg_classes): Cope with a prefclass set to NO_REGS.
6405         * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
6406         into account.  For non-registers, equate an empty preferred
6407         reload class to a `!' in the constraint; move the if clause to
6408         do so after those that reject the insn.
6409         (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
6410         return NO_REGS.
6411         (find_dummy_reload): Likewise.
6412         * doc/tm.texi (Register Classes): Document what it means
6413         if PREFERRED_*_RELOAD_CLASS return NO_REGS.
6414         * config/i386/i386.c (ix86_preferred_reload_class): Force
6415         using SSE registers (and return NO_REGS for floating-point
6416         constants) if math is done with SSE.
6417         (ix86_preferred_output_reload_class): New.
6418         * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
6419         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
6420         * config/i386/i386.md: Remove # register preferences.
6421
6422 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
6423
6424         PR bootstrap/26992
6425         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
6426         chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
6427         the type of nb_iter.
6428         (instantiate_parameters_1): Convert the operands before calling
6429         chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
6430         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
6431
6432 2006-04-02  Roger Sayle  <roger@eyesopen.com>
6433
6434         * builtins.c (dummy_object): Use build_int_cst instead of convert.
6435         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
6436         instead of convert.
6437         * dojump.c (do_jump): Likewise.
6438         * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
6439         * gimplify.c (gimple_boolify, gimplify_init_constructor,
6440         gimplify_boolean_expr): Likewise.
6441         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6442         * varasm.c (array_size_for_constructor): Likewise.
6443         * tree-object-size.c (compute_object_offset): Likewise.
6444
6445 2006-04-02  Roger Sayle  <roger@eyesopen.com>
6446
6447         PR middle-end/26977
6448         * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
6449         NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
6450
6451 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
6452
6453         PR tree-optimization/26939
6454         * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
6455
6456 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
6457
6458         * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
6459         at_stmt.  Convert the type of operands before calling
6460         build_polynomial_chrec.
6461         (add_to_evolution): Pass an extra argument at_stmt.  Adjust the call to
6462         add_to_evolution_1.
6463         (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
6464         (instantiate_parameters_1): Convert the type of operands before calling
6465         build_polynomial_chrec.
6466         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
6467         chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
6468         reset_evolution_in_loop): Insert asserts to check the types of the
6469         operands.
6470         (chrec_type): Moved...
6471         (eq_evolutions_p): Use operand_equal_p.
6472         * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
6473         the types of the operands.
6474         (chrec_type): ...here.
6475         * tree-data-ref.c (create_data_ref): Convert the operands before
6476         calling chrec_replace_initial_condition.
6477         (same_access_functions, analyze_subscript_affine_affine,
6478         analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
6479         (compute_subscript_distance, analyze_ziv_subscript,
6480         analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
6481         analyze_miv_subscript): Convert the operands before calling
6482         chrec_fold_minus or chrec_fold_plus.
6483
6484 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
6485
6486         * tree-data-ref.c (compute_all_dependences): Use a pointer to
6487         the dependence_relations vector.
6488         (compute_data_dependences_for_loop): Adjust call to
6489         compute_all_dependences.
6490
6491 2006-04-01  Roger Sayle  <roger@eyesopen.com>
6492             Richard Henderson  <rth@redhat.com>
6493
6494         * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
6495         gimple_boolify on the condition before calling gimplify_expr.
6496
6497 2006-03-31  Bob Wilson  <bob.wilson@acm.org>
6498
6499         * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
6500         to leaf_entry/leaf_return.  Change leaf_entry to add 16 bytes to
6501         the frame size.  Update to use the new macros.
6502         * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
6503         * config/xtensa/ieee754-df.S: Likewise.
6504
6505 2006-03-31  Richard Henderson  <rth@redhat.com>
6506
6507         * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
6508         (make_edges): ... here.  Control fallthru creation with a local
6509         variable.  Do not play with fake edges.
6510         (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
6511         (make_goto_expr_edges): Don't play with fake edges.  Make for_call
6512         a boolean.
6513
6514 2006-04-01  Joseph S. Myers  <joseph@codesourcery.com>
6515
6516         * dwarf2.h (DW64_CIE_ID): Define.
6517         * dwarf2out.c (DWARF_CIE_ID): Define.
6518         (output_call_frame_info): Output 0xffffffff before standard 8-byte
6519         length header.  Use DWARF_CIE_ID.
6520         (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
6521         dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
6522
6523 2006-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6524
6525         * config/sh/linux-atomic.asm: New file.
6526         * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
6527
6528 2006-03-31  DJ Delorie  <dj@redhat.com>
6529
6530         * config/m32c/cond.md: Set condition flags properly throughout.
6531         * config/m32c/minmax.md: Likewise.
6532         * config/m32c/prologue.md: Likewise.
6533         * config/m32c/bitops.md: Likewise.
6534         * config/m32c/muldiv.md: Likewise.
6535         * config/m32c/mov.md: Likewise.
6536         * config/m32c/addsub.md: Likewise.
6537         * config/m32c/m32c.md: Likewise.
6538         * config/m32c/jump.md: Likewise.
6539         * config/m32c/shift.md: Likewise.
6540
6541         * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
6542         conditionally output the pattern for this.
6543         * config/m32c/m32c.c (flags_needed_for_conditional): New.
6544         (m32c_compare_redundant): New.
6545         (m32c_output_compare): New.
6546         * config/m32c/m32c-protos.h (m32c_output_compare): New.
6547
6548         * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
6549         dest, not src.  Allow other 4-byte modes.
6550
6551 2006-03-30  Denis Chertykov  <denisc@overta.ru>
6552
6553         * doc/md.texi: Refer to avr/constraints.md instead of
6554         avr/avr.h.
6555
6556 2006-03-30  Roger Sayle  <roger@eyesopen.com>
6557
6558         * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
6559         signed vs. unsigned comparison failures on some hosts.
6560
6561 2006-03-31  Alan Modra  <amodra@bigpond.net.au>
6562
6563         PR target/26459
6564         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
6565         change to FLOAT_REGS.
6566
6567         * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
6568         (rs6000_override_options): Use it.
6569         (rs6000_handle_option): Set it.  Set rs6000_explicit_options.abi
6570         only for -mabi=spe/no-spe and -mabi=altivec.
6571
6572 2006-03-30  Geoffrey Keating  <geoffk@apple.com>
6573
6574         * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
6575         !Zdynamiclib.
6576
6577 2006-03-30  Carlos O'Donell  <carlos@codesourcery.com>
6578
6579         * Makefile.in: Rename docdir to gcc_docdir.
6580
6581 2006-03-30  Roger Sayle  <roger@eyesopen.com>
6582
6583         PR target/17959
6584         * expr.c (emit_group_store): Optimize group stores into a pseudo
6585         register by using a paradoxical subreg to initialize the destination
6586         if the first or last member of the group specifies a "low part".
6587
6588 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6589
6590         PR target/26734
6591         * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
6592         * target.h (struct gcc_target.speculate_insn): Change type of the
6593         second parameter to 'int'.
6594         * lists.c (alloc_DEPS_LIST): Change signature.  Update reference to
6595         the second operand of the DEPS_LIST.
6596         (copy_DEPS_LIST_list): Update reference to the second operand of the
6597         DEPS_LIST.
6598         * rtl.h (alloc_DEPS_LIST): Update signature.
6599         * sched-int.h (ds_t): Change typedef to 'int'.
6600         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
6601
6602 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6603
6604         * haifa-sched.c (try_ready): Change condition to restore
6605         non-speculative pattern of the instruction.
6606         (process_insn_depend_be_in_spec): Code to keep probability of the
6607         speculative dependence non-decreasing.
6608
6609 2006-03-30  Jie Zhang  <jie.zhang@analog.com>
6610
6611         * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
6612         (single_move_for_movmem): ... this. Also change all uses.
6613         (bfin_expand_strmov): Renamed to...
6614         (bfin_expand_movmem): ... this. Also change all uses.
6615         * config/bfin/bfin.md (movstrsi): Renamed to...
6616         (movstrsi): ...this.
6617
6618 2006-03-30  Paolo Bonzini  <bonzini@gnu.org>
6619
6620         PR tree-optimization/26830
6621
6622         * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
6623         (copy_prop_visit_stmt): Remove write-only variable ann.
6624         (init_copy_prop): Check variable loop depth here.  Do not simulate
6625         memory-tag and virtual operand PHIs except for store copy prop.
6626
6627 2006-03-30  Richard Guenther  <rguenther@suse.de>
6628
6629         * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
6630         variants with double arguments.
6631
6632 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
6633
6634         * genpreds.c (write_tm_constrs_h): Delete variable p.
6635         * genconditions.c (write_header): Add tm-constrs.h to included
6636         headers.
6637         * genpeep.c (main): Add toplev.h to included headers.
6638         * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
6639         (build/genpeep.o): Add toplev.h dependency.
6640         * config/rs6000/constraints.md: Add "W" constraint.
6641
6642 2006-03-29  Roger Sayle  <roger@eyesopen.com>
6643
6644         * stor-layout.c (mode_for_size_tree): Remove restiction on type
6645         sizes by correctly testing whether the size fits a host integer.
6646         (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
6647         to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
6648         SImode range for the default sizetype and bitsizetype.
6649
6650 2006-03-29  Roger Sayle  <roger@eyesopen.com>
6651
6652         * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
6653         and TREE_CONSTANT_OVERFLOW bits of the argument.  Return
6654         quickly if the argument is already of the correct type.
6655         Call fold_build1 instead of build1.  Tidy up blank lines.
6656
6657 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
6658
6659         * genemit.c (main): Add tm-constrs.h to included headers.
6660         * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
6661         * genpeep.c (main): Add tm-constrs.h to included headers.
6662         * genpreds.c (write_satisfies_constraint_fns): Rename to ...
6663         (write_tm_constrs_h): this and write complete file.
6664         (write_tm_preds_h): Do not emit satisfies_constraint fns.
6665         (write_insn_preds_c): Add tm-constrs.h to included headers.
6666         (gen_constrs): New variable.
6667         (parse_option): Parse "-c".
6668         (main): Invoke write_tm_constrs_h.
6669         * genrecog.c (write_header): Add tm-constrs.h to included headers.
6670         * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
6671         (object_out_file): Add tm-constrs.h dependency.
6672         (insn-emit.o): Same.
6673         (insn-output.o): Same.
6674         (insn-peep.o): Same.
6675         (insn-preds.o): Same.
6676         (insn-recog.o): Same.
6677         (tm-constsr.h): New target.
6678         (s-constrs-h): New target.
6679
6680         * config/rs6000/constraints.md: New file.
6681         * config/rs6000/rs6000.c: Include tm-constrs.h.
6682         (num_insn_constant_wide): Convert to satisfies_constraint.
6683         (rs6000_rtx_costs): Convert to satisfies_constraint.
6684         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
6685         (CONST_OK_FOR_LETTER_P): Delete.
6686         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6687         (EXTRA_CONSTRAINT): Delete.
6688         (EXTRA_MEMORY_CONSTRAINT): Delete.
6689         (EXTRA_ADDRESS_CONSTRAINT): Delete.
6690         * config/rs6000/predicates.md: Convert to satisfies_constraint.
6691         * config/rs6000/rs6000.md: Include constraints.md.  Convert to
6692         satisfies_constraint.
6693
6694         * config/i386/i386.c: Include tm-constrs.h.
6695
6696 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
6697
6698         * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
6699         * tree-data-ref.c (find_data_references_in_loop,
6700         compute_data_dependences_for_loop): Use pointers to VEC.
6701         (analyze_all_data_dependences): Adjust calls.
6702         * tree-data-ref.h (find_data_references_in_loop,
6703         compute_data_dependences_for_loop): Adjust declarations.
6704         * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
6705         compute_data_dependences_for_loop.
6706
6707 2006-03-29  Paul Brook  <paul@codesourcery.com>
6708
6709         * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
6710         (movdf_vfp): Ditto.
6711
6712 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
6713
6714         PR tree-optimization/26859
6715         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
6716         division by zero.
6717         (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
6718         for the step after fold_convert.
6719
6720 2006-03-29  Paul Brook  <paul@codesourcery.com>
6721
6722         * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
6723         (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
6724
6725 2006-03-29  Paul Brook  <paul@codesourcery.com>
6726
6727         PR middle-end/23623
6728         * targhooks.c (default_narrow_bitfield): New fuction.
6729         * targhooks.h (default_narrow_bitfield): add prototype.
6730         * target.h (gcc_target): Add narrow_volatile_bitfield.
6731         * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
6732         * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
6733         * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
6734         * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
6735
6736 2006-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
6737
6738         * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
6739         tmake_file.
6740         * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
6741         (NR_C_MODES): Add TDmode, DDmode and SDmode.
6742         (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
6743         (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
6744         (s390_function_arg_float): Allow SDmode and DDmode values to be
6745         passed in floating point registers.
6746         (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
6747         check with SCALAR_FLOAT_MODE_P.
6748         (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
6749
6750 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
6751
6752         PR tree-optimization/25985
6753         * tree-ssa-loop-niter.c (number_of_iterations_le,
6754         number_of_iterations_ne): Make comments more precise.
6755         (number_of_iterations_cond): Add only_exit argument.  Use the
6756         fact that signed variables do not overflow only when only_exit
6757         is true.
6758         (loop_only_exit_p): New.
6759         (number_of_iterations_exit): Pass result of loop_only_exit_p to
6760         number_of_iterations_cond.
6761
6762 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
6763
6764         PR tree-optimization/26643
6765         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
6766         bit_field_refs.
6767
6768 2006-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
6769
6770         * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
6771         (divsi3_i4_int): Likewise.
6772
6773 2006-03-28  Roger Sayle  <roger@eyesopen.com>
6774
6775         * expr.c (emit_group_store): Only create a new pseudo reg if the
6776         quantity it needs to hold isn't already a suitable pseudo.
6777
6778 2006-03-28  Jeff Law  <law@redhat.com>
6779
6780         * timevar.def (TV_TREE_PHI_CPROP): New timevar.
6781         * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
6782
6783 2006-03-28  Roger Sayle  <roger@eyesopen.com>
6784
6785         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
6786         the equivalent ~X & Y, and the symmetry related transformations.
6787         (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
6788         ~X & Y, and symmetry related transforms.
6789
6790 2006-03-28  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6791
6792         Revert my 2006-03-27 patches.
6793
6794 2006-03-28  Roger Sayle  <roger@eyesopen.com>
6795
6796         * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
6797         ~(T1)X, when T1 and T2 are integer types of the same precision
6798         and (T2)X isn't an extension.
6799
6800 2006-03-28  Jeff Law  <law@redhat.com>
6801
6802         PR tree-optimization/26796
6803         * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
6804         need EH edge cleanups rather than purging them immediately.
6805         (eliminate_degenerate_phis): Handle queued EH cleanups.
6806
6807 2006-03-28  Daniel Berlin  <dberlin@dberlin.org>
6808
6809         * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
6810         from parent_var.
6811
6812 2006-03-27  Roger Sayle  <roger@eyesopen.com>
6813
6814         PR middle-end/22524
6815         * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
6816         cast BIT_NOT_EXPR operand to the correct type.
6817
6818 2006-03-27  Sebastian Pop  <pop@cri.ensmp.fr>
6819
6820         * tree-loop-linear.c: Don't include varray.h.
6821         (gather_interchange_stats, try_interchange_loops,
6822         linear_transform_loops): Use VEC instead of VARRAY.
6823         * lambda-mat.c: Don't include varray.h.
6824         * tree-chrec.c: Same.
6825         * lambda-trans.c: Same.
6826         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
6827         VEC instead of VARRAY.
6828         * tree-vectorizer.h: Idem.
6829         * tree-data-ref.c (dump_data_references,
6830         dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
6831         initialize_data_dependence_relation, finalize_ddr_dependent,
6832         compute_all_dependences, find_data_references_in_loop,
6833         compute_data_dependences_for_loop, analyze_all_data_dependences,
6834         free_dependence_relation, free_dependence_relations,
6835         free_data_refs): Idem.
6836         * tree-data-ref.h (data_reference_p, subscript_p): New.
6837         (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
6838         VEC instead of VARRAY.
6839         (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
6840         (find_data_references_in_loop, compute_data_dependences_for_loop,
6841         dump_ddrs, dump_dist_dir_vectors, dump_data_references,
6842         dump_data_dependence_relations, free_dependence_relations,
6843         free_data_refs): Adjust declaration.
6844         (lambda_transform_legal_p): Move declaration here...
6845         * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
6846         vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
6847         vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
6848         vect_analyze_data_refs): Use VEC instead of VARRAY.
6849         * lambda.h (lambda_transform_legal_p): ...from here.
6850         * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
6851         * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
6852         * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
6853         tree-chrec.o): Don't depend on VARRAY_H.
6854
6855 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6856
6857         * rtl.def (Copyright): Update date.
6858         (DEPS_LIST): Change type of the second operand to 'int'.
6859         * target.h (Copyright): Update date.
6860         (struct gcc_target.speculate_insn): Change type of the second parameter
6861         to 'int'.
6862         * lists.c (Copyright): Update date.
6863         (alloc_DEPS_LIST): Change signature.  Update reference to the second
6864         operand of the DEPS_LIST.
6865         (copy_DEPS_LIST_list): Update reference to the second operand of the
6866         DEPS_LIST.
6867         * rtl.h (Copyright): Update date.
6868         (alloc_DEPS_LIST): Update signature.
6869         * sched-int.h (Copyright): Update date.
6870         (ds_t): Change typedef to 'int'.
6871         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
6872
6873 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
6874
6875         * haifa-sched.c (Copyright): Update date.
6876         (try_ready): Change condition to restore non-speculative pattern
6877         of the instruction.
6878         (process_insn_depend_be_in_spec): Code to keep probability of the
6879         speculative dependence non-decreasing.
6880
6881 2006-03-27  Bernd Schmidt  <bernd.schmidt@analog.com>
6882
6883         * regrename.c (replace_oldest_value_addr): Initialize a variable to
6884         shut up the compiler.
6885
6886 2006-03-27  J"orn Rennecke <joern.rennecke@st.com>
6887
6888         * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
6889         to use lib prefix for target.
6890         ($(T)libic_invalidate_array_4-200.a): Likewise.
6891         ($(T)libic_invalidate_array_4a.a): Likewise.
6892
6893 2006-03-27  Andrew Stubbs <andrew.stubbs@st.com>
6894             J"orn Rennecke <joern.rennecke@st.com>
6895
6896         * superh.opt: New file.
6897         * sh.c (boardtype, osruntime): Remove.
6898         * superh.h (SUBTARGET_OPTIONS): Remove.
6899         * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
6900
6901         * config.gcc (sh*-*-*): Don't use c-c ranges for tr.  Quote sed
6902         arguments with ^ and/or [].
6903
6904         * config.gcc (sh-*-*): Add quoting to account for quirk of
6905         Solaris /bin/sh.
6906         Replace == with = in enable_incomplete_targets test.
6907
6908         * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
6909         with MASK_LITTLE_ENDIAN.
6910
6911         * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
6912         * config/sh/sh.opt: Added to some comments.
6913         * config/sh/superh.h: Removed some chaff.
6914
6915         * config/sh/sh.opt: Add m4-[1234]00* options.
6916         * config/sh/sh.c (sh_handle_option): Likewise.
6917         * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
6918         (ic_invalidate_array_4-100.o): New rule.
6919         ($(T)libic_invalidate_array_4-100.a): Likewise.
6920         (ic_invalidate_array_4-200.o): Likewise.
6921         ($(T)libic_invalidate_array_4-200.a): Likewise.
6922         (ic_invalidate_array_4a.o): Likewise.
6923         ($(T)libic_invalidate_array_4a.a): Likewise.
6924         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
6925         * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
6926         m4-200*, and m4a*.
6927         * config/sh/crt1.asm: Merged in profiling code.
6928         * config/sh/superh.h (STARTFILE_SPEC): Override.
6929         * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
6930         Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
6931         * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
6932
6933         * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
6934         * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
6935         MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
6936
6937         * sh.opt (mpretend-cmove): New option.
6938         * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
6939         * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
6940         (movsicc): Add TARGET_PRETEND_CMOVE code.
6941
6942 2006-03-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6943
6944         * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
6945         s390_class_max_nregs): New function prototypes.
6946         * config/s390/s390.c (REGNO_PAIR_OK): New macro.
6947         (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
6948         * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
6949         CLASS_MAX_NREGS): Macro bodies replaced by function calls.
6950
6951 2006-03-26  Geoffrey Keating  <geoffk@apple.com>
6952
6953         * dwarf2out.c (add_location_or_const_value_attribute): Call
6954         tree_add_const_value_attribute if nothing else works.
6955         (reference_to_unused): New.
6956         (rtl_for_decl_init): Use reference_to_unused to decide whether
6957         to output an initializer.
6958
6959 2006-03-27  Alan Modra  <amodra@bigpond.net.au>
6960
6961         PR target/26459
6962         * config/rs6000/rs6000.md (DF reg move peephole): Prevent
6963         peephole removing spe frob_di_df_2.
6964
6965 2006-03-26  Sebastian Pop  <pop@cri.ensmp.fr>
6966
6967         * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
6968         (subscript_dependence_tester_1): Declared.
6969         (print_dir_vectors, print_dist_vectors): New.
6970         (debug_data_dependence_relation): New.
6971         (dump_data_dependence_relation): Print more details.
6972         (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
6973         (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
6974         (save_dist_v, save_dir_v, add_outer_distances,
6975         build_classic_dist_vector_1): New.
6976         (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
6977         Don't test for lambda_vector_lexico_pos.
6978         (same_access_functions, add_multivariate_self_dist,
6979         add_other_self_distances, dir_from_dist): New.
6980         (build_classic_dir_vector): Replace implementation almost identical to
6981         build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
6982         dir_from_dist.
6983         (subscript_dependence_tester_1): New.
6984         (subscript_dependence_tester): Handle the lexicographically negative
6985         distance vectors by recomputing the dependence relation.
6986         (compute_affine_dependence): Remove parameter loop_nest_depth.
6987         (compute_self_dependence): Don't call compute_subscript_distance.
6988         (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
6989         Add a parameter for the loop_nest.
6990         (find_loop_nest_1, find_loop_nest): New.
6991         (compute_data_dependences_for_loop): Compute the loop nest, and give
6992         up if the nest is not well formed.
6993         * tree-data-ref.h (loop_p): New.
6994         (struct data_dependence_relation): Replace size_vect field with
6995         loop_nest, a vec of loops.
6996         (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
6997         (DDR_LOOP_NEST): New.
6998         (print_dir_vectors, print_dist_vectors,
6999         debug_data_dependence_relation): Declared.
7000         (index_in_loop_nest): New.
7001         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
7002         DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
7003         distance.
7004
7005 2006-03-25  Adam Nemet  <anemet@caviumnetworks.com>
7006
7007         * simplify-rtx.c (simplify_relational_operation): Call
7008         simplify_relational_operation_1 even if mode is VOIDmode.
7009
7010 2006-03-25  Daniel Berlin  <dberlin@dberlin.org>
7011
7012         PR tree-optimization/26804
7013         * tree.h (DECL_CALL_CLOBBERED): New macro.
7014         (tree_decl_common): Add call_clobbered_flag.
7015         * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
7016         (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
7017         (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
7018         (mark_non_addressable): Ditto.
7019         * tree-ssa.c (verify_call_clobbered): New function.
7020         (verify_alias_info): Use it.
7021         * tree-pass.h (pass_reset_cc_flags): New prototype.
7022         * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
7023         (reset_cc_flags): New function.
7024         * passes.c (init_optimization_passes): Call reset_cc_flags after
7025         initializing referenced_vars.
7026
7027 2006-03-25  Uros Bizjak  <uros@kss-loka.si>
7028             Roger Sayle  <roger@eyesopen.com>
7029
7030         PR middle-end/26717
7031         * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
7032         to 1.0 for non-real operands. Implement A / A optimization for
7033         complex operands.
7034
7035 2006-03-25  H.J. Lu  <hongjiu.lu@intel.com>
7036
7037         * config/i386/i386.c (size_cost): Correct the comment for
7038         cost of storing fp registers.
7039         (i386_cost): Likewise.
7040         (i486_cost): Likewise.
7041         (pentium_cost): Likewise.
7042         (pentiumpro_cost): Likewise.
7043         (k6_cost): Likewise.
7044         (athlon_cost): Likewise.
7045         (k8_cost): Likewise.
7046         (pentium4_cost): Likewise.
7047         (nocona_cost): Likewise.
7048         (generic64_cost): Likewise.
7049         (generic32_cost): Likewise.
7050
7051 2006-03-24  Denis Chertykov  <denisc@overta.ru>
7052
7053         * config/avr/avr-protos.h (extra_constraint): Delete.
7054         (extra_constraint_Q): New declaration.
7055         * config/avr/constraints.md: New file.
7056         * config/avr/avr.md: Include it.
7057         (REG_X, REG_Y, REG_Z, REG_W): New constants.
7058         (TMP_REGNO, ZERO_REGNO): Likewise.
7059         (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
7060         * config/avr/avr.c (avr_reg_class_from_letter): Delete.
7061         (extra_constraint): Delete.
7062         (extra_constraint_Q): Test for memory constraint 'Q'.
7063         * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
7064         (REG_CLASS_FROM_LETTER): Delete.
7065         (CONST_OK_FOR_LETTER_P): Delete.
7066         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7067         (EXTRA_CONSTRAINT): Delete.
7068         (TMP_REGNO): Delete.
7069         (ZERO_REGNO): Delete.
7070
7071 2006-03-24  Jeff Law  <law@redhat.com>
7072
7073         * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
7074         directly.  Call mark_new_vars_to_rename slightly earlier.
7075
7076 2006-03-24  Geoffrey Keating  <geoffk@apple.com>
7077
7078         * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
7079         (is_cxx): Likewise.
7080         (gen_compile_unit_die): Use new language types for Objective-C and
7081         Objective-C++.
7082         (dwarf2out_decl): Use is_cxx rather than testing explicitly against
7083         DW_LANG_C_plus_plus.
7084
7085         PR 26793
7086         * config/t-darwin (crt3.o): Work around bug 26840.
7087         * config/darwin-crt3.c: Rewrite.
7088         * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
7089
7090 2006-03-24  Carlos O'Donell  <carlos@codesourcery.com>
7091
7092         * doc/invoke.texi: Document -femit-class-debug-always
7093         * common.opt: Add -femit-class-debug-always.
7094
7095 2006-03-24  Andreas Krebbel  <krebbel1@de.ibm.com>
7096
7097         * config/s390/s390.c (s390_decompose_address): Allow SImode for
7098         index and base register.
7099         (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
7100         print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
7101         with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
7102         REGNO_OK_FOR_INDEX_P.
7103         * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
7104         ADDR_REGNO_P.
7105         (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
7106         REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
7107         REG_OK_FOR_BASE_P): Definitions removed.
7108
7109 2006-03-24  Jakub Jelinek  <jakub@redhat.com>
7110
7111         PR middle-end/26611
7112         * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
7113         non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
7114         set yet or weren't marked as local yet.
7115
7116 2006-03-24  Bernd Schmidt  <bernd.schmidt@analog.com>
7117
7118         * regrename.c (scan_rtx_address): Initialize a variable to shut up
7119         the compiler.
7120
7121 2006-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7122
7123         * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
7124         (rs6000_legitimate_small_data_p): Delete.
7125         * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
7126         (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
7127         and make static.  Add forward declaration.  Update uses.
7128         (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
7129         of offsettable_memref_p.
7130         * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
7131         Use rs6000_offsettable_memref_p instead of a less accurate predicate.
7132
7133 2006-03-24  Jeff Law  <law@redhat.com>
7134
7135         * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
7136         around bug in immediate-use iterator.
7137
7138 2006-03-24  Alan Modra  <amodra@bigpond.net.au>
7139
7140         PR target/26607
7141         * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
7142         or __LITTLE_ENDIAN__.
7143
7144 2006-03-23  J"orn Rennecke <joern.rennecke@st.com>
7145
7146         * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
7147         * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
7148         * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
7149         * config/sh/sh.opt (mdiv=): Amend description.
7150         * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
7151         (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
7152         (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
7153         SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
7154         (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
7155         Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
7156         * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
7157         (udivsi3, divsi3): Use them.  Check TARGET_DIVIDE_CALL_TABLE /
7158         TARGET_DIVIDE_CALL_FP.
7159
7160 2006-03-23  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7161
7162         * haifa-sched.c (choose_ready): Fix type of the local variable.
7163         Move local variables.  Add comment.
7164         (check_reg_live): Change signature.  Make callable from debugger.
7165         * sched-int.h (check_reg_live): Update signature.
7166         * sched-ebb.c (check_reg_live): Update parameters.
7167         * sched-rgn.c (check_reg_live): Ditto.
7168         (region_head_or_leaf_p): Check pointer before dereferencing.
7169         * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
7170         before reload on optimization levels below 1.
7171
7172 2006-03-23  Richard Henderson  <rth@redhat.com>
7173
7174         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
7175         tls symbols.
7176
7177         PR target/26347
7178         * config/alpha/predicates.md (local_symbolic_operand): Reject
7179         weak symbols.
7180
7181 2006-03-23  Andrew Pinski  <pinskia@physics.uc.edu>
7182
7183         PR tree-opt/26795
7184         * tree-ssa-pre.c (create_value_expr_from): Don't reject
7185         expressions which have overflowed constants.
7186
7187 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
7188
7189         * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
7190
7191 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
7192
7193         * cfgloopmanip.c (create_loop_notes): Removed.
7194         * final.c (final_scan_insn): Do not handle loop notes.
7195         * jump.c (squeeze_notes): Ditto.
7196         * cfglayout.c (skip_insns_after_block,
7197         duplicate_insn_chain): Ditto.
7198         * cfgcleanup.c (rest_of_handle_jump2): Do not call
7199         create_loop_notes.
7200         * cfgloop.h (create_loop_notes): Declaration removed.
7201
7202 2006-03-23  Richard Sandiford  <richard@codesourcery.com>
7203
7204         * varasm.c (output_constant_pool): Restore fnname and fndecl
7205         arguments.
7206         (assemble_start_function): Adjust call accordingly.
7207         (assemble_end_function): Likewise.
7208
7209 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7210
7211         PR mudflap/26789
7212         * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
7213
7214         PR mudflap/26790
7215         * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
7216
7217 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7218
7219         PR driver/22600
7220         * system.h (ICE_EXIT_CODE): New macro.
7221         * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
7222         (diagnostic_action_after_output): Likewise.
7223         * gcc.c (fatal_ice): New function.
7224         (execute): Use it instead of fatal.
7225         (fancy_abort): Likewise.
7226         * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
7227
7228 2006-03-22  Jeff Law  <law@redhat.com>
7229
7230         * loop-unroll.c (analyze_iv_to_split_insn): Handle
7231         iv_analyze_result returning false.
7232
7233 2006-03-22  Jie Zhang  <jie.zhang@analog.com>
7234
7235         * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
7236
7237 2006-03-22  Richard Henderson  <rth@redhat.com>
7238
7239         PR middle-end/26084
7240         * except.c (duplicate_eh_regions_0): New.
7241         (duplicate_eh_region_1): Duplicate the children of the node as
7242         well as the node itself.  Link them up properly.
7243         (duplicate_eh_region_2): Merge into ...
7244         (duplicate_eh_regions): ... here.  Take copy_region argument, and
7245         copy only a sub-tree if asked.  Simplify copying and fixup.
7246         (eh_region_outer_p): New.
7247         * except.h (duplicate_eh_regions): Update decl.
7248         (eh_region_outer_p): Declare.
7249         * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
7250         (lower_omp_master): Likewise.
7251         (lower_omp_ordered): Likewise.
7252         * tree-cfg.c (struct move_stmt_d): Add new_label_map.
7253         (move_stmt_r): Use it to remap labels.  Handle recursion vs
7254         remap_decls_p properly.
7255         (move_block_to_fn): Pass in new_label_map.  Remap RESX_EXPR.
7256         (find_outermost_region_in_block): New.
7257         (new_label_mapper): New.
7258         (move_sese_region_to_fn): Copy eh information to the new function
7259         properly.
7260         * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
7261         argument.
7262         * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
7263         number.
7264
7265 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
7266
7267         * doc/md.texi (-mshared): Mention that -mshared code can be linked
7268         into shared libraries.
7269
7270 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
7271
7272         * doc/md.texi: Refer to i386/constraints.md instead of
7273         i386/predicates.md.
7274         * config/i386/constraints.md: New file, extracted from...
7275         * config/i386/predicates.md: ...here.
7276         * config/i386/i386.md: Include constraints.md.
7277
7278 2006-03-21  Jason Merrill  <jason@redhat.com>
7279
7280         * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
7281
7282         PR middle-end/20297
7283         * expr.c (init_block_move_fn): Force default visibility.
7284         (init_block_clear_fn): Likewise.
7285         * builtins.c (expand_builtin_fork_or_exec): Likewise.
7286         * targhooks.c (default_external_stack_protect_fail): Likewise.
7287
7288 2006-03-21  Richard Sandiford  <richard@codesourcery.com>
7289
7290         * config/mips/predicates.md (const_call_insn_operand): Allow direct
7291         calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
7292         * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
7293         Use TARGET_OLDABI instead of !TARGET_NEWABI.
7294         (loadgp): Use mips_current_loadgp_style.
7295         (loadgp_noshared): New pattern.
7296         (sibcall_internal): Use MIPS_CALL.
7297         (sibcall_value_internal): Likewise.
7298         (sibcall_value_multiple_internal): Likewise.
7299         (call_internal): Likewise.
7300         (call_value_internal): Likewise.
7301         (call_value_multiple_internal): Likewise.
7302         (call_split): Use MIPS_CALL and add an 'S' constraint.
7303         (call_value_split): Likewise.
7304         (call_value_multiple_split): Likewise.
7305         * config/mips/mips.opt (-mabicalls): Tweak docstring.
7306         (-mshared): New option.
7307         * config/mips/mips-protos.h (mips_loadgp_style): New enum.
7308         (mips_current_loadgp_style): Declare.
7309         * config/mips/mips.c (mips_classify_symbol): Avoid using
7310         SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS.  Use SYMBOL_GENERAL
7311         rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
7312         TARGET_ABSOLUTE_ABICALLS.
7313         (override_options): Adjust comments.  Improve the warning that is
7314         issued when -mabicalls and -G are used together.
7315         (mips_file_start): Remove comment.
7316         (mips_current_loadgp_style): New function.
7317         (mips_gnu_local_gp): New variable.
7318         (mips_emit_loadgp): Use mips_current_loadgp_style.  Handle
7319         LOADGP_ABSOLUTE.
7320         (mips_output_function_prologue): Use mips_current_laodgp_style.
7321         (mips_expand_prologue): Call mips_emit_loadgp before emitting
7322         the cprestore instruction.
7323         (mips_extra_live_on_entry): Fix reversed test.  Don't make $25
7324         live for TARGET_ABSOLUTE_ABICALLS.
7325         * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
7326         (ASM_SPEC): Pass down -mshared and -mno-shared.
7327         (MIPS_CALL): New macro.
7328         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
7329         definition.
7330         * doc/invoke.texi (-mabicalls): Update documentation.
7331         (-mshared): Document.
7332
7333 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
7334
7335         * config/ia64/unwind-hpux.c: New file.
7336         * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
7337
7338 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
7339
7340         PR libgomp/26384
7341         * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
7342
7343 2006-03-21  Jeff Law  <law@redhat.com>
7344
7345         * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
7346         type conversions of a VR_VARYING source to a wider type.
7347
7348 2006-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
7349
7350         * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
7351         tm_file on Solaris 10 and later.
7352         (sparc64-*-solaris2*): Likewise.
7353         (sparc-*-solaris2*): Likewise.
7354         * config/sol26.h: Rename to config/sol2-6.h.
7355         * config/sol2-10.h: New file.
7356
7357 2006-03-21  Andrew Pinski  <pinskia@physics.uc.edu>
7358
7359         PR tree-opt/26781
7360         * tree-ssa-pre.c (create_component_ref_by_pieces):
7361         Handle STRING_CST.
7362
7363 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
7364
7365         PR c++/26690
7366         * tree.c (get_callee_fndecl): If CALL is error_mark_node,
7367         return it immediately.
7368
7369 2006-03-21  Michael Matz  <matz@suse.de>
7370
7371         * genautomata.c (<struct state>, num_out_arcs, presence_signature):
7372         New members.
7373         (remove_arc, add_arc): Update num_out_arcs member.
7374         (set_out_arc_insns_equiv_num): Returns nothing instead of number
7375         of out arcs.
7376         (cache_presence): New function.
7377         (compare_states_for_equiv): New function.
7378         (state_is_differed): Don't take number of outargs, adjust callers.
7379         Use new invariant for speeding up.
7380         (init_equiv_class): Create initial classes based on sorted
7381         input.
7382         (partition_equiv_class): Don't track out_arcs_num.
7383         (evaluate_equiv_classes): Call cache_presence on all states and
7384         sort them.
7385
7386 2006-03-21  Bernd Schmidt  <bernd.schmidt@analog.com>
7387
7388         * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
7389         * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
7390         (bfin_valid_reg_p): Test for pseudos explicitly and use only
7391         REGNO_MODE_CODE_OK_FOR_BASE_P.  New args MODE and OUTER_CODE; all
7392         callers changed.
7393         * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
7394         (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
7395         (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
7396         (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7397         REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
7398         macros.
7399         (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
7400         REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
7401         (REGNO_REG_CLASS): ARGP is in PREGS.
7402         * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
7403         IREGS.
7404         (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
7405         to deal with those addresses.
7406         * addresses.h: New file.
7407         * caller-save.c: Include "addresses.h".
7408         (init_caller_save): Use new base_reg_class function.
7409         * rtl-factoring.c: Include "addresses.h".
7410         (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
7411         * recog.c: Include "addresses.h".
7412         (preprocess_constraints): Use new base_reg_class function.
7413         * regrename.c: Include "addresses.h".
7414         (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
7415         functions.  Keep track of a new var INDEX_CODE to compute valid
7416         classes.
7417         (replace_oldest_value_addr): Likewise.
7418         (replace_oldest_value_mem): Use base_reg_class.
7419         * reload.c: Include "addresses.h".
7420         (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
7421         (find_reloads): Use new base_reg_class function.
7422         (find_reloads_address): Likewise; also use regno_ok_for_base_p.
7423         (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
7424         all callers and prototype changed.
7425         * reload1.c: Include "addresses.h".
7426         (maybe_fix_stack_asms): Use base_reg_class.
7427         * regclass.c: Include "addresses.h".
7428         (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
7429         (init_reg_autoinc): Use new base_reg_class function.
7430         (record_reg_classes): Likewise.
7431         (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
7432         OUTER_CODE and INDEX_CODE.  All callers and prototype changed.
7433         Use new args to compute necessary class.
7434
7435         * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
7436         regrename.o, rtl-factoring.o): Update dependencies.
7437         * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
7438         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
7439         (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
7440         REG_OK_FOR_INDEX_P): Delete documentation.
7441
7442 2006-03-21  Alexey Starovoytov  <alexey.starovoytov@sun.com>
7443
7444         * config.gcc (sparc-*-solaris2*): Change the default CPU setting
7445         from V7 to V9 for Solaris 7 and above.
7446
7447 2006-03-21  Toon Moene  <toon@moene.indiv.nluug.nl>
7448
7449         * doc/invoke.texi: Document new flag -fargument-noalias-anything.
7450         * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
7451         argument pointers may not alias any other storage.
7452         * common.opt: Define option -fargument-noalias-anything.
7453         * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
7454         alias semantics is specified by flag_argument_noalias > 2.
7455
7456 2006-03-20  Jeff Law  <law@redhat.com>
7457
7458         * tree-pass.h (pass_phi_only_copy_prop): Delete.
7459         (pass_phi_only_cprop): Declare.
7460         * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
7461         with phi_only_cprop
7462         * tree-ssa-dom.c (degenerate_phi_result): New function.
7463         (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
7464         (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
7465         (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
7466         (eliminate_degenerate_phis): Likewise.
7467         (pass_phi_only_cprop): New pass descriptor.
7468         * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
7469         support code.  Callers updated.
7470         (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
7471         (store_copy_prop): Likewise.
7472         (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
7473
7474 2006-03-20  Jason Merrill  <jason@redhat.com>
7475
7476         PR c++/21764
7477         * c-pragma.c (visstack): Move out of handle_pragma_visibility.
7478         (push_visibility, pop_visibility): Likewise.
7479         * c-pragma.h: Declare them.
7480
7481 2006-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7482
7483         * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
7484
7485         * config/sh/sh.c (find_regmode_weight): Change the type of the first
7486         parameter and use get_ebb_head_tail.
7487         (sh_md_init_global): Adjust uses of find_regmode_weight.
7488
7489 2006-03-20  Steven Bosscher  <stevenb.gcc@gmail.com>
7490
7491         * function.h (struct function) <x_tail_recursion_reentry>:
7492         Rename to x_stack_check_probe_note.
7493         (tail_recursion_reentry): Rename to stack_check_probe_note.
7494         * function.c: Replace tail_recursion_reentry with
7495         stack_check_probe_note everywhere.
7496         (expand_function_start): Only emit a note for
7497         stack_check_probe_note with -fstack-protect.
7498         * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
7499
7500         * emit-rtl.c (remove_unnecessary_notes): Remove.
7501         (pass_remove_unnecessary_notes): Remove.
7502         * rtl.h (remove_unnecessary_notes): Remove prototype.
7503         * final.c (final_start_function): Don't call remove_unnecessary_notes.
7504         * tree-pass.h (pass_remove_unnecessary_notes): Remove.
7505         * passes.c (pass_remove_unnecessary_notes): Don't run it.
7506
7507 2006-03-20  Andrew Pinski  <pinskia@physics.uc.edu>
7508
7509         PR tree-opt/26629
7510         * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
7511         (valid_in_set): Handle ARRAY_REF.
7512         Change "if min_variant or VH" to asserts.
7513         (create_component_ref_by_pieces): Handle ARRAY_REF.
7514         (create_expression_by_pieces): Likewise.
7515         (can_PRE_operation): ARRAY_REFs can now be PRE'd.
7516
7517 2006-03-20  David Edelsohn  <edelsohn@gnu.org>
7518
7519         * genpreds.c (write_insn_extra_address_constraint): Argument `c'
7520         is operand of switch, not str[0].
7521
7522 2006-03-20  Alan Modra  <amodra@bigpond.net.au>
7523
7524         * config/rs6000/rs6000.c (rs6000_handle_option): Use
7525         TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
7526
7527 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
7528
7529         * genpreds.c (write_tm_preds_h): Add semicolon and newline at
7530         end of insn_extra_address_constraint declaration.
7531
7532 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
7533
7534         * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
7535         (no-sum-in-toc): Same.
7536         * config/rs6000/rs6000.c (rs6000_handle_option): Use new
7537         variables.
7538         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
7539         NO_FP_IN_TOC for -fPIC instead of mask.
7540
7541         * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
7542         (BOOT_LDFLAGS): Delete.
7543         (LDFLAGS): Delete.
7544         * config/rs6000/t-aix52: Same.
7545
7546         * config/rs6000/rs6000.md (store_multiple_power): Delete.
7547         (stmsi[345678]_power): New.
7548
7549 2006-03-17  Steve Ellcey  <sje@cup.hp.com>
7550
7551         * config/ia64/ia64.opt: Add empty line to end of file.
7552
7553 2006-03-17  Richard Guenther  <rguenther@suse.de>
7554
7555         PR middle-end/26721
7556         * builtins.c (get_pointer_alignment): For component style references
7557         adjust alignment to the component type alignment.  Make sure
7558         to adjust alignment for component access of constants.
7559
7560 2006-03-17  David Edelsohn  <edelsohn@gnu.org>
7561
7562         * config/rs6000/rs6000.md (strlensi): Emit barrier after
7563         unconditional jump.
7564
7565 2006-03-17  Paul Brook  <paul@codesourcery.com>
7566
7567         * doc/install.texi: Docuemnt --with-mode.
7568         * config.gcc: Add --with-mode for arm*-*-*.
7569         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
7570
7571 2006-03-17  J"orn Rennecke <joern.rennecke@st.com>
7572
7573         * sh.c (max_labelno_before_reorg): New variable.
7574         (sh_reorg): Initialize it.
7575         (find_barrier): Check max_labelno_before_reorg before using
7576         label_to_alignment.  Take length of explicit alignment insns
7577         into account.  When seeing a UNSPECV_CONST_END, return it.
7578
7579         * sh.c (fixup_mova): Set mode of affected label to QImode.
7580         (untangle_mova): New function.
7581         (find_barrier): Use it.  Check mode of label before decrementing
7582         num_mova.
7583         (sh_reorg): Likewise.
7584         Set mode of all insns back to VOIDmode.
7585
7586         * sh.c (MOVA_LABELREF): New macro.
7587         (mova_p, fixup_mova, sh_reorg): Use it.
7588         (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
7589         ADDR_DIFF_VEC matches mova.
7590
7591 2006-03-17  Steven Bosscher  <stevenb.gcc@gmail.com>
7592
7593         * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
7594         with ATTRIBUTE_UNUSED.
7595
7596 2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
7597
7598         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
7599         pointer, instead of assuming it is possible to derive the
7600         correct args size from a call insn.
7601
7602 2006-03-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7603
7604         * rtl.h (CONST_INT_P): Define.
7605         * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
7606         instead of GET_CODE(x) == CONST_INT.
7607         (vax_rtx_costs): Likewise.
7608         (vax_output_int_move): Likewise.
7609         (vax_output_int_add): Likewise.
7610         (legitimate_constant_address_p): Likewise.
7611         (index_term_p): Likewise.
7612         * config/vax/vax.h (PRINT_OPERAND): Likewise.
7613         * config/vax/vax.md (and<mode>3): Likewise.
7614         (ashrsi3): Likewise.
7615         (extv): Likewise.
7616         (movstricthi): Likewise.
7617         (movstrictqi): Likewise.
7618         (rotrsi3): Likewise.
7619         (five unnamed insns): Likewise.
7620
7621 2006-03-16  Geoffrey Keating  <geoffk@apple.com>
7622
7623         * doc/tm.texi (SDB and DWARF): Add extra parameter to
7624         ASM_OUTPUT_DWARF_OFFSET.  Use @var to indicate metavariables.
7625         * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
7626         * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
7627         Pass to ASM_OUTPUT_DWARF_OFFSET.
7628         * dwarf2out.c (debug_frame_section): New.
7629         (output_call_frame_info): Use debug_frame_section.  Pass it to
7630         dw2_asm_output_offset.
7631         (output_die): Pass appropriate section to dw2_asm_output_offset.
7632         (output_compilation_unit_header): Likewise.
7633         (output_pubnames): Likewise.
7634         (output_aranges): Likewise.
7635         (enum dw_val_class): Break dw_val_class_lbl_offset into
7636         dw_val_class_lineptr and dw_val_class_macptr.
7637         (add_AT_lbl_offset): Delete.
7638         (add_AT_lineptr): New.
7639         (add_AT_macptr): New.
7640         (AT_lbl): Expect a lineptr or macptr.
7641         (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
7642         (attr_checksum): Likewise.
7643         (same_dw_val_p): Likewise.
7644         (size_of_die): Likewise.
7645         (value_format): Likewise.
7646         (output_die): Likewise.
7647         (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
7648         add_AT_lbl_offset.
7649         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
7650         * config/i386/i386.c (x86_file_start): Call darwin_file_start.
7651         * config/darwin-protos.h (darwin_file_start): New.
7652         (darwin_asm_output_dwarf_offset): New.
7653         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
7654         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
7655         darwin_file_start.
7656         * config/darwin.c (darwin_emit_unwind_label): Don't output label
7657         if not EH section; simplify.
7658         (darwin_file_start): New.
7659         (darwin_asm_output_dwarf_offset): New.
7660         * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
7661         mark as 'debug'.
7662         (DEBUG_INFO_SECTION): Likewise.
7663         (DEBUG_ABBREV_SECTION): Likewise.
7664         (DEBUG_ARANGES_SECTION): Likewise.
7665         (DEBUG_MACINFO_SECTION): Likewise.
7666         (DEBUG_LINE_SECTION): Likewise.
7667         (DEBUG_LOC_SECTION): Likewise.
7668         (DEBUG_PUBNAMES_SECTION): Likewise.
7669         (DEBUG_STR_SECTION): Likewise.
7670         (DEBUG_RANGES_SECTION): Likewise.
7671         (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
7672         (ASM_OUTPUT_DWARF_OFFSET): New.
7673
7674 2006-03-16  Joseph S. Myers  <joseph@codesourcery.com>
7675
7676         * config.gcc (tm_defines): Always add to previous value rather
7677         than replacing it.
7678
7679 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
7680
7681         * config/mips/predicates.md (splittable_const_int_operand): New,
7682         split from move_operand.
7683         (splittable_symbolic_operand): New.
7684         (move_operand): Add commentary.  Use splittable_const_int_operand.
7685         Inline mips_atomic_symbolic_constant_p.
7686         * config/mips/mips.md: Add combine splitters for handling moves
7687         of splittable_const_int_operands and splittable_symbolic_operands.
7688         * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
7689         (mips_split_symbol): Declare.
7690         (mips_move_integer): Declare.
7691         * config/mips/mips.c (mips_split_p): Make global.
7692         (TARGET_MIN_ANCHOR_OFFSET): Override default.
7693         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
7694         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
7695         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
7696         (mips_offset_within_object_p): Handle block symbols.
7697         (mips_atomic_symbolic_constant_p): Delete.
7698         (mips_cannot_force_const_mem): Return false for constants that
7699         mips_legitimize_move can handle.
7700         (mips_use_blocks_for_constant_p): New function.
7701         (mips_split_symbol): Make global.
7702         (mips_move_integer): Likewise.  Add a temporary register argument.
7703         (mips_legitimize_const_move): Use splittable_const_int_operand and
7704         splittable_symbolic_operand.
7705         (mips_use_anchors_for_symbol_p): New function.
7706         * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
7707         (mips_split_p): Declare.
7708
7709 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
7710
7711         * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
7712         (mips*-*-linux*): Likewise.
7713
7714 2006-03-16  Roger Sayle  <roger@eyesopen.com>
7715             Daniel Speyer  <dspeyer@wam.umd.edu>
7716
7717         PR middle-end/18259
7718         * tree-dump.c (dump_real): New function.
7719         (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
7720         * Makefile.in (REAL_H): New macro for dependencies on real.h.
7721         (tree-dump.o): Add $(REAL_H) to the dependencies.
7722
7723 2006-03-16  Roger Sayle  <roger@eyesopen.com>
7724
7725         PR middle-end/21781
7726         * real.c (real_from_string): If the mantissa is zero, don't bother
7727         parsing the exponent as the result should always be zero.
7728
7729 2006-03-16  Andreas Krebbel  <krebbel1@de.ibm.com>
7730
7731         * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
7732
7733 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7734
7735         * config/ia64/ia64.c (stops_p): Added explicit initialization.
7736         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
7737         ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
7738         ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
7739         ia64_sched_finish_global): New static functions to implement
7740         hooks from gcc_target.sched.
7741         (spec_check_no, max_uid, pending_data_specs): New static variables.
7742         (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
7743         ia64_spec_check_src_p): New static functions.
7744         (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
7745         (TARGET_SCHED_ADJUST_COST): Removed.
7746         (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
7747         TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
7748         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
7749         TARGET_SCHED_GEN_CHECK,
7750         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
7751         TARGET_SCHED_SET_SCHED_FLAGS): New macros.
7752         (update_set_flags, group_barrier_needed, set_src_needs_barrier):
7753         Fixed to handle speculation checks.
7754         (rtx_needs_barrier): Fixed to handle speculative loads and
7755         their checks.
7756         (ia64_variable_issue): Added code to count speculative loads and their
7757         checks.
7758         (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
7759         speculative loads.
7760         (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
7761         New enumerations.
7762         (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
7763         New constants.
7764         (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
7765         (ia64_reorg): Reset stops_p to NULL after it is freed.
7766         * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
7767         UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
7768         (itanium_class): chk_s renamed to chk_s_i.  New constants: chk_s_f,
7769         chk_a.
7770         (data_speculative, control_speculative, check_load): New attributes.
7771         (mov<mode>_advanced, mov<mode>_speculative,
7772         mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
7773         zero_extend<mode>di2_speculative,
7774         zero_extend<mode>di2_speculative_advanced): New patterns for
7775         data and control speculative loads.
7776         (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
7777         check loads.
7778         (advanced_load_check_clr_<mode>, speculation_check_<mode>):
7779         New pattern for data and control speculation checks.
7780         (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
7781         ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
7782         reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
7783         Auxiliary definitions for the patterns.
7784         * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
7785         1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
7786         constraints.
7787         (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
7788         for speculation.
7789         (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
7790         * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
7791         2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
7792         New resource constraints.
7793         (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
7794         for speculation.
7795         (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
7796         * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
7797         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
7798         msched-in-control-spec, msched-ldc, msched-control-ldc,
7799         msched-spec-verbose, msched-prefer-non-data-spec-insns,
7800         msched-prefer-non-control-spec-insns,
7801         msched-count-spec-in-critical-path): New flags to tune speculative
7802         scheduling.
7803         * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
7804         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
7805         msched-in-control-spec, msched-ldc, msched-control-ldc,
7806         msched-spec-verbose, msched-prefer-non-data-spec-insns,
7807         msched-prefer-non-control-spec-insns,
7808         msched-count-spec-in-critical-path): Document new flags.
7809
7810 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7811
7812         * target.h (struct spec_info_def): New opaque declaration.
7813         (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
7814         speculate_insn, needs_block_p, gen_check,
7815         first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
7816         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
7817         TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
7818         TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
7819         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
7820         TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
7821         gcc_target.sched.
7822         (TARGET_SCHED): Use new macros.
7823         * rtl.h (copy_DEPS_LIST_list): New prototype.
7824         * sched-int.h (struct sched_info): Change signature of new_ready field,
7825         adjust all initializations. New fields: add_remove_insn,
7826         begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
7827         region_head_or_leaf_p.
7828         (struct spec_info_def): New structure declaration.
7829         (spec_info_t): New typedef.
7830         (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
7831         recovery_block, orig_pat.
7832         (glat_start, glat_end): New variables declaraions.
7833         (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
7834         New access macros.
7835         (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
7836         DETACH_LIFE_INFO, USE_GLAT.
7837         (enum SPEC_SCHED_FLAGS): New enumeration.
7838         (NOTE_NOTE_BB_P): New macro.
7839         (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
7840         attach_life_info, debug_spec_status, check_reg_live): New functions.
7841         (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
7842         all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
7843         sched-ebb.c
7844         (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
7845         * ddg.c (get_block_head_tail): Adjust all uses.
7846         * modulo-sched.c (get_block_head_tail): Adjust all uses.
7847         (sms_sched_info): Initialize new fields.
7848         (contributes_to_priority): Removed.
7849         * haifa-sched.c (params.h): New include.
7850         (get_block_head_tail): Adjust all uses.
7851         (ISSUE_POINTS): New macro.
7852         (glat_start, glat_end): New global variables.
7853         (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
7854         nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
7855         old_last_basic_block, before_recovery, current_sched_info_var,
7856         rgn_n_insns, luid): New static variables.
7857         (insn_cost1): New function.  Move logic from insn_cost to here.
7858         (find_insn_reg_weight1): New function.  Move logic from
7859         find_insn_reg_weight to here.
7860         (reemit_notes, move_insn, max_issue): Change signature.
7861         (move_insn1): Removed.
7862         (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
7863         extend_bb): New static functions to support extension of scheduler's
7864         data structures.
7865         (generate_recovery_code, process_insn_depend_be_in_spec,
7866         begin_speculative_block, add_to_speculative_block,
7867         init_before_recovery, create_recovery_block, create_check_block_twin,
7868         fix_recovery_deps): New static functions to support
7869         generation of recovery code.
7870         (fix_jump_move, find_fallthru_edge, dump_new_block_header,
7871         restore_bb_notes, move_block_after_check, move_succs): New static
7872         functions to support ebb scheduling.
7873         (init_glat, init_glat1, attach_life_info1, free_glat): New static
7874         functions to support handling of register live information.
7875         (associate_line_notes_with_blocks, change_pattern, speculate_insn,
7876         sched_remove_insn, clear_priorities, calc_priorities, bb_note,
7877         add_jump_dependencies): New static functions.
7878         (check_cfg, has_edge_p, check_sched_flags): New static functions for
7879         consistancy checking.
7880         (debug_spec_status): New function to call from debugger.
7881         (priority): Added code to handle speculation checks.
7882         (rank_for_schedule): Added code to distinguish speculative instructions.
7883         (schedule_insn): Added code to handle speculation checks.
7884         (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
7885         Fixed to handle ebbs.
7886         (move_insn): Added code to handle ebb scheduling.
7887         (max_issue): Added code to use ISSUE_POINTS of instructions.
7888         (choose_ready): Added code to choose between speculative and
7889         non-speculative instructions.
7890         (schedule_block): Added code to handle ebb scheduling and scheduling of
7891         speculative instructions.
7892         (sched_init): Initialize new variables.
7893         (sched_finish): Free new variables.  Print statistics.
7894         (try_ready): Added code to handle speculative instructions.
7895         * lists.c (copy_DEPS_LIST_list): New function.
7896         * sched-deps.c (extend_dependency_caches): New function.  Move logic
7897         from create_dependency_caches to here.
7898         (get_dep_weak, ds_merge): Make global.
7899         * genattr.c (main): Code to output prototype for
7900         dfa_clear_single_insn_cache.
7901         * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
7902         (output_dfa_clean_insn_cache_func): Code to output
7903         dfa_clear_single_insn_cache function.
7904         * sched-ebb.c (target_n_insns): Remove.  Adjust all users to use
7905         n_insns.
7906         (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
7907         Removed.
7908         (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
7909         New static variables.
7910         (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
7911         fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
7912         struct sched_info.
7913         (ebb_sched_info): Initialize new fields.
7914         (get_block_head_tail): Adjust all uses.
7915         (compute_jump_reg_dependencies): Fixed to use glat_start.
7916         (schedule_ebb): Code to remove unreachable last block.
7917         (schedule_ebbs): Added code to update register live information.
7918         * sched-rgn.c (region_sched_info): Initialize new fields.
7919         (get_block_head_tail): Adjust all uses.
7920         (last_was_jump): Removed.  Adjust users.
7921         (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
7922         add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
7923         Implement new hooks.
7924         (check_dead_notes1): New static function.
7925         (struct region): New fields: dont_calc_deps, has_real_ebb.
7926         (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
7927         (BB_TO_BLOCK): Fixed to handle EBBs.
7928         (EBB_FIRST_BB, EBB_LAST_BB): New macros.
7929         (ebb_head): New static variable.
7930         (debug_regions, contributes_to_priority): Fixed to handle EBBs.
7931         (find_single_block_regions, find_rgns, find_more_rgns): Initialize
7932         new fields.
7933         (compute_dom_prob_ps): New assertion.
7934         (check_live_1, update_live_1): Fixed to work with glat_start instead of
7935         global_live_at_start.
7936         (init_ready_list): New assertions.
7937         (can_schedule_ready_p): Split update code to begin_schedule_ready.
7938         (new_ready): Add support for BEGIN_CONTROL speculation.
7939         (schedule_insns): Fixed code that updates register live information
7940         to handle EBBs.
7941         (schedule_region): Fixed to handle EBBs.
7942         (init_regions): Use extend_regions and check_dead_notes1.
7943         * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
7944         PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
7945         * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
7946         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
7947         TARGET_SCHED_GEN_CHECK,
7948         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
7949         TARGET_SCHED_SET_SCHED_FLAGS): Document.
7950         * doc/invoke.texi (max-sched-insn-conflict-delay,
7951         sched-spec-prob-cutoff): Document.
7952
7953 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7954
7955         * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
7956         inter_tick, queue_index.
7957         (struct sched_info): Change signature of init_ready_list field.
7958         Adjust all initializations.
7959         (RESOLVED_DEPS): New access macro.
7960         (ready_add): Remove prototype.
7961         (try_ready): Add prototype.
7962         * sched-rgn.c (init_ready_list): Use try_ready.
7963         (schedule_region): Initialize
7964         current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
7965         * sched-ebb.c (new_ready): Remove.  Adjust ebb_sched_info.
7966         (init_ready_list): Use try_ready.
7967         (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
7968         * lists.c (remove_list_elem): Remove `static'.
7969         (remove_free_INSN_LIST_elem): New function.
7970         * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
7971         * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
7972         (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
7973         New constants.
7974         (readyp): New variable.
7975         (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
7976         change_queue_index, resolve_dep): New static functions.
7977         (try_ready): New function.  Adjust callers in sched-rgn.c and
7978         sched-ebb.c to use it instead of ready_add.
7979         (clock_var): Move at the begining of file.
7980         (rank_for_schedule): Fix typo.
7981         (queue_insn): Add assertion.  Handle QUEUE_INDEX.
7982         (ready_lastpos): Enforce assertion.
7983         (ready_add): Make it static.  Handle QUEUE_INDEX.  Add new argument,
7984         update all callers.
7985         (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
7986         (schedule_insn): Rewrite to use try_ready and resolve_dep.
7987         (queue_to_ready): Use free_INSN_LIST_list.
7988         (early_queue_to_ready): Fix typo.
7989         (schedule_block): Init readyp.  Move init_ready_list call after the
7990         initialization of clock_var.  Fix error in rejecting insn by
7991         targetm.sched.dfa_new_cycle.  Add call to fix_inter_tick.  Remove code
7992         that previously corrected INSN_TICKs.  Add code for handling
7993         QUEUE_INDEX.
7994         (set_priorities): Fix typo.
7995         (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
7996         Clarify comment and code that keeps current_sched_info->next_tail
7997         non-null.
7998
7999 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
8000
8001         * sched-rgn.c (extend_rgns): New static function.
8002         (find_rgns): Use it.
8003         (gather_region_statistics, print_region_statistics): New static
8004         functions.
8005         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
8006         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
8007
8008 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
8009             Andrey Belevantsev <abel@ispras.ru>
8010
8011         * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
8012         * lists.c (unused_deps_list): New variable.
8013         (free_list): Add assertions to verify the proper distinguishing
8014         between INSN_LISTs and DEPS_LISTs.
8015         (find_list_elem, remove_list_elem, remove_list_node): New static
8016         functions.
8017         (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
8018         remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
8019         remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
8020         (alloc_INSN_LIST): Assert that the list we're working on is indeed
8021         an INSN_LIST.
8022         (free_INSN_LIST_node): Likewise.
8023         * modulo-sched.c (current_sched_info): Initialize flags field.
8024         * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
8025         * rtl.def (DEPS_LIST): Define.
8026         * rtl.h: Declare new functions from lists.c.
8027         * sched-deps.c (spec_dependency_cache): New static variable.
8028         (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
8029         (add_dependence): Change return type to void.  Move the logic to ...
8030         (add_or_update_back_dep_1): ... here.  Handle speculative dependencies.
8031         (delete_all_dependences): Add comment about forward_dependency_cache.
8032         Handle spec_dependency_cache.  Handle DEPS_LISTs.
8033         (fixup_sched_groups): Clarify the change of priority of output
8034         and anti dependencies.
8035         (sched_analyze_2): Adjust add_dependence calls to create data
8036         speculative dependence.
8037         (add_forward_dependence): Renamed to add_forw_dep, change prototype.
8038         Adjust all callers.  Handle DEPS_LISTS.
8039         (compute_forward_dependences): Use add_forw_dep.  Sort LOG_LINKs in
8040         presence of speculation.
8041         (init_dependency_caches, free_dependency_caches):
8042         Handle spec_dependency_cache.
8043         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
8044         estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
8045         New static functions.
8046         (add_or_update_back_dep, add_or_update_back_forw_dep,
8047         add_back_forw_dep, delete_back_forw_dep): New functions.
8048         * sched-int.h (ds_t, dw_t): New typedefs.
8049         (struct sched_info): Add new field flags.
8050         (struct haifa_insn_data): Add new bitfield has_internal_dep.
8051         Prototype new sched-deps.c functions.
8052         (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
8053         (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
8054         MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
8055         BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
8056         SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
8057         SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
8058         New constants.
8059         (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
8060         New enums.
8061         * sched-rgn.c (current_sched_info): Initialize flags field.
8062         (schedule_insns): Initialize current_sched_info before the sched_init
8063         call.
8064         * sched-ebb.c (current_sched_info): Initialize flags field.
8065         (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
8066         Call add_or_update_back_dep instead of add_dependence.
8067         Create control speculative dependencies.
8068         (schedule_insns): Initialize current_sched_info before the sched_init
8069         call.
8070
8071 2006-03-16  Kaz Kojima  <kkojima@gcc.gnu.org>
8072
8073         * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
8074         fs->signal_frame.
8075         (sh_fallback_frame_state): Likewise.
8076
8077 2006-03-15  Geoffrey Keating  <geoffk@apple.com>
8078
8079         * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
8080         Do switch on default_use_cxa_atexit.
8081         (powerpc*-*-darwin*): Build crt2.o on powerpc.
8082         * config/darwin-crt3.o: New.
8083         * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
8084         to 10.3.  Pass '-multiply_defined suppress' if crt3.o is in use.
8085         (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
8086         OS version.
8087         * config/rs6000/t-darwin: Move crt2.o building to here.
8088         * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
8089         Mac OS version for using __cxa_get_exception_ptr.  Don't test versions
8090         of __cxa_atexit.
8091
8092 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8093
8094         * config/vax/vax.c (nonindexed_address_p): Change logical negation
8095         from '! xxx' to '!xxx' for coding-style conformance.
8096         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
8097         (EXTRA_CONSTRAINT): Likewise.
8098         * config/vax/vax.md (four unnamed insns): Likewise.
8099
8100 2006-03-15  Paul Brook  <paul@codesourcery.com>
8101
8102         * config/arm/arm.c (minipool_pad): New.
8103         (add_minipool_forward_ref): Include pool alignment padding in address
8104         calculation.
8105         (push_minipool_fix): Set minipool_pad.
8106         (minipool_pad): Ditto.
8107
8108 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8109
8110         * config/vax/vax.c (split_quadword_operands): Use MEM_P()
8111         instead of GET_CODE() == MEM and REG_P() instead of
8112         GET_CODE() == REG.
8113         (print_operand_address): Likewise.
8114         (vax_address_cost): Likewise.
8115         (vax_rtx_costs): Likewise.
8116         (vax_notice_update_cc): Likewise.
8117         (vax_output_int_add): Likewise.
8118         (INDEX_REGISTER_P): Likewise.
8119         (BASE_REGISTER_P): Likewise.
8120         (nonindexed_address_p): Likewise.
8121         (vax_mode_dependent_address_p): Likewise.
8122         * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
8123         (PRINT_OPERAND): Likewise.
8124         * config/vax/vax.md (ashlsi3): Likewise.
8125         (ashlsi3): Likewise.
8126         (some more unnamed insns): Likewise.
8127
8128 2006-03-15  Kazu Hirata  <kazu@codesourcery.com>
8129
8130         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
8131         iterator-style macro.
8132         (mark_control_dependent_edges_necessary): Update the use of
8133         EXECUTE_IF_CONTROL_DEPENDENT.
8134
8135 2006-03-15  J"orn Rennecke <joern.rennecke@st.com>
8136
8137         * config/sh/predicates.md (cache_address_operand): Special.
8138         (ua_address_operand): Likewise.
8139
8140 2006-03-15  Zdenek Dvorak <dvorakz@suse.cz>
8141
8142         * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
8143         loop notes.
8144         * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
8145
8146 2006-03-15  Andreas Schwab  <schwab@suse.de>
8147
8148         * gensupport.c (identify_predicable_attribute): Don't free p_false
8149         when it is still in use.
8150
8151 2006-03-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
8152
8153         * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
8154         the default setting here.
8155
8156 2006-03-14  Steven Bosscher  <stevenb.gcc@gmail.com>
8157
8158         * tree-pass.h (pass_cfg): Remove.
8159         * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
8160         * passes.c (pass_cfg): Don't run it.
8161
8162 2006-03-14  Kazu Hirata  <kazu@codesourcery.com>
8163
8164         * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
8165         * reg-stack.c (stack_regs_mentioned_data): Change the type to
8166         VEC(char,heap) *.
8167         (stack_regs_mentioned): Update the uses of
8168         stack_regs_mentioned_data.  Don't access the array beyond its
8169         end.
8170         (reg_to_stack): Update the uses of stack_regs_mentioned_data.
8171         Don't include gt-reg-stack.h.
8172
8173         * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
8174         * system.h (UNALIGNED_WORD_ASM_OP): Poison.
8175
8176         * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
8177
8178         PR middle-end/26684
8179         * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
8180         STACK_REGS.
8181
8182 2006-03-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8183
8184         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
8185
8186 2006-03-14  Richard Guenther  <rguenther@suse.de>
8187
8188         PR tree-optimization/26672
8189         * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
8190         SSA form.
8191
8192 2006-03-14  Richard Guenther  <rguenther@suse.de>
8193
8194         PR tree-optimization/26667
8195         * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
8196         node for the callees.  Always allow inlining if it will shrink
8197         the function size.
8198
8199 2006-03-14  Richard Guenther  <rguenther@suse.de>
8200
8201         PR middle-end/26659
8202         * builtins.c (get_pointer_alignment): Prefer alignment
8203         information from decls over that from types.
8204
8205 2006-03-14  Andrew Pinski  <pinskia@physics.uc.edu>
8206
8207         PR target/26657
8208         * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
8209
8210 2006-03-14  Joseph S. Myers  <joseph@codesourcery.com>
8211
8212         * config/rs6000/rs6000.opt (mdlmzb): New option.
8213         (msched-prolog, msched-epilog): Use Var not Mask.
8214         * doc/invoke.texi (-mdlmzb): Document.
8215         * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
8216         MASK_SCHED_PROLOG.
8217         (rs6000_override_options): Enable -mdlmzb for 405 and 440.
8218         * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
8219
8220 2006-03-13  Uttam Pawar  <uttamp@us.ibm.com>
8221
8222         PR rtl-optimization/25739
8223         * bt-load.c (augment_live_range): Free tos pointer.
8224
8225         * gensupport.c (identify_predicable_attribute): Free
8226         p_false pointer.
8227         * gcov.c (create_file_names): Free name pointer.
8228
8229 2006-03-13  Roger Sayle  <roger@eyesopen.com>
8230
8231         PR middle-end/26557
8232         * stmt.c (emit_case_nodes): Handle the case where the index is a
8233         CONST_INT, where the comparison mode is specified by the index type.
8234
8235 2006-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8236
8237         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
8238         is defined.
8239
8240 2006-03-13  Richard Sandiford  <richard@codesourcery.com>
8241
8242         * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
8243         (*branch_fp_inverted): Likewise.
8244
8245 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
8246
8247         PR middle-end/25989
8248         * omp-low.c (expand_omp_for_generic): Mark istart0
8249         and iend0 as addressable.
8250
8251 2006-03-13  Jie Zhang  <jie.zhang@analog.com>
8252
8253         * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
8254
8255 2006-03-13  Jeff Law  <law@redhat.com>
8256
8257         * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
8258         virtual operands are interesting.
8259         (vrp_visit_stmt): Corresponding changes.
8260
8261 2006-03-13  Bernd Schmidt  <bernd.schmidt@analog.com>
8262
8263         * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
8264         of RETS.
8265         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
8266         TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
8267         * config/bfin/crti.S: Use it instead of __PIC__.
8268         * config/bfin/crtn.S: Likewise.
8269
8270         * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
8271         call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
8272         not if flag_pic.
8273         Lose 'G' modifier for call operand.
8274         * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
8275         recognize 'G' modifier.
8276
8277 2006-03-13  Eric Botcazou  <ebotcazou@adacore.com>
8278
8279         PR middle-end/18859
8280         * gimplify.c (gimplify_switch_expr): Discard empty ranges.
8281         * stmt.c (expand_case): Likewise.
8282
8283 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
8284
8285         PR rtl-optimization/26254
8286         * loop-invariant.c (seq_insns_valid_p): New function.
8287         (move_invariant_reg): Only emit new code if it is valid.
8288
8289 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
8290
8291         * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
8292         Removed.
8293         (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
8294         (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
8295         (commit_one_edge_insertion): Do not look for loop notes.
8296
8297 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
8298
8299         * jump.c (follow_jumps): Do not check for loop notes.  Move check for
8300         flag_test_coverage out of loop.
8301
8302 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
8303
8304         * final.c (shorten_branches): Remove outdated comment, and turn
8305         the if branch that guards it to continue.
8306
8307 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
8308
8309         * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
8310         * cfgloop.h (struct loop): Remove unused fields.
8311
8312 2006-03-13  Kazu Hirata  <kazu@codesourcery.com>
8313
8314         * doc/invoke.texi (-fdump-rtl-loop): Remove.
8315         (-dL, -fdump-rtl-loop2): Update the dump file names
8316
8317         * doc/invoke.texi: Update dump file names.
8318
8319 2006-03-12  Steven Bosscher  <stevenb.gcc@gmail.com>
8320
8321         * predict.c (estimate_probability): Remove.
8322         * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
8323         * basic-block.h (estimate_probability): Remove prototype.
8324         * passes.c (finish_optimization_passes): Dump branch prediction or
8325         profiling heuristics to the .profile tree dump.
8326         (init_optimization_passes): Unqueue pass_branch_prob.
8327
8328         * doc/invoke.texi (-fdump-rtl-bp): Remove.
8329
8330 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
8331
8332         * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
8333         * rtl.h (LABEL_NEXTREF): Remove field accessor.
8334
8335 2006-03-11  Eric Botcazou  <ebotcazou@adacore.com>
8336
8337         * function.h (frame_offset_overflow): Declare.
8338         * function.c (frame_offset_overflow): New function.
8339         (assign_stack_local_1): Call it to detect that the offset overflows.
8340         * cfgexpand.c (alloc_stack_frame_space): Likewise.
8341
8342 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
8343
8344         * config/sh/sh.c: Include alloc-pool.h.
8345         (label_ref_list_pool): New alloc pool.
8346         (label_ref_list_t): New type for lists of labels.
8347         (struct pool_node): Make wend a label_ref_list_t.
8348         (add_constant): Use the new type, eradicate LABEL_NEXTREF
8349         references.
8350         (dump_table): Likewise.
8351         (sh_reorg): Set up the alloc pool before using add_constant and
8352         dump_table, and destroy it when finishing.
8353
8354 2006-03-11  Richard Sandiford  <richard@codesourcery.com>
8355
8356         * config/mips/mips.c: Remove redundant comment.
8357
8358 2006-03-10  Jason Merrill  <jason@redhat.com>
8359
8360         PR c/26004
8361         * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
8362         the target was declared 'register'.
8363
8364 2006-03-10  Adam Nemet  <anemet@caviumnetworks.com>
8365
8366         * genpreds.c (write_insn_constraint_len): Change definition of
8367         insn_constraint_len to return size_t to match the declaration.
8368
8369 2006-03-10  DJ Delorie  <dj@redhat.com>
8370
8371         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
8372         start at zero.
8373         (m32c_expand_insv): Fix test for an AND mask.
8374
8375 2006-03-10  Richard Guenther  <rguenther@suse.de>
8376
8377         PR middle-end/26565
8378         * builtins.c (get_pointer_alignment): Handle component
8379         references for field alignment.
8380
8381 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
8382
8383         * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
8384         when building with libgloss.
8385         (sh*elf): Implement --without-fp option.
8386         (sh64-superh-linux*): Don't multilib.
8387
8388 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
8389
8390         * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
8391
8392 2006-03-09  Andrew Pinski  <pinskia@physics.uc.edu>
8393
8394         * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
8395         Set it when one of the replacement functions returned true.
8396         Return TODO_cleanup_cfg if cfgchanged is true.
8397         (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
8398
8399 2006-03-09  Adam Nemet  <anemet@caviumnetworks.com>
8400
8401         * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
8402         instead of gen_lowpart.
8403
8404 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
8405
8406         * config/mips/mips-protos.h (mips_output_conditional_branch): Change
8407         interface.
8408         (mips_output_order_conditional_branch): Declare.
8409         * config/mips/mips.h (MIPS_BRANCH): New macro.
8410         * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
8411         for the comparison.  Use gen_condjump.
8412         (mips_output_conditional_branch): Rework interface to take the
8413         asm templates for a direct branch and the inverse of a direct branch.
8414         (mips_output_order_conditional_branch): New function.
8415         (mips_builtin_branch_and_move): New function.
8416         (mips_expand_builtin_compare): Use it.  Use VOIDmode for the
8417         branch condition.  Use gen_single_cc as the condition for
8418         __builtin_mips_upper_* or __builtin_mips_lower_*.
8419         (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
8420         Use VOIDmode for the branch condition.
8421         * config/mips/predicates.md (order_operator): New predicate.
8422         * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
8423         (branch_fp): Rename to...
8424         (*branch_fp): ...this.  Remove mode from comparison operator.
8425         Use new mips_output_conditional_branch interface.
8426         (branch_fp_inverted): Rename to...
8427         (*branch_fp_inverted): ...this and update as for *branch_fp.
8428         (*branch_zero<mode>): Rename to...
8429         (*branch_order<mode>): ...this.  Remove mode from comparison operator.
8430         Use mips_output_order_conditional_branch.  Only accept ordered
8431         comparisons.
8432         (*branch_zero<mode>_inverted): Rename to...
8433         (*branch_order<mode>_inverted): ...this and update as for
8434         *branch_order<mode>.
8435         (*branch_equality<mode>): Accept zero as the second operand to
8436         the equality operator.  Use the new mips_output_conditional_branch
8437         interface.
8438         (*branch_equality<mode>_inverted): Likewise.
8439         (condjump): New expander.
8440         * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
8441         operator.
8442         * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
8443         (bc1any2t, bc1any2f): Likewise.
8444         (single_cc): New expander.
8445         (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
8446
8447 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
8448
8449         * doc/md.texi: Update documentation of MIPS constraints.
8450         * config/mips/constraints.md: New file.
8451         * config/mips/mips.md: Include it.
8452         * config/mips/mips.c (mips_char_to_class): Delete.
8453         (override_options): Don't initialize mips_char_to_class.
8454         * config/mips/mips.h (mips_char_to_class): Delete.
8455         (REG_CLASS_FROM_LETTER): Delete.
8456         (CONST_OK_FOR_LETTER_P): Delete.
8457         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8458         (EXTRA_CONSTRAINT_Y): Delete.
8459         (EXTRA_CONSTRAINT_STR): Delete.
8460         (CONSTRAINT_LEN): Delete.
8461         (EXTRA_MEMORY_CONSTRAINT): Delete.
8462
8463 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
8464
8465         * tree-cfg.c (move_block_to_fn): Remove the statements from the
8466         original fn's eh regions.
8467
8468 2006-03-09  Eric Botcazou  <ebotcazou@adacore.com>
8469
8470         * fold-const.c (build_range_check): Make sure to use a valid type to
8471         apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
8472         transformation.
8473
8474         (range_predecessor): New static function.
8475         (range_successor): Likewise.
8476         (merge_ranges): Use them to compute predecessors and successors of
8477         range bounds.
8478
8479 2006-03-09  Roger Sayle  <roger@eyesopen.com>
8480
8481         PR middle-end/26561
8482         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
8483         X op C3, consider whether C3 overflows towards +Inf or -Inf.
8484
8485 2006-03-08  DJ Delorie  <dj@redhat.com>
8486
8487         * config/m32c/addsub.md (addqi3): Disparage a0/a1.
8488         (addpsi3): Expand to include memory operands.  Remove
8489         reload-specific splits.
8490         * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
8491         (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
8492         (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
8493         (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
8494         (shift1_qi, shift1_hi, insv): New.
8495         * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
8496         (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
8497         cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
8498         cond_to_int): New.
8499         * config/m32c/m32c-protos.h: Update as needed.
8500         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
8501         default the Rcr, Rcl, Raw, and Ral constraints.  Add Ra0 and Ra1.
8502         Fail for unrecognized R* constraints.
8503         (m32c_cannot_change_mode_class): Be more picky about pseudos.
8504         (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
8505         (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
8506         Add Sp constraint.
8507         (m32c_init_libfuncs): New.
8508         (m32c_legitimate_address_p): Add debug wrapper.
8509         (m32c_rtx_costs): New.
8510         (m32c_address_cost): New.
8511         (conversions): Add 'B' prefix.
8512         (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
8513         operands, or word regnames for QI operands.  'B' prints bit
8514         position.
8515         (m32c_expand_setmemhi): New.
8516         (m32c_expand_movmemhi): New.
8517         (m32c_expand_movstr): New.
8518         (m32c_expand_cmpstr): New.
8519         (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
8520         (m32c_expand_neg_mulpsi3): Handle non-ints.
8521         (m32c_cmp_flg_0): New.
8522         (m32c_expand_movcc): New.
8523         (m32c_expand_insv): New.
8524         (m32c_scc_pattern): New.
8525         * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS.  Take
8526         a0/a1 out of SIregs.
8527         (STORE_FLAG_VALUE): New.
8528         * config/m32c/m32c.md: Add unspecs for string moves.  Define various mode and
8529         code macros.
8530         (no_insn): New.
8531         * config/m32c/mov.md: Make constraints more liberal.
8532         (zero_extendqihi2): Optimize r0/r1 case.
8533         * config/m32c/muldiv.md (mulpsi3): Check for intvals.
8534         * config/m32c/predicates.md (m32c_any_operand): New.
8535         (m32c_nonimmediate_operand): New.
8536         (m32c_hl_operand): New.
8537         (m32c_r3_operand): New.
8538         (ap_operand): New.
8539         (ma_operand): New.
8540         (memsym_operand): New.
8541         (memimmed_operand): New.
8542         (a_qi_operand): New.
8543         (m32c_eqne_operator): New.
8544         (m32c_1bit8_operand): New.
8545         (m32c_1bit16_operand): New.
8546         (m32c_1mask8_operand): New.
8547         (m32c_1mask16_operand): New.
8548         * config/m32c/blkmov.md: New file.
8549         * config/m32c/t-m32c (MD_FILES): Add blkmov.
8550
8551 2006-03-08  Andreas Tobler  <a.tobler@schweiz.ch>
8552
8553         * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
8554         unsigned to fix signed/unsigned comparison issue in
8555         DWARF2_FRAME_REG_OUT.
8556         (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
8557         unsigned comparison issue in DWARF2_FRAME_REG_OUT.
8558
8559         * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
8560         of ptr into the ENABLE_CHECKING section.
8561
8562 2006-03-08  Jeff Law  <law@redhat.com>
8563
8564         * tree-vrp.c (infer_value_range): Only count pointer uses
8565         and dereferences if -fdelete-null-pointer-checks is enabled.
8566
8567         * tree-vrp.c (find_assert_locations): Infer value ranges for
8568         single use pointers, but do not create ASSERT_EXPRs for them.
8569         When a non-null range is inferred for a pointer, backwards
8570         propagate that range to other equivalent pointers through the
8571         use-def chain.
8572
8573 2006-03-08  Paolo Bonzini  <bonzini@gnu.org>
8574
8575         PR bootstrap/26500
8576         * Makefile.in (dvi, html, install-info): Invoke the corresponding
8577         language hook targets.
8578         * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
8579         objcp/Make-lang.in: Create stub rules for dvi, html, install-info
8580         if language hook targets were missing.
8581
8582 2006-03-07  Zdenek Dvorak <dvorakz@suse.cz>
8583
8584         * tree-ssa-opfinalize.h: Removed.
8585         * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
8586         dependency.
8587         * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
8588         (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
8589         INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
8590         add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
8591         finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
8592         finalize_ssa_v_must_def_ops): New.
8593
8594 2006-03-07  Kenneth Zadeck <zadeck@naturalbridge.com>
8595
8596         * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
8597         block as parameter.
8598
8599 2006-03-07  Geoffrey Keating  <geoffk@apple.com>
8600
8601         * varasm.c (assemble_end_function): Say that 'fnname' is unused.
8602
8603         * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
8604         addresses with offsets; reorganize.
8605
8606         * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
8607         (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
8608         (expand_builtin_init_dwarf_reg_sizes): Likewise.
8609
8610 2006-03-08  David Billinghurst <David.Billinghurst@riotinto.com>
8611
8612         PR target/26588
8613         * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
8614
8615 2006-03-08  Ben Elliston  <bje@au.ibm.com>
8616
8617         * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
8618
8619 2006-03-07  Aldy Hernandez  <aldyh@redhat.com>
8620
8621         PR gomp/26238
8622         * doc/passes.texi (Tree-SSA passes): Document omp lowering and
8623         expansion.
8624
8625 2006-03-07  Richard Guenther  <rguenther@suse.de>
8626
8627         PR tree-optimization/26587
8628         * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
8629
8630 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
8631
8632         * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
8633
8634 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
8635
8636         * hooks.c (hook_bool_mode_rtx_true): New function.
8637         * hooks.h (hook_bool_mode_rtx_true): Declare.
8638         * toplev.c (compile_file): Call output_shared_constant_pool.
8639         * varasm.c (shared_constant_pool): New variable.
8640         (assemble_start_function, assemble_end_function): Remove arguments
8641         from call to output_constant_pool.
8642         (create_constant_pool): New function, split out from...
8643         (init_varasm_status): ...here.
8644         (force_const_mem): Choose between the shared and per-function constant
8645         pools.  Set current_function_uses_const_pool when reusing old entries
8646         as well as when creating new ones.
8647         (mark_constant): Ignore data argument.
8648         (mark_constants): Remove pool argument.
8649         (mark_constant_pool): Likewise.  Use current_function_uses_const_pool
8650         to decide whether the function uses a constant pool.
8651         (output_constant_pool_contents): New function, split out from...
8652         (output_constant_pool): ...here.
8653         (output_shared_constant_pool): New function.
8654         (init_varasm_once): Initialize shared_constant_pool.
8655         * output.h (output_constant_pool): Delete.
8656         (output_shared_constant_pool): Declare.
8657         * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
8658         * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
8659
8660 2006-03-06  Nick Clifton  <nickc@redhat.com>
8661
8662         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
8663         flag_strength_reduce.
8664
8665 2006-03-06  Ben Elliston  <bje@au.ibm.com>
8666
8667         * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
8668         x86_64-*-linux* configurations.
8669
8670         * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
8671         (LIBGCC2_WORDS_BIG_ENDIAN): Define.
8672
8673 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
8674
8675         * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
8676         Remove.
8677         * basic-block.h: Remove the extern for
8678         rediscover_loops_after_threading.
8679
8680         * cfgloop.c (cancel_loop): Make it static.
8681         * cfgloop.h: Remove the prototype for cancel_loop.
8682
8683         * flow.c (recompute_reg_usage): Make it static.
8684         * rtl.h: Remove the prototype for recompute_reg_usage.
8685
8686         * function.c (use_return_register): Make it static.
8687         * function.h: Remove the prototype.
8688
8689 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
8690
8691         * recog.c (volatile_mem_p, validate_change_maybe_volatile):
8692         Remove.
8693         * recog.h: Remove the prototype for
8694         validate_change_maybe_volatile.
8695
8696 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
8697
8698         * rtlanal.c (replace_reg): Remove.
8699         * rtl.h: Remove the prototype for replace_reg.
8700
8701 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
8702
8703         * regclass.c (reg_scan_update): Remove.
8704         (reg_scan_mark_refs): Remove the last argument.
8705         * rtl.h: Remove the prototype for reg_scan_update.
8706
8707 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8708
8709         * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
8710         combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
8711         config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
8712         config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
8713         df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
8714         loop-invariant.c, omp-low.c, opts.c, passes.c,
8715         rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
8716         tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
8717         tree-ssa-structalias.c, tree-ssa-threadedge.c,
8718         tree-ssa-threadupdate.c, tree-vect-patterns.c,
8719         tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
8720         unwind-dw2.c: Fix comment typos.  Follow spelling conventions.
8721
8722 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8723
8724         * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
8725         * dwarf2out.h: Remove the prototype for
8726         dwarf2out_add_library_unit_info.
8727
8728 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8729
8730         * tree.c (add_var_to_bind_expr): Remove.
8731         * tree.h: Remove the prototype for add_var_to_bind_expr.
8732
8733 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8734
8735         * regclass.c (n_non_fixed_regs): Remove.
8736         (init_reg_sets_1, globalize_reg): Remove all uses of
8737         n_non_fixed_regs.
8738         * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
8739
8740 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8741
8742         * rtlanal.c (insns_safe_to_move_p): Remove.
8743         * rtl.h: Remove the prototype for insns_safe_to_move_p.
8744
8745 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
8746
8747         * expmed.c (expand_mult_add): Remove.
8748         * expr.h: Remove the prototype for expand_mult_add.
8749
8750 2006-03-04  Jakub Jelinek  <jakub@redhat.com>
8751
8752         * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
8753         and REG_SAVED_VAL_EXP constants.
8754         * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
8755         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
8756         Handle regs stored by value.
8757         (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
8758         (execute_cfa_program): Handle DW_CFA_val_offset,
8759         DW_CFA_val_offset_sf and DW_CFA_val_expression.
8760         (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
8761         value specially.  Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
8762         (uw_install_context_1): Handle target regs stored by value.
8763
8764 2006-03-03  Daniel Berlin  <dberlin@dberlin.org>
8765
8766         * tree-sra.c (tree_sra): Return todoflags;
8767         (generate_one_element): Set TODO_update_smt_usage if needed.
8768         (pass_sra): Remove TODO_update_smt_usage.
8769         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
8770         parameter.
8771         (tree_ssa_forward_propagate_single_use_vars): Return
8772         TODO_update_smt_usage if we need to update SMT usage.
8773         (pass_forwprop): Remove TODO_update_smt_usage.
8774
8775 2006-03-03  Diego Novillo  <dnovillo@redhat.com>
8776
8777         * tree-ssa-operands.c: Tidy whitespace.  Fix spelling.
8778         (correct_use_link): Remove reference to get_stmt_operands.
8779         (update_stmt_operands): Likewise.
8780         (get_modify_expr_operands): New function factored out of
8781         parse_ssa_operands and get_expr_operands.
8782         Try to create V_MUST_DEFs for LHS by default.
8783         (get_expr_operands) <case MODIFY_EXPR>: Call
8784         get_modify_expr_operands.
8785         <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
8786         <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
8787         (parse_ssa_operands) <case MODIFY_EXPR>: Call
8788         get_modify_expr_operands.
8789
8790 2006-03-03  Kazu Hirata  <kazu@codesourcery.com>
8791
8792         * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
8793         * tree-flow.h: Remove the prototype for
8794         referenced_var_lookup_if_exists.
8795
8796 2006-03-03  Steve Ellcey  <sje@cup.hp.com>
8797
8798         PR rtl-optimization/26345
8799         PR target/19061
8800         * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
8801
8802 2006-03-03  Roger Sayle  <roger@eyesopen.com>
8803
8804         PR tree-optimization/26524
8805         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
8806         fold_convert to create a constant of the appropriate type.
8807
8808 2006-03-03  Richard Sandiford  <richard@codesourcery.com>
8809
8810         * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
8811         SYMBOL_REF_IN_BLOCK_P.
8812         * doc/rtl.texi: Likewise.  Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
8813         of SYMBOL_FLAG_IN_BLOCK.
8814         * gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
8815         instead of SYMBOL_REF_IN_BLOCK_P.
8816         * explow.c (use_anchored_address): Likewise.
8817         * rtl.c (rtx_size): Likewise.
8818         * varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
8819         instead of SYMBOL_FLAG_IN_BLOCK.
8820         (make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
8821         SYMBOL_REF_IN_BLOCK_P.
8822         (assemble_variable): Likewise.
8823         (output_constant_def_contents): Likewise.
8824         (output_constant_pool): Likewise.
8825         (default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
8826         instead of SYMBOL_FLAG_IN_BLOCK.
8827         * rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
8828         SYMBOL_REF_IN_BLOCK_P.
8829         (SYMBOL_REF_BLOCK): Likewise.
8830         (SYMBOL_REF_OFFSET): Likewise.
8831         (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
8832         SYMBOL_REF_IN_BLOCK_P.
8833         (SYMBOL_FLAG_IN_BLOCK): Replace with...
8834         (SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
8835         (SYMBOL_REF_IN_BLOCK_P): Replace with...
8836         (SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.
8837
8838 2006-03-03  Jakub Jelinek  <jakub@redhat.com>
8839
8840         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Fix pasto.
8841
8842 2006-03-02  Roger Sayle  <roger@eyesopen.com>
8843
8844         * simplify-rtx.c (simplify_unary_operation): When simplifying
8845         (neg (lt X 0)) into (ashiftrt X C) or (lshiftrt X C), make sure
8846         that we perform the right shift in the appropriate mode, and
8847         then extend or truncate the result to requested mode.
8848
8849 2006-03-03  Zdenek Dvorak <dvorakz@suse.cz>
8850
8851         * gengtype.c (main): Handle double_int type.
8852         * tree.h (struct tree_int_cst): Make type of int_cst double_int.
8853         * double-int.c: New file.
8854         * double-int.h: New file.
8855         * system.h: Include doubleint.h.
8856         * Makefile.in (SYSTEM_H): Include double-int.h.
8857         (double-int.o): Add.
8858
8859 2006-03-03  Joseph S. Myers  <joseph@codesourcery.com>
8860
8861         PR bootstrap/26478
8862         * Makefile.in (stmp-int-hdrs): Remove include/unwind.h before
8863         copying over it.
8864
8865 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
8866
8867         * tree-vrp.c (remove_range_assertions): Do not update statements
8868         unnecessarily.
8869
8870 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
8871
8872         * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
8873         cleanup.
8874         * gcse.c (rest_of_handle_gcse): Ditto.
8875         * except.c (gate_handle_eh): Ditto.
8876         * cfgcleanup.c (rest_of_handle_jump2): Ditto.
8877         * basic-block.h (CLEANUP_PRE_LOOP): Remove.
8878
8879 2006-03-02  Eric Christopher  <echristo@apple.com>
8880
8881         * config/i386/i386.c (machopic_output_stub): Add indirection to
8882         jump.
8883
8884 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
8885
8886         * loop.c: Removed.
8887
8888 2006-03-02  David S. Miller  <davem@sunset.davemloft.net>
8889
8890         Sun Niagara specific optimizations.
8891         * config.gcc: Recognize niagara as target.
8892         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Mention Niagara.
8893         (TARGET_CPU_niagara): Define.
8894         (CPP_CPU64_DEFAULT_SPEC): Define __sparc_v9__ for Niagara.
8895         (ASM_CPU64_DEFAULT_SPEC): Pass -Av9b for Niagara.
8896         (CPP_CPU_SPEC): Handle -mcpu=niagara.
8897         (ASM_CPU_SPEC): Likewise.
8898         (PROCESSOR_NIAGARA): New enum entry.
8899         (REGISTER_MOVE_COST): Handle Niagara.
8900         (BRANCH_COST, PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): Likewise.
8901         * config/sparc/sparc.c (niagara_costs): New processor_costs entry.
8902         (sparc_override_options): Recognize "niagara", set appropriate
8903         default MASK_* values for it, and align functions to 32-bytes
8904         by default just like ULTRASPARC/ULTRASPARC3.
8905         (sparc_initialize_trampoline): Handle niagara like ultrasparc.
8906         (sparc64_initialize_trampoline): Likewise.
8907         (sparc_use_sched_lookahead): Use zero for niagara.
8908         (sparc_issue_rate): Use one for niagara.
8909         * config/sparc/niagara.md: New file.
8910         * config/sparc/sparc.md: Include it.
8911         * config/sparc/sol2-bi.h (CPP_CPU64_DEFAULT_SPEC,
8912         ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Set appropriately
8913         when default cpu is niagara.
8914         (CPP_CPU_SPEC): Handle -mcpu=niagara.
8915         (ASM_CPU_SPEC): Likewise.
8916         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Set appropriately
8917         when default cpu is niagara.
8918         (ASM_CPU_SPEC): Handle -mcpu=niagara.
8919         * config/sparc/linux64.h: Handle a default of TARGET_CPU_niagara
8920         just like v9/ultrasparc/ultrasparc3.
8921         * doc/invoke.texi: Add documentation for "niagara" and improve
8922         existing documentation for ultrasparc variants.
8923
8924 2006-03-02  Diego Novillo  <dnovillo@redhat.com>
8925
8926         * tree-ssa-operands.c (update_stmt_operands): Update documentation.
8927
8928 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
8929
8930         * doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
8931         (ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
8932         and say that only one is needed.
8933         * doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
8934         * target.h (have_switchable_bss_sections): New hook.
8935         * explow.c (use_anchored_address): Check that the symbol is in a block.
8936         * varasm.c (tls_comm_section, comm_section, lcomm_section)
8937         (bss_noswitch_section): New variables.
8938         (get_unnamed_section): Add SECTION_UNNAMED to the flags.
8939         (get_noswitch_section): New function.
8940         (get_block_for_section): Allow SECT to be null.
8941         (unlikely_text_section_p): Use SECTION_STYLE.
8942         (bss_initializer_p): New function.
8943         (get_variable_section): Move earlier in file.  Take a new argument,
8944         prefer_noswitch_p.  Move bss checks from assemble_variable to here.
8945         Return one of the new *_sections in such cases.
8946         (get_block_for_decl): New function, extracting some logic from
8947         use_blocks_for_decl_p.
8948         (change_symbol_section): Remove in favor of...
8949         (change_symbol_block): ...this new function.
8950         (use_blocks_for_decl_p): Remove checks now performed by
8951         get_block_for_decl.
8952         (make_decl_rtl): Use change_symbol_block and get_block_for_decl.
8953         (ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
8954         (emit_local, emit_bss, emit_common): ...these new functions.
8955         Return true if the alignment was honored.
8956         (emit_tls_common): New function.
8957         (asm_emit_uninitialised): Delete.
8958         (assemble_variable_noswitch): New function, split out from...
8959         (assemble_variable): ...here.  Don't make decisions about common
8960         variables here.  Globalize all public decls that go into non-common
8961         sections.  Check whether SYMBOL_REF_BLOCK is null.
8962         (output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
8963         (output_constant_pool): Likewise.
8964         (init_varasm_once): Initialize the new section variables.
8965         (have_global_bss_p): New function.
8966         (categorize_decl_for_section): Use bss_initializer_p.
8967         (switch_to_section): Use SECTION_STYLE.  Abort for SECTION_NOSWITCH.
8968         (place_block_symbol): Assert that the symbol must be in a block.
8969         * target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
8970         (TARGET_INITIALIZER): Include it.
8971         * rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
8972         * output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
8973         (SECTION_MACH_DEP): Bump by two.
8974         (SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
8975         (unnamed_section): Mention SECTION_UNNAMED in comment.
8976         (named_section): Likewise SECTION_NAMED.
8977         (noswitch_section_callback): New type.
8978         (noswitch_section): New structure.
8979         (section): Add a noswitch_section alternative.
8980         (SECTION_STYLE): New macro.
8981         (tls_comm_section, comm_section, lcomm_section): Declare.
8982         (bss_noswitch_section, have_global_bss_p): Declare.
8983         * config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
8984         * config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
8985         Override.
8986         * config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
8987         * config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
8988         Override.
8989
8990 2006-03-02  Daniel Berlin <dberlin@dberlin.org>
8991
8992         * tree-vrp.c (execute_vrp): Return value.
8993         * regrename.c (rest_of_handle_regrename): Ditto.
8994         * tree-into-ssa.c (rewrite_into_ssa): Ditto.
8995         * tree-complex.c (tree_lower_complex): Ditto.
8996         (tree_lower_complex_O0): Ditto.
8997         * tracer.c (rest_of_handle_tracer): Ditto.
8998         * postreload-gcse.c (rest_of_handle_gcse2): Ditto.
8999         * postreload.c (rest_of_handle_postreload): Ditto.
9000         * tree-tailcall.c (execute_tail_recursion): Ditto.
9001         (execute_tail_calls): Ditto.
9002         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
9003         * tree.h (init_function_for_compilation): Ditto.
9004         * ipa-cp.c (ipcp_driver): Ditto.
9005         * tree-scalar-evolution.c (scev_const_prop): Ditto.
9006         * tree-scalar-evolution.h (scev_const_prop): Ditto.
9007         * final.c (compute_alignments): Ditto.
9008         (rest_of_handle_final): Ditto.
9009         (rest_of_handle_shorten_branches): Ditto.
9010         (rest_of_clean_state): Ditto.
9011         * omp-low.c (execute_expand_omp): Ditto.
9012         (execute_lower_omp): Ditto.
9013         * tree-ssa-dse.c (tree_ssa_dse): Ditto.
9014         * ipa-reference.c (static_execute): Ditto.
9015         * tree-ssa-uncprop.c (tree_ssa_uncprop): Ditto.
9016         * reorg.c (rest_of_handle_delay_slots): Ditto.
9017         (rest_of_handle_machine_reorg): Ditto.
9018         * cgraphunit.c (rebuild_cgraph_edges): Ditto.
9019         * flow.c (recompute_reg_usage): Ditto.
9020         (rest_of_handle_remove_death_notes): Ditto.
9021         (rest_of_handle_life): Ditto.
9022         (rest_of_handle_flow2): Ditto.
9023         * tree-ssa-copyrename.c (rename_ssa_copies): Ditto.
9024         * tree-ssa-ccp.c (do_ssa_ccp): Ditto.
9025         (do_ssa_store_ccp): Ditto.
9026         (execute_fold_all_builtins): Ditto.
9027         * mode-switching.c (rest_of_handle_mode_switching): Ditto.
9028         * modulo-sched.c (rest_of_handle_sms): Ditto.
9029         * ipa-pure-const.c (static_execute): Ditto.
9030         * cse.c (rest_of_handle_cse): Ditto.
9031         (rest_of_handle_cse2): Ditto.
9032         * web.c (rest_of_handle_web): Ditto.
9033         * tree-stdarg.c (execute_optimize_stdarg): Ditto.
9034         * tree-ssa-math-opts.c (execute_cse_reciprocals): Ditto.
9035         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
9036         * tree-nrv.c (tree_nrv): Ditto.
9037         (execute_return_slot_opt): Ditto.
9038         * tree-ssa-alias.c (compute_may_aliases): Ditto.
9039         (create_structure_vars): Ditto.
9040         * loop-init.c (rtl_loop_init): Ditto.
9041         (rtl_loop_done): Ditto.
9042         (rtl_move_loop_invariants): Ditto.
9043         (rtl_unswitch): Ditto.
9044         (rtl_unroll_and_peel_loops): Ditto.
9045         (rtl_doloop): Ditto.
9046         * gimple-low.c (lower_function_body): Ditto.
9047         (mark_used_blocks): Ditto.
9048         * tree-ssa-sink.c (execute_sink_code): Ditto.
9049         * ipa-inline.c (cgraph_decide_inlining): Ditto.
9050         (cgraph_early_inlining): Ditto.
9051         * global.c (rest_of_handle_global_alloc): Ditto.
9052         * jump.c (cleanup_barriers): Ditto.
9053         (purge_line_number_notes): Ditto.
9054         * ifcvt.c (rest_of_handle_if_conversion): Ditto.
9055         (rest_of_handle_if_after_reload): Ditto.
9056         * tree-ssa-loop.c (tree_ssa_loop_init): Ditto.
9057         (tree_ssa_loop_im): Ditto.
9058         (tree_ssa_loop_unswitch): Ditto.
9059         (tree_vectorize): Ditto.
9060         (tree_linear_transform): Ditto.
9061         (tree_ssa_loop_ivcanon): Ditto.
9062         (tree_ssa_empty_loop): Ditto.
9063         (tree_ssa_loop_bounds): Ditto.
9064         (tree_complete_unroll): Ditto.
9065         (tree_ssa_loop_prefetch): Ditto.
9066         (tree_ssa_loop_ivopts): Ditto.
9067         (tree_ssa_loop_done): Ditto.
9068         * predict.c (tree_estimate_probability): Ditto.
9069         * recog.c (split_all_insns_noflow): Ditto.
9070         (rest_of_handle_peephole2): Ditto.
9071         (rest_of_handle_split_all_insns): Ditto.
9072         * tree-eh.c (lower_eh_constructs): Ditto.
9073         * regmove.c (rest_of_handle_regmove): Ditto.
9074         (rest_of_handle_stack_adjustments): Ditto.
9075         * local-alloc.c (rest_of_handle_local_alloc): Ditto.
9076         * function.c (instantiate_virtual_regs): Ditto.
9077         (init_function_for_compilation): Ditto.
9078         (rest_of_handle_check_leaf_regs): Ditto.
9079         * gcse.c (rest_of_handle_jump_bypass): Ditto.
9080         (rest_of_handle_gcse): Ditto.
9081         * ipa-type-escape.c (type_escape_execute): Ditto.
9082         * alias.c (rest_of_handle_cfg): Ditto.
9083         * tree-if-conv.c (main_tree_if_conversion): Ditto.
9084         * profile.c (rest_of_handle_branch_prob): Ditto.
9085         * tree-ssa-phiopt.c (tree_ssa_phiopt): Ditto.
9086         * rtl-factoring.c (rest_of_rtl_seqabstr): Ditto.
9087         * bt-load.c (rest_of_handle_branch_target_load_optimize): Ditto
9088         * tree-dfa.c (find_referenced_vars): Ditto.
9089         * except.c (set_nothrow_function_flags): Ditto.
9090         (convert_to_eh_region_ranges): Ditto.
9091         (rest_of_handle_eh): Ditto.
9092         * emit-rtl.c (unshare_all_rtl): Ditto.
9093         (remove_unnecessary_notes): Ditto.
9094         * except.h (set_nothrow_function_flags): Ditto.
9095         (convert_to_eh_region_ranges): Ditto.
9096         * cfgexpand.c (tree_expand_cfg): Ditto.
9097         * tree-cfgcleanup.c (merge_phi_nodes): Ditto.
9098         * tree-ssa-pre.c (do_pre): Ditto.
9099         (execute_fre): Ditto.
9100         * cfgcleanup.c (rest_of_handle_jump): Ditto.
9101         (rest_of_handle_jump2): Ditto.
9102         * tree-sra.c (tree_sra): Ditto.
9103         * tree-mudflap.c (execute_mudflap_function_ops): Ditto.
9104         (execute_mudflap_function_decls): Ditto.
9105         * tree-ssa-copy.c (do_copy_prop): Ditto.
9106         (do_store_copy_prop): Ditto.
9107         * ipa-prop.h (ipcp_driver): Ditto.
9108         * cfglayout.c (insn_locators_initialize): Ditto.
9109         * tree-ssa-forwprop.c
9110         (tree_ssa_forward_propagate_single_use_vars): Ditto.
9111         * cfglayout.h (insn_locators_initialize): Ditto.
9112         * tree-ssa-dce.c (tree_ssa_dce): Ditto.
9113         * tree-ssa.c (execute_early_warn_uninitialized): Ditto.
9114         (execute_late_warn_uninitialized): Ditto.
9115         * rtl.h (cleanup_barriers): Ditto.
9116         (split_all_insns_noflow): Ditto.
9117         (purge_line_number_notes): Ditto.
9118         (unshare_all_rtl): Ditto.
9119         (remove_unnecessary_notes): Ditto.
9120         (recompute_reg_usage): Ditto.
9121         (variable_tracking_main): Ditto.
9122         * integrate.c (emit_initial_value_sets): Ditto.
9123         * integrate.h (emit_initial_value_sets): Ditto.
9124         * tree-optimize.c (execute_free_datastructures): Ditto
9125         (execute_free_cfg_annotations): Ditto.
9126         (execute_fixup_cfg): Ditto.
9127         (execute_cleanup_cfg_pre_ipa): Ditto.
9128         (execute_cleanup_cfg_post_optimizing): Ditto.
9129         (execute_init_datastructures): Ditto.
9130         * tree-object-size.c (compute_object_sizes): Ditto.
9131         * combine.c (rest_of_handle_combine): Ditto.
9132         * tree-outof-ssa.c (rewrite_out_of_ssa): Ditto.
9133         * bb-reorder.c (duplicate_computed_gotos): Ditto.
9134         (rest_of_handle_reorder_blocks): Ditto.
9135         (rest_of_handle_partition_blocks): Ditto.
9136         * var-tracking.c (variable_tracking_main): Ditto.
9137         * tree-profile.c (tree_profiling): Ditto.
9138         * tree-vect-generic.c (expand_vector_operations): Ditto.
9139         * reg-stack.c (rest_of_handle_stack_regs): Ditto.
9140         * sched-rgn.c (rest_of_handle_sched): Ditto.
9141         (rest_of_handle_sched2): Ditto.
9142         * basic-block.h (free_bb_insn): Ditto.
9143         * tree-ssa-structalias.c (ipa_pta_execute): Ditto.
9144         * tree-cfg.c (execute_build_cfg): Ditto.
9145         (remove_useless_stmts): Ditto.
9146         (split_critical_edges): Ditto.
9147         (execute_warn_function_return): Ditto.
9148         (execute_warn_function_noreturn): Ditto.
9149         * tree-ssa-reassoc.c (execute_reassoc): Ditto.
9150         * cfgrtl.c (free_bb_for_insn): Ditto.
9151         * passes.c (execute_one_pass): Run additional
9152         todos returned by execute function.
9153         * tree-pass.h (struct tree_opt_pass): Make execute
9154         return a value.
9155
9156 2006-03-02  Richard Guenther  <rguenther@suse.de>
9157
9158         * tree-ssa-alias.c (find_used_portions): Consider taking
9159         the address as making the variable not write-only.
9160
9161 2006-03-02  Nick Clifton  <nickc@redhat.com>
9162
9163         * config.gcc (default_use_cxa_atexit): Extend the description of
9164         this configure variable.  Set its default value to "yes" for
9165         Linux, NetBSD and ELF targets on the assumption that they will
9166         use C libraries with the __cxa_atexit function.
9167
9168 2006-03-02  Ben Elliston  <bje@au.ibm.com>
9169
9170         * config/rs6000/linux-unwind.h (frob_update_context): Mark `fs'
9171         parameter as unused to suppress a build warning.
9172
9173 2006-03-02  Ben Elliston  <bje@au.ibm.com>
9174
9175         * mklibgcc.in: Depend on config/dfp-bit.h in rules that compile
9176         config/dfp-bit.c.
9177
9178 2006-03-01  Roger Sayle  <roger@eyesopen.com>
9179
9180         PR other/26489
9181         * gthr-posix.h (__gthrw2): Define to take three parameters, the
9182         declared name, the weak reference name, and the typeof name.
9183         (__gthrw): Avoid expanding the declared name suffix.
9184         (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls.
9185
9186 2006-03-01  Jakub Jelinek  <jakub@redhat.com>
9187
9188         * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
9189         from DWARF 3.
9190         (DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
9191         DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
9192         DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
9193         DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
9194         DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
9195         (DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
9196         (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
9197         DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
9198         (DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
9199         DW_DS_leading_separate, DW_DS_trailing_separate): New.
9200         (DW_END_default, DW_END_big, DW_END_little): New.
9201         (DW_END_lo_user, DW_END_hi_user): Define.
9202         (DW_LNE_lo_user, DW_LNE_hi_user): Define.
9203         (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
9204         (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
9205         DW_LANG_D): New.
9206
9207 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
9208
9209         * tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
9210         Update all users.
9211         * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage.
9212         Update all users.
9213         (TODO_update_smt_usage): Rename from TODO_update_tmt_usage.
9214         Update all users.
9215         * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE.
9216         Update all users.
9217         * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag'
9218         to 'symbol_mem_tag'.
9219         Update all users.
9220         * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT
9221         rename.
9222
9223 2006-03-01  Roger Sayle  <roger@eyesopen.com>
9224
9225         * builtins.c (fold_builtin_copysign): Delete unreachable code.
9226
9227 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
9228
9229         PR target/25761
9230         * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
9231         MACHO_DYNAMIC_NO_PIC_P.
9232         (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
9233
9234 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
9235
9236         PR target/26389
9237         * config/darwin-protos.h (darwin_asm_output_anchor):
9238         Declare.
9239         * config/darwin-sections.def (cstring_section):
9240         Add SECTION_MERGE to the flags.
9241         (literal4_section): Likewise.
9242         (literal8_section): Likewise.
9243         (objc_selector_refs_section): Likewise.
9244         (objc_cls_refs_section): Likewise.
9245         * config/darwin.c (darwin_asm_output_anchor): New
9246         function.
9247         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
9248
9249 2006-03-01  Daniel Berlin  <dberlin@dberlin.org>
9250
9251         Fix PR tree-optimization/26443
9252         * tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
9253         to todo and PROP_tmt_usage to properties_destroyed.
9254         * tree-ssa-ccp.c (pass_ccp): Ditto.
9255         (pass_store_ccp): Ditto.
9256         * tree-ssa-dom.c (pass_dominator): Ditto.
9257
9258 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
9259
9260         * tree-ssa-operands.c: Cleanup whitespace.
9261         (get_asm_expr_operands): Move before first invocation.
9262         (get_indirect_ref_operands): Likewise.
9263         (get_tmr_operands): Likewise.
9264         (get_call_expr_operands): Likewise.
9265         (append_def): Likewise.
9266         (append_use): Likewise.
9267         (append_v_may_def): Likewise.
9268         (append_v_must_def): Likewise.
9269         (add_call_clobber_ops): Likewise.
9270         (add_call_read_ops): Likewise.
9271         (add_stmt_operand): Likewise.
9272         (add_virtual_operand): Likewise.
9273         (build_ssa_operands): Likewise.
9274
9275 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
9276
9277         PR middle-end/26022
9278         Revert:
9279         PR middle-end/24437
9280         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
9281         with a call expr to ...
9282         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
9283
9284 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
9285
9286         * tree-vrp.c (extract_range_from_assert): Remove special
9287         handling for types with super-types.
9288
9289 2006-03-01  Ben Elliston  <bje@au.ibm.com>
9290
9291         * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
9292         and powerpc64-*-linux* configurations.
9293         * config/t-dfprules: New file.
9294
9295         * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
9296         Compile dfp-bit.c from the source directory using -DWIDTH and
9297         $DFP_CFLAGS to control the compilation of that file, rather than
9298         generating width-specific versions in the build directory.
9299         * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
9300         (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
9301
9302 2006-02-28  Zack Weinberg  <zackw@panix.com>
9303
9304         * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
9305         continues to work.
9306
9307 2006-02-28  Eric Christopher  <echristo@apple.com>
9308
9309         * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
9310         Set up IN_LIBGCC definition of TARGET_64BIT.
9311         * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
9312
9313 2006-02-28  Roger Sayle  <roger@eyesopen.com>
9314
9315         PR middle-end/14752
9316         * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
9317         BIT_XOR_EXPR, BIT_AND_EXPR>: Delete.  Let fold optimize these
9318         cases via the construction of "expr != 0".
9319
9320 2006-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
9321
9322         * alias.c (alias_invariant, alias_invariant_size): Remove.
9323         (record_base_value): Remove.
9324         (memrefs_conflict_p): Don't look at alias_invariant.
9325         (end_alias_analysis): Don't free it.
9326         * alias.h (record_base_value): Remove prototype.
9327
9328 2006-02-28  Paolo Bonzini  <bonzini@gnu.org>
9329             Adam Nemet  <anemet@caviumnetworks.com>
9330
9331         * rtl.h (truncated_to_mode): Declare it.
9332         (struct rtl_hooks): Add reg_truncated_to_mode hook.
9333         * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
9334         (RTL_HOOKS_INITIALIZER): Include it.
9335         * rtlhooks.c (reg_truncated_to_mode_general): New function.
9336         * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
9337         reg_truncated_to_mode.
9338         * rtlanal.c (truncated_to_mode): Define it.
9339         * simplify-rtx.c (simplify_unary_operation_1): Use it.
9340
9341 2006-02-28  Jeff Law  <law@redhat.com>
9342
9343         * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
9344         conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
9345         the range allowed by TYPE_PRECISION.
9346
9347         * tree.h (strct phi_arg_d): Remove unused NONZERO field.
9348
9349 2006-02-28  Dorit Nuzman  <dorit@il.ibm.com>
9350
9351         PR tree-optimization/26419
9352         * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
9353         values of n.
9354
9355 2006-02-27  Zack Weinberg  <zackw@panix.com>
9356
9357         * doc/md.texi: Fix typo in previous change.
9358
9359 2006-02-27  Kenneth Zadeck <zadeck@naturalbridge.com>
9360
9361         * df.c: Remove.
9362
9363 2006-02-27  Zack Weinberg  <zackw@panix.com>
9364
9365         * rtl.def (define_constraint, define_register_constraint)
9366         (define_memory_constraint, define_address_constraint): New MD forms.
9367         * gensupport.c (process_rtx): Put define_constraint etc on the
9368         predicate queue.
9369         * genpreds.c (process_define_predicate): Adjust comment.  Validate
9370         the name, and call validate_exp to validate the expression.
9371         (mark_mode_tests, write_extract_subexp): Can assume correct input.
9372         (write_predicate_expr): Likewise.  NAME argument no longer necessary;
9373         all callers changed.
9374         (validate_exp, needs_variable, struct constraint_data)
9375         (constraints_by_letter_table, first_constraint, last_constraint_ptr)
9376         (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
9377         (const_dbl_constraints, constraint_max_namelen)
9378         (have_register_constraints, have_memory_constraints)
9379         (have_address_constraints, have_address_constraints)
9380         (have_extra_constraints, have_const_int_constraints)
9381         (have_const_dbl_constraints, mangle, add_constraint)
9382         (process_define_constraint, process_define_register_constraint)
9383         (write_enum_constraint_num, write_lookup_constraint)
9384         (write_insn_constraint_len, write_regclass_for_constraint)
9385         (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
9386         (write_insn_extra_memory_constraint)
9387         (write_insn_extra_address_constraint)
9388         (write_satisfies_constraint_fns): New.
9389         (write_tm_preds_h): If we have new-style constraint definitions,
9390         prototype the functions generated from them, and define the
9391         old constraint interface (still used by generic code) in terms of
9392         those functions.
9393         (write_insn_preds_c): If we have new-style constraint definitions,
9394         generate all relevant functions from those definitions.
9395         (main): Handle define_constraint etc.
9396         * genoutput.c (struct constraint_data, indep_constraints)
9397         (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
9398         (mdep_constraint_len): New data structures and functions, defined
9399         #ifdef USE_MD_CONSTRAINTS.
9400         (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
9401         (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
9402         use new logic to validate operand constraints against constraint
9403         definitions.
9404         (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
9405         defined.
9406         * defaults.h: If none of the old-style constraint macros are
9407         defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
9408         old-style macros; and poison REG_CLASS_FROM_LETTER,
9409         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
9410         EXTRA_CONSTRAINT.
9411         * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
9412         * doc/md.texi: Document new constraint-definition mechanism and the
9413         C interface it provides.  Remove references to old mechanism
9414         elsewhere in the document.
9415         (Machine Constraints): Use pathnames relative to gcc directory,
9416         i.e. config/ARCH/FILE.  Change i386 section to refer to
9417         config/i386/predicates.md; update that section to match docstrings.
9418         * doc/tm.texi: Move all documentation of the old constraint-
9419         definition macros to their own section, clearly mark as obsolete.
9420
9421         * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
9422         (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
9423         definitions.
9424         * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
9425         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
9426         * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
9427         constraint strings.
9428         (splits and peepholes): Use satisfies_constraint_*.
9429         * config/i386/i386.c (memory_address_length)
9430         (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
9431
9432 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
9433
9434         * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
9435         scalar operation to be put back into the loop.
9436
9437 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
9438
9439         PR other/26208
9440         * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
9441         (extract_cie_info): Handle S flag in augmentation string.
9442         (execute_cfa_program): If context->signal_frame, execute also
9443         fs->pc == context->ra instructions.
9444         (uw_frame_state_for): If context->signal_frame, don't subtract one
9445         from context->ra to find FDE.
9446         (uw_update_context_1): Set context->signal_frame to
9447         fs->signal_frame.
9448         (_Unwind_GetIPInfo): New function.
9449         * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
9450         * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
9451         of _Unwind_GetIP.
9452         * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
9453         * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
9454         * unwind-compat.c (_Unwind_GetIPInfo): New function.
9455         * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
9456         * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
9457         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
9458         * config/i386/linux-unwind.h (x86_fallback_frame_state,
9459         x86_64_fallback_frame_state): Set fs->signal_frame.
9460         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
9461         (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
9462         (frob_update_context): Likewise.  Workaround missing S flag in
9463         Linux 2.6.12 - 2.6.16 kernel vDSOs.
9464         * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
9465         Remove the psw_addr + 1 hack.
9466
9467 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
9468
9469         * tree-ssa-structalias.c (get_constraint_for): Move code to deal
9470         with aggregates here.
9471         (find_func_aliases): Remove code for &<aggregate> from here.
9472
9473 2006-02-26  Roger Sayle  <roger@eyesopen.com>
9474
9475         * fold-const.c (fold_binary) <EQ_EXPR>: Fold (~X & C) eq/ne 0 as
9476         (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
9477         Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
9478         as (X & C) ne/eq 0.
9479
9480 2006-02-26  Roger Sayle  <roger@eyesopen.com>
9481
9482         PR middle-end/19983
9483         * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
9484
9485 2006-02-26  Zdenek Dvorak <dvorakz@suse.cz>
9486
9487         * opts.c (decode_options): Do not handle flag_strength_reduce.
9488         (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
9489         and OPT_fstrength_reduce.
9490         * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
9491         flag_prefetch_loop_arrays for being nonzero.
9492         * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
9493         no-ops.
9494         (fprefetch-loop-arrays-rtl): Removed.
9495         (flag_prefetch_loop_arrays): Do not specify the value.
9496
9497         * doc/passes.texi: Update documentation of loop optimizer
9498         passes.
9499         * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
9500         -frerun-loop-opt): Remove.
9501
9502 2006-02-26  Richard Guenther  <rguenther@suse.de>
9503
9504         PR tree-optimization/26421
9505         * tree-ssa-alias.c (find_used_portions): Don't treat parameters
9506         in function calls that are ADDR_EXPRs as using the whole structure.
9507
9508 2006-02-26  Steven Bosscher  <stevenb.gcc@gmail.com>
9509
9510         * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
9511         * tree-pass.h (pass_loop_optimize): Remove.
9512         * passes.c (pass_loop_optimize): Never run it.
9513         * toplev.c (backend_init): Don't call init_loop.
9514         * opts.c (flag_loop_optimize_set): Remove.
9515         (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
9516         (common_handle_option) <OPT_floop_optimize>: Remove.  Don't disable
9517         the old RTL loop optimizer when profiling enabled.
9518         * predict.c (tree_estimate_probability): Always strip builtin_expect.
9519         * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
9520         pre-headers for the sake of the old RTL loop optimizer.
9521         * Makefile.in: Remove all references to loop.o.
9522
9523         * doc/invoke.texi: Remove all references to -floop-optimize
9524         and -frerun-loop-opt.
9525
9526 2006-02-26  Zack Weinberg  <zackw@panix.com>
9527
9528         * doc/md.texi (Machine Constraints): Refer to all files with paths
9529         relative to gcc directory (i.e. config/CPU/file).  Add missing
9530         @table @code ... @end table to M32C subsection.
9531
9532 2006-02-26  Roger Sayle  <roger@eyesopen.com>
9533
9534         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
9535         (X & 1) == 0.
9536         <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
9537
9538 2006-02-26  Roger Sayle  <roger@eyesopen.com>
9539             James A. Morrison  <phython@gcc.gnu.org>
9540
9541         PR middle-end/21137
9542         * fold-const.c (fold_binary) <EQ_EXPR>: Fold ((X>>C1)&C2) eq/ne 0,
9543         when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
9544         new constant C2<<C1, or as (X<0) or (X,false) depending upon the
9545         signedness of the shift operation.
9546
9547 2006-02-26  Dorit Nuzman  <dorit@il.ibm.com>
9548
9549         PR tree-optimization/26359
9550         * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
9551
9552 2006-02-25  Roger Sayle  <roger@eyesopen.com>
9553
9554         * simplify-rtx.c (simplify_relational_operation_1): Simplify
9555         (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y.  Simplify (X^Y) == Y
9556         as X == 0, and some symmetry related transformations.
9557         Simplify (X^C1) == C2 as X == (C1^C2).  Split long comment line.
9558
9559 2006-02-25  Roger Sayle  <roger@eyesopen.com>
9560
9561         PR middle-end/23673
9562         * fold-const.c (fold_binary) <EQ_EXPR>: Fold (X^Y) == 0 as X == Y
9563         and (X^Y) != 0 as X != Y.  Fold (X^Y) == Y as X == 0, and some
9564         symmetry related transformations.  Fold (X^C1) == C2 as
9565         X == (C1^C2).
9566
9567 2006-02-25  Juergen Weigert  <jw@suse.de>
9568         Richard Guenther  <rguenther@suse.de>
9569
9570         * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
9571
9572 2006-02-24  Adam Nemet  <anemet@caviumnetworks.com>
9573
9574         * combine.c (gen_lowpart_or_truncate): Call
9575         simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
9576
9577 2006-02-24  Diego Novillo  <dnovillo@redhat.com>
9578
9579         * doc/invoke.texi: Move -fopenmp description to "Options for
9580         Code Generation".
9581         Remove reference to -lgomp.
9582
9583 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
9584
9585         * doc/install.texi: Require GNU tar version 1.14.
9586
9587 2006-02-24  Geoffrey Keating  <geoffk@apple.com>
9588
9589         * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
9590         * doc/invoke.texi (C++ Dialect Options): Document
9591         -fno-use-cxa-get-exception-ptr.
9592         * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
9593         * configure: Regenerate.
9594         * c.opt (fuse-cxa-get-exception-ptr): New.
9595         * c-opts.c (c_common_handle_option): Handle
9596         OPT_fuse_cxa_get_exception_ptr.
9597         * c-common.c (flag_use_cxa_atexit): Update documentation.
9598         (flag_use_cxa_get_exception_ptr): New.
9599         * c-common.h (flag_use_cxa_get_exception_ptr): New.
9600         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
9601         documentation.
9602         (C_COMMON_OVERRIDE_OPTIONS): New.
9603
9604 2006-02-24  Roger Sayle  <roger@eyesopen.com>
9605
9606         PR middle-end/24952
9607         * combine.c (try_combine): Explicitly check whether GET_CODE is
9608         a SET or a CLOBBER, instead on checking that it isn't a USE.
9609
9610 2006-02-24  Roger Sayle  <roger@eyesopen.com>
9611
9612         * fold-const.c (fold_comparison): New subroutine of fold_binary
9613         containing transformations common to both the equality and
9614         ordering relational operators, factored out of fold_binary.
9615         (fold_binary): Separate out the equality operators (EQ_EXPR
9616         and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
9617         LE_EXPR and GE_EXPR), calling fold_comparison to perform the
9618         transformations common to both.
9619         (fold_div_compare): Fix latent bugs in the previously unreachable
9620         LT_EXPR and GE_EXPR cases.
9621
9622 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
9623
9624         * config/rs6000/rs6000.c (rs6000_init_builtins): Change
9625         decl libname for clog to __clog on AIX.
9626
9627         * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
9628
9629 2006-02-24  Alan Modra  <amodra@bigpond.net.au>
9630
9631         PR target/26453
9632         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
9633         output traceback table for thunks.  Localise rs6000_stack_info call.
9634
9635 2006-02-23  Roger Sayle  <roger@eyesopen.com>
9636             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9637
9638         * gthr-posix.h (__gthrw): Fix typo in comment.
9639
9640 2006-02-23  Geoffrey Keating  <geoffk@apple.com>
9641
9642         * doc/cpp.texi (Character sets): Document that we do support
9643         input files to be in any character set.
9644
9645 2006-02-23  Jeff Law  <law@redhat.com>
9646
9647         * tree.h (PHI_ARG_NONZERO): Remove.
9648         * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
9649         (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
9650         node to the new node.
9651
9652         PR tree-optimization/26425
9653         * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
9654         min/max, then assume its varying.
9655
9656 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
9657
9658         PR rtl-optimization/26316
9659         * rtlanal.c (enum may_trap_p_flags): New.
9660         (may_trap_p_1): Take flags instead of unaligned_mems argument.  Ignore
9661         MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
9662         (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
9663         (may_trap_after_code_motion_p): New function.
9664         * loop-invariant.c (find_identical_invariants): Fix dump formating.
9665         (find_invariant_insn): Use may_trap_after_code_motion_p.
9666         * rtl.h (may_trap_after_code_motion_p): Declare.
9667
9668 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
9669
9670         * emit-rtl.c (immed_double_const): Cleanup.
9671
9672 2006-02-23  Daniel Berlin  <dberlin@dberlin.org>
9673
9674         Fix PR tree-optimization/26376
9675         * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree,
9676         remove assert.
9677
9678 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
9679
9680         PR middle-end/26412
9681         * gimplify.c (omp_add_variable): Guard variable size decl test with
9682         DECL_SIZE (decl) check.
9683
9684 2006-02-23  Richard Guenther  <rguenther@suse.de>
9685
9686         PR middle-end/26439
9687         * tree-ssa-structalias.c (find_func_aliases): Handle complex types
9688         like aggregate types.
9689
9690 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
9691
9692         * configure.ac: Add --with{,out}-long-double-128 configure option.
9693         (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
9694         * configure: Rebuilt.
9695         * config.in: Rebuilt.
9696         * doc/install.texi (Options specification): Document
9697         --with-long-double-128.
9698
9699         * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
9700         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
9701         * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
9702         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
9703
9704 2006-02-23  Aldy Hernandez  <aldyh@redhat.com>
9705
9706         * config/s390/s390.c (override_options): Handle
9707         TARGET_DEFAULT_LONG_DOUBLE_128.
9708
9709         * config/alpha/alpha.c (override_options): Handle
9710         TARGET_DEFAULT_LONG_DOUBLE_128.
9711
9712         * config/sparc/sparc.c (sparc_override_options): Handle
9713         TARGET_DEFAULT_LONG_DOUBLE_128.
9714
9715 2006-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
9716
9717         * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
9718         (real-install-headers-tar, real-install-headers-cpio)
9719         (real-install-headers-cp): New targets.
9720
9721 2006-02-22  Richard Sandiford  <richard@codesourcery.com>
9722
9723         * tree.h (variable_section): Delete.
9724         * varasm.c (variable_section): Delete.
9725
9726 2006-02-22  Paolo Bonzini  <bonzini@gnu.org>
9727
9728         * install.texi: Add notes on install.texi2html.
9729         (Building in parallel): Do not use footnotes.
9730
9731 2006-02-21  Aldy Hernandez  <aldyh@redhat.com>
9732
9733         PR libgomp/26234
9734         * doc/install.texi (Configuration): Document --disable-libgomp.
9735
9736 2006-02-21  Geoffrey Keating  <geoffk@apple.com>
9737
9738         * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
9739
9740 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
9741
9742         * config/i386/sse.md (vec_extractv2df_1_sse): New.
9743         (vec_extractv2df_0_sse): New.
9744
9745 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
9746
9747         * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
9748         * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
9749         * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
9750         * dwarf2out.c (build_cfa_loc): New offset parameter.  Add it
9751         to the result of the expression.
9752         (def_cfa_1): Adjust.
9753         (frame_pointer_cfa_offset): Rename to...
9754         (frame_pointer_fb_offset): ... this.  Adjust all uses.
9755         (convert_cfa_to_loc_list): Rename to...
9756         (convert_cfa_to_fb_loc_list): ... this.  New offset parameter.
9757         Pass it on to build_cfa_loc.
9758         (compute_frame_pointer_to_cfa_displacement): Rename to...
9759         (compute_frame_pointer_to_fb_displacement): ... this.  New
9760         offset parameter.  Use it in computation.
9761         (gen_subprogram_die): Compute cfa_fb_offset with the new
9762         macro, and use it to compute the fb loc list and the
9763         displacement.
9764
9765 2006-02-21  Bernd Schmidt  <bernd.schmidt@analog.com>
9766
9767         * config/bfin/predicates.md (cc_operand): Delete predicate.  All uses
9768         replaced with register_operand.
9769         * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
9770         non-DREG is expensive.
9771         * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
9772         * config/bfin/bfin.md (movbi): Fix constraints and template for moves
9773         involving memory.
9774
9775 2006-02-21  Joseph S. Myers  <joseph@codesourcery.com>
9776
9777         * doc/install.texi2html: Use set -e.
9778
9779 2006-02-21  Richard Sandiford  <richard@codesourcery.com>
9780
9781         * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
9782         (ASM_OUTPUT_SHARED_LOCAL): Delete.
9783         * doc/invoke.texi (-fshared-data): Delete.
9784         * common.opt (fshared-data): Delete.
9785         * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
9786         (assemble_static_space): Remove #if 0 code.
9787         * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
9788         (ASM_OUTPUT_SHARED_LOCAL): Poison.
9789         * config/cris/cris.h: Remove FIXME.
9790
9791 2006-02-21  Paolo Bonzini  <bonzini@gnu.org>
9792
9793         * doc/sourcebuild.texi (Front End Directory): No more double-colon
9794         hooks.
9795
9796 2006-02-21  Jakub Jelinek  <jakub@redhat.com>
9797
9798         PR middle-end/26379
9799         * combine.c (simplify_shift_const_1): Disable nested shifts
9800         optimization for vector shifts.
9801
9802 2006-02-20  Roger Sayle  <roger@eyesopen.com>
9803
9804         PR tree-optimization/26361
9805         * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
9806         of unsigned integer types.
9807
9808 2006-02-20  Sebastian Pop  <pop@cri.ensmp.fr>
9809
9810         * tree-chrec.c (eq_evolutions_p): New.
9811         * tree-chrec.h (eq_evolutions_p): Declared.
9812         * tree-data-ref.c: Fix formatting.
9813         (datadep_stats, dependence_stats): New.
9814         (gcd): Moved...
9815         (print_direction_vector): New.
9816         (dump_data_dependence_relation): Use print_direction_vector.
9817         (object_analysis, create_data_ref): Handle COMPONENT_REF.
9818         (compute_subscript_distance): Static.
9819         (initialize_data_dependence_relation): Static.  Get the number
9820         of loops surrounding the references from the callers, and initialize
9821         DDR_SIZE_VECT to nb_loops.  Use both base_addr_differ_p and
9822         base_object_differ_p analyzers.
9823         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
9824         compute_overlap_steps_for_affine_1_2,
9825         analyze_subscript_affine_affine): Count the classified dependences.
9826         Print a message when a test failed.
9827         (can_use_analyze_subscript_affine_affine): New.
9828         (analyze_siv_subscript): Compute the data dependences on symbolic
9829         scevs that verify can_use_analyze_subscript_affine_affine.
9830         (chrec_steps_divide_constant_p): Returns true, false, or unknown.
9831         (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
9832         Handle symbolic scevs.
9833         (analyze_overlapping_iterations): Let symbolic affine scevs to be
9834         analyzed.
9835         (subscript_dependence_tester): Moved...
9836         (build_classic_dist_vector, build_classic_dir_vector): Don't use
9837         lambda_vector_clear on newly allocated vectors.  Get nb_loops from
9838         DDR_SIZE_VECT instead of getting it in parameter.
9839         (subscript_dependence_tester): ... here.  Take as a parameter
9840         loop_nest_depth.  Call build_classic_dist_vector and
9841         build_classic_dir_vector.
9842         (compute_affine_dependence): Update subscript_dependence_tester
9843         parameters.  Update datadep_stats counters.  Call
9844         compute_subscript_distance.
9845         (compute_self_dependence): Save the dist and dir vectors.  Call
9846         compute_subscript_distance.
9847         (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
9848         (compute_all_dependences): Reorder parameters as they were before
9849         conversion to VEC.  Pass nb_loops and loop_nest_depth.  Don't call
9850         compute_subscript_distance.  Update the use of
9851         compute_affine_dependence and initialize_data_dependence_relation.
9852         (find_data_references_in_loop): Handle COMPONENT_REF.
9853         (compute_data_dependences_for_loop): Initialize dependence_stats.
9854         Don't call build_classic_dist_vector and build_classic_dir_vector.
9855         Update the parameters of initialize_data_dependence_relation and
9856         compute_all_dependences.  Print the statistics from datadep_stats.
9857         (analyze_all_data_dependences): Static.  Not used until the pass for
9858         checking the data dependences is contributed.
9859         * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
9860         DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
9861         (initialize_data_dependence_relation, compute_affine_dependence,
9862         analyze_all_data_dependences, compute_subscript_distance): Removed.
9863         (print_direction_vector): New.
9864         * lambda.h (gcd): ... here.
9865         (lambda_vector_gcd): Moved here from gcd_vector.
9866         * lambda-code.c (gcd, gcd_vector): Removed.
9867         (lambda_compute_target_space): Use lambda_vector_gcd.  Fix formatting.
9868         * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
9869
9870 2006-02-20  Diego Novillo  <dnovillo@redhat.com>
9871
9872         * ipa-type-escape.c: Tidy some comments and white space.
9873         * tree-ssa-operands.c: Likewise.
9874
9875 2006-02-20  Andrew Pinski  <pinskia@physics.uc.edu>
9876
9877         PR tree-opt/25879
9878         * tree-pretty-print.c (debug_tree_chain): Walk the chains.
9879         (dump_decl_name): Do not walk the decl tree chains.
9880         * tree-pass.h (TDF_CHAIN): Remove.
9881
9882 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
9883
9884         * Makefile.in (C): Remove
9885         (PROTO): Remove
9886         (.PHONY): Remove C and PROTO
9887
9888 2006-02-20  Roger Sayle  <roger@eyesopen.com>
9889
9890         PR middle-end/26236
9891         * doc/c-tree.texi (INTEGER_TYPE): Remove reference to the now
9892         deprecated CHAR_TYPE tree code.
9893
9894 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
9895
9896         * configure.ac (target_list): Add install-info, dvi, html.
9897         * configure: Regenerate.
9898
9899         * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
9900         java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
9901         treelang/Make-lang.in: Do not use double-colon rules.
9902
9903 2006-02-20  Daniel Berlin  <dberlin@dberlin.org>
9904
9905         * tree.h (struct tree_memory_tag): Add is_used_alone member.
9906         (TMT_USED_ALONE): New macro.
9907         * tree-pass.h (PROP_tmt_usage): New property.
9908         (TODO_update_tmt_usage): New todo.
9909         * tree-ssa-alias.c (updating_used_alone): New variable.
9910         (recalculate_used_alone): New function.
9911         (compute_may_aliases): Set updating_used_alone, call
9912         recalculate_used_alone.
9913         * tree-sra.c (pass_sra): Note that this pass destroys
9914         PROP_tmt_usage, and add TODO_update_tmt_usage.
9915         * tree-ssa-forwprop.c (pass_forwprop): Ditto.
9916         * tree-flow.h (updating_used_alone): Prototype.
9917         (recalculate_used_alone): Ditto.
9918         * passes.c (execute_todo): Add code to set updating_used_alone,
9919         and call recalculate.
9920         * tree-ssa-operands.c (add_virtual_operand): Only append bare def
9921         for clobber if used alone, and add assert to verify used_alone
9922         status.
9923
9924 2006-02-20  Angel Nunez Mencias  <anunez@de.ibm.com>
9925
9926         * config/s390/s390.c (legitimize_pic_address): Assertions checking
9927         for non tls symbols added.
9928         (legitimize_address): Do nothing for PLUS expressions if one of the
9929         addends is a tls symbol reference.
9930
9931 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
9932
9933         PR bootstrap/25476
9934
9935         * Makefile.in (LDFLAGS): Define from autoconf substitution.
9936
9937         * Makefile.in (BOOTSTRAPPING): New.
9938         (quickstrap): New definition if BOOTSTRAPPING=yes.
9939
9940         * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages.
9941         * configure.ac: Substitute all_selected_languages with the languages
9942         that were configured.  For all the other variables except
9943         lang_specs_files, include all the languages in the tree.
9944         * configure: Regenerate.
9945
9946         * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory,
9947         if there is one.  Run the commands to run fixincludes in the same
9948         subshell.
9949
9950         * doc/makefile.texi: Document new makefile targets from toplevel bootstrap.
9951         * doc/install.texi: Document exact conventions for searching target tools.
9952         Document --with-build-time-tools.  Document toplevel bootstrap.  Document
9953         something more about building an Ada cross-compiler.  Don't list GNU Make
9954         requirements which affect all platforms.
9955
9956 2006-02-19  Roger Sayle  <roger@eyesopen.com>
9957
9958         PR middle-end/19543
9959         * varasm.c (compare_constant) <INTEGER_CST>: Integer constants are
9960         only equivalent if the have both the same mode and precision.
9961
9962 2006-02-20  Ben Elliston  <bje@au.ibm.com>
9963
9964         * doc/tree-ssa.texi (Interfaces): Describe low vs. high GIMPLE.
9965
9966 2006-02-19  Roger Sayle  <roger@eyesopen.com>
9967             Steven Bosscher  <stevenb.gcc@gmail.com>
9968
9969         * gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
9970         constant pool references to identify stack mode constants.
9971         * rtlanal.c (constant_pool_constant_p): New predicate to check
9972         whether operand is a floating point constant in the pool.
9973         * rtl.h (constant_pool_constant_p): Prototype here.
9974         * loop.c (scan_loop): Avoid hoisting constants from the constant
9975         pool on STACK_REGS targets.
9976         (load_mems): Likewise.
9977         * loop-invariant.c (get_inv_cost): Make hoisting constant pool
9978         loads into x87 registers expensive in terms of register pressure.
9979
9980 2006-02-19  Roger Sayle  <roger@eyesopen.com>
9981
9982         * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to
9983         __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined.
9984
9985 2006-02-19  David Edelsohn  <edelsohn@gnu.org>
9986
9987         * config/rs6000/xcoff.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
9988         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_anchor): Define.
9989
9990 2006-02-19  Daniel Berlin  <dberlin@dberlin.org>
9991
9992         * doc/invoke.texi: Document -fipa-pta.
9993         * common.opt: Add ipa-pta option.
9994         * tree-ssa-structalias.c (DONT_PROPAGATE_WITH_ANYTHING): Removed.
9995         (do_sd_constraint): Enable DONT_PROPAGATE_WITH_ANYTHING code.
9996         (do_ds_constraint): Ditto.
9997         (get_constraint_for): Only add to referenced_vars if
9998         referenced_vars exists.
9999         (insert_into_field_list): Rewrite to do this unsorted.
10000         (insert_into_field_list_sorted): Rename old insert_into_field_list
10001         to this.
10002         (create_function_info_for): Use insert_into_field_list_sorted.
10003         (create_variable_info_for): Rewrite so it uses unsorted version,
10004         since the field list is sorted.
10005         (intra_create_variable_infos): Only add to referenced_vars if
10006         referenced_vars exists.
10007         (ipa_pta_execute): Init heapvars, and delete when done.
10008         * passes.c (init_optimization_passes): Add call to pass_ipa_pta.
10009
10010 2006-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10011
10012         * doc/install.texi: Add missing `@samp'.
10013
10014 2006-02-18  Andrew Pinski <pinskia@physics.uc.edu>
10015
10016         * config/rs6000/darwin.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P):
10017         Use the arguments.
10018
10019 2006-02-18  Mark Wielaard  <mark@klomp.org>
10020
10021         * doc/contrib.texi (Contributors): Add classpath/libgcj hackers
10022         who added new 4.1 features, bug fixes and integration support.
10023
10024 2006-02-18  David Edelsohn  <edelsohn@gnu.org>
10025
10026         PR target/26350
10027         * config/rs6000/rs6000.md (extenddftf2): Force 0.0 to validized
10028         MEM for ABI_V4 pic.
10029
10030 2006-02-18  Richard Sandiford  <richard@codesourcery.com>
10031
10032         * cselib.c (cselib_init): Change RTX_SIZE to RTX_CODE_SIZE.
10033         * emit-rtl.c (copy_rtx_if_shared_1): Use shallow_copy_rtx.
10034         (copy_insn_1): Likewise.  Don't copy each field individually.
10035         Reindent.
10036         * read-rtl.c (apply_macro_to_rtx): Use RTX_CODE_SIZE instead
10037         of RTX_SIZE.
10038         * reload1.c (eliminate_regs): Use shallow_copy_rtx.
10039         * rtl.c (rtx_size): Rename variable to...
10040         (rtx_code_size): ...this.
10041         (rtx_size): New function.
10042         (rtx_alloc_stat): Use RTX_CODE_SIZE instead of RTX_SIZE.
10043         (copy_rtx): Use shallow_copy_rtx.  Don't copy each field individually.
10044         Reindent.
10045         (shallow_copy_rtx_stat): Use rtx_size instead of RTX_SIZE.
10046         * rtl.h (rtx_code_size): New variable.
10047         (rtx_size): Change from a variable to a function.
10048         (RTX_SIZE): Rename to...
10049         (RTX_CODE_SIZE): ...this.
10050
10051         PR target/9703
10052         PR tree-optimization/17106
10053         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Document.
10054         (Anchored Addresses): New section.
10055         * doc/invoke.texi (-fsection-anchors): Document.
10056         * doc/rtl.texi (SYMBOL_REF_IN_BLOCK_P, SYMBOL_FLAG_IN_BLOCK): Likewise.
10057         (SYMBOL_REF_ANCHOR_P, SYMBOL_FLAG_ANCHOR): Likewise.
10058         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): Likewise.
10059         * hooks.c (hook_bool_mode_rtx_false): New function.
10060         * hooks.h (hook_bool_mode_rtx_false): Declare.
10061         * gengtype.c (create_optional_field): New function.
10062         (adjust_field_rtx_def): Add the "block_sym" field for SYMBOL_REFs when
10063         SYMBOL_REF_IN_BLOCK_P is true.
10064         * target.h (output_anchor, use_blocks_for_constant_p): New hooks.
10065         (min_anchor_offset, max_anchor_offset): Likewise.
10066         (use_anchors_for_symbol_p): New hook.
10067         * toplev.c (compile_file): Call output_object_blocks.
10068         (target_supports_section_anchors_p): New function.
10069         (process_options): Check that -fsection-anchors is only used on
10070         targets that support it and when -funit-at-a-time is in effect.
10071         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Only create DECL_RTL
10072         if the decl doesn't have one.
10073         * dwarf2out.c: Remove instantiations of VEC(rtx,gc).
10074         * expr.c (emit_move_multi_word, emit_move_insn): Pass the result
10075         of force_const_mem through use_anchored_address.
10076         (expand_expr_constant): New function.
10077         (expand_expr_addr_expr_1): Call it.  Use the same modifier when
10078         calling expand_expr for INDIRECT_REF.
10079         (expand_expr_real_1): Pass DECL_RTL through use_anchored_address
10080         for all modifiers except EXPAND_INITIALIZER.  Use expand_expr_constant.
10081         * expr.h (use_anchored_address): Declare.
10082         * loop-unroll.c: Don't declare rtx vectors here.
10083         * explow.c: Include output.h.
10084         (validize_mem): Call use_anchored_address.
10085         (use_anchored_address): New function.
10086         * common.opt (-fsection-anchors): New switch.
10087         * varasm.c (object_block_htab, anchor_labelno): New variables.
10088         (hash_section, object_block_entry_eq, object_block_entry_hash)
10089         (use_object_blocks_p, get_block_for_section, create_block_symbol)
10090         (use_blocks_for_decl_p, change_symbol_section): New functions.
10091         (get_variable_section): New function, split out from assemble_variable.
10092         (make_decl_rtl): Create a block symbol if use_object_blocks_p and
10093         use_blocks_for_decl_p say so.  Use change_symbol_section if the
10094         symbol has already been created.
10095         (assemble_variable_contents): New function, split out from...
10096         (assemble_variable): ...here.  Don't output any code for
10097         block symbols; just pass them to place_block_symbol.
10098         Use get_variable_section and assemble_variable_contents.
10099         (get_constant_alignment, get_constant_section, get_constant_size): New
10100         functions, split from output_constant_def_contents.
10101         (build_constant_desc): Create a block symbol if use_object_blocks_p
10102         says so.  Or into SYMBOL_REF_FLAGS.
10103         (assemble_constant_contents): New function, split from...
10104         (output_constant_def_contents): ...here.  Don't output any code
10105         for block symbols; just pass them to place_section_symbol.
10106         Use get_constant_section and get_constant_alignment.
10107         (force_const_mem): Create a block symbol if use_object_blocks_p and
10108         use_blocks_for_constant_p say so.  Or into SYMBOL_REF_FLAGS.
10109         (output_constant_pool_1): Add an explicit alignment argument.
10110         Don't switch sections here.
10111         (output_constant_pool): Adjust call to output_constant_pool_1.
10112         Switch sections here instead.  Don't output anything for block symbols;
10113         just pass them to place_block_symbol.
10114         (init_varasm_once): Initialize object_block_htab.
10115         (default_encode_section_info): Keep the old SYMBOL_FLAG_IN_BLOCK.
10116         (default_asm_output_anchor, default_use_aenchors_for_symbol_p)
10117         (place_block_symbol, get_section_anchor, output_object_block)
10118         (output_object_block_htab, output_object_blocks): New functions.
10119         * target-def.h (TARGET_ASM_OUTPUT_ANCHOR): New macro.
10120         (TARGET_ASM_OUT): Include it.
10121         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): New macro.
10122         (TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET): New macros.
10123         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): New macro.
10124         (TARGET_INITIALIZER): Include them.
10125         * rtl.c (rtl_check_failed_block_symbol): New function.
10126         * rtl.h: Include vec.h.  Declare heap and gc rtx vectors.
10127         (block_symbol, object_block): New structures.
10128         (rtx_def): Add a block_symbol field to the union.
10129         (BLOCK_SYMBOL_CHECK): New macro.
10130         (rtl_check_failed_block_symbol): Declare.
10131         (SYMBOL_FLAG_IN_BLOCK, SYMBOL_FLAG_ANCHOR): New SYMBOL_REF flags.
10132         (SYMBOL_REF_IN_BLOCK_P, SYMBOL_REF_ANCHOR_P): New predicates.
10133         (SYMBOL_FLAG_MACH_DEP_SHIFT): Bump by 2.
10134         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): New accessors.
10135         * output.h (output_section_symbols): Declare.
10136         (object_block): Name structure.
10137         (place_section_symbol, get_section_anchor, default_asm_output_anchor)
10138         (default_use_anchors_for_symbol_p): Declare.
10139         * Makefile.in (RTL_BASE_H): Add vec.h.
10140         (explow.o): Depend on output.h.
10141         * config/rs6000/rs6000.c (TARGET_MIN_ANCHOR_OFFSET): Override default.
10142         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
10143         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
10144         (rs6000_use_blocks_for_constant_p): New function.
10145
10146 2006-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10147
10148         * doc/install.texi (hppa*-hp-hpux*): Update for 4.1.0.
10149
10150 2006-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
10151
10152         PR tree-opt/25680
10153         * tree-ssa-ccp.c (ccp_fold): Handle store CCP of REALPART_EXPR and
10154         IMAGPART_EXPR.
10155
10156 2006-02-18  Diego Novillo  <dnovillo@redhat.com>
10157
10158         * tree-flow.h (struct var_ann_d): Rename field is_alias_tag to
10159         is_aliased.
10160         Update all users.
10161
10162 2006-02-18  Jakub Jelinek  <jakub@redhat.com>
10163
10164         PR middle-end/26334
10165         * stmt.c (decl_overlaps_hard_reg_set_p): Use DECL_HARD_REGISTER
10166         instead of DECL_REGISTER.
10167
10168 2006-02-18  Olivier Hainque  <hainque@adacore.com>
10169
10170         PR ada/13408
10171         * pa.h (WIDEST_HARDWARE_FP_SIZE): Define.
10172
10173 2006-02-18  Joseph S. Myers  <joseph@codesourcery.com>
10174
10175         PR target/24837
10176         * config.gcc: Define UCLIBC_DEFAULT to 0 or 1.
10177         * opth-gen.awk: Handle Var and InverseMask together.
10178         * config/linux.opt (muclibc, mglibc): Use Var(linux_uclibc).
10179         * config/linux.h: Use #if not #ifdef for testing UCLIBC_DEFAULT.
10180         (TARGET_C99_FUNCTIONS): Test OPTION_GLIBC not TARGET_GLIBC.
10181         (CHOOSE_DYNAMIC_LINKER): Give an error for -mglibc and -muclibc
10182         used together.
10183         (UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10184         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
10185         * config/alpha/linux-elf.h (GLIBC_DYNAMIC_LINKER,
10186         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
10187         LINUX_DYNAMIC_LINKER): Define.
10188         (ELF_DYNAMIC_LINKER): Define to LINUX_DYNAMIC_LINKER.
10189         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): Define to
10190         TARGET_GLIBC.
10191         * config/cris/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10192         (CRIS_LINK_SUBTARGET_SPEC): Pass a -dynamic-linker option.
10193         * config/frv/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10194         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10195         (TARGET_C99_FUNCTIONS): Don't define.
10196         * config/i386/linux.h (DYNAMIC_LINKER): Rename to
10197         GLIBC_DYNAMIC_LINKER.
10198         (SUBTARGET_EXTRA_SPECS): Use LINUX_DYNAMIC_LINKER.
10199         * config/i386/linux64.h (GLIBC_DYNAMIC_LINKER32,
10200         GLIBC_DYNAMIC_LINKER64): Define.
10201         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
10202         LINUX_DYNAMIC_LINKER64.
10203         * config/ia64/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10204         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10205         * config/m32r/linux.h (GLIBC_DYNAMIC_LINKE): Define.
10206         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10207         * config/m68k/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10208         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10209         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32,
10210         GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32,
10211         UCLIBC_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKERN32): Define.
10212         (LINK_SPEC): Use LINUX_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKER64
10213         and LINUX_DYNAMIC_LINKER32.
10214         * config/mn10300/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10215         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10216         * config/pa/pa-linux.h (GLIBC_DYNAMIC_LINKER): Define.
10217         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10218         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define to
10219         TARGET_GLIBC.
10220         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
10221         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64,
10222         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10223         CHOOSE_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
10224         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
10225         (LINK_OS_LINUX_SPEC32): Use LINUX_DYNAMIC_LINKER32.
10226         (LINK_OS_LINUX_SPEC64): Use LINUX_DYNAMIC_LINKER64.
10227         * config/rs6000/sysv4.h (GLIBC_DYNAMIC_LINKER,
10228         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
10229         LINUX_DYNAMIC_LINKER): Define.
10230         (LINK_OS_LINUX_SPEC): Use LINUX_DYNAMIC_LINKE.
10231         * config/s390/linux.h (GLIBC_DYNAMIC_LINKER32,
10232         GLIBC_DYNAMIC_LINKER64): Define.
10233         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
10234         LINUX_DYNAMIC_LINKER64.
10235         * config/sh/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10236         (SUBTARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10237         * config/sparc/linux.h (GLIBC_DYNAMIC_LINKER,
10238         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
10239         LINUX_DYNAMIC_LINKER): Define.
10240         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10241         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
10242         * config/sparc/linux64.h (GLIBC_DYNAMIC_LINKER32,
10243         GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER32,
10244         UCLIBC_DYNAMIC_LINKER64, CHOOSE_DYNAMIC_LINKER,
10245         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
10246         (LINK_ARCH32_SPEC): Use LINUX_DYNAMIC_LINKER32.
10247         (LINK_ARCH64_SPEC, LINK_SPEC): Use LINUX_DYNAMIC_LINKER64.
10248         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
10249         * config/xtensa/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10250         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10251         * doc/invoke.texi (-muclibc): Remove caveat about supported
10252         targets.
10253
10254 2006-02-17  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
10255
10256         * doc/cpp.texi (__TIMESTAMP__): Document.
10257
10258 2006-02-17  Roger Sayle  <roger@eyesopen.com>
10259
10260         PR middle-end/25600
10261         * fold-const.c (fold_binary): Fold (X >> C) != 0 into X < 0 when
10262         C is one less than the width of X (and related transformations).
10263         * simplify-rtx.c (simplify_unary_operation_1): Transform
10264         (neg (lt x 0)) into either (ashiftrt X C) or (lshiftrt X C)
10265         depending on STORE_FLAG_VALUE, were C is one less then the
10266         width of X.
10267
10268 2006-02-17  Daniel Berlin  <dberlin@dberlin.org>
10269
10270         Fix PR tree-optimization/26341
10271         * tree-ssa-operands.c (add_virtual_operand): Remove assert
10272         about NAME_MEMORY_TAG's.
10273
10274 2006-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10275
10276         PR target/26255
10277         * pa.md: Create separate HI and QI move patterns for 32-bit and 64-bit
10278         with hardware float support, and software float support.  Add fcpy
10279         alternative to hardware patterns.  Add alternatives to copy between
10280         general and floating-point registers to the 32-bit pattern.
10281         * pa.c (pa_secondary_reload): Don't abort if reload tries to find a
10282         secondary reload to load a QI or HI mode constant into a floating
10283         point register.
10284         * pa32-regs.h (VALID_FP_MODE_P): Allow QImode and HImode.
10285         * pa64-regs.h (VALID_FP_MODE_P): Likewise.
10286
10287 2006-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
10288
10289         PR target/26272
10290         * config/rs6000/darwin.md (load_macho_picbase_si): Add
10291         pc to the pattern.
10292         (load_macho_picbase_di): Likewise.
10293
10294 2006-02-16  Jeff Law  <law@redhat.com>
10295
10296         * tree-vrp.c (set_value_range_to_nonnegative): New function.
10297         (vrp_expr_computes_nonnegative, ssa_name_nonnegative_p): Likewise.
10298         (ssa_name_nonzero_p): Likewise.
10299         (get_value_range): Return NULL if VRP is not running.
10300         (extract_range_from_expr): Fallback to tree_expr_XXX_p if
10301         VRP routines do not discover a range.
10302         (vrp_finalize): Clear VR_VALUE to indicate VRP is not running.
10303         * tree.h (ssa_name_nonzero_p, ssa_name_nonnegative_p): Prototype.
10304         * fold-const.c (tree_expr_nonzero_p): For SSA_NAMEs, query VRP.
10305         (tree_expr_nonnegative_p): Similarly.
10306         * tree-ssa-dom.c (nonzero_vars, nonzero_vars_stack): Remove.
10307         (restore_nonzero_vars_to_original_value): Remove.
10308         (unsafe_associative_fp_binop): Remove.
10309         (tree_ssa_dominator_optimize): Remove initialization and
10310         finalization of nonzero_vars and nonzero_vars_stack.
10311         (dom_opt_initialize_block): No longer push marker on
10312         nonzero_vars_stack.
10313         (dom_opt_finalize_block): No longer call
10314         restore_nonzero_vars_to_original_value.
10315         (record_equivalences_from_phis): No longer look for
10316         nonzero PHI arguments.
10317         (cprop_into_successor_phis): No longer propagate nonzero
10318         property into PHI arguments.  Lose unused argument.  Caller
10319         updated.
10320         (record_equivalences_from_stmt): No longer record nonzero
10321         values for SSA_NAMEs.
10322         (lookup_avail_expr): No longer use nonzero_vars.
10323
10324         * stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly
10325         for sizetype when sizetype is unsigned.
10326
10327 2006-02-16  Denis Nagorny <denis_nagorny@linux.intel.com>
10328
10329         PR rtl-optimization/25603
10330         * reload.c (reg_inc_found_and_valid_p): New. Check REG_INC note.
10331         (regno_clobbered_p): Use it. Reusing SETS argument for REG_INC case.
10332         * reload1.c (choose_reload_regs): Added call of regno_clobbered_p
10333         with new meaning of SETS.
10334
10335 2006-02-16  Joseph S. Myers  <joseph@codesourcery.com>
10336
10337         PR target/20353
10338         PR target/24578
10339         PR target/24837
10340         * config/linux.opt: New file.
10341         * config/linux.h (CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10342         LINUX_DYNAMIC_LINKER): Define.
10343         (TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
10344         * config.gcc (*-*-linux*): Define extra_options.
10345         (*-*-*uclibc*): Define UCLIBC_DEFAULT.
10346         (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
10347         * config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change to
10348         GLIBC_DYNAMIC_LINKER.
10349         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
10350         (LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10351         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10352         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10353         * doc/invoke.texi (GNU/Linux Options): New section.
10354
10355 2006-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
10356
10357         * config/sparc/sparc.md (setjmp): Rewrite.
10358         (setjmp_32): Delete.
10359         (setjmp_64): Likewise.
10360
10361 2006-02-16  Daniel Berlin <dberlin@dberlin.org>
10362
10363         * tree-ssa-operands.c (access_can_touch_variable): Fix typo in
10364          previous change.
10365
10366 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
10367
10368         * loop-invariant.c (invariant_for_use, check_dependencies): Fail for
10369         read-write uses.
10370
10371 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
10372
10373         PR rtl-optimization/26296
10374         * Makefile.in (loop-invariant.c): Add except.h dependency.
10375         * loop-invariant.c: Include except.h.
10376         (find_invariant_insn): Ignore insns satisfying can_throw_internal.
10377
10378 2005-02-16  Paul Brook  <paul@codesourcery.com>
10379
10380         * reload1.c (emit_reload_insns): Invalidate dead input registers used
10381         for reloads.
10382
10383 2006-02-16  Bernd Schmidt  <bernd.schmidt@analog.com>
10384
10385         PR rtl-optimization/25636
10386         * local-alloc.c (update_equiv_regs): Lose a bogus rtx_equal_p test
10387         when deciding whether an insn is an initializing insn.
10388
10389 2006-02-15 Daniel Berlin  <dberlin@dberlin.org>
10390
10391         * tree.c (init_ttree): Add STRUCT_FIELD_TAG handling.
10392         (tree_code_size): Ditto.
10393         * tree.h (struct tree_memory_tag): Remove parent_var.
10394         (struct tree_struct_field_tag): New.
10395         (SFT_OFFSET): New.
10396         (SFT_SIZE): New.
10397         (union tree_node): Add sft member.
10398         * tree-ssa-alias.c (get_tmt_for): Don't handle TYPE_READONLY
10399         specially here.
10400         (create_sft): Add size and offset argument, set SFT_OFFSET and
10401         SFT_SIZE.
10402         (create_overlap_variables_for): Update for SFT_OFFSET/SFT_SIZE.
10403         * treestruct.def: Add TS_STRUCT_FIELD_TAG.
10404         * tree-flow-inline.h (get_subvar_at): Update for
10405         SFT_OFFSET/SFT_SIZE.
10406         (var_can_have_subvars): Ditto.
10407         (overlap_subvar): Ditto.
10408         * print-tree.c (print_node): Print out interesting things for
10409         SFT's.
10410         * tree-flow.h (struct subvar): Remove offset and size members.
10411         * tree-ssa-operands.c (get_expr_operands): Update for
10412         get_indirect_ref_operands changes.
10413         (get_indirect_ref_operands): Call add_virtual_operand instead of
10414         add_stmt_operand.  Only recurse on base var if requested.
10415         (access_can_touch_variable): New function.
10416         (add_stmt_operand): Split virtual operand handling into ...
10417         (add_virtual_operand): Here.  Add offset, size, and for_clobber
10418         arguments.  Prune alias sets.
10419         (add_call_clobber_ops): Call add_virtual_operand.
10420
10421 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
10422
10423         PR middle-end/26300
10424         * combine.c (make_extraction): Bail out if ORIG_POS is negative.
10425
10426         * tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather
10427         than TREE_CODE as index into omp_clause_num_ops array.
10428
10429 2006-02-15  Uttam Pawar  <uttamp@us.ibm.com>
10430
10431         PR rtl-optimization/26184
10432         * modulo-sched.c (generate_reg_moves): Free bitmap vector
10433         uses_of_defs.
10434         * modulo-sched.c (sms_schedule): Free g_arr pointer.
10435         * modulo-sched.c (sms_schedule_by_order): Free bitmap pointers
10436         must_precede, must_follow and tobe_scheduled.
10437
10438         PR other/26147
10439         * opts.c (common_handle_option): Free new_option pointer.
10440         * df-core.c (df_analyze): Free postorder pointer.
10441
10442 2006-02-15  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
10443
10444         * Makefile.in: Fix the examples about the use of stamps
10445
10446 2006-02-15  Michael Matz  <matz@suse.de>
10447
10448         PR middle-end/22275
10449
10450         * stor-layout.c (layout_decl): Zero-width bitfields aren't
10451         influenced by maximum_field_alignment or DECL_PACKED.
10452         (update_alignment_for_field): Ditto.
10453         (place_field): Ditto.
10454         * doc/extend.texi (<#pragma pack>, <Type Attributes>): Document
10455         this behaviour.
10456
10457 2006-02-15  Paolo Bonzini  <bonzini@gnu.org>
10458
10459         * cfg.c (dump_flow_info): Get dump flags as an additional parameter.
10460         (debug_flow_info): Pass it.
10461         * alias.c (rest_of_handle_cfg): Adjust calls to dump_flow_info.
10462         * bb-reorder.c (reorder_basic_blocks): Likewise.
10463         * cfgcleanup.c (rest_of_handle_jump2): Likewise.
10464         * cse.c (rest_of_handle_cse, rest_of_handle_cse2): Likewise.
10465         * flow.c (life_analysis, recompute_reg_usage): Likewise.
10466         * gcse.c (gcse_main, bypass_jumps): Likewise.
10467         * ifcvt.c (rest_of_handle_if_conversion): Likewise.
10468         * local-alloc.c (rest_of_handle_local_alloc): Likewise.
10469         * loop-init.c (rtl_loop_init, rtl_loop_done): Likewise.
10470         * profile.c (compute_branch_probabilities, branch_prob): Likewise.
10471         * rtl.h (dump_flow_info): Adjust prototype.
10472         * tracer.c (rest_of_handle_tracer, tracer): Likewise.
10473         * var-tracking.c (variable_tracking_main): Likewise.
10474         * passes.c (execute_todo): Obey TDF_BLOCKS for RTL.
10475         * tree-dump.c (enable_rtl_dump_file): Enable the details and blocks
10476         options.
10477
10478 2006-02-15  Marcin Dalecki <martin@dalecki.de>
10479
10480         * tree-ssa-dom.c (dom_thread_across_edge): fix tag expression
10481         construction.
10482
10483 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
10484
10485         PR tree-optimization/26209
10486         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_cleanup_cfg.
10487         * tree-cfgcleanup.c (cleanup_control_flow): Remove dead
10488         eh edges.
10489         * tree-cfg.c (replace_uses_by): Do not alter cfg.
10490
10491 2006-02-14  Roger Sayle  <roger@eyesopen.com>
10492
10493         PR middle-end/23670
10494         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into
10495         (X,Y) and the corresponding symmetry related transformations.
10496         (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into
10497         (X,Y) and its symmetry related transformations.
10498
10499 2006-02-14  Roger Sayle  <roger@eyesopen.com>
10500
10501         * dojump.c (do_compare_rtx_and_jump): Also handle multi-word GTU
10502         and GEU.
10503
10504 2006-02-14  Adam Nemet  <anemet@caviumnetworks.com>
10505
10506         * simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
10507
10508 2006-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10509
10510         PR bootstrap/26053
10511         * configure.ac (HAVE_COMDAT_GROUP): Don't assume non-GNU linkers
10512         support COMDAT group.
10513         * configure: Regenerate.
10514
10515 2006-02-14  Roger Sayle  <roger@eyesopen.com>
10516
10517         PR middle-end/26279
10518         PR middle-end/26280
10519         PR middle-end/26283
10520         * dojump.c (do_compare_rtx_and_jump): Handle multi-word LE.
10521
10522 2006-02-14  Daniel Berlin  <dberlin@dberlin.org>
10523
10524         Fix PR tree-optimization/26260
10525
10526         * doc/invoke.texi (max-fields-for-field-sensitive): Document
10527         param.
10528         * params.h (MAX_FIELDS_FOR_FIELD_SENSITIVE): New.
10529         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Ditto.
10530         * tree-ssa-structalias.c (create_variable_info_for): Use
10531         MAX_FIELDS_FOR_FIELD_SENSITIVE.
10532
10533 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
10534
10535         * doc/invoke.texi (-fprefetch-loop-arrays, -fprefetch-loop-arrays-rtl):
10536         Document.
10537         * tree-ssa-loop-niter.c (number_of_iterations_ne,
10538         number_of_iterations_lt, number_of_iterations_cond): Remember the shape
10539         of the ending condition.
10540         * tree-ssa-loop-manip.c: Include params.h.
10541         (build_if_stmt, can_unroll_loop_p, determine_exit_conditions,
10542         tree_unroll_loop): New functions.
10543         * tree-pass.h (pass_loop_prefetch): Declare.
10544         * loop.c (rest_of_handle_loop_optimize): Test for
10545         -fprefetch-loop-arrays-rtl.
10546         * tree-scalar-evolution.h (affine_iv): Moved to tree-flow.h.
10547         * timevar.def (TV_TREE_PREFETCH): New timevar.
10548         * tree-ssa-loop.c (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
10549         pass_loop_prefetch): New.
10550         * tree-cfgcleanup.c: Include tree-scalar-evolution.h.
10551         (cleanup_tree_cfg_loop): Call scev_reset.
10552         * common.opt (fprefetch-loop-arrays-rtl): Add.
10553         * tree-ssa-loop-prefetch.c: New file.
10554         * tree-outof-ssa.c (struct value_expr_d): Add expr_vars field.
10555         (new_temp_expr_table): Initialize expr_vars.
10556         (free_temp_expr_table): Cleanup expr_vars.
10557         (check_replaceable, find_replaceable_in_bb): Prevent accumulating
10558         expressions from being merged into one.
10559         * tree-flow.h (affine_iv): Moved from tree-scalar-evolution.h.
10560         (struct tree_niter_desc): Add control, bound and cmp fields.
10561         (tree_ssa_prefetch_arrays, can_unroll_loop_p, tree_unroll_loop):
10562         Declare.
10563         * Makefile.in (tree-ssa-loop-prefetch.o): Add.
10564         (tree-cfgcleanup.o): Add SCEV_H dependency.
10565         (tree-ssa-loop-manip.o): Add PARAMS_H dependency.
10566         * passes.c (init_optimization_passes): Add pass_loop_prefetch.
10567
10568 2006-02-14  Richard Guenther  <rguenther@suse.de>
10569
10570         PR tree-optimization/26258
10571         * tree-ssa-structalias.c (find_func_aliases): Handle aggregates
10572         in PHI argument processing.
10573
10574 2006-02-13  Adam Nemet  <anemet@caviumnetworks.com>
10575
10576         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: Return
10577         new expression in the requested machine mode.
10578
10579 2006-02-13  Roger Sayle  <roger@eyesopen.com>
10580
10581         * optabs.c (expand_abs): Don't call do_jump_by_parts_greater_rtx
10582         directly, instead let do_compare_rtx_and_jump handle this for us.
10583         * expr.c (expand_expr_real_1): Likewise.
10584         * dojump.c (do_jump_by_parts_greater_rtx): Make static.  Move
10585         before do_jump_by_parts_greater.
10586         (do_jump_by_parts_greater): Move after do_jump_by_parts_greater_rtx.
10587         * expr.h (do_jump_by_parts_greater_rtx): Delete prototype.
10588
10589 2006-02-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10590
10591         * pa/quadlib.c: Use defines instead of enum qfcmp_magic.
10592
10593 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
10594
10595         PR rtl-optimization/26235
10596         * loop-invariant.c (hash_invariant_expr_1): Handle 'i' and 'n' formats.
10597         (invariant_expr_equal_p): Handle 'i' and 'n' formats.  Fail on unknown
10598         format.
10599
10600 2006-02-13  Jeff Law  <law@redhat.com>
10601
10602         * tree-vrp.c (extract_range_from_binary_expr): Remove handling of
10603         TRUTH_XOR_EPR.
10604
10605 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
10606
10607         PR middle-end/26092
10608         * gimplify.c (gimplify_call_expr): Don't call get_callee_fndecl
10609         twice if decl is a builtin.  When trying again, call get_callee_fndecl
10610         first to verify it is still a builtin.
10611
10612 2006-02-13  Geoffrey Keating  <geoffk@apple.com>
10613
10614         * dwarf2out.c (base_type_die): Don't add AT_name here.
10615         (subrange_type_die): Don't add AT_name here.
10616         (modified_type_die): Rearrange code flow.  Do add AT_name here.
10617
10618 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
10619
10620         PR rtl-optimization/26247
10621         PR rtl-optimization/26248
10622         * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode.
10623
10624 2006-02-13  Richard Sandiford  <richard@codesourcery.com>
10625
10626         * config/floatunditf.c: Use if __LDBL_MANT_DIG__ == 113.
10627         * config/fixtfdi.c: Likewise.
10628         * config/fixunstfdi.c: Likewise.
10629         * config/floatditf.c: Likewise.
10630
10631 2006-02-13  Roger Sayle  <roger@eyesopen.com>
10632
10633         PR middle-end/24427
10634         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Transform (X&C1)|C2
10635         into (X,C2) if C1 is a subset of the bits of C2.  Transform
10636         (X&C1)|C2 into X|C2 if C1|C2 == ~0.  Canonicalize (X&C1)|C2 as
10637         (X&(C1&~C2))|C2.
10638         <BIT_AND_EXPR>: Canonicalize (X|C1)&C2 as (X&C2)|(C1&C2).
10639
10640 2006-02-13  Josh Conner  <jconner@apple.com>
10641
10642         PR target/25376
10643         * varasm.c (function_section): Check for section name before
10644         calling select_section on targets that define
10645         USE_SELECT_SECTION_FOR_FUNCTIONS.  On other targets, use
10646         unlikely_text_section instead of hot_function_section if
10647         first_function_block_is_cold.
10648
10649 2006-02-13  J"orn Rennecke <joern.rennecke@st.com>
10650
10651         PR middle-end/25335
10652         * reload1.c (gen_reload): Also use find_replacement in UNARY_P case.
10653
10654 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
10655
10656         PR rtl-optimization/26222
10657         * function.c (assign_stack_temp_for_type): Do not reuse stack slots
10658         after tree->rtl expansion.
10659         * loop-invariant.c (move_invariant_reg): Use force_operand on rhs
10660         before passing it to emit_move_insn.
10661
10662 2006-02-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10663
10664         * doc/invoke.texi (-Write-strings): Document that it is enabled by
10665         default.
10666         * c.opt (-Wwrite-strings): Declare variable warn_write_strings.
10667         Clarify documentation.
10668         * c-common.h (warn_write_strings): Remove.
10669         * c-common.c (warn_write_strings): Likewise.
10670         * c-opts.c (c_common_init_options): Enable -Wwrite-strings by
10671         default for C++.
10672
10673 2006-02-12  Roger Sayle  <roger@eyesopen.com>
10674
10675         PR middle-end/25724
10676         * dojump.c (do_jump): Call do_compare_rtx_and_jump.
10677         (do_jump_parts_zero_rtx): New function renamed from
10678         do_jump_parts_equality_rtx.  Made static.  Add a mode argument.
10679         (do_jump_parts_equality_rtx): New function split out from
10680         do_jump_parts_equality.  Old implementation renamed as above.
10681         Call do_jump_parts_zero_rtx if either operand is zero.
10682         (do_jump_parts_equality): Call do_jump_parts_equality_rtx to
10683         do all of the heavy lifting.
10684         (do_compare_rtx_and_jump): Handle multi-word comparisons by
10685         calling either do_jump_by_parts_greater_rtx or
10686         do_jump_by_parts_equality_rtx.
10687         * expr.h (do_jump_by_parts_equality_rtx): Remove prototype.
10688         * expmed.c (do_cmp_and_jump): Now multi-word optimization has
10689         moved to do_compare_rtx_and_jump, call it directly.
10690         * stmt.c (do_jump_if_equal): Remove static prototype.  Add a
10691         mode argument.  Call do_compare_rtx_and_jump.
10692         (emit_case_nodes): Update calls to do_jump_if_equal.
10693
10694 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
10695
10696         PR rtl-optimization/26225
10697         * loop-invariant.c (may_assign_reg_p): Do not allow BLKmode operands.
10698
10699 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
10700
10701         PR rtl-optimization/26232
10702         * loop-invariant.c (find_invariant_insn): Ignore insns that set CC0.
10703
10704 2006-02-11  Jason Merrill  <jason@redhat.com>
10705
10706         PR tree-opt/24365
10707         * tree-inline.c (declare_return_variable): Just don't use the
10708         modify target if it's a gimple complex reg and the return slot
10709         isn't.
10710
10711 2006-02-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10712
10713         * doc/contrib.texi: Update my entry.
10714
10715 2006-02-10  Geoffrey Keating  <geoffk@apple.com>
10716
10717         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
10718
10719 2006-02-10  Diego Novillo  <dnovillo@redhat.com>
10720
10721         * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
10722         expensive.
10723
10724 2006-02-10  Zdenek Dvorak <dvorakz@suse.cz>
10725
10726         * doc/invoke.texi (-floop-optimize2): Removed.
10727         * toplev.c (process_options): Remove handling of flag_loop_optimize2.
10728         * loop-init.c (gate_handle_loop2): Do not test flag_loop_optimize2.
10729         Test flag_branch_on_count_reg only if HAVE_doloop_end.
10730         * common.opt (floop-optimize2): Removed.
10731         (fmove-loop-invariants): Enabled by default.
10732
10733 2006-02-10  Sebastian Pop  <pop@cri.ensmp.fr>
10734
10735         * tree-if-conv.c (combine_blocks): Free the result of
10736         get_loop_exit_edges.
10737
10738 2006-02-10  Jeff Law  <law@redhat.com>
10739
10740         * fold-const.c (tree_expr_nonzero_p): Fix thinko.
10741
10742         PR tree-optimization/26213
10743         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
10744         loop trying to follow SSA_NAME_VALUE chains.
10745
10746 2006-02-10  Richard Guenther  <rguenther@suse.de>
10747
10748         * tree-dfa.c (get_ref_base_and_extent): When computing maxsize
10749         deal with structures that end in implicitly variable sized arrays.
10750
10751 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
10752
10753         PR rtl-optimization/24762
10754         * df-scan.c (df_bb_refs_record): Record correct registers defined on
10755         eh edges.
10756
10757 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
10758
10759         * tree-ssa-loop-ivopts.c (struct loop_data, loop_data): Removed.
10760         (struct ivopts_data): Add regs_used field.
10761         (tree_ssa_iv_optimize_init): Do not allocate aux fields for loops.
10762         (ivopts_global_cost_for_size, determine_set_costs): Use data->regs_used
10763         instead of loop_data->regs_used;
10764         (free_loop_data): Do not free aux fields for loops.
10765         (tree_ssa_iv_optimize): Do not pass loops to tree_ssa_iv_optimize_init
10766         and tree_ssa_iv_optimize_finalize.
10767
10768 2006-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10769
10770         * config/sh/sh.h (FUNCTION_VALUE): Don't handle CHAR_TYPE.
10771
10772 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
10773
10774         PR target/26141
10775         * sh.c (sh_gimplify_va_arg_expr): Don't change the result type when
10776         computing the effective result type.
10777
10778 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
10779
10780         PR inline-asm/16194
10781         * tree.h (decl_overlaps_hard_reg_set_p) Don't declare.
10782         (tree_overlaps_hard_reg_set): Declare.
10783         * stmt.c (decl_overlaps_hard_reg_set_p): Now static.  Change return
10784         type and signature to match function type expected by walk_tree.
10785         (tree_overlaps_hard_reg_set): New function.
10786         (decl_conflicts_with_clobbers_p): Rename to:
10787         (tree_conflicts_with_clobbers_p).  Take HARD_REG_SET * argument.
10788         Use tree_overlaps_hard_reg_set.  Changed caller.
10789         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Replace
10790         decl_overlaps_hard_reg_set_p with tree_overlaps_hard_reg_set.
10791         * cris.c (cris_md_asm_clobbers): Likewise.
10792
10793 2006-02-09  Bernd Schmidt  <bernd.schmidt@analog.com>
10794
10795         * reload1.c (emit_input_reload_insns): Delete code that tries to
10796         inherit using find_equiv_reg.
10797
10798 2006-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10799
10800         * c-common.h (flag_const_strings): Don't declare.
10801         * c-common.c (flag_const_strings): Remove.
10802         * c.opt (fconst_strings): Remove.
10803         * c-opts.c (c_common_handle_option): Remove <OPT_fconst_strings>.
10804         <OPT_Wwrite_strings>: Don't set flag_const_strings.
10805         (c_common_init_options): Don't set flag_const_strings.
10806         * doc/invoke.texi (-fno-const-strings): Remove documentation.
10807
10808 2006-02-09  Richard Earnshaw  <richard.earnshaw@arm.com>
10809
10810         * arm.md (tlobits_cbranch): New pattern.
10811         * arm.h (arm_select_cc_mode): For thumb, only return CC_Nmode if
10812         testing a single bit.
10813
10814 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
10815
10816         PR tree-opt/26179
10817         * tree-ssa-pre.c (create_component_ref_by_pieces):
10818         Handle RETURN_DECL like VAR_DECL.
10819
10820 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
10821
10822         PR middle-end/26134
10823         * fold-const.c (fold_indirect_ref_1): Fold
10824         "*(foo *)&complexfoo" to "__real__ complexfoo"
10825         and "((foo*)&complexfoo)[1]" to "__imag__ complexfoo".
10826
10827 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
10828
10829         * tree-flow-inline.h (var_can_have_subvars):
10830         Volatile variables should not have subvariables.
10831
10832 2006-02-09  Diego Novillo  <dnovillo@redhat.com>
10833
10834         PR 26180
10835         * tree-vrp.c (vrp_int_const_binop): Detect overflow when
10836         multiplying unsigned values.
10837         Tidy comments.
10838
10839 2006-02-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
10840
10841         * config/sparc/sparc.c (tls_call_delay): Fix oversight.
10842
10843 2006-02-08  Jason Merrill  <jason@redhat.com>
10844
10845         PR c++/25979
10846         * tree.def: Elaborate on difference from MODIFY_EXPR.
10847         * doc/c-tree.texi (INIT_EXPR): Likewise.
10848         * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
10849         (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
10850         (gimplify_target_expr): Likewise.
10851         (gimplify_cond_expr): Remove target handling.
10852         (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
10853         (gimplify_expr): Clobber it here.
10854         (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
10855         Do return slot optimization if we have an INIT_EXPR.
10856
10857         PR tree-opt/24365
10858         * tree-inline.c (declare_return_variable): Also clear
10859         DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.
10860
10861         PR c++/16405
10862         * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.
10863
10864         PR middle-end/22439
10865         * gimplify.c (gimplify_one_sizepos): Fix typo.
10866
10867 2006-02-08  Jeff Law  <law@redhat.com>
10868
10869         PR tree-optimization/21417
10870         * tree-ssa-threadedge.c (thread_across_edge): Reject threading
10871         across a backedge if the control statement at the end of the
10872         block is data dependent on other statements in the same block.
10873         (record_temporary_equivalences_from_stmts): Remove over-conservative
10874         test for threading across backedges.
10875
10876         * tree-ssa-dce.c (remove_dead_statement): When removing a dead
10877         control statement, handle all three special cases in the same
10878         manner as they all have the same desired solution.  No longer
10879         special case edge flag updating when the post dominator is
10880         the exit block.
10881
10882 2006-02-08  Roger Sayle  <roger@eyesopen.com>
10883
10884         * tree.def (CHAR_TYPE): Remove.
10885         * dbxout.c (dbxout_type): Delete dead handling of CHAR_TYPE.
10886         * dwarf2out.c (base_type_die, is_base_type): Likewise.
10887         (gen_type_die) <ARRAY_TYPE>: Remove handling of CHAR_TYPE arrays.
10888         (gen_string_type_die): Delete unreachable function.
10889
10890         * tree-pretty-print.c (dump_generic_node): Don't handle CHAR_TYPE.
10891         * tree.c (build_int_cst_wide, type_contains_placeholder_1,
10892         type_hash_eq, variably_modified_type_p, walk_type_fields): Likewise.
10893         * tree.h (NUMERICAL_TYPE_CHECK, INTEGRAL_TYPE_P): Likewise.
10894         * builtins.c (type_to_class): Likewise.
10895         * fold-const.c (fold_convert, build_range_check,
10896         merge_ranges): Likewise.
10897         * expr.c (count_type_elements): Likewise.
10898         * c-pretty-print.c (pp_c_type_specifier): Likewise.
10899         * stor-layout.c (layout_type): Likewise.
10900         * ipa-type-escape.c (type_to_consider): Likewise.
10901         * gimplify.c (omp_firstprivatize_type_sizes,
10902         gimplify_type_sizes): Likewise.
10903         * explow.c (promote_mode): Likewise.
10904         * tree-sra.c (is_sra_scalar_type): Likewise.
10905         * varasm.c (output_constant): Likewise.
10906         * tree-inline.c (remap_type_1): Likewise.
10907         * convert.c (convert_to_pointer, convert_to_real,
10908         convert_to_integer, convert_to_complex): Likewise.
10909
10910 2006-02-08  Daniel Berlin  <dberlin@dberlin.org>
10911
10912         * df-scan.c (df_def_record_1): A set destination may
10913         be a parallel regardless of mode.
10914
10915 2006-02-08  Roger Sayle  <roger@eyesopen.com>
10916
10917         PR target/22209
10918         * config/mips/mips.h (MIN_UNITS_PER_WORD): Don't define for libgcc.
10919         * config/mips/_tilib.c: Remove.
10920         * config/fixtfdi.c: New libgcc source file.
10921         * config/fixunstfdi.c: New source file.
10922         * config/floatditf.c: New source file.
10923         * config/floatunditf.c: New souce file.
10924         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
10925         files above instead of config/mips/_tilib.c.
10926         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
10927
10928 2006-02-08  Jeff Law  <law@redhat.com>
10929
10930         PR tree-optimization/26169
10931         * tree-vrp.c (execute_vrp): Perform any queued SSA updates before
10932         threading jumps.
10933
10934 2006-02-08  Zdenek Dvorak <dvorakz@suse.cz>
10935
10936         * df.h (DF_REG_SIZE): Return the length of the initialized
10937         part of the array.
10938
10939 2006-02-08  Nathan Sidwell  <nathan@codesourcery.com>
10940
10941         * config/m68k/lb1sf68.asm (__divsf3, __divdf3, __mulsf3,
10942         __muldf3): Return a correctly signed zero.
10943
10944 2006-02-08  Paolo Bonzini  <bonzini@gnu.org>
10945
10946         * passes.c (register_one_dump_file): Accept the current properties
10947         instead of pass number.  Adjust call to dump_register.  Remove
10948         duplicated code.
10949         (register_dump_files): Now a wrapper around...
10950         (register_dump_files_1): ... this one.  Do not modify the pass
10951         structure.
10952         (next_pass_1): Cosmetic fix.
10953         (execute_todo): Keep second parameter only.  Use curr_properties
10954         instead of fetching it from the pass structure.  Check and set
10955         last_verified.
10956         (execute_one_pass): Handle TODO_set_props.  Use curr_properties
10957         instead of fetching it from the pass structure.  Fix calls to
10958         execute_todo.  Update curr_properties and initialize .vcg RTL dump
10959         after running the pass.  Reset last_verified.
10960         * tree-dump.c (dump_files): Renumber consecutively.  Put .cgraph dump
10961         at the beginning.
10962         (FIRST_AUTO_NUMBERED_DUMP): New.
10963         (dump_register): Remove "num" parameter, assign it within the
10964         function.
10965         (get_dump_file_name): Modify template for dumps.
10966         * tree-dump.h (dump_register): Adjust prototype.
10967         * tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
10968         (PROP_trees): Add PROP_gimple_lomp.
10969         (TODO_set_props): New.
10970         * gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
10971         * tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
10972         * cfgexpand.c (pass_expand): Destroy PROP_trees.
10973
10974 2006-02-08  Jakub Jelinek  <jakub@redhat.com>
10975
10976         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
10977         (sparc64-*-linux*): Likewise.
10978         * config/sparc/t-linux64 (SHLIB_MAPFILES): Removed.
10979         * config/sparc/t-linux: New file.
10980         * config/sparc/libgcc-sparc-glibc.ver (__fixtfdi, __fixunstfdi,
10981         __floatditf): Export at GCC_LDBL_3.0 if -m32 -mlong-double-128.
10982         (__divtc3, __multc3, __powitf2): Export at GCC_LDBL_4.0.0 if
10983         -m32 -mlong-double-128.
10984
10985         * config.gcc (alpha*-*-linux*): Add alpha/t-linux to tmake_file.
10986         * config/alpha/t-linux: New file.
10987         * config/alpha/libgcc-alpha-ldbl.ver: New file.
10988
10989         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Define
10990         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128.
10991         (CPP_SUBTARGET_SPEC): Don't add -D__LONG_DOUBLE_128__ here.
10992         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define
10993         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128 and TARGET_ARCH32.
10994         (CPP_ARCH32_SPEC): Remove.
10995
10996 2006-02-07  Uttam Pawar  <uttamp@us.ibm.com>
10997
10998         PR tree-optimization/26145
10999         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free
11000         bbs pointer.
11001
11002 2006-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11003
11004         PR target/26109
11005         * pa.c (attr_length_indirect_call): Don't return length 8 for distances
11006         >= 240000 when generating code for SOM runtime.
11007         (output_indirect_call): Don't use "b,l" instruction for indirect calls
11008         to $$dyncall when generating code for SOM runtime..
11009
11010 2006-02-07  Dirk Mueller  <dmueller@suse.com>
11011
11012         PR c++/18150
11013         * doc/invoke.texi (-Wsequence-point): Update documentation
11014         that -Wsequence-point is implemented for C++ as well.
11015
11016 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
11017
11018         * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
11019         * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
11020         (LIB_SPEC): Likewise.
11021         * doc/invoke.texi (SPARC options): Document -pthread.
11022
11023 2006-02-07  Geoffrey Keating  <geoffk@apple.com>
11024
11025         * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
11026         PIC addresses.
11027
11028 2006-02-07  Roger Sayle  <roger@eyesopen.com>
11029
11030         * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE.
11031         Correct comment describing BOOLEAN_TYPE.
11032
11033 2006-02-07  Dirk Mueller  <dmueller@suse.com>
11034
11035         * c.opt: C++ frontend supports -Wdiv-by-zero.
11036         * c-opts.c (c_common_handle_option): Remove dead case.
11037
11038 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
11039
11040         * configure.ac (TLS assembler check): Do not enable TLS by
11041         default on SPARC/Solaris before version 10.
11042         * configure: Regenerate.
11043
11044 2006-02-07  David Edelsohn  <edelsohn@gnu.org>
11045
11046         * doc/invoke.texi (xl-compat): Document conversion and support
11047         routine names.
11048
11049 2006-02-07  Jeff Law  <law@redhat.com>
11050
11051         * tree-vrp.c (find_conditional_asserts): Update comments.
11052         (simplify_stmt_for_jump_threading): New.
11053         (identify_jump_threads, finalize_jump_threads): New.
11054         (vrp_finalize): Call identify_jump_threads.
11055         (execute_vrp): Call finalize_jump_threads.
11056         * tree-ssa-dom.c (struct opt_stats_d): Remove num_iterations field.
11057         (vrp_element, vrp_data, vrp_element_p): Remove.
11058         (vrp_hash_elt, vrp_variables_stack): Remove.
11059         (vrp_hash, vrp_eq, record_range): Remove.
11060         (simplify_cond_and_lookup_avail_expr): Remove.
11061         (extract_range_from_cond): Remove.
11062         (thread_across_edge): Relocated into tree-ssa-threadedge.c.
11063         (simplify_stmt_for_jump_threading): New.
11064         (dom_thread_across_edge): New wrapper.
11065         (tree_ssa_dominator_optimize): No longer initialize or
11066         finalize any of the VRP datastructures.  Remove iteration
11067         step and simplify as a result of removal of iteration step.
11068         (pass_dominator): Perform a cfg cleanup after DOM.
11069         (dom_opt_finalize_block): Use the new common routines
11070         for threading jumps.  Simplify stack management slightly.
11071         No longer need to unwind VRP state.
11072         (record_equivalences_from_incoming_edge): No longer record
11073         VRP information.
11074         (eliminate_redundant_computations): No longer call
11075         simplify_cond_and_lookup_avail_expr.
11076         * tree-flow.h (potentially_threadable_block): Prototype.
11077         (thread_across_edge): Likewise.
11078         * Makefile.in (OBJS-common): Add tree-ssa-threadedge.o
11079         (tree-ssa-threadedge.o): Add dependencies.
11080         * tree-ssa-threadedge.c: New file.
11081         * passes.c (init_optimization_passes): Merge PHIs before
11082         calling VRP.  Run VRP again late in the SSA optimization pipeline.
11083
11084 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
11085
11086         * df-core.c (df_set_blocks): Do not dereference function pointers.
11087         (df_finish1): Likewise.
11088         (df_hybrid_search_forward): Likewise.
11089         (df_hybrid_search_backward): Likewise.
11090         (df_iterative_dataflow): Likewise.
11091         (df_analyze_problem): Likewise.
11092         (df_compact_blocks): Likewise.
11093         (df_dump): Likewise.
11094         * df-scan.c (df_rescan_blocks): Likewise.
11095         (df_record_entry_block_defs): Likewise.
11096
11097         * genconditions.c (write_conditions): Guard the definition of
11098         'insn_conditions' with the check on GCC version.
11099         (write_writer): Guard the traversal 'insn_conditions' with
11100         the check on GCC version.
11101
11102 2006-02-07  Richard Guenther  <rguenther@suse.de>
11103
11104         PR c++/26140
11105         Revert
11106         2006-01-30  Richard Guenther  <rguenther@suse.de>
11107         PR c++/23372
11108         * gimplify.c (gimplify_target_expr): Handle easy cases
11109         without creating a temporary.
11110
11111 2006-02-07  Pete Steinmetz  <steinmtz@us.ibm.com>
11112
11113         * sched-rgn.c (compute_dom_prob_ps, compute_trg_info): Eradicate
11114         use of float in probability computations.  Use edge probabilities
11115         in place of statically computed probabilities.
11116         (min_spec_prob): New static variable.
11117         (schedule_insns): Initialize it.
11118         (GET_SRC_PROB): Removed.
11119         * doc/invoke.texi (min-sched-prob): Renamed to min-spec-prob.
11120
11121 2006-02-07  Alexandre Oliva  <aoliva@redhat.com>
11122
11123         PR debug/24444
11124         * config/ia64/unwind-ia64.c: Revert last change.
11125         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Removed.
11126         (INCOMING_FRAME_SP_OFFSET): Define.
11127
11128 2006-02-06  Roger Sayle  <roger@eyesopen.com>
11129
11130         * config/ia64/ia64.c (hfa_element_mode): Don't handle CHAR_TYPE.
11131
11132 2006-02-07  Ben Elliston  <bje@au.ibm.com>
11133
11134         * config/i386/i386.c (ix86_scalar_mode_supported_p): New.
11135         (TARGET_SCALAR_MODE_SUPPORTED_P): Define hook.
11136         (classify_argument): Handle SDmode, DDmode, TDmode for 64-bit.
11137         (ix86_return_in_memory): Handle TDmode.
11138         (ix86_libcall_value): Handle SDmode, DDmode, TDmode.
11139         (ix86_value_regno): Return non-TDmode decimal float modes in %eax.
11140
11141 2006-02-06  Richard Sandiford  <richard@codesourcery.com>
11142
11143         * reorg.c (dbr_schedule): Use dump_file instead of file.
11144
11145 2006-02-06  Steve Ellcey  <sje@cup.hp.com>
11146
11147         PR target/25917
11148         * config/ia64/predicates.md (extr_len_operand): New predicate.
11149         * config/ia64/ia64.md (extv): Tighten constraints.
11150         (extzv): Ditto.
11151         (*tbit_and_2): Ditto.
11152         (*tbit_and_3): Ditto.
11153         (*tbit_or_2): Ditto.
11154         (*tbit_or_3): Ditto.
11155         (*bit_zero): Ditto.
11156         (*bit_one): Ditto.
11157
11158 2006-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
11159
11160         PR target/23359
11161         * config/i386/i386.md (trap): Use ASM_SHORT instead of .word.
11162
11163 2006-02-06  Zdenek Dvorak <dvorakz@suse.cz>
11164
11165         * tree-vrp.c (execute_vrp): Do not pass dump argument to.
11166         loop_optimizer_init and loop_optimizer_finalize
11167         * tree-ssa-sink.c (execute_sink_code): Ditto.
11168         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
11169         * tree-ssa-loop.c (tree_loop_optimizer_init, tree_ssa_loop_init,
11170         tree_ssa_loop_done): Ditto.
11171         * tree-ssa-pre.c (init_pre, fini_pre): Ditto.
11172         * sched-ebb.c: Include output.h.
11173         (schedule_ebbs): Do not use dump argument.
11174         * value-prof.h (struct profile_hooks): Remove profile_dump_file.
11175         * loop.c (loop_dump_stream): Removed.
11176         (loop_optimize, rest_of_handle_loop_optimize): Do not use dump
11177         argument.
11178         (scan_loop, move_movables, find_and_verify_loops, mark_loop_jump,
11179         emit_prefetch_instructions, loop_bivs_find, loop_bivs_check,
11180         final_biv_value, loop_biv_eliminable_p, loop_givs_rescan,
11181         loop_iterations, strength_reduce, record_biv, record_giv,
11182         final_giv_value, check_final_value, check_ext_dependent_givs,
11183         combine_givs, check_dbra_loop, maybe_eliminate_biv, load_mems,
11184         try_copy_prop, loop_delete_insns, try_swap_copy_prop): Use
11185         dump_file instead of loop_dump_stream.
11186         * ddg.c (print_ddg_edge, print_ddg, vcg_print_ddg): Do not call
11187         argument dump_file.
11188         * reorg.c (dbr_schedule, rest_of_handle_delay_slots): Do not use
11189         dump argument.
11190         * flow.c (life_analysis, rest_of_handle_life): Ditto.
11191         * haifa-sched.c: Include output.h
11192         (schedule_insns, sched_init): Do not use dump argument.
11193         * mode-switching.c (optimize_mode_switching): Ditto.
11194         * modulo-sched.c (stats_file): Removed.
11195         (print_node_sched_params): Do not call argument dump_file.
11196         (sms_schedule_by_order, loop_canon_p, sms_schedule,
11197         rest_of_handle_sms): Do not use dump argument.  Use dump_file instead
11198         of stats_file.
11199         * cse.c (cse_main, rest_of_handle_cse, rest_of_handle_cse2): Do not
11200         use dump argument.
11201         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize,
11202         rtl_loop_init, rtl_loop_done): Ditto.
11203         * global.c (global_alloc, rest_of_handle_global_alloc): Ditto.
11204         * predict.c (combine_predictions_for_bb, tree_estimate_probability):
11205         Ditto.
11206         * recog.c (peephole2_optimize, rest_of_handle_peephole2): Ditto.
11207         * lcm.c (pre_edge_lcm, pre_edge_rev_lcm): Ditto.
11208         * regmove.c (fixup_match_1, fixup_match_2, regmove_optimize,
11209         rest_of_handle_regmove, rest_of_handle_stack_adjustments): Ditto.
11210         * emit-rtl.c (renumber_insns): Ditto.
11211         * cfgexpand.c (add_reg_br_prob_note, expand_gimple_cond_expr,
11212         expand_gimple_basic_block, tree_expand_cfg): Ditto.
11213         * regclass.c (regclass): Ditto.
11214         * tree-outof-ssa.c (analyze_edges_for_bb, perform_edge_inserts,
11215         remove_ssa_form, rewrite_out_of_ssa): Ditto.
11216         * reg-stack.c (compensate_edge, compensate_edges, convert_regs_1,
11217         convert_regs_2, convert_regs, reg_to_stack, rest_of_handle_stack_regs):
11218         Ditto.
11219         * sched-rgn.c (schedule_insns, rest_of_handle_sched): Ditto.
11220         * local-alloc.c (rest_of_handle_local_alloc): Do not pass dump_file
11221         to regclass.
11222         * gcse.c (gcse_file, debug_stderr): Removed.
11223         (gcse_main, bypass_jumps, rest_of_handle_jump_bypass,
11224         rest_of_handle_gcse): Do not use dump argument.
11225         (cprop_jump, cprop_insn, do_local_cprop, cprop, find_implicit_sets,
11226         one_cprop_pass, bypass_block, compute_pre_data, insert_insn_end_bb,
11227         pre_edge_insert, pre_insert_copy_insn, pre_delete, one_pre_gcse_pass,
11228         compute_code_hoist_vbeinout, compute_code_hoist_data,
11229         one_code_hoisting_pass, trim_ld_motion_mems, update_ld_motion_stores,
11230         compute_store_table, build_store_vectors, insert_insn_start_bb,
11231         insert_store, remove_reachable_equiv_notes, replace_store_insn,
11232         store_motion): Use dump_file instead of gcse_file.
11233         * ipa-type-escape.c (type_escape_execute): Remove debugging comments.
11234         * profile.c (profile_dump_file): Removed.
11235         (branch_prob): Use dump_file instead of profile_dump_file.
11236         * ipa.c (cgraph_remove_unreachable_nodes): Do not call argument
11237         dump_file.
11238         * tree-ssa-copy.c (dump_copy_of): Ditto.
11239         * rtl-factoring.c (rtl_seqabstr, rest_of_rtl_seqabstr): Do not pass
11240         dump file to life_analysis.
11241         * bt-load.c (branch_target_load_optimize): Ditto.
11242         * cfgcleanup.c (rest_of_handle_jump2): Do not pass dump_file to
11243         renumber_insns.
11244         * rtl.h (cse_main, renumber_insns, schedule_insns, schedule_ebbs,
11245         regclass, dbr_schedule): Declaration changed.
11246         * sched-int.h (sched_init): Declaration changed.
11247         * tree-profile.c (tree_profile_dump_file): Removed.
11248         (tree_profile_hooks): Removed profile_dump_file hook.
11249         * rtl-profile (rtl_profile_dump_file): Removed.
11250         (rtl_profile_hooks): emoved profile_dump_file hook.
11251         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize): Declaration
11252         changed.
11253         * c-gimplify.c (c_genericize): Do not call local variable dump_file.
11254         * tree-cfg.c (build_tree_cfg): Ditto.
11255         * Makefile.in (haifa-sched.o, sched-ebb.o): Add output.h dependency.
11256         * basic-block.h (life_analysis, pre_edge_lcm, pre_edge_rev_lcm):
11257         Declaration changed.
11258         * config/sh/sh.c (sh_output_mi_thunk): Do not pass dump_file to
11259         life_analysis and schedule_insns.
11260         * config/m68hc11/m68hc11.c (m68hc11_reorg): Do not pass dump_file to
11261         life_analysis.
11262         * config/mt/mt.c (mt_machine_reorg): Do not pass dump_file to
11263         dbr_schedule.
11264         * config/mips/mips.c (mips_reorg): Ditto.
11265         * config/ia64/ia64.c (ia64_reorg): Do not pass dump_file to
11266         schedule_ebbs.
11267
11268 2006-02-06  Aldy Hernandez  <aldyh@redhat.com>
11269
11270         * config/s390/s390.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
11271         (s390_mangle_fundamental_type): New.
11272         * config/s390/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
11273         Define.
11274
11275         * config/alpha/alpha.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
11276         (alpha_mangle_fundamental_type): New.
11277         * config/alpha/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
11278         Define.
11279
11280         * config/sparc/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
11281         Define.
11282         * config/sparc/linux64.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
11283         Define.
11284         * config/sparc/sparc.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
11285         (sparc_mangle_fundamental_type): New.
11286
11287 2006-02-06  Jakub Jelinek  <jakub@redhat.com>
11288
11289         * config.gcc (s390-*-linux*): Add s390/t-linux to tmake_file.
11290         (s390x-*-linux*): Likewise.
11291         * config/s390/t-linux64 (SHLIB_MAPFILES): Removed.
11292         * config/s390/t-linux: New file.
11293
11294 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
11295
11296         * config/i386/sync.md (sync_add<mode>, sync_sub<mode>, sync_ior<mode>,
11297         sync_and<mode>, sync_xor<mode>): Operand 0 is in-out.
11298
11299 2006-02-06  Daniel Berlin  <dberlin@dberlin.org>
11300
11301         * tree-ssa-pre.c (bb_value_sets_t): Add antic_safe_loads.
11302         (ANTIC_SAFE_LOADS): New macro.
11303         (find_or_generate_expression): Add prototype.
11304         (set_contains_value): Allow null set for sake of not always having
11305         to allocate ANTIC_SAFE_LOADS.
11306         (phi_translate): Move placement of AGGREGATE_TYPE_P check.
11307         Allow COMPONENT_REF too.
11308         (valid_in_set): Allow COMPONENT_REF.
11309         Check ANTIC_SAFE_LOADS too.
11310         (compute_antic_aux): Print out ANTIC_SAFE_LOADS.
11311         (compute_rvuse_and_antic_safe): Add ANTIC_SAFE computation, and
11312         rename.
11313         (can_PRE_operation): Add COMPONENT_REF.
11314         (create_component_ref_by_pieces): New function.
11315         (create_expression_by_pieces): Use create_component_ref_by_pieces.
11316         (insert_aux): Move AGGREGATE_TYPE_P check here.
11317         (compute_avail): Set bb local stmt uids.
11318         (pass_pre): Use TODO_update_ssa_only_virtuals.
11319
11320 2006-02-06  Ben Elliston  <bje@au.ibm.com>
11321
11322         * configure.ac: Unconditionally disable decimal float by default.
11323         * configure: Regenerate.
11324
11325 2006-02-06  Ben Elliston  <bje@au.ibm.com>
11326
11327         * read-rtl.c (read_name): Terminate reading on EOF.
11328
11329 2006-02-06  Ben Elliston  <bje@au.ibm.com>
11330
11331         * dfp.c (decimal_real_arithmetic): Change second argument type
11332         from int to enum tree_code. Do not always return true, but now
11333         return result of any call to decimal_do helper functions.
11334         * dfp.h (decimal_real_arithmetic): Update prototype.
11335
11336 2006-02-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
11337
11338         * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
11339
11340 2006-02-05  Andrew Pinski  <pinskia@physics.uc.edu>
11341
11342         PR tree-opt/25251
11343         * tree-cfg.c (cleanup_dead_labels): Also don't remove
11344         forced labels.
11345
11346 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
11347
11348         * tree-vrp.c (cfg_loops): Removed.
11349         (adjust_range_with_scev, vrp_visit_assignment, execute_vrp):
11350         Use current_loops instead of cfg_loops.  Pass flags to
11351         loop_optimizer_init.
11352         * cfgloopmanip.c (fix_loop_structure): Update only available
11353         information.
11354         * tree-ssa-loop-ch.c (copy_loop_headers): Pass flags to
11355         loop_optimizer_init.
11356         * modulo-sched.c (build_loops_structure): Removed.
11357         (sms_schedule): Use loop_optimizer_init.
11358         * loop-init.c (loop_optimizer_init): Use flags to determine
11359         which properties of loops to prepare.
11360         (rtl_loop_init): Pass flags to loop_optimizer_init.
11361         * tree-ssa-sink.c (execute_sink_code): Ditto.
11362         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
11363         * tree-ssa-pre.c (init_pre): Ditto.
11364         * cfgloop.h (LOOPS_NORMAL): New.
11365         (loop_optimizer_init): Declaration changed.
11366
11367 2006-02-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11368
11369         * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
11370         * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of
11371         pa/t-pa.
11372         * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of
11373         pa/t-pa.
11374         * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of
11375         pa/x-ada.
11376         * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules.
11377         * pa/t-pa64: Delete quadlib.c rule.
11378         * pa/x-ada: Revert last change.
11379         * pa/t-pa: Revert last change.  Delete quadlib.c rule.
11380
11381 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
11382
11383         PR rtl-optimization/26087
11384         * rtlanal.c (canonicalize_condition): Do not cross basic block
11385         boundaries.
11386
11387 2006-02-04  Alexandre Oliva  <aoliva@redhat.com>
11388
11389         PR debug/24444
11390         * config/ia64/ia64.c: Include debug.h.
11391         (MAX_ARTIFICIAL_LABEL_BYTES): New.
11392         (ia64_label_after_insn, ia64_dwarf2out_def_steady_cfa): New.
11393         (IA64_CHANGE_CFA_IN_EPILOGUE): Define to 0.
11394         (process_epilogue, process_set, process_for_unwind_directive):
11395         Output unwind info only if requested.  Add CFA info if requested.
11396         Add new arguments as needed.  Adjust callers.
11397         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Override
11398         incorrect default.
11399         (DWARF2_FRAME_INFO): Define to zero.
11400         * config/ia64/unwind-ia64.c: Remove code that compensated for
11401         the CFA offset error fixed above.
11402         * config/ia64/t-ia64 (ia64.o): Depend on debug.h.
11403         * dwarf2out.c (DWARF2_FRAME_INFO): Define default.
11404         (dwarf2out_do_frame): Require nonzero DWARF2_UNWIND_INFO for
11405         -funwind-tables and -fexceptions to enable frame info.
11406         (dwarf2out_frame_init): Define initial CFA even if
11407         DWARF2_UNWIND_INFO is disabled.  Call initial_return_save if
11408         DWARF2_UNWIND_INFO is nonzero, not just defined.
11409         (dwarf2out_frame_finish): Output non-EH call frame info only
11410         if DWARF2_FRAME_INFO is nonzero.
11411         (convert_cfa_to_loc_list,
11412         compute_frame_pointer_to_cfa_displacement): Define even if
11413         unwind info is not supported.
11414         (gen_subprogram_die): Use the above unconditionally.  Remove
11415         legacy alternate code.
11416         * toplev.c (compile_file): Compile in call to
11417         dwarf2out_frame_finish if DWARF2_DEBUGGING_INFO is defined.
11418         (lang_dependent_init): Ditto for dwarf2out_frame_init.
11419
11420 2006-02-04  David Edelsohn  <edelsohn@gnu.org>
11421             Jakub Jelinek  <jakub@redhat.com>
11422
11423         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Mangle
11424         IBM extended float format long double as "g" on powerpc*-linux.
11425
11426 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11427
11428         PR target/25926
11429         * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
11430         * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
11431
11432 2006-02-03  Jason Merrill  <jason@redhat.com>
11433
11434         PR c++/25979
11435         * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.
11436
11437         PR middle-end/25977
11438         * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
11439         on the return slot if it's an NRV.
11440
11441 2006-02-03  Zdenek Dvorak <dvorakz@suse.cz>
11442
11443         * tree-ssa-loop-ivopts.c (enum use_type): Remove USE_OUTER.
11444         (dump_use, add_derived_ivs_candidates, determine_use_iv_cost,
11445         rewrite_use): Do not handle USE_OUTER.
11446         (find_interesting_uses_outer_or_nonlin, find_interesting_uses_outer,
11447         add_iv_outer_candidates, may_replace_final_value,
11448         determine_use_iv_cost_outer, rewrite_use_outer): Removed.
11449         (find_interesting_uses_op): Functionality of
11450         find_interesting_uses_outer_or_nonlin moved here.
11451         (find_interesting_uses_outside): Use find_interesting_uses_op.
11452
11453 2006-02-03  Alan Modra  <amodra@bigpond.net.au>
11454
11455         PR target/25960
11456         * config/rs6000/darwin-ldouble.c (__gcc_qadd): Preserve -0.0 result.
11457
11458 2006-02-03  Andreas Krebbel  <krebbel1@de.ibm.com>
11459             Ulrich Weigand  <uweigand@de.ibm.com>
11460
11461         PR target/25864
11462         * config/s390/2084.md ("x_fsimptf", "x_fmultf", "x_fdivtf",
11463         "x_floadtf", "x_ftrunctf", "x_ftruncdf"): New insn reservations.
11464         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): New functions.
11465         * config/s390/s390.c (struct processor_costs): Add mxbr, sqxbr, dxbr
11466         and dxr fields.
11467         (z900_cost, z990_cost, z9_109_cost): Values for the new fields added.
11468         (s390_rtx_costs): Use the new fields to calculate rtx costs.
11469         (s390_secondary_input_reload_class, s390_secondary_output_reload_class):
11470         Define secondary reloads for TFmode moves.
11471         (constant_modes): Add TFmode.
11472         (NR_C_MODES): Set to 8.
11473         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Add __LONG_DOUBLE_128__
11474         builtin define.
11475         (LONG_DOUBLE_TYPE_SIZE): Set to 128 or 64.
11476         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE, WIDEST_HARDWARE_FP_SIZE): Define.
11477         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
11478         CANNOT_CHANGE_MODE_CLASS): Consider TFmode.
11479         * config/s390/s390.md ("type" attribute): Add fsimptf, floadtf, fmultf,
11480         fdivtf, fsqrttf, ftrunctf, ftruncdf as possible values.
11481         (FPR mode macro): Add TFmode.
11482         (DSF mode macro): New.
11483         (<de>, <dee> mode attributes): Removed.
11484         (<xde>, <xdee>, <RRe>, <RXe>, <Rf> mode attributes): New.
11485         ("*cmp<mode>_ccs_0", "*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs",
11486         "*cmp<mode>_ccs_ibm", "fix_trunc<FPR:mode><GPR:mode>2_ieee",
11487         "floatdi<mode>2", "floatsi<mode>2_ieee", "*add<mode>3",
11488         "*add<mode>3_cc", "*add<mode>3_cconly", "*add<mode>3_ibm",
11489         "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly",
11490         "*sub<mode>3_ibm", "*mul<mode>3_ibm", "*fmadd<mode>", "*fmsub<mode>",
11491         "*div<mode>3", "*div<mode>3_ibm", "*neg<mode>2_cc",
11492         "*neg<mode>2_cconly", "*neg<mode>2", "*neg<mode>2_ibm",
11493         "*abs<mode>2_cc", "*abs<mode>2_cconly", "*abs<mode>2",
11494         "*abs<mode>2_ibm", "*negabs<mode>2_cc", "*negabs<mode>2_cconly",
11495         "*negabs<mode>2", "sqrt<mode>2"):
11496         Changed <de> to <xde>. R constraint replaced by <Rf>.
11497         ("*mul<mode>3"): Changed <dee> to <xdee>. R constraint replaced by
11498         <Rf>.
11499         ("fix_trunc<FPR:mode>di2"): 'FPR:' removed.
11500         ("*fmadd<mode>", "*fmsub<mode>"): FPR mode replaced by DSF.
11501         ("*movtf_64", "*movtf_31"): New insn definitions followed by 5
11502         splitters.
11503         ("movtf", "reload_outtf", "reload_intf", "trunctfdf2", "trunctfsf2",
11504         "extenddftf2", "extendsftf2"): New expanders.
11505         ("*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
11506         "*trunctfsf2_ibm", "*extenddftf2_ieee", "*extenddftf2_ibm",
11507         "*extendsftf2_ieee", "*extendsftf2_ibm"): New insn patterns.
11508         * config/s390/s390.opt (mlong-double-128, mlong-double-64):
11509         New options.
11510         * config/s390/t-crtstuff (TARGET_LIBGCC2_CFLAGS): Macro defined.
11511         * config/s390/libgcc-glibc.ver (__divtc3, __multc3, __powitf2,
11512         __fixtfti, __fixunstfti, __floattitf, __fixtfdi, __fixunstfdi,
11513         __floatditf): Add a GCC_4.1.0 symbol version tag.
11514         * doc/invoke.texi (-mlong-double-128, -mlong-double-64): Document
11515         the new options.
11516
11517 2006-02-02  Andrew Pinski  <pinskia@physics.uc.edu>
11518
11519         PR target/25377
11520         * config/i386/i386.c (ix86_function_ok_for_sibcall):
11521         Use targetm.binds_local_p instead of TREE_PUBLIC.
11522
11523 2006-02-02  Roger Sayle  <roger@eyesopen.com>
11524
11525         * tree.h (TYPE_STRING_FLAG): Document that this field may be used
11526         on INTEGER_TYPEs to indicate that it denotes a character type.
11527         * tree.c (build_common_tree_nodes): Set TYPE_STRING_FLAG on
11528         signed_char_type_node, unsigned_char_type_node and char_type_node.
11529         * dwarf2out.c (base_type_die): Treat CHAR_TYPE identically to
11530         INTEGER_TYPE.  Use TYPE_STRING_FLAG to decide whether to emit
11531         a DW_ATE_[un]signed_char instead of a DW_ATE_[un]signed.
11532
11533 2006-02-02  Zdenek Dvorak <dvorakz@suse.cz>
11534             Daniel Berlin  <dberlin@dberlin.org>
11535
11536         * tree-tailcall.c (arg_needs_copy_p): New function.
11537         (eliminate_tail_call): Use arg_needs_copy_p.
11538         (tree_optimize_tail_calls_1): Ditto. Also call add_virtual_phis.
11539         (add_virtual_phis): New function.
11540
11541 2006-02-02  Jakub Jelinek  <jakub@redhat.com>
11542
11543         * config/sparc/sparc.c (sparc_output_scratch_registers): Use
11544         #ignore instead of #scratch for %g7 .register directive.
11545
11546 2006-02-02  Andreas Tobler  <a.tobler@schweiz.ch>
11547
11548         * config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
11549         object files.
11550
11551 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
11552
11553         * flow.c (calculate_global_regs_live): Assert that there aren't any
11554         EDGE_FAKE edges.
11555
11556 2006-02-02  Paolo Bonzini  <bonzini@gnu.org>
11557
11558         * tree-flow-inline.h (bsi_after_labels): Rewrite, return
11559         what its name says.
11560         * lambda-code.c (perfect_nestify): Use bsi_insert_before on
11561         bsi_after_labels iterator.
11562         * tree-if-conv.c (find_phi_replacement_condition,
11563         replace_phi_with_cond_modify_expr): Likewise.
11564         * tree-scalar-evolution.c (scev_const_prop): Likewise.
11565         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
11566
11567 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
11568
11569         * tree-inline.c (copy_tree_r): Also copy OMP_CLAUSE nodes.
11570
11571 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
11572
11573         PR 25990
11574         * tree-cfg.c (move_block_to_fn): Clear out the basic block
11575         array after growing it.
11576
11577 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
11578
11579         PR middle-end/24901
11580         * fold-const.c (fold_checksum_tree): Change type of buf.
11581
11582 2006-02-01  Bernd Schmidt  <bernd.schmidt@analog.com>
11583
11584         * reload.c (push_secondary_reload): Initialize t_icode.
11585
11586 2006-02-01  Jakub Jelinek  <jakub@redhat.com>
11587
11588         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
11589         -msoft-float -mlong-double-128 only issue a warning, but don't
11590         swich to DFmode long double.
11591
11592 2006-02-01  Hans-Peter Nilsson  <hp@axis.com>
11593
11594         * cse.c (fold_rtx) <case RTX_COMM_COMPARE, RTX_COMPARE>: When arg1
11595         has a constant equivalent, iterate over equivalents for arg0,
11596         calling simplify_relational_operation and if there's a result
11597         cheaper than X, apply fold_rtx and return the result.
11598
11599 2006-02-01  Jan Hubicka  <jh@suse.cz>
11600
11601         * opts.c (no_unit_at_a_time_default): New global variable.
11602         (decode_options): Use it.
11603         * opts.h (no_unit_at_a_time_default): Declare.
11604
11605 2006-02-01  Paul Brook  <paul@codesourcery.com>
11606
11607         * function.c (assign_parm_setup_reg): Use function argument promotion
11608         rules.
11609         * expr.c (expand_expr_real_1): Use function argument promotion rules
11610         for PARM_DECLs.
11611
11612 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
11613
11614         * gcc.c (process_command): Change j to 'unsigned int'.
11615
11616 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
11617
11618         PR middle-end/26001
11619         * expr.c (expand_expr_real_1) <case ARRAY_REF>:
11620         Use the corrected index for the character
11621         out of the string constant.
11622
11623 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
11624
11625         * mode-switching.c (optimize_mode_switching): Fix size
11626         allocated for bb_info[n_entities].
11627
11628 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
11629
11630         * gcc.c (main): Correct type that is allocated for
11631         explicit_link_files.
11632
11633 2006-01-31  Jakub Jelinek  <jakub@redhat.com>
11634
11635         * config/s390/s390.c (init_alignment_context): Set
11636         ALIAS_SET_MEMORY_BARRIER on the MEM.
11637         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
11638
11639 2006-01-31  Uttam Pawar  <uttamp@us.ibm.com>
11640
11641         PR middle-end/25933
11642         * loop-unroll.c (unroll_loop_runtime_iterations): Free
11643         dom_bbs pointer.
11644         * tree-ssa-live.c (type_var_init): Allocate bitmap after
11645         call to tpa_init.
11646
11647 2006-01-31  Marcin Dalecki  <martin@dalecki.de>
11648
11649         * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
11650         * regrename.c: Ditto.
11651         * tree-ssa-loop-im.c: Ditto.
11652         * tree-dump.c: Ditto.
11653         * tree-complex.c: Ditto.
11654         * genrecog.c: Ditto.
11655         * tree-ssa-threadupdate.c: Ditto.
11656         * tracer.c: Ditto.
11657         * java/class.c: Ditto.
11658         * java/jcf-parse.c: Ditto.
11659         * java/resource.c: Ditto.
11660         * java/except.c: Ditto.
11661         * java/jvspec.c: Ditto.
11662         * java/jcf-write.c: Ditto.
11663         * java/jcf-path.c: Ditto.
11664         * java/gjavah.c: Ditto.
11665         * java/zextract.c: Ditto.
11666         * java/jcf-io.c: Ditto.
11667         * java/jcf.h: Ditto.
11668         * java/buffer.c: Ditto.
11669         * java/lang.c: Ditto.
11670         * java/parse-scan.y: Ditto.
11671         * java/lex.c: Ditto.
11672         * java/lex.h: Ditto.
11673         * cfgloopmanip.c: Ditto.
11674         * postreload-gcse.c: Ditto.
11675         * tree-ssa-loop-manip.c: Ditto.
11676         * postreload.c: Ditto.
11677         * tree-ssa-loop-ch.c: Ditto.
11678         * loop.c: Ditto.
11679         * ipa-cp.c: Ditto.
11680         * cppspec.c: Ditto.
11681         * diagnostic.c: Ditto.
11682         * final.c: Ditto.
11683         * genoutput.c: Ditto.
11684         * gcc.c: Ditto.
11685         * cfghooks.c: Ditto.
11686         * cfgloopanal.c: Ditto.
11687         * objc/objc-act.c: Ditto.
11688         * gcov.c: Ditto.
11689         * genextract.c: Ditto.
11690         * genautomata.c: Ditto.
11691         * pretty-print.c: Ditto.
11692         * genemit.c: Ditto.
11693         * cgraphunit.c: Ditto.
11694         * flow.c: Ditto.
11695         * df-scan.c: Ditto.
11696         * haifa-sched.c: Ditto.
11697         * dominance.c: Ditto.
11698         * dbxout.c: Ditto.
11699         * tree-ssa-loop-ivopts.c: Ditto.
11700         * df-core.c: Ditto.
11701         * mode-switching.c: Ditto.
11702         * modulo-sched.c: Ditto.
11703         * graph.c: Ditto.
11704         * ipa-pure-const.c: Ditto.
11705         * cse.c: Ditto.
11706         * fix-header.c: Ditto.
11707         * web.c: Ditto.
11708         * tree-stdarg.c: Ditto.
11709         * ipa-utils.c: Ditto.
11710         * loop-init.c: Ditto.
11711         * ipa-inline.c: Ditto.
11712         * cfganal.c: Ditto.
11713         * global.c: Ditto.
11714         * alloc-pool.c: Ditto.
11715         * dwarf2out.c: Ditto.
11716         * opts.c: Ditto.
11717         * genattrtab.c: Ditto.
11718         * tree-ssa-loop-ivcanon.c: Ditto.
11719         * predict.c: Ditto.
11720         * timevar.c: Ditto.
11721         * lcm.c: Ditto.
11722         * fortran/gfortranspec.c: Ditto.
11723         * regmove.c: Ditto.
11724         * local-alloc.c: Ditto.
11725         * langhooks.c: Ditto.
11726         * function.c: Ditto.
11727         * tree-vectorizer.c: Ditto.
11728         * gcse.c: Ditto.
11729         * ipa-type-escape.c: Ditto.
11730         * alias.c: Ditto.
11731         * tree-if-conv.c: Ditto.
11732         * profile.c: Ditto.
11733         * ipa.c: Ditto.
11734         * tree-data-ref.c: Ditto.
11735         * loop-unroll.c: Ditto.
11736         * treelang/treetree.c: Ditto.
11737         * calls.c: Ditto.
11738         * bt-load.c: Ditto.
11739         * ggc-common.c: Ditto.
11740         * except.c: Ditto.
11741         * coverage.c: Ditto.
11742         * cselib.c: Ditto.
11743         * tree-cfgcleanup.c: Ditto.
11744         * tree-ssa-pre.c: Ditto.
11745         * cfgcleanup.c: Ditto.
11746         * loop-invariant.c: Ditto.
11747         * loop-iv.c: Ditto.
11748         * ipa-prop.c: Ditto.
11749         * print-tree.c: Ditto.
11750         * conflict.c: Ditto.
11751         * ggc-page.c: Ditto.
11752         * sched-deps.c: Ditto.
11753         * regclass.c: Ditto.
11754         * tree-object-size.c: Ditto.
11755         * combine.c: Ditto.
11756         * bb-reorder.c: Ditto.
11757         * resource.c: Ditto.
11758         * var-tracking.c: Ditto.
11759         * cfgloop.c: Ditto.
11760         * df-problems.c: Ditto.
11761         * reg-stack.c: Ditto.
11762         * tlink.c: Ditto.
11763         * gccspec.c: Ditto.
11764         * sched-rgn.c: Ditto.
11765         * tree-ssa-structalias.c: Ditto.
11766         * tree-ssa-reassoc.c: Ditto.
11767         * config/darwin-c.c: Ditto.
11768         * config/darwin.c: Ditto.
11769         * config/arm/arm.c: Ditto.
11770         * cfgrtl.c: Ditto.
11771         * collect2.c: Ditto.
11772         * reload1.c: Ditto.
11773
11774 2006-01-31  Nicolas Pitre  <nico@cam.org>
11775
11776         * arm.md (smaxsi3): Make aware of smax_m1.
11777         (smax_m1): New.
11778
11779 2006-01-31  Nathan Sidwell  <nathan@codesourcery.com>
11780
11781         * config/m68k/lb1sf68.asm: Use moveq to load small constants.
11782
11783 2006-01-31  Richard Guenther  <rguenther@suse.de>
11784
11785         * doc/invoke.texi (-msselibm): Document.
11786         * target.h (expand_library_builtin): New target hook.
11787         * builtins.c (expand_builtin): Use expand_library_builtin.
11788         (default_expand_library_builtin): New function.
11789         * gcc.c (LINK_GCC_MATH_SPEC): Define.
11790         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
11791         (link_gcc_math_spec): Declare.
11792         (static_specs): Add link_gcc_math_spec.
11793         * expr.h (default_expand_library_builtin): Declare.
11794         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
11795         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
11796         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
11797         * config/i386/i386.opt (msselibm): New target option.
11798         * config/i386/i386.c (ix86_builtin_function_variants): New array.
11799         (ix86_init_sse_abi_builtins): New function.
11800         (ix86_expand_library_builtin): Likewise.
11801         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
11802         (override_options): Handle error conditions wrt -msselibm.
11803         (ix86_builtins): Add function codes for SSE2 ABI builtins.
11804         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
11805         * doc/extend.texi (__builtin_sse2_*): Document new target specific
11806         builtins.
11807
11808 2006-01-31  Richard Guenther  <rguenther@suse.de>
11809         Paolo Bonzini  <bonzini@gnu.org>
11810
11811         * doc/install.texi (--disable-libgcc-math): Document.
11812
11813 2006-01-30  Marcin Dalecki  <martin@dalecki.de>
11814
11815         * expr.h (expand_normal): new inline function.
11816         * builtins.c: use it, use EXPAND_NORMAL explicitely.
11817         * dojump.c: use it.
11818         * dwarf2out.c: use it.
11819         * expr.c: use it.
11820         * calls.c: use it.
11821         * expmed.c: use it.
11822         * except.c: use it.
11823         * config/sparc/sparc.c: use it.
11824         * config/i386/i386.c: use it.
11825         * config/rs6000/rs6000.c: use it.
11826         * config/arm/arm.c: use it.
11827         * config/mips/mips.c: use it.
11828         * stmt.c: use it, use EXPAND_NORMAL explicitely.
11829
11830 2006-01-30  Roger Sayle  <roger@eyesopen.com>
11831
11832         * config/i386/cygwin.h (GCC_DRIVER_HOST_INITIALIZATION): Cast
11833         argv to the appropriate type.
11834
11835 2006-01-30  Zdenek Dvorak <dvorakz@suse.cz>
11836
11837         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
11838         unreachable code.
11839
11840 2006-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
11841
11842         PR target/26018
11843         * config/s390/s390.c (struct machine_function): New flag
11844         decomposed_literal_pool_addresses_ok_p.
11845         (s390_reorg): Set it before final stage of literal pool transforms.
11846         (s390_decompose_address): Only accept displacements of the form
11847         (minus (label_ref ...) (label_ref ...)) if that flag is set.
11848
11849 2006-01-30  Carlos O'Donell  <carlos@codesourcery.com>
11850
11851         * optabs.c (prepare_cmp_insn): If unbaised and unsigned then bias
11852         the comparison routine return.
11853
11854 2006-01-30  Michael Matz  <matz@suse.de>
11855
11856         * global.c (find_reg): Only evict for global regs.
11857         Take n_refs into account and dump more info.
11858
11859 2006-01-30  J"orn Rennecke <joern.rennecke@st.com>
11860
11861         PR target/14798:
11862         * sh.c (pragma_interrupt, trap_exit, sp_switch): Remove variable.
11863         (pragma_trap, pragma_nosave_low_regs): Likewise.
11864         (current_function_anonymous_args): Likewise.
11865         (sh_deferred_function_attributes): New variable.
11866         (sh_deferred_function_attributes_tail): Likewise.
11867         (print_operand): For '@', look up trap_exit attribute.
11868         (calc_live_regs): Look up trapa_handler attribute.  For trapa
11869         handlers, save/restore fpscr, but don't do any other
11870         interrupt-specific saves.
11871         Don't save r0..r7 if the nosave_low_regs attribute is in effect.
11872         Fix check for partially saved registers to check for SHmedia.
11873         (sh_expand_prologue, sh_expand_epilogue): Look up sp_switch attribute.
11874         (sh_output_function_epilogue): Don't clear any of the removed
11875         variables.
11876         (sh_insert_attributes): Don't check pragma_interrupt.
11877         Insert deferred attributes.  Check that interrupt attribute is
11878         present for other attributes that require its presence.
11879         (sh_attribute_table): Add new attributes trapa_handler and
11880         nosave_low_regs.
11881         (sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
11882         Don't check for pragma_interrupt.  Don't store argument.
11883         * sh.h (pragma_interrupt, sp_switch): Don't declare.
11884         (sh_deferred_function_attributes): Declare.
11885         (sh_deferred_function_attributes_tail): Likewise.
11886         * sh.md (sp_switch_1): Add operand.  Change generator caller.
11887         (sh_pr_interrupt, sh_pr_trapa, sh_pr_nosave_low_regs): Remove.
11888         (*return_i): Don't use when trap_exit attribute is in effect.
11889         (*return_trapa): New insn pattern.
11890         * sh-c.c: New file.
11891         * config.gcc (sh[123456ble]*-* | sh-*-*): New trailer stanza,
11892         setting c_target_objs and cxx_target_objs.
11893         * t-sh: Add rule for sh-c.o.
11894
11895 2006-01-30  Richard Guenther  <rguenther@suse.de>
11896
11897         PR c++/23372
11898         * gimplify.c (gimplify_target_expr): Handle easy cases
11899         without creating a temporary.
11900
11901 2006-01-30  Nathan Sidwell  <nathan@codesourcery.com>
11902
11903         * vec.h (safe_grow): Remove duplicated line.
11904
11905 2006-01-29  Diego Novillo  <dnovillo@redhat.com>
11906
11907         PR 25874
11908         * omp-low.c (execute_expand_omp): Move CFG cleanup code ...
11909         (expand_omp): ... here.
11910         (expand_omp_parallel): Only remove barriers for combined
11911         parallel+workshare constructs.
11912
11913 2006-01-29  Eric Botcazou  <ebotcazou@adacore.com>
11914
11915         Revert
11916
11917         2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
11918         * tree.c (build_qualified_type): Chain the new type to the original
11919         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
11920         a POINTER_TYPE or a REFERENCE_TYPE respectively.
11921         (build_pointer_type_for_mode): Only return unqualified types.
11922         (build_reference_type_for_mode): Likewise.
11923
11924 2006-01-29  Gabriel Dos Reis  <gdr@integgrable-solutions.net>
11925
11926         * configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.
11927         * Makefile.in (CXX_COMPAT_WARN): Define.
11928         * configure: Regenerate.
11929
11930 2006-01-29  Dorit Nuzman  <dorit@il.ibm.com>
11931
11932         PR tree-opt/25911
11933         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
11934         to an if check.
11935
11936 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11937
11938         * toplev.c: Fix thinko.
11939
11940 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11941             Marcin Dalecki  <martin@dalecki.de>
11942
11943         * toplev.c (floor_log2, exact_log2): Don't define if __cplusplus.
11944         (push_srcloc): Use XNEW.
11945         (init_asm_output, default_get_pch_validity): Use XNEWVEC.
11946
11947 2006-01-29  Kenneth Zadeck <zadeck@naturalbridge.com>
11948
11949         * df-core.c (df_set_blocks): Deleted all variable.
11950
11951 2006-01-28  Ian Lance Taylor  <ian@airs.com>
11952
11953         * cgraphunit.c (cgraph_assemble_pending_functions): Call
11954         cgraph_output_pending_asms.
11955
11956 2006-01-28  Zack Weinberg  <zackw@panix.com>
11957
11958         * c.opt: Add -W(no-)overlength-strings.
11959         * doc/invoke.texi: Document it.
11960         * c-opts.c (c_common_handle_option): -pedantic implies
11961         -Woverlength-strings, if not explicitly disabled already.
11962         (c_common_post_options): -Woverlength-strings defaults to off, and
11963         is always off for C++.
11964         * c-common.c (fix_string_type): Issue warning about strings longer
11965         than is portable only if warn_overlength_strings.  Rearrange code
11966         a little for clarity.
11967         * configure.in: Check for -Wno-overlength-strings as well before
11968         enabling -pedantic in stage 1.
11969         * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
11970         (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.
11971
11972         * genconditions.c (write_header, write_one_condition)
11973         (write_conditions, write_writer): Consolidate very long strings
11974         that were broken up to fit in C89 portable limit.  Don't use
11975         printf when fputs will do.
11976
11977 2006-01-28  Adam Nemet  <anemet@caviumnetworks.com>
11978
11979         * combine.c (simplify_comparison <AND>): Check
11980         TRULY_NOOP_TRUNCATION before start using a subreg.
11981
11982         * config/mips/mips.md (*branch_zero<mode>,
11983         *branch_zero<mode>_inverted, *branch_equality<mode>,
11984         *branch_equality<mode>_inverted, *branch_equality<mode>_mips16):
11985         Remove mode check from comparisons.
11986
11987 2006-01-28  Kenneth Zadeck <zadeck@naturalbridge.com>
11988
11989         * config/mips/mips-protos.h (mips_set_live_on_entry): Deleted.
11990
11991 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
11992
11993         * expmed.c (const_mult_add_overflow_p): Remove.
11994         * expr.h: Remove the prototype for const_mult_add_overflow_p.
11995
11996         * recog.c (validate_replace_rtx_subexp): Remove.
11997         * recog.h: Remove the prototype for
11998         validate_replace_rtx_subexp.
11999
12000         * integrate.h: Remove the prototype for
12001         copy_decl_for_inlining.
12002         * rtl.h: Remove the prototype for mark_constant_function.
12003         * tree-vectorizer.h: Remove the prototype for
12004         vect_strip_conversion.
12005
12006         * modulo-sched.c (create_partial_schedule,
12007         free_partial_schedule, reset_partial_schedule): Make them
12008         static.
12009
12010         * hooks.c (hook_bool_rtx_int_false): Remove.
12011         * hooks.h: Remove the prototype for hook_bool_rtx_int_false.
12012
12013 2006-01-28  David Edelsohn  <edelsohn@gnu.org>
12014
12015         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
12016         and -mlong-double-128 are incompatible.
12017         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
12018         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
12019         (TARGET_LIBGCC2_CFLAGS): Define.
12020         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): Same.
12021         (TARGET_LIBGCC2_CFLAGS): Same.
12022         * config/rs6000/ppc64-fp.c: Compile for 64-bit AIX.
12023
12024 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
12025
12026         PR c/19606.
12027         * c-typeck.c (build_binary_op): Perform implicit casts of
12028         operands before shortening them.
12029
12030         * cfgloopmanip.c (split_loop_bb): Remove.
12031         * cfgloop.h: Remove the prototype for split_loop_bb.
12032
12033         * cfgloop.c (flow_loop_outside_edge_p): Remove.
12034         * cfgloop.h: Remove the prototype for
12035         flow_loop_outside_edge_p.
12036
12037         * emit-rtl.c (init_virtual_regs): Make it static.
12038         * function.h: Remove the prototype for init_virtual_regs.
12039
12040         * recog.c (peephole2_optimize): Make it static.
12041         * recog.h: Remove the prototype for peephole2_optimize.
12042
12043 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
12044
12045         * df-scan.c (df_record_entry_block_defs): Check if
12046         INCOMING_RETURN_ADDR_RTX is defined.
12047
12048 2006-01-27  Daniel Berlin  <dberlin@dberlin.org>
12049             Kenneth Zadeck <zadeck@naturalbridge.com>
12050
12051         PR rtl-optimization/24762
12052         * doc/tm.texi: Added TARGET_EXTRA_LIVE_ON_ENTRY.
12053         * targhooks.c (hook_void_bitmap): New hook prototype.
12054         * targhoohs.h (hook_void_bitmap): Ditto.
12055         * bitmap.h (bitmap_head_def): Moved to coretypes.h.
12056         * coretypes.h (bitmap_head_def): Moved from bitmap.h.
12057         * target.h (live_on_entry): New function pointer.
12058         * df-scan.c (df_all_hard_regs): Removed.
12059         (df_scan_dump, df_hard_reg_init): Removed df_all_hard_regs.
12060         (df_scan_free_internal): Added df->entry_block_defs.
12061         (df_scan_alloc): Ditto.
12062         (df_scan_dump): Ditto.
12063         (df_uses_record): Plumbed flag field properly thru calls.
12064         Record EH_RETURN_DATA_REGNO in eh blocks unconditionally.
12065         This part fixes PR24762.
12066         (df_bb_refs_record): Added code to make the frame and arg
12067         pointers live in EH blocks.
12068         (df_refs_record): Added call to df_record_entry_block_defs.
12069         (df_record_entry_block_defs): New function.
12070         * df-core.c: Added comments to describe new artifical defs.
12071         * df.h (DF_REF_DIES_AFTER_THIS_USE): New flag in enum df_ref_flags.
12072         (entry_block_defs): New field in struct df.
12073         (df_all_hard_regs): Deleted.
12074         * target-def.h: Added TARGET_EXTRA_LIVE_ON_ENTRY.
12075         * df-problems.c (df_ru_bb_local_compute_process_def):
12076         Added code to handle artifical defs in the entry to a function.
12077         (df_ru_bb_local_compute): Ditto.
12078         (df_rd_bb_local_compute_process_def): Ditto.
12079         (df_rd_bb_local_compute): Ditto.
12080         (df_lr_bb_local_compute): Ditto.
12081         (df_ur_bb_local_compute): Ditto.
12082         (df_urec_bb_local_compute): Ditto.
12083         (df_chain_create_bb): Ditto.
12084         (df_ur_local_finalize): Removed entry.
12085         (df_urec_init): Ditto.
12086         (df_urec_local_finalize): Ditto.
12087         (df_ri_bb_compute): Added detection of last use of pseudos.
12088         * Makefile.in (df-scan.o): Updated dependencies.
12089         * config/mips/mips-protos.h (mips_set_live_on_entry): Added.
12090         * config/mips/mips.c (mips_set_live_on_entry): Added.
12091         * config/mips/mips.c (TARGET_EXTRA_LIVE_ON_ENTRY): Added value
12092         for target hook.
12093         * dce.c (marked_insn_p): Added code to handle artifical defs.
12094
12095 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
12096
12097         * config/i386/emmintrin.h (_mm_cvtsd_f64): Add missing Intel
12098         intrinsic.
12099         (_mm_cvtsi128_si64): Likewise.
12100         (_mm_cvtsd_si64): Likewise.
12101         (_mm_cvttsd_si64): Likewise.
12102         (_mm_cvtsi64_sd): Likewise.
12103         (_mm_cvtsi64_si128): Likewise.
12104         * config/i386/mmintrin.h (_m_from_int64): Likewise.
12105         (_mm_cvtsi64_m64): Likewise.
12106         (_m_to_int64): Likewise.
12107         (_mm_cvtm64_si64): Likewise.
12108         * config/i386/xmmintrin.h (_mm_cvtss_si64): Likewise.
12109         (_mm_cvttss_si64): Likewise.
12110         (_mm_cvtsi64_ss): Likewise.
12111         (_mm_cvtss_f32): Likewise.
12112
12113 2006-01-27  Carlos O'Donell  <carlos@codesourcery.com>
12114
12115         * c-pragma.c (init_pragma) : Call c_register_pragma_with_expansion
12116         for pragma redefine_extname.
12117
12118 2006-01-27  Jakub Jelinek  <jakub@redhat.com>
12119
12120         PR target/25864
12121         * libgcc-std.ver: Add GCC_4.1.0 symbol version.
12122         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Only append
12123         -mno-minimal-toc to previous content.
12124         (bispecs): Remove goal.
12125         * config/rs6000/ppc64-fp.c: Define TMODES before including fp-bit.h.
12126         * config/rs6000/darwin-ldouble.c: Don't provide _xlq*@GCC_3.4
12127         compatibility aliases on powerpc-*-*gnu*.
12128         * config/rs6000/libgcc-ppc-glibc.ver: New file.
12129         * config/rs6000/t-ppccomm (SHLIB_MAPFILES): Append
12130         libgcc-ppc-glibc.ver on powerpc*-*-*gnu*.
12131         (TARGET_LIBGCC2_CFLAGS): Append -specs=ldblspecs.
12132         (ldblspecs): New goal.
12133         * config/rs6000/t-linux64 (SHLIB_MAPFILES): Removed.
12134         * mklibgcc.in: If $TPBIT is empty, don't compile _sf_to_tf and
12135         _df_to_tf.
12136         * config/fp-bit.h (TMODES): Don't define if none of TFLOAT,
12137         L_sf_to_tf or L_df_to_tf is defined.
12138
12139 2006-01-27  David Edelsohn  <edelsohn@gnu.org>
12140             Alan Modra  <amodra@bigpond.net.au>
12141
12142         PR target/25864
12143         * config/rs6000/linux.h (POWERPC_LINUX): Define.
12144         * config/rs6000/linux64.h (POWERPC_LINUX): Define.
12145         * config/rs6000/darwin-ldouble.c: Build on 32-bit PowerPC.
12146         * config/rs6000/darwin.h (TARGET_IEEEQUAD): Define to zero.
12147         * config/rs6000/aix.h (TARGET_IEEEQUAD): Define to zero.
12148         * config/rs6000/rs6000.c (rs6000_ieeequad): New variable.
12149         (rs6000_override_options): Initialize rs6000_ieeequad.
12150         Initialize TFmode format to ibm_extended_format if not
12151         TARGET_IEEEQUAD.
12152         (rs6000_handle_option): Accept -mabi= ibmlongdouble and
12153         ieeelongdouble.
12154         (rs6000_emit_move): Move !TARGET_IEEEQUAD as two parts.
12155         (rs6000_return_in_memory): Only return IEEEQUAD in memory.
12156         (function_arg_advance): IBM long double passed in two FPRs, not
12157         split.
12158         (function_arg): IBM long double passed in FPRs.
12159         (rs6000_pass_by_reference): Only IEEEQUAD passed by reference.
12160         (rs6000_gimplify_va_arg): IBM long double passed in two FPRs.
12161         Only multireg GPR aligned.
12162         (rs6000_init_libfuncs): Enable IBM long double functions if not
12163         IEEEQUAD.
12164         (rs6000_generate_compare): Use IBM long double compare if not
12165         TARGET_IEEEQUAD.
12166         * config/rs6000/rs6000.h (rs6000_ieeequad): Declare.
12167         (TARGET_IEEEQUAD): Define.
12168         (CANNOT_CHANGE_MODE_CLASS): Any mode larger than doubleword if
12169         not TARGET_IEEEQUAD.
12170         * config/rs6000/rs6000.md: Enable TFmode patterns if
12171         !TARGET_IEEEQUAD.
12172         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
12173         * config/rs6000/svr4.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
12174         and -mlong-double-128 are incompatible.
12175         * doc/invoke.texi (-mabi): Collect options together.  Add
12176         ibmlongdouble and ieeelongdouble.
12177
12178 2006-01-27  Richard Sandiford  <richard@codesourcery.com>
12179
12180         * doc/rtl.texi (SYMBOL_REF_DATA): Adjust documentation for new
12181         opaque type.
12182         * optabs.c (init_one_libfunc): Use SET_SYMBOL_REF_DECL.
12183         * varasm.c (make_decl_rtl, build_constant_desc): Likewise.
12184         (force_const_mem): Use SET_SYMBOL_REF_CONSTANT.
12185         * rtl.h (rtunion_def): Remove rt_ptr.
12186         (X0PTR): Delete.
12187         (SYMBOL_REF_DATA): Use X0ANY instead of X0PTR.
12188         (SET_SYMBOL_REF_DECL, SET_SYMBOL_REF_CONSTANT): New macros.
12189         * config/i386/winnt.c (i386_pe_mark_dllexport)
12190         (i386_pe_mark_dllimport): Use SET_SYMBOL_REF_DECL.
12191
12192 2006-01-27 Gabor Loki <loki@gcc.gnu.org>
12193
12194         * cfgcleanup.c (try_crossjump_to_edge): Fix comment typo.
12195
12196 2006-01-26 Alexandre Oliva  <aoliva@redhat.com>
12197
12198         PR other/24829
12199         PR target/24831
12200         * gthr-dce.h: Do not gthrw-ify pthread_once_init,
12201         pthread_key_delete.  From John David Anglin.  gthrw-ify
12202         pthread_getunique_np only if it it's not a macro.  Delete
12203         UNUSED macro.
12204         (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate,
12205         __gthread_objc_condition_wait, __gthread_objc_condition_broadcast,
12206         __gthread_objc_condition_signal, __gthread_key_delete): Add
12207         "__attribute__ ((__unused__))" to unused arguments.
12208         (__gthread_recursive_mutex_init_function): Add missing return.
12209         * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h,
12210         gthr-posix95.h: Use macro-based approach for name redirection
12211         on targets missing weakref.
12212
12213 2006-01-26  Zack Weinberg  <zackw@panix.com>
12214
12215         * genconditions.c (write_header): In generated code, #ifdef out
12216         all includes and fake declarations, except includes of bconfig.h
12217         and system.h, unless GCC_VERSION >= 3001.  Do not include
12218         gensupport.h in any case.
12219         (write_conditions): Generate a definition of struct c_test.  Add
12220         a comment to the generated #endif.
12221         (write_one_condition): Escape backslashes in string too.
12222         (write_writer): Generated code must escape backslashes and quote
12223         marks (but not newlines) in the strings it writes.
12224         * Makefile.in (build/gencondmd.o): Update dependencies.
12225
12226 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
12227
12228         PR target/25961
12229         * Makefile.in (insn-automata.o): Add header file dependencies.
12230         * genautomata.c: Add includes.
12231
12232 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
12233
12234         PR target/25961
12235         * Makefile.in (insn-automata.o): Add -Wno-error flag.
12236
12237 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
12238
12239         * configure.ac: Expect target tools paths to be passed from the toplevel
12240         and wrap the detection into AS_SET_VAR_IF.  Extract side-effects out of
12241         AS_SET_VAR_IF.
12242         * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove.
12243
12244 2006-01-26  Alexandre Oliva  <aoliva@redhat.com>
12245
12246         PR c/25892
12247         * c.opt (Wpointer-sign): Init to -1.
12248         * c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
12249         OPT_pedantic, to 0 otherwise.
12250         * doc/invoke.texi: Update.
12251
12252 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
12253
12254         * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Emit
12255         constants provided by 80387 instructions in the destination mode.
12256
12257 2006-01-26  Richard Guenther  <rguenther@suse.de>
12258             Andrew Pinski  <pinskia@physics.uc.edu>
12259
12260         PR tree-opt/21470
12261         partial PR tree-opt/17064
12262         * tree-ssa-structalias.c (intra_create_variable_infos):
12263         Create heap variables for incoming parameters if
12264         flag_argument_noalias > 1.
12265         (find_what_p_points_to): Look through default defs of
12266         parameter decls.
12267
12268 2006-01-26  Jeff Law  <law@redhat.com>
12269
12270         PR ada/25900
12271         * tree-vrp.c (extract_range_from_assert): When merging a VR_RANGE
12272         with a VR_ANTI_RANGE and the VR_ANTI_RANGE is completely contained
12273         within the VR_RANGE, use the VR_RANGE as the result, not the
12274         VR_ANTI_RANGE.
12275         (adjust_range_with_scev): Reject ranges from SCEV which are out of
12276         bounds for the type.
12277
12278 2006-01-26  Daniel Berlin  <dberlin@dberlin.org>
12279
12280         * tree-ssa-alias.c (maybe_create_global_var): Change
12281         subvar walking to an assertion that we don't have subvar'd variables.
12282
12283 2006-01-26  Andrew Pinski  <pinskia@physics.uc.edu>
12284
12285         PR C/25861
12286         * c-common.c (c_common_truthvalue_conversion) <case ADDR_EXPR>:
12287         Use a new variable, inner.  PARM_DECLs are always non-weak.
12288
12289 2006-01-26  Shantonu Sen  <ssen@opendarwin.org>
12290
12291         * tree.h (OMP_CLAUSE_SUBCODE_CHECK): Add definition for
12292         --disable-checking.
12293
12294 2006-01-26  Adam Nemet  <anemet@caviumnetworks.com>
12295
12296         * config/mips/mips.md (*clear_upper32): New combiner pattern.
12297
12298 2006-01-26  Richard Earnshaw  <richard.earnshaw@arm.com>
12299
12300         * arm.md (smaxsi3, sminsi3): Convert to define_expand.
12301         (smax_insn, smin_insn, smax_0, smin_0): New.
12302
12303 2006-01-26  Hans-Peter Nilsson  <hp@axis.com>
12304
12305         PR target/25947
12306         * config/cris/cris.c (cris_order_for_addsi3): New function.
12307         * config/cris/cris-protos.h: Prototype it.
12308         * config/cris/cris.md (split for "move.S1 [rx=rx+i],ry")
12309         (split for "move.S1 ry,[rx=rx+i]", split for "clear.[bwd] [rx=rx+i]")
12310         (split for "mov(s|u).S1 [rx=rx+i],ry", split for "op.S1 [rx=rx+i],ry")
12311         (split for "op.S1 [rx=rx+i],ry (swapped)")
12312         (split for "op(s|u).S1 [rx=rx+i],ry")
12313         (split for "op(s|u).S1 [rx=rx+i],ry (swapped, plus or bound)"):
12314         Apply cris_order_for_addsi3 when generating addsi3 insns.
12315
12316 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
12317
12318         * tree.h (TREE_RANGE_CHECK): Fix range predicate.
12319         (TREE_BLOCK): Add call to EXPR_CHECK.
12320
12321 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
12322
12323         PR 25886
12324         * tree-dump.c (dequeue_and_dump): Handle OMP_CLAUSE.
12325         * tree-pretty-print.c (dump_omp_clause): Extract from ...
12326         (dump_omp_clauses): ... here.
12327         (dump_generic_node): Handle OMP_CLAUSE.
12328         * tree.c (omp_clause_num_ops): New.
12329         (omp_clause_code_name): New.
12330         (tree_code_size): Handle OMP_CLAUSE.
12331         (tree_size): Likewise.
12332         (make_node): Document handling of OMP_CLAUSE.
12333         (tree_node_structure): Handle OMP_CLAUSE.
12334         (omp_clause_check_failed): New.
12335         (omp_clause_range_check_failed): New.
12336         (omp_clause_operand_check_failed): New.
12337         (build_omp_clause): New.
12338         (walk_tree): Adjust handling of OMP_CLAUSE_* nodes.
12339         * tree.h (enum omp_clause_code): Declare.
12340         (OMP_CLAUSE_SUBCODE_CHECK): Define.
12341         (OMP_CLAUSE_RANGE_CHECK): Define.
12342         (OMP_CLAUSE_ELT_CHECK): Define.
12343         (omp_clause_check_failed): Declare.
12344         (omp_clause_operand_check_failed): Declare.
12345         (omp_clause_range_check_failed): Declare.
12346         (OMP_CLAUSE_CHAIN): Do not use TREE_RANGE_CHECK.
12347         (OMP_CLAUSE_OPERAND): Use OMP_CLAUSE_RANGE_CHECK.
12348         (OMP_CLAUSE_PRIVATE_DEBUG): Use OMP_CLAUSE_SUBCODE_CHECK.
12349         (OMP_CLAUSE_LASTPRIVATE): Likewise.
12350         (OMP_CLAUSE_IF_EXPR): Likewise.
12351         (OMP_CLAUSE_NUM_THREADS_EXPR): Likewise.
12352         (OMP_CLAUSE_SCHEDULE_CHUNK_EXPR): Likewise.
12353         (OMP_CLAUSE_REDUCTION_CODE): Likewise.
12354         (OMP_CLAUSE_REDUCTION_INIT): Likewise.
12355         (OMP_CLAUSE_REDUCTION_MERGE): Likewise.
12356         (OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
12357         Use tree_node.omp_clause.subcode instead of TREE_COMPLEXITY.
12358         (OMP_CLAUSE_SCHEDULE_KIND): Likewise.
12359         (OMP_CLAUSE_DEFAULT_KIND): Likewise.
12360         (OMP_CLAUSE_CODE): Define.
12361         (OMP_CLAUSE_SET_CODE): Define.
12362         (OMP_CLAUSE_CODE): Define.
12363         (OMP_CLAUSE_OPERAND): Define.
12364         (struct tree_omp_clause): Declare.
12365         (union tree_node): Add field 'omp_clause'.
12366         * treestruct.def (TS_OMP_CLAUSE): Define.
12367         * tree.def (OMP_CLAUSE_PRIVATE, OMP_CLAUSE_SHARED
12368         OMP_CLAUSE_FIRSTPRIVATE, OMP_CLAUSE_LASTPRIVATE,
12369         OMP_CLAUSE_REDUCTION, OMP_CLAUSE_COPYIN,
12370         OMP_CLAUSE_COPYPRIVATE, OMP_CLAUSE_IF,
12371         OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE,
12372         OMP_CLAUSE_NOWAIT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Remove.
12373         (OMP_CLAUSE): Define.
12374         * print-tree.c (print_node): Handle OMP_CLAUSE.
12375         * omp-low.c: Adapt all uses of OMP_CLAUSE_* nodes.
12376         * c-typeck.c: Likewise.
12377         * gimplify.c: Likewise.
12378         * c-omp.c: Likewise.
12379         * tree-nested.c: Likewise.
12380         * tree-inline.c: Likewise.
12381         * c-parser.c: Likewise.
12382         * gimple-low.c (lower_omp_directive): Do not set TREE_BLOCK on
12383         clauses.
12384
12385 2006-01-25  Roger Sayle  <roger@eyesopen.com>
12386
12387         PR rtl-optimization/25703
12388         * combine.c (try_combine): Handle zero_extract and strict_low_part
12389         of non-lowpart SUBREGs for constant reg_subword_p set optimization.
12390
12391 2006-01-25  Peter Bergner  <bergner@vnet.ibm.com>
12392
12393         * global.c: Fix comment typos.
12394
12395 2006-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
12396
12397         PR target/25758
12398         * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
12399         Use output_addr_const instead of assemble_name.
12400
12401 2006-01-25  Paolo Bonzini  <bonzini@gnu.org>
12402
12403         * Makefile.in (sched-vis.o): Update dependencies.
12404         * haifa-sched.c (sched_finish): Clear current_sched_info.
12405         * cfg.c (dump_bb_info): New, split from dump_flow_info.
12406         (dump_flow_info): Call it.
12407         * passes.c (execute_todo): Call print_rtl_slim_with_bb to make
12408         a slim RTL dump.
12409         * basic-block.h (dump_bb_info): Declare.
12410         * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all
12411         option, and apply options only for dump files whose TDF_RTL,
12412         TDF_TREE, or TDF_IPA bits match.
12413         * rtl.h: Declare new functions exported from sched-vis.c.
12414         * sched-vis.c: Enable also if scheduling is not used.
12415         (print_value): Print the mode of registers if not inside scheduling.
12416         (print_insn): Make it work outside the scheduler.  Beautify the output
12417         a bit.
12418         (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New.
12419
12420 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
12421
12422         * doc/rtl.texi (SYMBOL_REF_CONSTANT, SYMBOL_REF_DATA): Document.
12423         * gengtype.c (adjust_field_rtx_def): Garbage-collect field 2 of
12424         a SYMBOL_REF as either a tree or a constant_descriptor_rtx,
12425         depending on the value of CONSTANT_POOL_ADDRESS_P.
12426         * optabs.c (init_one_libfunc): Nullify SYMBOL_REF_DATA rather than
12427         SYMBOL_REF_DECL.
12428         * varasm.c (make_decl_rtl, build_constant_desc): Set SYMBOL_REF_DATA
12429         rather than SYMBOL_REF_DECL.
12430         (rtx_constant_pool): Remove const_rtx_sym_htab.
12431         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): Delete.
12432         (init_varasm_status): Don't initialize const_rtx_sym_htab.
12433         (force_const_mem): Point SYMBOL_REF_DATA to the constant pool entry.
12434         Remove handling of const_rtx_sym_htab.
12435         (find_pool_constant): Delete.
12436         (get_pool_constant, get_pool_constant_mark): Use SYMBOL_REF_CONSTANT
12437         rather than find_pool_constant.
12438         (get_pool_constant_for_function): Delete.
12439         (get_pool_mode, mark_constant): Use SYMBOL_REF_CONSTANT rather than
12440         find_pool_constant.
12441         * rtl.h (rtunion_def): Add rt_constant and rt_ptr fields.
12442         (X0CONSTANT, X0PTR, SYMBOL_REF_DATA): New macros.
12443         (SYMBOL_REF_DECL): Return NULL if CONSTANT_POOL_ADDRESS_P.
12444         (SYMBOL_REF_CONSTANT): New macro.
12445         (get_pool_constant_for_function): Delete.
12446         * config/i386/winnt.c (i386_pe_mark_dllexport): Set SYMBOL_REF_DATA
12447         rather than SYMBOL_REF_DECL.
12448         (i386_pe_mark_dllimport): Likewise.
12449         * config/rs6000/rs6000.c (rs6000_emit_move): Copy SYMBOL_REF_DATA
12450         rather than SYMBOL_REF_DECL.
12451         * config/darwin.c (machopic_indirect_data_reference): Likewise.
12452         (machopic_indirect_call_target): Likewise.
12453
12454 2006-01-25  Eric Botcazou  <ebotcazou@adacore.com>
12455
12456         * flow.c (delete_noop_moves): Add missing EOL to dump message.
12457
12458 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
12459
12460         * genattrtab.c (gen_bypass): Allow bypasses to contain whitespace.
12461
12462 2006-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12463
12464         * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
12465
12466 2006-01-24  David Daney  <ddaney@avtrex.com>
12467
12468         PR java/25816
12469         * configure.ac (enable_tls): New enable option.
12470         (HAVE_AS_TLS): Don't do assembler check if enable_tls set.
12471         * configure: Regenerate.
12472         * doc/install.texi (--enable-tls): Document new option.
12473         (--disable-tls): Ditto.
12474
12475 2006-01-24  Richard Henderson  <rth@redehat.com>
12476
12477         * alias.h (ALIAS_SET_MEMORY_BARRIER): New.
12478         * alias.c (true_dependence): Respect it.
12479         (canon_true_dependence, write_dependence_p): Likewise.
12480         * builtins.c (get_builtin_sync_mem): Set it.
12481
12482 2006-01-25  Zdenek Dvorak <dvorakz@suse.cz>
12483
12484         * loop-iv.c (iv_analysis_loop_init): Use df analysis in a more
12485         efficient way.
12486
12487 2006-01-24  DJ Delorie  <dj@redhat.com>
12488
12489         * expmed.c (store_bit_field): Don't arbitrarily deny using insv
12490         for storing constants in single-bit bitfields.
12491
12492 2006-01-25  Ben Elliston  <bje@au.ibm.com>
12493
12494         * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long.
12495
12496 2006-01-24  Andrew Pinski  <pinskia@physics.uc.edu>
12497
12498         PR tree-opt/25860
12499         * tree-ssa-pre.c (phi_translate): Return NULL
12500         for AGGREGATE_TYPE's.
12501
12502 2006-01-24  Zack Weinberg  <zackw@panix.com>
12503
12504         * genautomata.c (process_state_for_insn_equiv_partition):
12505         Use xcalloc for insn_arcs_array.
12506         * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates.
12507         (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P.
12508
12509 2006-01-24  Richard Henderson  <rth@redhat.com>
12510
12511         * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
12512         update all callers.
12513
12514 2006-01-23  Paolo Bonzini  <bonzini@gnu.org>
12515
12516         PR rtl-optimization/25890
12517         PR rtl-optimization/25905
12518         * combine.c (expand_compound_operation, expand_field_assignment):
12519         Fail if the bitfield's final position is out of bounds.
12520
12521 2006-01-24  Ian Lance Taylor  <ian@airs.com>
12522
12523         PR middle-end/25930
12524         * cgraphunit.c (cgraph_output_in_order): Don't clear
12525         cgraph_asm_nodes until after asm strings have been output.
12526
12527 2006-01-23  Adam Nemet  <anemet@caviumnetworks.com>
12528
12529         * fix-header.c (read_scan_file): Add new parameter imultilib when
12530         calling register_include_chains.
12531
12532 2006-01-23  Diego Novillo  <dnovillo@redhat.com>
12533
12534         * omp-low.c: Update documentation.
12535
12536 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
12537             Daniel Berlin  <dberlin@dberlin.org>
12538
12539         PR tree-opt/25315
12540         PR tree-opt/25857
12541         * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal
12542         return from the function.
12543
12544 2006-01-22  Zack Weinberg  <zackw@panix.com>
12545
12546         * rtl.def (match_code): Add second argument.
12547         * genpreds.c (write_extract_subexp): New function.
12548         (write_match_code): Add path argument.  Use write_extract_subexp.
12549         (write_predicate_expr): Pass path to write_match_code.
12550         (mark_mode_tests): MATCH_CODE applied to a subexpression does
12551         not perform a mode test.
12552         * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
12553         a subexpression does not constrain the top-level code set.
12554         * read-rtl.c (read_rtx_variadic): New function.
12555         (read_rtx_1): Use it; allow AND and IOR to be variadic.
12556         * doc/md.texi: Document new notation.
12557         * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
12558         (cmpsi_operand): ... here, using new notation.
12559
12560 2006-01-22  Zack Weinberg  <zackw@panix.com>
12561
12562         * varray.c: Remove GENERATOR_FILE #ifdefs.
12563
12564 2006-01-22  Zack Weinberg  <zackw@panix.com>
12565
12566         * genautomata.c (output_reserved_units_table): Emit nothing if
12567         description->query_units_num is zero.  Remove extra blank line.
12568         (output_cpu_unit_reservation_p): Short circuit
12569         if description->query_units_num is zero.
12570
12571 2006-01-22  Zack Weinberg  <zackw@panix.com>
12572
12573         * genattrtab.c: Don't include genattrtab.h.  Define ATTR_NONE
12574         and ATTR_SPECIAL (from genattrtab.h).  Don't define num_dfa_decls
12575         nor any of the random handful of variables that used to be necessary
12576         when this program was linked with rtlanal.o.  Prune set of forward
12577         function declarations.
12578         (struct attr_desc): Remove static_p field.
12579         (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
12580         (check_attr_test, make_internal_attr, make_numeric_value): Make static.
12581         (attr_string): Do not read the character one past the length of
12582         the string.
12583         (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
12584         (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
12585         (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
12586         (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
12587         (make_automaton_attrs): New.
12588         (main): Do not call into genautomata.  Call local gen_bypass
12589         and gen_insn_reserv as appropriate.  Call make_automaton_attrs.
12590         Remove special case for insn_alts.
12591         * genautomata.c: Include gensupport.h; not genattrtab.h nor
12592         varray.h (leftover from previous change).  Prune set of forward
12593         function declarations.  Remove state_alts fields from all
12594         structures.  Remove state_alts_table from struct automaton.
12595         Make everything except main static.  Do not maintain num_dfa_decls.
12596         Do not maintain state_alts fields of various structures.
12597         (process_decls): Don't validate condexp for dm_insn_reserv decls.
12598         (add_arc): Remove state_alts argument.  All callers updated.
12599         (output_reserved_units_table): Emit #ifdef here...
12600         (output_tables): ...not here.  Don't generate state_alts tables.
12601         (expand_automata): Don't generate attributes.
12602         (write_automata): Don't generate state_alts functions.
12603         (main): New function.
12604         (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
12605         (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
12606         (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
12607         (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
12608         (BYPASS_P_FUNC_NAME, output_state_alts_table)
12609         (output_automata_list_state_alts_code, output_internal_state_alts_func)
12610         (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
12611         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
12612         Delete.
12613         * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
12614         * genattrtab.h: Delete file.
12615         * Makefile.in (OBJS-common): Add insn-automata.o.
12616         (insn-automata.o): New rule.
12617         (simple_generated_c): Add insn-automata.c.
12618         (build/genattrtab.o, build/genautomata.o): Update dependencies.
12619         (genprogmd): Add automata.
12620         (build/genattrtab): Needs no extra objects nor libraries.
12621         (build/genautomata): Needs build/vec.o and -lm.
12622
12623 2006-01-22  Zack Weinberg  <zackw@panix.com>
12624
12625         * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
12626         (output_dfa_max_issue_rate, locked_states_num): Delete.
12627         (struct automaton): Add locked_states field.
12628         (output_dead_lock_vect): Save number of locked states in
12629         automaton->locked_states.  If it is zero, don't print anything.
12630         (output_max_insn_queue_index_def): Define max_insn_queue_index const.
12631         (output_internal_dead_lock_func): Only test the dead_lock_vect
12632         for automata that have locked states.
12633         (output_statistics): Always print the number of locked states for
12634         each automaton.  Calculate total number of locked states here.
12635         (write_automata): Don't call output_dfa_max_issue_rate.
12636         * genattrtab.c: Define length_unit_log as a const variable.
12637         * genattr.c: Don't emit MAX_DFA_ISSUE_RATE.  Declare
12638         max_insn_queue_index const.
12639         * final.c (length_unit_log): Declare const.
12640         * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
12641
12642 2006-01-22  Zack Weinberg  <zackw@panix.com>
12643
12644         * genautomata.c: Include vec.h, not varray.h.
12645         Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
12646         VLA_HWINT_ macros.  Change vla_hwint_t to a typedef for
12647         VEC(vect_el_t,heap) *.  Convert all uses of VLA_* macros to
12648         VEC_* macros operating on appropriately typed vectors, or to
12649         malloced arrays when the size is known in advance.  Const-ify
12650         many char* variables and function arguments.  No functional changes.
12651         * Makefile.in (build/varray.o): Delete rule.
12652         (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
12653         (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
12654
12655 2006-01-22  Zack Weinberg  <zackw@panix.com>
12656
12657         * gensupport.c: Define get_insn_name and record_insn_name here.
12658         (read_md_rtx): Call record_insn_name as appropriate.
12659         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
12660         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
12661         * genpreds.c, genrecog.c: Don't define get_insn_name nor
12662         record_insn_name.
12663         * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
12664         (BUILD_VARRAY): Delete.
12665         (genprognormal): Rename genprogmd.  Fold in all programs from
12666         genprognoprint; also attrtab.
12667         (build/genattrtab): Just mention genautomata.o and varray.o.
12668         Reorganize a bit, add comments to make the categories clearer.
12669
12670 2006-01-22  Zack Weinberg  <zackw@panix.com>
12671
12672         * genconditions.c (condition_table, add_condition): Delete.
12673         (write_conditions): Don't emit n_insn_conditions nor
12674         insn_elision_unavailable.  Issue the gcc version #ifdef here,
12675         inside the table, with no #else clause ...
12676         (write_header): ...not here.
12677         (write_writer): New function.
12678         (main): Don't initialize condition_table.  Use add_c_test.
12679         Call write_writer.
12680         * gensupport.c (init_md_reader_args_cb): Handle multiple input
12681         files on the command line.
12682         (maybe_eval_c_test): Don't check insn_elision_unavailable.
12683         Return -1 if there is no entry in the table, don't abort.
12684         (add_c_test, traverse_c_tests): New functions.
12685         * gensupport.h (insn_elision_unavailable, insn_conditions)
12686         (n_insn_conditions): Delete declarations.
12687         (add_c_test, traverse_c_tests): Declare.
12688         * read-rtl.c: Include gensupport.h.
12689         (read_conditions): New function.
12690         (read_rtx): If read_rtx_1 returns 0, treat as EOF.
12691         (read_rtx_1): If we get EOF when we were looking for an initial
12692         open paren, return 0.  Call read_conditions when appropriate.
12693         * Makefile.in: Kill BUILD_EARLY_SUPPORT and all references to
12694         dummy-conditions.o.  Eliminate references to insn-conditions.o,
12695         or change them to build/gencondmd.o, as appropriate.  Remove
12696         insn-constants.h from $(simple_generated_h) and insn-conditions.c
12697         from $(simple_generated_c).  For all files remaining in those
12698         two lists, add insn-conditions.md to the generator command line.
12699         Give insn-constants.h/s-constants their own rules.  Add rules
12700         for build/gencondmd.c, s-conditions, insn-conditions.md, s-condmd.
12701         (build/read-rtl.o): Depend on gensupport.h.
12702         (genprognormal): Include preds.
12703         (genprogearly): Rename genprognoprint; only difference is now that
12704         they don't link with $(BUILD_PRINT).
12705         * dummy-conditions.c: Delete.
12706
12707 2006-01-22  Zack Weinberg  <zackw@panix.com>
12708
12709         * genextract.c: Don't include insn-config.h.  Do include vec.h.
12710         Declare vectors of int, char, and locstr.
12711         (locstr): New typedef.
12712         (struct extraction): Make all array fields into bare pointers.
12713         (insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
12714         (insn_code_number): Delete.
12715         (accum_extract): New struct.
12716         (VEC_safe_set_locstr, VEC_char_to_string): New functions.
12717         (gen_insn): Take insn_code_number as an argument.  Use an
12718         accum_extract structure instead of loading data directly into
12719         a struct extraction, and having to know how big it might get.
12720         (walk_rtx): Operate entirely on an accum_extract structure.
12721         (print_path): Avoid unnecessary use of printf.
12722         (print_header): New function, split out of main.  Distinguish
12723         more carefully between an unrecognizable insn and an insn that
12724         has the code number of a define_expand.
12725         (main): Pass insn_code_number to gen_insn.  Call print_header
12726         only after parsing.  Avoid unnecessary use of printf.
12727         * Makefile.in (build/vec.o): New rule.
12728         (build/genextract): Depend on build/vec.o.
12729         (build/genextract.o): Don't depend on insn-config.h.
12730
12731 2006-01-22  Zack Weinberg  <zackw@panix.com>
12732
12733         * Makefile.in: Consolidate most rules that use $(CC_FOR_BUILD) and/or
12734         $(RUN_GEN).  Use pattern rules to factor out as much boilerplate as
12735         practical.  Eliminate per-generator-program link rules.
12736
12737 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
12738
12739         PR middle-end/24437
12740         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
12741         with a call expr to ...
12742         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
12743
12744 2006-01-23  Richard Guenther  <rguenther@suse.de>
12745
12746         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Add comment
12747         before make_edge with conditional EDGE_TRUE_VALUE.
12748
12749 2006-01-23  Steven Bosscher  <stevenb.gcc@gmail.com>
12750         Jan Hubicka  <jh@suse.cz>
12751         Richard Guenther  <rguenther@suse.de>
12752
12753         PR rtl-optimization/25654
12754         * cfgexpand.c (aggregate_contains_union_type): New function.
12755         (add_alias_set_conflicts): Call it.  Make sure to add conflicts
12756         for structure variables that contain a union type.
12757
12758 2006-01-23  Richard Sandiford  <richard@codesourcery.com>
12759
12760         * gengtype.c (new_structure): Return the structure.
12761         (create_option): Add an extra "next" argument.
12762         (create_field): New function.
12763         (adjust_field_rtx_def): Use create_option and create_field.
12764         Remove a now-unnecessary call to find_structure.
12765         (adjust_field_tree_def): Likewise.
12766         (note_yacc_type): Remove an unnecessary call to find_structure.
12767         * gengtype.h (new_structure): Return the structure.
12768         (create_option): Add an extra argument.
12769         * gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
12770         (option): Adjust calls to create_option.
12771
12772 2006-01-22  David Edelsohn  <edelsohn@gnu.org>
12773
12774         * config/rs6000/aix.h (STACK_BOUNDARY): Define.
12775
12776 2006-01-22  Paul Brook  <paul@codesourcery.com>
12777         Peter Barada  <peter@the-baradas.com>
12778
12779         * config/m68k/m68k.md: Add Coldfire FPU support.
12780         Define FP mode macro and associated attributes.
12781         Use it for float mode patterns.
12782         * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value.
12783         (LIBCALL_VALUE): Use m68k_libcall_value.
12784         * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype.
12785         (m68k_function_value): Ditto.
12786         (emit_move_sequence): Ditto.
12787         * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value.
12788         * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e.
12789         * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e.
12790         (MULTILIB_EXCEPTIONS): Ditto.
12791         * config/m68k/m68k.opt: Add mcfv4e.
12792         * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e.
12793         (m68k_compute_frame_layout): Include space for ColdFire FPU regs.
12794         (m68k_output_function_prologue): Save ColdFire FPU registers.
12795         (m68k_output_function_epilogue): Restore ColdFire FPU registers.
12796         (force_mode, fp_reg_operand, emit_move_sequence): New functions.
12797         (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in
12798         ColdFire FPU registers.
12799         (m68k_libcall_value, m68k_function_value): New functions.
12800         * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value.
12801         (LIBCALL_VALUE): Use m68k_libcall_value.
12802         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__.
12803         (MASK_COLDFIRE): Add MASK_CFV4E.
12804         (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New.
12805         (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT.
12806         (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto.
12807         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define.
12808         (GO_IF_LEGITIMATE_ADDRESS): Use it.
12809         (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses.
12810         * doc/invoke.tex: Document -mcfv4e on m68k.
12811
12812 2006-01-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
12813
12814         * doc/contribute.texi: Change CVS to SVN and update the corresponding
12815         URL.
12816
12817 2006-01-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12818
12819         PR c++/16190
12820         * c-opts.c (c_common_handle_option): Don't include
12821         -Wnon-virtual-dtor in -Wall; enable if -Weffc++.
12822         * doc/invoke.texi (C++ Dialect Options): Document that
12823         -Wnon-virtual-dtor is no longer included in -Wall.
12824
12825 2006-01-21  Joseph S. Myers  <joseph@codesourcery.com>
12826
12827         * gcov.c (print_version), gcov-dump.c (print_version),
12828         mips-tdump.c (main), mips-tfile.c (main): Update copyright notice
12829         dates.
12830
12831 2006-01-21  Kenneth Zadeck <zadeck@naturalbridge.com>
12832
12833         * df-scan.c (problem_SCAN): Added NULL reset function.
12834         (df_scan_reset_blocks): Added code to call reset block function
12835         (df_bb_refs_delete) Fixed comment.
12836         (df_insn_refs_delete): Made tolerant of deleting non existent info
12837         for dataflow problems that need to be reset.
12838         * df-core.c (df_set_blocks): Ditto.
12839         * df.h (struct df_problem): Added reset_fun.
12840         * df-problems.c (problem_RU, problem_RD, problem_LR, problem_UR,
12841         problem_UREC, problem_CHAIN, problem_RI): Initialized reset_fun field.
12842         (df_chain_insn_reset, df_chain_bb_reset, df_chain_reset): New
12843         functions to clear out all references to def-use or use-def chains.
12844
12845 2006-01-21  Ben Elliston  <bje@au.ibm.com>
12846
12847         * varasm.c (assemble_real): Initialise data array.
12848
12849 2006-01-20  Paul Brook  <paul@codesourcery.com>
12850
12851         Merge from csl-arm-branch.
12852         2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
12853         * config/arm/arm.md (movdi): Force operands[1] to a register
12854         if we have a non-register source.
12855         (*arm_movdi, *movdf_soft_insn): Require that one of the
12856         operands be a register.
12857         * config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
12858         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
12859
12860 2006-01-20  DJ Delorie  <dj@redhat.com>
12861
12862         * varasm.c (initializer_constant_valid_p): Allow pointers
12863         initialized from integer constants of lesser precision.
12864         (output_constant): Allow non-int-sized pointer modes to be
12865         initialized from integer constants.
12866
12867 2006-01-20  Joseph S. Myers  <joseph@codesourcery.com>
12868
12869         PR libstdc++/25524
12870         * cppdefault.h (struct default_include): Add multilib flag.
12871         * cppdefault.c (cpp_include_defaults): Set it.
12872         * c.opt (-imultilib): New option.
12873         * c-opts.c (imultilib): New.
12874         (c_common_handle_option): Handle -imultilib.
12875         (c_common_post_options): Likewise.
12876         * c-incpath.c (add_standard_paths, register_include_chains):
12877         Likewise.
12878         * c-incpath.h (register_include_chains): Add extra parameter.
12879         * gcc.c (do_spec_1): Generate -imultilib option.
12880         (The Specs Language): Update %I description.
12881         (process_command): Update copyright notice.
12882         * doc/cppopts.texi (-imultilib): Document.
12883         * doc/invoke.texi (-imultilib): Include in option summary.
12884         (%I): Update specs documentation.
12885
12886 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
12887
12888         * loop-iv.c (iv_analysis_loop_init): Use df in more conservative way.
12889
12890 2006-01-20  Richard Sandiford  <richard@codesourcery.com>
12891
12892         * stmt.c (case_bit_test_cmp): Stabilize the sort using code
12893         label numbers.
12894
12895 2006-01-20  Richard Guenther  <rguenther@suse.de>
12896         Steven Bosscher <stevenb.gcc@gmail.com>
12897
12898         PR rtl-optimization/24626
12899         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Don't set
12900         EDGE_TRUE_VALUE if in RTL mode.
12901
12902         Revert
12903         2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
12904         * cfgrtl.c (rtl_verify_flow_info_1): Fix.
12905
12906 2006-01-20  Dirk Mueller  <dmueller@suse.com>
12907
12908         PR c++/5520
12909         * c-parser.c (c_parser_if_body): Use build_empty_stmt()
12910         instead of a special NOP marker.
12911         * c-typeck.c (c_finish_if_stmt): Remove obsoleted special
12912         NOP marker handling.
12913         * c-common.h (empty_body_warning): Add forward declaration.
12914         * c-common.c (empty_body_warning): Add (from c_finish_if_stmt).
12915         Now uses IS_EMPTY_STMT() instead of special NOP markers.
12916
12917 2006-01-20  Paul Brook  <paul@codesourcery.com>
12918
12919         * Makefile.in (lang_checks): Keep going if mkdir fails.
12920
12921 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
12922
12923         * df-scan.c (df_scan_free_bb_info): Added basic block parameter to
12924         be able to clean out basic block when not necessary.
12925         (df_scan_free): Fixed to properly delete information if df is
12926         unused before calling df_finish.
12927         (df_scan_alloc, df_rescan_blocks, df_reg_chain_unlink,
12928         df_insn_create_insn_record, df_bb_refs_record): Fixed formatting
12929         or comment typos.
12930         (df_bb_refs_delete): New function.
12931         (df_refs_delete): Moved per block code to df_bb_refs_delete.
12932         * df-core.c (df_set_blocks): Added code to properly clean out
12933         unused blocks if they are not part of the blocks to consider.
12934         Added additional null check.
12935         (df_compact_blocks): Added basic block parameter to free_bb_fun to
12936         be able to clean out basic block when not necessary
12937         * df.h (df_free_bb_function): Ditto.
12938         (df_bb_refs_delete): New function.
12939         * df-problems.c (df_ru_free_bb_info, df_rd_set_bb_info,
12940         df_lr_set_bb_info, df_ur_free_bb_info, df_urec_free_bb_info):Added
12941         basic block parameter to be able to clean out basic block when not
12942         necessary.
12943         (df_ru_alloc, df_rd_alloc): Fixed dyslexic overflow test.
12944         (df_ru_free, df_rd_free, df_lr_free, df_ur_free, df_urec_free):
12945         Fixed to properly delete information if df is unused before
12946         calling df_finish.
12947
12948 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
12949
12950         PR rtl-optimization/25799
12951         * df-problems.c (df_ru_confluence_n, df_rd_confluence_n):
12952         Corrected confluence operator to remove bits from op2 before oring
12953         with op1 rather than removing bits from op1.
12954         (df_ru_transfer_function): Corrected test on wrong bitmap which
12955         caused infinite loop.  Both of these problems were introduced in
12956         the dataflow rewrite.
12957
12958 2006-01-19  DJ Delorie  <dj@redhat.com>
12959
12960         * reload1.c (find_reload_regs): Note the details of reload
12961         failures in the dump file.
12962         (spill_failure): Likewise.
12963
12964 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
12965
12966         * loop-iv.c: Include df.h and hashtab.h.
12967         (enum iv_grd_result): New enum.
12968         (DF_REF_IV, DF_REF_IV_SET): New macros.
12969         (struct biv_entry): New.
12970         (df, bivs): New global variables.
12971         (struct insn_info, insn_info, last_def, bivs, max_insn_no, max_reg_no,
12972         assign_luids, mark_sets, kill_sets, mark_single_set, simple_set_p):
12973         Removed.
12974         (clear_iv_info, latch_dominating_def, record_iv, iv_analyze_expr,
12975         iv_analyze_result, iv_analyze_def, biv_hash, biv_eq,
12976         analyzed_for_bivness_p, record_biv): New functions.
12977         (iv_analysis_loop_init, iv_get_reaching_def, simple_reg_p,
12978         get_biv_step_1, get_biv_step, iv_analyze_biv, iv_analyze_op,
12979         iv_analyze, biv_p, iv_analysis_done): Work with df representation of
12980         UD chains.
12981         (iv_constant, iv_subreg, iv_extend, iv_mult, iv_shift): Do not set
12982         analysed.
12983         (iv_number_of_iterations): Use new interface to iv analysis.
12984         * loop-unroll.c: Do not include varray.h.
12985         (analyze_iv_to_split_insn): Use new interface to iv
12986         analysis.
12987         * loop-unswitch.c (may_unswitch_on): Ditto.
12988         * df.c (df_bitmaps_free): Only work for bbs for that structures are
12989         allocated.
12990         (df_bb_modify): Realloc tables to the new index.
12991         (df_find_use): New function.
12992         * df.h (df_find_use): Declare.
12993         * optabs.c (expand_unop): Make the mode of the REG_EQUAL node be
12994         outmode.
12995         * cfgloop.h (struct rtx_iv): Remove analysed field.
12996         (iv_get_reaching_def): Removed.
12997         (iv_analyze_result, iv_analyze_expr, iv_current_loop_df): Declare.
12998         * Makefile.in (loop-unroll.o): Remove VARRAY_H dependency.
12999         (loop-iv.o): Add df.h and hashtab.h dependency.
13000         * df-problems.c (df_ru_alloc, df_rd_alloc): Fix memory reallocation.
13001
13002 2006-01-20  Alan Modra  <amodra@bigpond.net.au>
13003
13004         PR target/25668
13005         * libgcc2.c (__floatdisf, __floatdidf): Don't use IBM Extended
13006         Double TFmode.
13007         (__floatundisf, __floatundidf): Likewise.
13008         * libgcc2.h (IS_IBM_EXTENDED): Define.
13009
13010 2006-01-19  DJ Delorie  <dj@redhat.com>
13011
13012         * config/m32c/m32c.h (REG_ALLOC_ORDER): Define.
13013
13014 2006-01-19  Paul Brook  <paul@codesourcery.com>
13015
13016         * config/arm/arm.c (arm_compute_func_type): Treat all functions
13017         as nothrow when unwinding tables are disabled.
13018
13019 2006-01-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13020
13021         PR testsuite/25171
13022         * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
13023         of bit-field" when in system header.
13024
13025 2006-01-19  DJ Delorie  <dj@redhat.com>
13026
13027         * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
13028         the 16 bit shift limit of the m16c.
13029
13030 2006-01-19  Andrew Pinski  <pinskia@physics.uc.edu>
13031
13032         PR target/22099
13033         * config/i386/i386.md (builtin_setjmp_receiver): Don't emit the label.
13034         * config/i386/i386.c (output_set_got): Output the label if we have one
13035         for the TARGET_DEEP_BRANCH_PREDICTION case.
13036
13037 2006-01-19  Jan Hubicka  <jh@suse.cz>
13038             H.J. Lu  <hongjiu.lu@intel.com>
13039             Evandro Menezes <evandro.menezes@amd.com>
13040
13041         * invoke.texi (generic): Document
13042         (i686) Update.
13043         * config.gcc: Make x86_64-* and i686-* default to generic tunning.
13044         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64, TARGET_GENERIC,
13045         TARGET_USE_INCDEC, TARGET_PAD_RETURNS): New macros.
13046         (x86_use_incdec, x86_pad_returns): New variables
13047         (TARGET_CPU_DEFAULT_generic): New constant
13048         (TARGET_CPU_DEFAULT_NAMES): Add generic.
13049         (enum processor_type): Add generic32 and generic64.
13050         * i386.md (cpu attribute): Add generic32/generic64
13051         (movhi splitter): Behave sanely when both partial_reg_dependency and
13052         partial_reg_stall are set.
13053         (K8 splitters): Enable for generic as well.
13054         * predicates.md (incdec_operand): Use TARGET_INCDEC
13055         (aligned_operand): Avoid memory mismatch stalls.
13056         * athlon.md: Enable for generic64, new patterns for 128bit moves.
13057         * ppro.md: Enable for generic32
13058         * i386.c (generic64_cost, generic32_cost): New.
13059         (m_GENERIC32, m_GENERIC64, m_GENERIC): New macros.
13060         (x86_use_leave): Enable for generic64.  (x86_use_sahf,
13061         x86_ext_80387_constants): Enable for generic32.  (x86_push_memory,
13062         x86_movx, x86_unroll_strlen, x86_deep_branch, x86_use_simode_fiop,
13063         x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
13064         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
13065         x86_partial_reg_dependency, x86_memory_mismatch_stall,
13066         x86_accumulate_outgoing_args, x86_prologue_using_move,
13067         x86_epilogue_using_move, x86_arch_always_fancy_math_387,
13068         x86_sse_partial_reg_dependency, x86_four_jump_limit, x86_schedule):
13069         Enable for generic.
13070         (x86_use_incdec, x86_pad_returns): New.
13071         (override_options): Add generic32 and generic64, translate "generic"
13072         to generic32/generic64 and "i686" to "generic32", refuse
13073         "generic32"/"generic64" as arch target.
13074         (ix86_issue_rate, ix86_adjust_cost): Handle generic as athlon.
13075         (ix86_reorg): Honor PAD_RETURNS.
13076
13077 2006-01-19  Diego Novillo  <dnovillo@redhat.com>
13078
13079         * tree-pretty-print.c (dump_generic_node): Handle
13080         OMP_PARALLEL_FN, OMP_PARALLEL_DATA_ARG and OMP_RETURN_EXPR.
13081         * cgraph.c (cgraph_expand_queue): Rename from
13082         cgraph_analyze_queue.  Update all users.
13083         * cgraphunit.c (cgraph_assemble_pending_functions): Process
13084         cgraph_expand_queue.
13085         (cgraph_expand_all_functions): Likewise.
13086         (cgraph_finalize_pending_functions): Remove.  Update callers.
13087
13088         * tree.h (OMP_DIRECTIVE_P): Define.
13089         (OMP_PARALLEL_FN): Define.
13090         (OMP_PARALLEL_DATA_ARG): Define.
13091         (OMP_SECTIONS_SECTIONS): Define.
13092         * tree-pass.h (pass_expand_omp): Declare.
13093         * omp-low.c (struct omp_region): Declare.
13094         (struct omp_context): Remove fields 'parallel_type',
13095         'parallel_start_ix' and 'parallel_start_additional_args'.
13096         Update all users.
13097         (struct omp_for_data): Rename from struct expand_omp_for_data.
13098         (omp_regions): New static variable.
13099         (root_omp_region): New static variable.
13100         (find_omp_clause): Make static.
13101         (is_in_combined_parallel_ctx): Remove.
13102         (is_combined_parallel): New.
13103         (extract_omp_for_data): Move earlier in the file.
13104         (workshare_safe_to_combine_p): New.
13105         (get_ws_args_for): New.
13106         (determine_parallel_type): Move earlier in the file.
13107         (omp_copy_decl_2): Do not set DECL_CONTEXT of new local to the
13108         child function.
13109         (omp_copy_decl): Likewise.
13110         (create_omp_child_function): Likewise.
13111         (lookup_omp_region): New.
13112         (dump_omp_region): New.
13113         (debug_omp_region): New.
13114         (debug_all_omp_regions): New.
13115         (new_omp_region): New.
13116         (scan_omp_parallel): If parallel_nesting_level > 1, the
13117         directive is nested within another parallel directive.
13118         Set OMP_PARALLEL_FN.
13119         (scan_omp_for): Do not try to handle combined parallel+for
13120         cases.
13121         Remove FIXME comment.
13122         (scan_omp_nested): Remove.
13123         (scan_omp_1): Do not call scan_omp_nested when
13124         parallel_nesting_level is > 1.
13125         Do not change the DECL_CONTEXT of local variables found.
13126         (lookup_decl_in_outer_ctx): New.
13127         (lower_rec_input_clauses): Rename from expand_rec_input_clauses.
13128         (lower_lastprivate_clauses): Rename from expand_lastprivate_clauses.
13129         (lower_reduction_clauses): Rename from expand_reduction_clauses.
13130         (lower_copyprivate_clauses): Rename from expand_copyprivate_clauses.
13131         If CTX is nested, lookup VAR in the outer context when
13132         building copy assignment.
13133         (lower_send_clauses): Rename from expand_send_clauses.
13134         If CTX is nested, lookup VAR in the outer context when
13135         building copy assignments.
13136         (lower_send_shared_vars): Rename from expand_send_shared_vars.
13137         If CTX is nested, lookup VAR in the outer context when
13138         building copy assignments.
13139         (expand_parallel_call): Rename from build_parallel_call.
13140         Handle combined parallel+workshare cases.
13141         Re-implement to emit code into the CFG.
13142         (list2chain): New.
13143         (expand_omp_parallel): Re-implement to emit code into the CFG.
13144         Call move_sese_region_to_fn to outline the sub-graph
13145         containing the parallel region.
13146         (expand_omp_for_1): Remove.
13147         (expand_omp_for_generic): Re-implement to emit code into the
13148         CFG.
13149         (expand_omp_for_static_nochunk): Likewise.
13150         (expand_omp_for_static_chunk): Likewise.
13151         (expand_omp_for): Likewise.
13152         (expand_omp_sections): Likewise.
13153         (remove_exit_barriers): New.
13154         (expand_omp_synch): New.
13155         (expand_omp): New.
13156         (build_omp_regions_1): New.
13157         (build_omp_regions): New.
13158         (execute_expand_omp): New.
13159         (gate_expand_omp): New.
13160         (pass_expand_omp): Define.
13161         (lower_omp_sections): Rename from expand_omp_sections.
13162         Set OMP_SECTIONS_SECTIONS.
13163         (lower_omp_single_simple): Rename from expand_omp_single_simple.
13164         (lower_omp_single_copy): Rename from expand_omp_single_copy.
13165         (lower_omp_single): Rename from expand_omp_simple.
13166         (lower_omp_master): Rename from expand_omp_master.
13167         (lower_omp_ordered): Rename from expand_omp_ordered.
13168         (lower_omp_critical): Rename from expand_omp_critical.
13169         (lower_omp_for_lastprivate): Rename from expand_omp_for_lastprivate.
13170         (lower_omp_for): Re-implement.
13171         (lower_omp_parallel): Re-implement.
13172         (lower_regimplify): Rename from expand_regimplify.
13173         (lower_omp_1): Rename from expand_omp_1.
13174         If there are syntax errors in the program, replace every
13175         OpenMP directive with NOP.
13176         Call lower_omp_* instead of expand_omp_*.
13177         (lower_omp): Rename from expand_omp.
13178
13179         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN_EXPR.
13180         * tree-gimple.h (enum omp_parallel_type): Remove.
13181         (gimple_boolify): Declare extern.
13182         (find_omp_clause, determine_parallel_type): Remove.
13183
13184         * gimple-low.c (lower_omp_directive): New.
13185         (lower_stmt): Call it.
13186         (record_vars_into): Move from ...
13187         (record_vars): ... here.
13188         Call record_vars_into with current_function_decl.
13189
13190         * gimplify.c (struct gimplify_ctx): Remove fields
13191         combined_pre_p and combined_ctxp.  Update users.
13192         (get_formal_tmp_var): Add documentation.
13193         (gimple_boolify): Make extern.
13194         (gimplify_expr_in_ctx): Remove.  Update callers.
13195         (gimplify_omp_parallel): Do not assume that OMP_PARALLEL_BODY
13196         will always be a BIND_EXPR.
13197         (gimplify_expr): Handle OMP_RETURN_EXPR.
13198         * tree.def (BLOCK): Remove documentation about BLOCK_TYPE_TAGS.
13199         (OMP_PARALLEL): Add 3 operands.
13200         (OMP_SECTIONS): Add 1 operand.
13201         (OMP_RETURN_EXPR): Define.
13202
13203         * tree-inline.c (estimate_num_insns_1): Handle OpenMP directives.
13204         (copy_tree_r): Restore TREE_CHAIN in OMP_CLAUSE_*.
13205         * tree-iterator.c (alloc_stmt_list): Assert that we are not
13206         creating a circular free list.
13207         (free_stmt_list): Assert that we are not freeing stmt_list_cache.
13208
13209         * tree-flow.h (move_sese_region_to_fn): Declare.
13210         (record_vars_into): Declare.
13211         * tree-cfg.c (make_omp_sections_edges): New.
13212         (make_exit_edges): Handle OMP_PARALLEL, OMP_FOR, OMP_SINGLE,
13213         OMP_MASTER, OMP_ORDERED, OMP_CRITICAL, OMP_RETURN_EXPR,
13214         OMP_SECTIONS and OMP_SECTION.
13215         (is_ctrl_altering_stmt): Return true for OMP_DIRECTIVE_P.
13216         (set_bb_for_stmt): Undo change to check currently_expanding_to_rtl.
13217         (verify_stmt): Do not handle OMP_DIRECTIVE_P.
13218         (gather_blocks_in_sese_region): New.
13219         (struct move_stmt_d): Declare.
13220         (move_stmt_r): New.
13221         (move_block_to_fn): New.
13222         (move_sese_region_to_fn): New.
13223
13224         * passes.c (init_optimization_passes): Schedule
13225         pass_expand_omp after pass_init_datastructures.
13226
13227         * tree-ssa-operands.c (get_expr_operands): Handle
13228         OMP_PARALLEL, OMP_SECTIONS, OMP_FOR, OMP_RETURN_EXPR,
13229         OMP_SINGLE, OMP_MASTER, OMP_ORDERED, OMP_CRITICAL.
13230
13231 2006-01-19  Jeff Law  <law@redhat.com>
13232
13233         * tree-vrp.c (extract_range_from_assert): Refine the result range
13234         if the variable referenced by the ASSERT_EXPR has a range and
13235         either the tentative result range or the previous range is a
13236         VR_ANTI_RANGE.
13237
13238 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
13239
13240         * c-decl.c (add_flexible_array_elts_to_size): Simplify vector accesses.
13241
13242 2006-01-19  Jan Hubicka  <jh@suse.cz>
13243
13244         * tree-vect-patterns.c (vect_pattern_recog_1): Prevent parse error.
13245
13246 2006-01-19  Paolo Bonzini  <bonzini@gnu.org>
13247
13248         * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
13249         (expand_compound_operation, expand_field_assignment): Fail if the
13250         bit lengths of an extract operation are out of range.
13251         (make_extraction): Compute wanted_inner_mode based on the position
13252         and length of the extraction.  Make it extraction_mode for non-constant
13253         positions, and do not modify offset in that case.  When generating a
13254         new MEM, use a mode that can hold the extraction while keeping correct
13255         alignment.  Remove code that supported MEMs wrapped by USEs.
13256         (simplify_shift_const_1, force_to_mode) <case USE>: Remove.
13257
13258 2006-01-19  Andreas Krebbel  <krebbel1@de.ibm.com>
13259
13260         * config/s390/s390.md ("Y", "y"): New mode attribute.
13261         ("*cmpdi_ccs", "*cmpsi_ccs", "*adddi3_imm_cc", "*adddi3_carry1_cc",
13262         "*adddi3_carry1_cconly", "*adddi3_carry2_cc", "*adddi3_carry2_cconly",
13263         "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2", "*adddi3_64",
13264         "*addsi3_imm_cc", "*addsi3_carry1_cc",
13265         "*addsi3_carry1_cconly", "*addsi3_carry2_cc", "*addsi3_carr2_cconly",
13266         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
13267         "*subdi3_borrow_cc", "*subdi3_borrow_cconly", "*subdi3_cc",
13268         "*subdi3_cc2", "*subdi3_cconly", "*subdi3_cconly2", "*subdi3_64",
13269         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
13270         "*subsi3_cc2", "*subsi3_cconly", "*subsi3_cconly", "*subsi3_cconly2",
13271         "addsi3", "subsi3"): Insn patterns removed.
13272         ("*add<mode>3_carry1_cc", "*add<mode>3_carry1_cconly",
13273         "*add<mode>3_carry2_cc", "*add<mode>3_carry2_cconly", "*add<mode>3_cc",
13274         "*add<mode>3_cconly", "*add<mode>3_cconly2", "*add<mode>3_imm_cc",
13275         "*sub<mode>3_borrow_cc", "*sub<mode>3_borrow_cconly",
13276         "*sub<mode>3_cc", "*sub<mode>3_cc2", "*sub<mode>3_cconly",
13277         "*sub<mode>3_cconly2"): New insn patterns.
13278         ("addsi3", "subsi3"): New expanders.
13279
13280 2006-01-19  Dorit Nuzman  <dorit@il.ibm.com>
13281
13282         * Makefile.in (tree-vect-patterns.o): Add rule for new file.
13283         * tree-vect-analyze.c (vect_determine_vectorization_factor): Use
13284         existing STMT_VINFO_VECTYPE if available.
13285         (vect_mark_relevant): Add special handling for stmts that are
13286         marked as STMT_VINFO_IN_PATTERN_P.
13287         (vect_analyze_loop): Call vect_pattern_recog.
13288         * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
13289         * tree-vectorizer.h (in_pattern_p, related_stmt): New fields in
13290         stmt_info.
13291         (STMT_VINFO_IN_PATTERN_P, STMT_VINFO_RELATED_STMT): New macros.
13292         (vect_recog_func_ptr): New function-pointer type.
13293         * tree-vect-patterns.c: New file.
13294         (vect_recog_widen_sum_pattern, vect_recog_widen_mult_pattern):
13295         (vect_recog_dot_prod_pattern, vect_pattern_recog):
13296         (vect_pattern_recog_1): New functions.
13297         (vect_pattern_recog_funcs): New array of function pointers.
13298
13299         * tree-vectorizer.h (ternary_op): New enum value.
13300         * tree-vect-transform.c (vect_create_epilog_for_reduction): Added
13301         declaration. Revised documentation. Removed redundant dump prints.
13302         Removed redundant argument. Added support for reduction patterns.
13303         (vectorizable_reduction): Added support for reduction patterns.
13304         (vect_transform_stmt): Added support for patterns.
13305
13306         * expr.c (expand_expr_real_1): Added case for DOT_PROD_EXPR.
13307         * genopinit.c (udot_prod_optab, sdot_prod_optab): Initialize.
13308         * optabs.c (optab_for_tree_code): Added case for DOT_PROD_EXPR.
13309         (expand_widen_pattern_expr): New function.
13310         (init_optabs): Initialize new optabs udot_prod_optab,
13311         sdot_prod_optab.
13312         * optabs.h (OTI_sdot_prod, OTI_udot_prod): New.
13313         (sdot_prod_optab, udot_prod_optab): Define new optabs.
13314         (expand_widen_pattern_expr): New function declaration.
13315         * tree.def (DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR): New
13316         tree-codes.
13317         * tree-inline.c (estimate_num_insns_1): Added cases for new
13318         tree-codes DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
13319         * tree-pretty-print.c (dump_generic_node): Likewise.
13320         (op_prio): Likewise.
13321         (op_symbol): Added cases for WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
13322         * tree-ssa-operands.c (get_expr_operands): Added case for
13323         DOT_PROD_EXPR.
13324         * tree-vect-patterns.c (widened_name_p): New function.
13325         (vect_recog_dot_prod_pattern): Added function implementation.
13326         * tree-vect-transform.c (get_initial_def_for_reduction): Added
13327         cases for DOT_PROD_EXPR, WIDEN_SUM_EXPR.
13328         * config/rs6000/altivec.md (udot_prod<mode>, sdot_prodv8hi): New.
13329         * config/i386/sse.md (sdot_prodv8hi, udot_prodv4si): New.
13330
13331         * expr.c (expand_expr_real_1): Added case for WIDEN_SUM_EXPR.
13332         * genopinit.c (widen_ssum_optab, widen_usum_optab): Initialize.
13333         * optabs.c (optab_for_tree_code): Added case for WIDEN_SUM_EXPR.
13334         (init_optabs): Initialize new optabs widen_ssum_optab,
13335         widen_usum_optab.
13336         * optabs.h (OTI_widen_ssum, OTI_widen_usum): New.
13337         (widen_ssum_optab, widen_usum_optab): Define new optabs.
13338         * tree-vect-generic.c: (expand_vector_operations_1): Check type of
13339         use instead of type of def.
13340         * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Added
13341         function implementation.
13342         * config/rs6000/altivec.md (widen_usum<mode>, widen_ssumv16qi,
13343         widen_ssumv8hi): New.
13344
13345         * doc/tm.texi (ssum_widen, usum_widen, sdot_prod, udot_prod): New
13346         patterns.
13347
13348 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
13349
13350         PR c/25805
13351         * c-decl.c (add_flexible_array_elts_to_size): New function.
13352         (finish_decl): Use it.
13353
13354 2006-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
13355
13356         * diagnostic.h: Include options.h.
13357         * config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
13358         dependancies for diagnostic.h.
13359         * Makefile.in (DIAGNOSTIC_H): Add options.h.
13360
13361 2006-01-16  Daniel Berlin  <dberlin@dberlin.org>
13362
13363         * tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
13364         (ssa_ro_call_cache_valid): Ditto.
13365         * tree-ssa-alias.c (sort_tags_by_id): New function.
13366         (init_transitive_clobber_worklist): Ditto.
13367         (add_to_worklist): Ditto.
13368         (mark_aliases_call_clobbered): Ditto.
13369         (compute_tag_properties): Ditto.
13370         (set_initial_properties): Ditto.
13371         (compute_call_clobbered): Ditto.
13372         (compute_may_aliases):  Call compute_call_clobbered and grouping.
13373         (compute_flow_sensitive_aliasing): Remove clobbering related code.
13374         (compute_flow_insensitive_aliasing): Grouping now happens in our
13375         caller.
13376         (setup_pointers_and_addressables): Remove clobbering related code.
13377         (add_may_alias): Ditto.
13378         (replace_may_alias): Ditto.
13379         (get_nmt_for): Ditto.
13380         (create_global_var):
13381         (is_escape_site): Return an escape_type enumeration.
13382         * tree-flow-inline.h (is_call_clobbered): Global var does not
13383         imply call clobbered.
13384         (mark_call_clobbered): Take a reason for marking this. Remove
13385         marking of globalness, and cache invalidation.
13386         (clear_call_clobbered): Remove cache invalidation code.
13387         * tree-dfa.c (dump_variable): If details is on, dump the reason
13388         for escaping.
13389         * tree-outof-ssa.c (create_temp): Copy escape mask from original
13390         variable.
13391         * tree-flow.h (struct ptr_info_def): Add escape mask member.
13392         (struct var_ann_d): Ditto.
13393         (enum escape_type): New.
13394         (mark_call_clobbered): Adjust prototype.
13395         * tree-ssa-structalias.c (update_alias_info): Unmodifiable vars
13396         are never call clobbered.
13397         Record reasons for escaping.
13398         * tree-ssa-structalias.h (is_escape_site): Update prototype.
13399         * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): Remove.
13400         (ssa_ro_call_cache_valid): Ditto.
13401         (clobbered_v_may_defs): Ditto.
13402         (clobbered_vuses): Ditto.
13403         (ro_call_vuses): Ditto.
13404         (clobber_stats): New.
13405         (init_ssa_operands): Zero out clobber stats.
13406         (fini_ssa_operands): Print out clobber stats.
13407         (get_call_expr_operands): Pass callee fndecl to
13408         add_call_read_ops).
13409         (add_call_clobber_ops): Remove use of cache.
13410         Add use of PURE_CONST information.
13411         (add_call_read_ops): Remove use of cache.
13412         Add use of static not_read information.
13413
13414 2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
13415
13416         Introduce TLS descriptors for i386 and x86_64.
13417         * config/i386/i386.h (TARGET_GNU2_TLS): New macro.
13418         (TARGET_ANY_GNU_TLS): New macro.
13419         (enum tls_dialect): Added TLS_DIALECT_GNU2.
13420         (struct machine_function): Add tls_descriptor_call_expanded_p.
13421         (ix86_tls_descriptor_calls_expande_in_cfun): New macro.
13422         (ix86_current_function_calls_tls_descriptor): Likewise.
13423         * config/i386/i386.c (ix86_tls_dialect): Fix typo in comment.
13424         (override_options): Introduce gnu2 tls dialect.
13425         (ix86_frame_pointer_required): Functions containing TLSCALLs are
13426         not leaves.
13427         (ix86_select_alt_pic_regnum, ix86_compute_frame_layout):
13428         Likewise.
13429         (legitimize_tls_address): Adjust logic for GNU2 TLS.
13430         (ix86_init_machine_status): Initialize new field.
13431         (ix86_tls_get_addr): Use TARGET_ANY_GNU_TLS.
13432         (ix86_tls_module_base): New.
13433         * config/i386/i386-protos.h (ix86_tls_module_base): Declare it.
13434         * config/i386/i386.md (UNSPEC_TLSDESC): New constant.
13435         (tls_global_dynamic_32, tls_global_dynamic_64): Handle GNU2 TLS.
13436         (tls_local_dynamic_base_32, tls_local_dynamic_base_64): Likewise.
13437         (tls_dynamic_gnu2_32, *tls_dynamic_lea_32): New patterns.
13438         (*tls_dynamic_call_32, *tls_dynamic_gnu2_combine_32): Likewise.
13439         (tls_dynamic_gnu2_64, *tls_dynamic_lea_64): Likewise.
13440         (*tls_dynamic_call_64, *tls_dynamic_gnu2_combine_64): Likewise.
13441         * config/i386/predicates.md (tls_modbase_operand): New.
13442         (tp_or_register_operand): New.
13443
13444 2006-01-18  Daniel Berlin  <dberlin@dberlin.org>
13445
13446         * ipa-reference.c (check_operand): Allow FUNCTION_DECL.
13447         (look_for_address_of): Ditto.
13448         (ipa_init): Walk the function decls.
13449         (static_execute): Don't set readonly on FUNCTION_DECL's.
13450
13451 2006-01-18  Roger Sayle  <roger@eyesopen.com>
13452
13453         * config/i386/i386.md (shift spliter): Fix a a typo in the splitter
13454         for shifts where the source and destination registers are different.
13455
13456 2006-01-18  Paul Brook  <paul@codesourcery.com>
13457
13458         Merge from csl-arm-branch.
13459         2005-03-14  Julian Brown  <julian@codesourcery.com>
13460         * config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
13461         (aeabi_llsl): Likewise.
13462         (ashrdi3): Likewise.
13463         (aeabi_lasr): Likewise.
13464         (lshrdi3): Likewise.
13465         (aeabi_llsr): Likewise.
13466         2005-03-10  Julian Brown  <julian@codesourcery.com>
13467         * config.gcc: Disable shared libgcc for SymbianOS.
13468         * config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
13469
13470 2006-01-18  DJ Delorie  <dj@redhat.com>
13471
13472         * c-pragma.c (handle_pragma_diagnostic): New.
13473         (init_pragma): Register it.
13474         * doc/extend.texi: Document it.
13475
13476         * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
13477         * diagnostic.h (diagnostic_classify_diagnostic): Declare.
13478         (diagnostic_context): Add classify_diagnostic[].
13479         * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
13480         as errors if they're overridden to DK_WARNING.
13481         (diagnostic_initialize): Initialize classify_diagnostic[].
13482         (diagnostic_set_kind_override): New.
13483         (diagnostic_report_diagnostic): Check for kind changes.
13484         * opts.c (common_handle_option): Take lang_mask.  Update callers.
13485         Handle OPT_Werror_.
13486         * common.opt (Werror=): New.
13487         * doc/invoke.texi: Document -Werror=*
13488
13489 2006-01-18  Jeff Law  <law@redhat.com>
13490
13491         * tree-vrp.c (test_for_singularity): Correct test for new
13492         min limit.  Use operand_equal_p rather than pointer equality
13493         for testing if new min/max values are equal.
13494
13495         * tree-ssa-propagate.c (substitute_and_fold): Delay simplifications
13496         using range information until after propagation and folding.
13497
13498 2006-01-18  Richard Henderson  <rth@redhat.com>
13499             Aldy Hernandez  <aldyh@redhat.com>
13500             Jakub Jelinek  <jakub@redhat.com>
13501             Diego Novillo  <dnovillo@redhat.com>
13502
13503         * omp-low.c: New file.
13504         * c-omp.c: New file.
13505
13506 2006-01-18  Richard Henderson  <rth@redhat.com>
13507             Jakub Jelinek  <jakub@redhat.com>
13508             Diego Novillo  <dnovillo@redhat.com>
13509
13510         * doc/invoke.texi: Document -fopenmp.
13511         * tree-dump.h (debug_function): Declare.
13512         * hooks.c (hook_bool_tree_bool_false): New function.
13513         (hook_tree_tree_null): Remove.
13514         (hook_tree_tree_tree_null): New.
13515         * hooks.h: Update to match.
13516         * tree-pretty-print.c (debug_tree_chain): New.
13517         (print_generic_expr): Handle TDF_CHAIN.
13518         (dump_generic_node): Handle BLOCK.
13519         Do not abort with incomplete SWITCH_EXPRs.
13520         Do not dump body of an OpenMP directive if TDF_SLIM is given.
13521         <case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
13522         print space after directive name.
13523         <OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
13524         Handle OMP_MASTER and OMP_ORDERED.
13525         Handle printing of OMP_BODY just in one place, goto
13526         dump_omp_body in the rest of OMP_* nodes that have
13527         OMP_BODY.
13528         Don't handle clause nodes here.  Update omp statements to
13529         use dump_omp_clauses.
13530         Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
13531         OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
13532         OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
13533         GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
13534         GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
13535         GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
13536         Adjust output for GOMP_PARALLEL.
13537         (dump_omp_clauses): New.
13538         (print_declaration): Dump DECL_VALUE_EXPR.
13539         (op_symbol_1): Split out of op_symbol.
13540         (dumping_stmts): Remove.  Update all users.
13541         * cgraph.c (cgraph_analyze_queue): New.
13542         (cgraph_add_new_function): New.
13543         * cgraph.h (cgraph_analyze_queue): Declare.
13544         (cgraph_add_new_function): Declare.
13545         (cgraph_lower_function): Remove.
13546         * tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
13547         nodes.  Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
13548         and TYPE_P nodes in its default clause.
13549         (empty_body_p): New.
13550         (tree_range_check_failed): New.
13551         (build5_stat): New.
13552         * tree.h (OMP_CLAUSE_REDUCTION_INIT,
13553         OMP_CLAUSE_REDUCTION_MERGE,
13554         OMP_CLAUSE_REDUCTION_PLACEHOLDER,
13555         OMP_CLAUSE_PRIVATE_DEBUG,
13556         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
13557         OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
13558         OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
13559         OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
13560         OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
13561         OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
13562         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
13563         OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
13564         OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
13565         OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
13566         OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
13567         OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
13568         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
13569         OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
13570         (TREE_RANGE_CHECK): New.
13571         (empty_body_p): Declare.
13572         (enum omp_clause_default_kind): New.
13573         (build_string_literal): Declare.
13574         (enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
13575         (build5_stat, build5): Declare.
13576         * tree-pass.h (TDF_CHAIN): Define.
13577         * tree-pass.h (PROP_gimple_lomp): Define.
13578         (pass_lower_omp): Declare.
13579         * diagnostic.h (debug_tree_chain): Declare.
13580         * builtins.c (get_builtin_sync_mode): Use 0 as last argument to
13581         mode_for_size.
13582         (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
13583         * builtins.c (build_string_literal): Make extern.
13584         * gcc.c (include_spec_function): New.
13585         (static_spec_functions): Add it.
13586         (main): Move load of libgomp.spec ...
13587         (LINK_COMMAND_SPEC): ... here.
13588         (link_gomp_spec): New.
13589         (static_specs): Include it.
13590         (LINK_COMMAND_SPEC): Add link_gomp.
13591         (GOMP_SELF_SPECS): New.
13592         (driver_self_specs): Include it.
13593         (switch_matches): Don't mark inline.
13594         (main): Load libgomp.spec.
13595         * tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
13596         OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
13597         and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
13598         * tree-gimple.h (enum omp_parallel): Declare.
13599         (determine_parallel_type): Declare.
13600         (omp_firstprivatize_variable): Declare.
13601         (omp_reduction_init): Declare.
13602         (diagnose_omp_structured_block_errors): Declare.
13603         (struct walk_stmt_info): Add want_return_expr.
13604         (struct walk_stmt_info): Add want_bind_expr, want_locations.
13605         (find_omp_clause): Declare.
13606         (insert_field_into_struct): Declare.
13607         (struct walk_stmt_info): Move from tree-nested.c
13608         (walk_stmts): Declare.
13609         * c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
13610         to 200505.
13611         * cgraphunit.c (cgraph_lower_function): Make static.
13612         (cgraph_finalize_pending_functions): New.
13613         (cgraph_finalize_function): Call it.
13614         (cgraph_finalize_compilation_unit): Likewise.
13615         * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
13616         BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
13617         (BT_FN_UINT_UINT): New.
13618         (DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
13619         DEF_FUNCTION_TYPE_VAR_4): Document.
13620         (BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
13621         BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
13622         BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
13623         BT_FN_VOID_OMPFN_PTR_UINT_UINT,
13624         BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
13625         BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
13626         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
13627         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
13628         * builtins.def: Update DEF_BUILTIN comment to include COND argument.
13629         Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
13630         into separate files.
13631         (DEF_GOMP_BUILTIN): New.
13632         (BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
13633         BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
13634         BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
13635         BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
13636         BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
13637         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
13638         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
13639         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
13640         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
13641         BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
13642         BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
13643         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
13644         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
13645         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
13646         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
13647         BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
13648         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
13649         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
13650         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
13651         BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
13652         BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
13653         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
13654         BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
13655         BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
13656         BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
13657         BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
13658         * sync-builtins.def: New file, moved from builtins.def.
13659         * omp-builtins.def: New file, moved from builtins.def.
13660         * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
13661         * gimple-low.c (lower_function_body): Clear data.
13662         (lower_stmt): Do not handle COMPOUND_EXPR.
13663         Remove call to print_node_brief.
13664         * c-tree.h (c_finish_omp_clauses): New prototype.
13665         (C_DECL_THREADPRIVATE_P): Define.
13666         (lookup_name_no_remap, c_omp_remap_private): Remove
13667         (c_begin_omp_parallel, c_finish_omp_parallel): Update.
13668         (check_for_loop_decls): Update decl.
13669         (lookup_name_no_remap, c_omp_remap_private): Declare.
13670         (build_indirect_ref, build_modify_expr, pushdecl,
13671         pushdecl_top_level): Move to c-common.h.
13672         * dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
13673         before the switch, but just in the 2 places that need it.
13674         * c-decl.c (diagnose_mismatched_decls): Do not check for
13675         mismatched thread-local attributes when OLDDECL is marked
13676         threadprivate and NEWDECL has no thread-local attributes.
13677         (merge_decls): Merge C_DECL_THREADPRIVATE_P.
13678         (c_gimple_diagnostics_recursively): Rename from
13679         c_warn_unused_result_recursively.  Invoke
13680         diagnose_omp_structured_block_errors.
13681         (check_for_loop_decls): Return a singular decl found.
13682         * langhooks.c (lhd_omp_predetermined_sharing): Return
13683         OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
13684         (lhd_omp_firstprivatize_type_sizes): New.
13685         (lhd_omp_assignment): New.
13686         (lhd_omp_predetermined_sharing): New.
13687         * langhooks.h (struct gimplify_omp_ctx): Forward declare.
13688         (struct lang_hooks_for_types): Add
13689         omp_firstprivatize_type_sizes, omp_privatize_by_reference,
13690         omp_predetermined_sharing, omp_disregard_value_expr,
13691         omp_private_debug_clause, omp_clause_default_ctor,
13692         omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
13693         (c_finish_omp_clauses): New.
13694         (c_finish_bc_stmt): Diagnose break within omp for.
13695         (c_begin_omp_parallel, c_finish_omp_parallel): New.
13696         (build_unary_op): Return error_mark after reporting
13697         a readonly_error.
13698         (build_modify_expr): Likewise.
13699         * gimplify.c: Include optabs.h and pointer-set.h.
13700         (enum gimplify_omp_var_data): Declare.
13701         (struct gimplify_omp_ctx): Declare.
13702         (struct gimplify_ctx): Add fields prev_context, combined_pre_p
13703         and combined_ctxp.
13704         (gimplify_ctxp, gimplify_omp_ctxp): New local variables.
13705         (push_gimplify_context, pop_gimplify_context): Allow nesting.
13706         (splay_tree_compare_decl_uid): New.
13707         (new_omp_context): New.
13708         (delete_omp_context): New.
13709         (gimple_add_tmp_var): Call omp_add_variable.
13710         (gimplify_bind_expr): Likewise.
13711         (gimplify_var_or_parm_decl): If omp_notice_variable returned
13712         true, disregard DECL_VALUE_EXPR on the decl if any.
13713         (gimplify_expr_in_ctx): New.
13714         (omp_firstprivatize_variable, omp_firstprivatize_type_sizes
13715         omp_add_variable, omp_notice_variable, omp_is_private
13716         gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
13717         gimplify_adjust_omp_clauses, gimplify_omp_parallel
13718         gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
13719         gimplify_omp_atomic_fetch_op, goa_stabilize_expr
13720         gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
13721         gimplify_omp_atomic): New.
13722         (gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
13723         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
13724         OMP_CRITICAL and OMP_ATOMIC.
13725         (gimplify_body): Verify gimplify_ctxp is empty after gimplification.
13726         * c-pragma.h (enum pragma_kind): Add
13727         PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
13728         PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
13729         PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
13730         PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
13731         PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
13732         PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
13733         PRAGMA_OMP_THREADPRIVATE.
13734         * tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
13735         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
13736         OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
13737         OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
13738         OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
13739         OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
13740         OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
13741         OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
13742         OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
13743         * print-tree.c (print_node): Dump DECL_VALUE_EXPR.
13744         * tree-ssa-dce.c (find_control_dependence): Do not assume that
13745         ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
13746         * tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
13747         OpenMP directives.
13748         (struct nesting_info): Add field_map,
13749         suppress_expansion, debug_var_chain.
13750         (create_nesting_tree): Initialize them.
13751         (lookup_field_for_decl): Use field_map.
13752         (get_nonlocal_debug_decl, get_local_debug_decl): New.
13753         (convert_local_omp_clauses): New.
13754         (finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
13755         (walk_body): Split out of walk_function.
13756         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
13757         (convert_nonlocal_reference): Handle omp statements.
13758         (convert_local_reference): Likewise.
13759         (unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
13760         (unnest_nesting_tree): New.
13761         (lower_nested_functions): Call it.
13762         (insert_field_into_struct): Make extern.
13763         (struct walk_stmt_info): Move to tree-gimple.h.
13764         (walk_stmts): Make extern.
13765         * omp-builtins.def: New file.
13766         * tree-iterator.c (expr_only): Clarify comment.
13767         * c-common.h (pushdecl_top_level, pushdecl,
13768         build_modify_expr, build_indirect_ref,
13769         c_finish_omp_master, c_finish_omp_critical,
13770         c_finish_omp_ordered, c_finish_omp_barrier,
13771         c_finish_omp_atomic, c_finish_omp_flush,
13772         c_finish_omp_for, c_split_parallel_clauses,
13773         omp_clause_default_kind, c_omp_sharing_predetermined,
13774         c_omp_remap_decl): Declare.
13775         * Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
13776         (OBJS-common): Add omp-low.o.
13777         (c-omp.o, omp-low.o): Add.
13778         (gimplify.o): Add dependency on $(OPTABS_H).
13779         (GTFILES): Add omp-low.c.
13780         (gt-stringpool.h): Add.
13781         * tree-cfg.c (set_bb_for_stmt): Do not update the
13782         block-to-labels map if we are currently expanding to RTL.
13783         (tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
13784         checks.
13785         Handle IDENTIFIER_NODE.
13786         (tree_verify_flow_info): Do not ICE when emitting error
13787         messages about invalid labels.
13788         (dump_function_to_file): Reset CFUN before emitting the body
13789         of the function.
13790         (debug_function): New.
13791         * passes.c (init_optimization_passes): Schedule
13792         pass_lower_omp.
13793         * langhooks-def.h (lhd_omp_predetermined_sharing,
13794         lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
13795         Declare.
13796         (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
13797         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
13798         (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
13799         LANG_HOOKS_OMP_PREDETERMINED_SHARING,
13800         LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
13801         LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
13802         LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
13803         LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
13804         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
13805         LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
13806         (LANG_HOOK_DECLS): Use them.
13807
13808 2006-01-18  Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
13809             Richard Henderson  <rth@redhat.com>
13810             Jakub Jelinek  <jakub@redhat.com>
13811             Diego Novillo  <dnovillo@redhat.com>
13812
13813         * c-parser.c (pragma_omp_clause): Define.
13814         (c_parser_declaration_or_fndef): Document OpenMP syntax.
13815         (c_parser_compound_statement): Likewise.
13816         (c_parser_statement): Likewise.
13817         (c_parser_pragma): Handle omp pragmas.
13818         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
13819         OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
13820         (c_parser_omp_clause_name, check_no_duplicate_clause,
13821         c_parser_omp_variable_list,
13822         c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
13823         c_parser_omp_clause_copyprivate,
13824         c_parser_omp_clause_default,
13825         c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
13826         c_parser_omp_clause_lastprivate,
13827         c_parser_omp_clause_nowait,
13828         c_parser_omp_clause_num_threads,
13829         c_parser_omp_clause_ordered, c_parser_omp_clause_private,
13830         c_parser_omp_clause_reduction,
13831         c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
13832         c_parser_omp_all_clauses, c_parser_omp_structured_block,
13833         c_parser_omp_atomic, c_parser_omp_barrier,
13834         c_parser_omp_critical, c_parser_omp_flush,
13835         c_parser_omp_for_loop, c_parser_omp_for,
13836         c_parser_omp_master, c_parser_omp_ordered,
13837         c_parser_omp_sections_scope, c_parser_omp_sections,
13838         c_parser_omp_parallel, c_parser_omp_single,
13839         c_parser_omp_construct, c_parser_omp_threadprivate): New.
13840         * c-pragma.c (init_pragma): Do omp pragma registration here.
13841         * c.opt (fopenmp): New flag.
13842
13843 2006-01-18  Eric Christopher  <echristo@apple.com>
13844
13845         * gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
13846         * config/darwin.h (GOMP_SELF_SPECS): Define.
13847
13848 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
13849
13850         * rtl.h: Remove the prototype for reg_alloc.
13851
13852 2006-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13853
13854         PR target/25731
13855         * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
13856         hppa[12]*-*-hpux11*): Override default shared libgcc version for both
13857         sjlj and dwarf2 exception handling.
13858         * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
13859         Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
13860         * pa/pa.c (function_value): Treat complex and vector types as
13861         aggregates.
13862         (function_arg): Likewise.  Only pass scalar floats in the floating
13863         point argument registers.
13864         * pa/t-slibgcc-dwarf-ver: New file.
13865         * pa/t-slibgcc-sjlj-ver: New file.
13866         * pa/t-slibgcc-elf-ver: Delete file.
13867
13868 2006-01-19  Alan Modra  <amodra@bigpond.net.au>
13869
13870         * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
13871         unlikely_test_section_p test.
13872
13873 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
13874
13875         * mode-switching.c (optimize_mode_switching): Make it static.
13876         * basic-block.h: Remove the prototype for
13877         optimize_mode_switching.
13878
13879         * modulo-sched.c (sms_schedule): Make it static.
13880         * rtl.h: Remove the prototype for sms_schedule.
13881
13882         * postreload-gcse.c (gcse_after_reload_main): Make it static.
13883         * rtl.h: Remove the prototype for gcse_after_reload_main.
13884
13885         * reg-stack.c (reg_to_stack): Make it static.
13886         * rtl.h: Remove the prototype for reg_to_stack.
13887
13888         * regrename.c (regrename_optimize, copyprop_hardreg_forward):
13889         Make them static.
13890         * rtl.h: Remove the prototypes for regrename_optimize and
13891         copyprop_hardreg_forward.
13892
13893 2006-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13894
13895         * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
13896         alpha_split_tmode_pair.  Add 'mode' and 'fixup_overlap' arguments.
13897         Test against the appropriate null constant for the mode.
13898         If 'fixup_overlap' is true, swap the operands if they overlap.
13899         (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
13900         * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
13901         alpha_split_tmode_pair and adjust for above change.
13902         * config/alpha/alpha.md (movtf_internal): Adjust call to
13903         alpha_split_tfmode_pair and rely on it to swap the operands.
13904         (movti_internal): New insn and post-reload splitter.
13905         (movti): New expander.
13906
13907 2006-01-18  Philippe De Muyter  <phdm@macqel.be>
13908
13909         * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
13910         operands.
13911
13912 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
13913
13914         * rtlanal.c (global_reg_mentioned_p_1,
13915         global_reg_mentioned_p): Remove.
13916         * rtl.h: Remove the prototype for global_reg_mentioned_p.
13917
13918         * flow.c (initialize_uninitialized_subregs): Make it static.
13919         * rtl.h: Remove the prototype for
13920         initialize_uninitialized_subregs.
13921
13922         * function.c (instantiate_virtual_regs): Make it static.
13923         * function.h: Remove the prototype for
13924         instantiate_virtual_regs.
13925
13926         * regmove.c (regmove_optimize, combine_stack_adjustments):
13927         Make them static.
13928         * rtl.h: Remove the prototypes for regmove_optimize and
13929         combine_stack_adjustments.
13930
13931 2006-01-17  Roger Sayle  <roger@eyesopen.com>
13932
13933         * config/i386/i386.c (COSTS_N_BYTES): New macro.
13934         (size_cost): Encode costs in bytes so that a reg-reg addition is
13935         equivalent to COSTS_N_INSNS(1).
13936         (override_options): Use the size_cost.branch_cost as the default
13937         ix86_branch_cost when optimizing for size.
13938
13939 2006-01-18  Ben Elliston  <bje@au.ibm.com>
13940
13941         * Makefile.in (D32PBIT_FUNCS): New.
13942         (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
13943         (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
13944         D64PBIT_FUNCS and D128PBIT_FUNCS.
13945         (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
13946         * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
13947         D128PBIT are set.
13948         (decnumber_dep): Define.
13949         * doc/libgcc.texi (Decimal float library routines): New node.
13950         * config/dfp-bit.h, config/dfp-bit.c: New files.
13951
13952 2006-01-18  Ben Elliston  <bje@au.ibm.com>
13953
13954         * expr.c (emit_move_change_mode): Always adjust addresses, not
13955         just during reload.  Copy replacements only during reload.
13956         (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
13957         emit_move_via_integer.
13958
13959 2006-01-17  Shantonu Sen  <ssen@opendarwin.org>
13960
13961         * Makefile.in (check-%, check-consistency): Use $${srcdir}
13962         instead of $(srcdir) and ${srcdir}.
13963
13964 2006-01-17  Richard Earnshaw  <rearnsha@arm.com>
13965
13966         PR target/592
13967         PR middle-end/11135
13968         * arm.h (struct machine_function): Add pic_reg.
13969         * arm.c (arm_pic_register): Make unsigned.
13970         (arm_override_options): Only set arm_pic_register if
13971         TARGET_SINGLE_PIC_BASE.
13972         (use_return_insn): Only test for a pic register if it is fixed.
13973         (arm_compute_save_reg0_reg12_mask): Likewise.
13974         (thumb_compute_save_reg_mask): Likewise.
13975         (legitimate_pic_operand): Factor out some known invariants.
13976         (legitimize_pic_address): If we don't have a fixed pic register,
13977         then set up a pseudo in the function entry sequence.  Handle the
13978         pic base being in a pseudo.
13979         (arm_load_pic_register): Handle the pic register being in a pseudo.
13980         (arm_expand_prologue): Only set up the pic register if it is fixed.
13981         (thumb_expand_prologue): Likewise.
13982         * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
13983         (pic_load_addr_based_insn): Likewise.
13984         (builtin_setjmp_receiver): Don't restore the pic base if it isn't
13985         fixed.
13986
13987 2006-01-18  Ben Elliston  <bje@au.ibm.com>
13988
13989         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
13990         decimal float modes for all floating point registers.
13991
13992         * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
13993         match_code "mem" with match_test "macho_lo_sum_memory_operand".
13994
13995 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
13996
13997         PR c/25682
13998         * c-typeck.c (build_unary_op): Fold offsetof-like expressions
13999         even when the pointer is not NULL.
14000
14001 2006-01-16  Ian Lance Taylor  <ian@airs.com>
14002
14003         * common.opt (ftoplevel-reorder): New option.
14004         * cgraph.c (cgraph_asm_nodes): New global variable.
14005         (cgraph_asm_last_node): New static variable.
14006         (cgraph_order): New global variable.
14007         (cgraph_create_node): Set new order field.
14008         (cgraph_varpool_node): Likewise.
14009         (decide_is_variable_needed): Return true if not
14010         flag_toplevel_reorder.
14011         (cgraph_add_asm_node): New function.
14012         * cgraph.h (struct cgraph_node): Add order field.
14013         (struct cgraph_varpool_node): Add order field.
14014         (struct cgraph_asm_node): Define.
14015         (cgraph_asm_nodes, cgraph_order): Declare.
14016         (cgraph_add_asm_node): Declare.
14017         * cgraphunit.c (cgraph_varpool_assemble_decl): New static
14018         function.
14019         (cgraph_varpool_assemble_pending_decls): Call it.
14020         (cgraph_output_pending_asms): New static function.
14021         (cgraph_finalize_compilation_unit): Call it.
14022         (struct cgraph_order_sort): Define.
14023         (cgraph_output_in_order): New static function.
14024         (cgraph_optimize): Call cgraph_output_pending_asms.  Add code for
14025         !flag_toplevel_reorder case.
14026         * c-parser.c: Include "cgraph.h".
14027         (c_parser_asm_definition): Call cgraph_add_asm_node rather than
14028         assemble_asm.
14029         * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
14030         than -fno-unit-at-a-time.
14031         * doc/invoke.texi (Option Summary): Mention
14032         -fno-toplevel-reorder.
14033         (Optimize Options): Document -fno-toplevel-reorder.  Mention it in
14034         -funit-at-a-time documentation.
14035
14036 2006-01-17  Hans-Peter Nilsson  <hp@axis.com>
14037             Kazu Hirata  <kazu@codesourcery.com>
14038
14039         * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
14040
14041 2006-01-17  Kazu Hirata  <kazu@codesourcery.com>
14042
14043         * Makefile.in (FUNCTION_H): New.  Use it instead of
14044         function.h throughout the file.
14045         * function.h: Include tree.h.
14046
14047 2006-01-17  Ben Elliston  <bje@au.ibm.com>
14048
14049         * recog.c: Separate some functions with whitespace.
14050
14051 2006-01-16  Richard Henderson  <rth@redhat.com>
14052
14053         Merge from gomp branch:
14054         * Makefile.in (TREE_INLINE_H): New.  Use it as needed.
14055         * tree-inline.h (struct copy_body_data): Move from tree-inline.c
14056         and rename from struct inline_data.  Rename callee* to dst*;
14057         caller* to src*; add copy_decl hook, transform_call_graph_edges,
14058         transform_new_cfg, transform_return_to_modify, and
14059         transform_lang_insert_block flags; remove cloning_p, versioning_p,
14060         update_clones_p.
14061         (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
14062         (copy_decl_for_dup): Remove.
14063         * tree-inline.c (struct inline_data): Move to header.
14064         (insert_decl_map): Export.
14065         (remap_decl): Update for member name changes.  Use copy_decl hook.
14066         Allow for replacement to be a non-decl.  Remove dead code.
14067         (remap_type_1): Check for existing mapping.
14068         (remap_type): Export.
14069         (remap_decls): Update for member name changes.
14070         (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
14071         (copy_body, setup_one_parameter, declare_return_variable): Likewise.
14072         (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
14073         (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
14074         (tree_function_versioning, build_duplicate_type): Likewise.
14075         (copy_body_r): Likewise.  Export.
14076         (copy_decl_for_dup): Split into ...
14077         (copy_decl_for_dup_finish, copy_decl_to_var,
14078         copy_decl_no_change, copy_decl_maybe_to_var): ... these.
14079         (replace_ref_tree, inlining_p): Remove.
14080
14081 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
14082
14083         * ifcvt.c (if_convert): Make it static.
14084         * rtl.h: Remove the prototype for if_convert.
14085
14086         * local-alloc.c (local_alloc): Make it static.
14087         * rtl.h: Remove the prototype for local_alloc.
14088
14089         * loop.c (loop_optimize): Make it static.
14090         * cfgloop.h: Remove the prototype for loop_optimize.
14091         * rtl.h: Likewise.
14092
14093 2006-01-16  DJ Delorie  <dj@redhat.com>
14094
14095         * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
14096         mems.
14097
14098 2006-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14099
14100         * pa.md: Disparage copies between general and floating-point registers
14101         in 32-bit move patterns.
14102
14103 2006-01-16  H.J. Lu  <hongjiu.lu@intel.com>
14104
14105         PR testsuite/25741
14106         * Makefile.in (check-%): Depend on site.exp instead of
14107         $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
14108         directories.
14109
14110 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
14111
14112         * global.c (global_alloc): Make it static.
14113         * rtl.h: Remove the prototype for global_alloc.
14114
14115 2006-01-16  Richard Guenther  <rguenther@suse.de>
14116
14117         * tree-ssa-alias.c (struct used_part): Add write_only field.
14118         (get_or_create_used_part_for): Initialize it to true.
14119         (create_overlap_variables_for): Don't create structure variables
14120         for structures that only are written to.
14121         (find_used_portions): Handle MODIFY_EXPR to track whether a
14122         structure is only written to.
14123
14124 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
14125
14126         * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
14127         static.
14128         * basic-block.h: Remove the prototype for
14129         partition_hot_cold_basic_blocks.
14130
14131 2006-01-16  Rafael Ãvila de EspÃ�­ndola <rafael.espindola@gmail.com>
14132
14133         * cppspec.c (lang_specific_spec_functions): Remove.
14134         * gcc.c (lookup_spec_function): Use static_spec_functions directly.
14135         * gcc.h (lang_specific_spec_functions): Remove.
14136         * gccspec.c (lang_specific_spec_functions): Remove.
14137
14138 2006-01-16  Paolo Bonzini  <bonzini@gnu.org>
14139
14140         * combine.c (record_value_for_reg): Invalidate registers
14141         if INSN is null.
14142         (record_dead_and_set_regs_1): Likewise, by passing them to
14143         record_value_for_reg.
14144         (record_dead_and_set_regs): Invalidate stores made by a
14145         call.  We do not combine across a call, but we still
14146         relied on equivalences.
14147
14148 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
14149
14150         * tree-vrp.c (extract_range_from_binary_expr): Cope with
14151         vrp_int_const_binop returning non-constant nodes.
14152
14153 2006-01-16  Paul Brook  <paul@codesourcery.com>
14154
14155         * config/m68k/m68k.c (output_move_const_into_data_reg):
14156         Output correct mnemonic for mvz and mvs.
14157
14158 2006-01-16  Gabor Loki  <loki@gcc.gnu.org>
14159
14160         * rtl-factoring.c: Add sequence abstraction algorithm.
14161         * cfgcleanup.c (outgoing_edges_match): Extra checks.
14162         (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
14163         ABNORMAL edges.
14164         (block_has_preserve_label): New function.
14165         * common.opt: Register new pass.
14166         * Makefile.in: Ditto.
14167         * passes.c: Ditto.
14168         * timevar.def: Ditto.
14169         * tree-pass.h: Ditto.
14170         * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
14171         * rtl.h (make_jump_insn_raw): Add forward decl.
14172         * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
14173
14174 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
14175             Roger Sayle  <roger@eyesopen.com>
14176
14177         * fold-const.c (fold_minmax): New static function.
14178         (fold_binary) <MIN_EXPR>: Call it.
14179         <MAX_EXPR>: Likewise.
14180         * stor-layout.c (place_field): Use DECL_SIZE consistently
14181         in the computation of the new record size.
14182
14183 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
14184
14185         * cse.c (cse_condition_code_reg): Make it static.
14186         * rtl.h: Remove the prototype for cse_condition_code_reg.
14187
14188         * combine.c (combine_instructions): Make it static.
14189         * rtl.h: Remove the prototype for combine_instructions.
14190
14191 2006-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14192
14193         PR target/25168
14194         * tree.c (get_file_function_name_long): Concatenate the first global
14195         object name with a string derived from the input filename of the object
14196         for type "F".
14197
14198 2006-01-16  Ben Elliston  <bje@au.ibm.com>
14199
14200         * config/i386/winnt-stubs.c: Update FSF address.
14201         * config/xtensa/ieee754-df.S: Ditto.
14202         * config/xtensa/ieee754-sf.S: Ditto.
14203
14204 2006-01-14  Ian Lance Taylor  <ian@airs.com>
14205
14206         * ifcvt.c (noce_init_if_info): New static function, broken out of
14207         noce_process_if_block.
14208         (noce_process_if_block): Call noce_init_if_info.
14209         (check_cond_move_block): New static function.
14210         (cond_move_process_if_block): New static function.
14211         (process_if_block): Call cond_move_process_if_block.
14212
14213 2006-01-15  Kazu Hirata  <kazu@codesourcery.com>
14214
14215         * cselib.c (hash_table): Rename to cselib_hash_table.
14216         (cselib_clear_table, discard_useless_values,
14217         remove_useless_values, cselib_lookup_mem, cselib_lookup,
14218         cselib_init, cselib_finish): Adjust uses of hash_table.
14219
14220 2006-01-14  Kazu Hirata  <kazu@codesourcery.com>
14221
14222         PR tree-optimization/25485
14223         * tree-vrp.c (extract_range_from_binary_expr): Handle cases
14224         where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
14225         is known to be false and true, respectively.
14226
14227 2006-01-14  Richard Guenther  <rguenther@suse.de>
14228
14229         PR tree-optimization/22548
14230         PR tree-optimization/22555
14231         PR tree-optimization/22501
14232         * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
14233         * params.def (salias-max-array-elements): New parameter.
14234         * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
14235         * doc/invoke.texi (salias-max-array-elements): Document.
14236         * tree-flow-inline.h (var_can_have_subvars): We also handle
14237         arrays now.
14238         * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
14239         COMPONENT_REF.
14240         * tree-ssa-structalias.c (params.h): Include.
14241         (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
14242         (find_func_aliases): Handle multiple constraints from ARRAY_REF.
14243         (get_constraint_for): For ADDR_EXPR operating on something
14244         containing an ARRAY_REF, add all subvars to the solution.
14245         (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
14246         * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
14247         for creating MUST_DEFs.
14248         (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
14249
14250 2006-01-14  Zdenek Dvorak <dvorakz@suse.cz>
14251
14252         * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
14253         functions.
14254         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
14255         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
14256         number_of_iterations_le): New functions.
14257         (number_of_iterations_special): Removed.
14258         (number_of_iterations_exit): Do not use number_of_iterations_special.
14259         * tree.c (unsigned_type_for): Always return integer type.
14260
14261 2006-01-14  Steven Bosscher  <stevenb.gcc@gmail.com>
14262         Richard Guenther  <rguenther@suse.de>
14263
14264         PR rtl-optimization/24257
14265         * gcse.c (find_moveable_store): Only consider a store movable
14266         when the SET_SRC of the insn can be assigned to a register.
14267
14268 2006-01-14  Ian Lance Taylor  <ian@airs.com>
14269
14270         * tree.c (tree_not_class_check_failed): New function.
14271         * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
14272         (tree_not_class_check_failed): Declare.
14273
14274 2006-01-13  Ian Lance Taylor  <ian@airs.com>
14275
14276         * reload1.c (do_output_reload): Add assertion rejecting a
14277         CALL_INSN.
14278
14279 2006-01-13  Adam Nemet  <anemet@caviumnetworks.com>
14280
14281         * combine.c (struct reg_stat): Add new fields truncation_label and
14282         truncated_to_mode.
14283         (record_value_for_reg): Reset truncated_to_mode.
14284         (record_truncated_value): New function.
14285         (check_promoted_subreg): Call it.  Rename to check_conversions.
14286         (combine_instructions): Rename check_promoted_subreg to
14287         check_conversions.
14288         (reg_truncated_to_mode): New function.
14289         (make_extraction): Use it.  Check TRULY_NOOP_TRUNCATION.
14290         (gen_lowpart_or_truncate): New function.
14291         (force_to_mode): Use it instead of gen_lowpart.
14292
14293 2006-01-13  Diego Novillo  <dnovillo@redhat.com>
14294
14295         * tree-ssa-alias.c (add_type_alias): Fix typo.  Test whether
14296         VAR is a tag, not its type tag.
14297
14298 2006-01-13  Alexandre Oliva  <aoliva@redhat.com>
14299
14300         * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
14301         alternatives to match style of other entries.
14302         (*vec_extractv2di_1_sse): Likewise.  Fix mode attr.
14303
14304 2006-01-13  Daniel Berlin  <dberlin@dberlin.org>
14305
14306         PR tree-optimization/25771
14307         * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
14308         SSA_NAMES.
14309
14310 2006-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
14311
14312         PR tree-opt/24365
14313         * tree-inline.c (declare_return_variable): If the return variable
14314         was marked as a non gimple complex, set the return slot variable
14315         to be a non gimple comple variable.
14316
14317 2006-01-13  Richard Guenther  <rguenther@suse.de>
14318
14319         * builtins.c (expand_builtin_sincos): New function.
14320         (expand_builtin_mathfn_3): Remove dead code, sin and cos
14321         do not set errno.
14322         (expand_builtin): Expand sincos using expand_builtin_sincos.
14323
14324 2006-01-12  DJ Delorie  <dj@redhat.com>
14325
14326         * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
14327         shift counts, separate SI shifts for m32c vs m16c, pass shift type
14328         so that constant shifts can be split.
14329         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
14330         (m32c_valid_pointer_mode): Make static.
14331         (shift_gen_func_for): New.
14332         (m32c_prepare_shift): Use it.  Split large const shifts into
14333         multiple shifts.
14334         * config/m32c/predicates.md (shiftcount_operand): Allow more
14335         general operands.
14336         (longshiftcount_operand): New.
14337         * doc/md.texi (Machine Constraints): Document In6.
14338
14339 2006-01-13  Ben Elliston  <bje@au.ibm.com>
14340
14341         * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
14342         REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
14343         documentation.
14344
14345 2006-01-12  Daniel Berlin  <dberlin@dberlin.org>
14346
14347         * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
14348         to try to avoid clobbering pieces of structures when we know
14349         something about the whole structure.
14350         * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
14351
14352 2006-01-13  Ben Elliston  <bje@au.ibm.com>
14353
14354         * doc/rtl.texi (Insns): Remove statement that libcalls cannot
14355         return in memory, as this is no limitation is no longer present.
14356
14357 2006-01-12  DJ Delorie  <dj@redhat.com>
14358
14359         * config/m32c/addsub.md (addhi3): Add two more alternatives, for
14360         mova with fb, and for fb+0 -> An.
14361
14362         * config/m32c/mov.md (peephole2): Fix enabling logic.
14363
14364         * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
14365         DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
14366         DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
14367         FINI_ARRAY_SECTION_ASM_OP): Define.
14368
14369         * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
14370         variable.
14371         (m32c_legitimize_reload_address): New logic to reload FB to An.
14372         (m32c_output_reg_push): Add newline.
14373         (m32c_output_reg_pop): Likewise.
14374
14375 2006-01-12  Ulrich Weigand  <uweigand@de.ibm.com>
14376
14377         * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
14378
14379 2006-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
14380
14381         * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
14382
14383 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
14384
14385         * config/sh/predicates.md (sh_rep_vec): Add parallel to
14386         match_code.
14387
14388 2006-01-11  Ben Elliston  <bje@au.ibm.com>
14389
14390         * rtlanal.c (find_reg_note): Assert insn is not null.
14391
14392 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
14393
14394         * df-scan.c (df_hard_reg_init): Move declaration of i outside
14395         ifdef.
14396
14397 2006-01-11  Jeff Law  <law@redhat.com>
14398
14399         * tree-ssa-threadupdate.c (threaded_edges): New VEC to
14400         hold edge pairs.
14401         (mark_threaded_blocks, register_jump_thread): New functions.
14402         (thread_through_all_blocks): Remove unwanted argument.  No
14403         longer rely on e->aux to communicate thread target info.
14404         Call mark_threaded_blocks.  Release the threaded_blocks
14405         bitmap and threaded_edges vector when complete.
14406         * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
14407         (threaded_blocks): Remove.
14408         (tree_ssa_dominator_optimize): Remove initialization and
14409         finalization of threaded_blocks.  Simplify call to
14410         thread_through_all_blocks.
14411         (thread_across_edge): Call register_jump_thread rather than
14412         storing thread information into e->aux.
14413         (free_all_edge_infos): Simplify now that e->aux is no longer
14414         used to communicate with thread_through_all_blocks.
14415         * tree-flow.h (thread_through_all_blocks): Update prototype.
14416         (register_jump_thread): Prototype.
14417
14418 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
14419
14420         * df-core.c (df_compact_blocks, df_bb_replace): Use
14421         SET_BASIC_BLOCK instead of BASIC_BLOCK.
14422
14423 2006-01-11  Richard Guenther  <rguenther@suse.de>
14424
14425         PR tree-optimization/25734
14426         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
14427         stop propagation after successful propagation to the LHS.
14428
14429 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
14430
14431         * basic-block.h (control_flow_graph): Change the type of
14432         x_basic_block_info to VEC(basic_block,gc) *.
14433         (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
14434         basic_block_info.
14435         (SET_BASIC_BLOCK): New.
14436         * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
14437         instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
14438         * cfgbuild.c (find_basic_blocks): Likewise.
14439         * cfglayout.c (fixup_reorder_chain): Likewise.
14440         * cfgrtl.c (create_basic_block_structure,
14441         rtl_create_basic_block): Likewise.
14442         * ifcvt.c (find_if_case_1): Likewise.
14443         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
14444         Likewise.
14445
14446 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
14447
14448         * Makefile.in: Removed rotted odf.c entry.
14449
14450 2006-01-11  Hans-Peter Nilsson  <hp@axis.com>
14451
14452         PR target/25706
14453         * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
14454         ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
14455         ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
14456         output pattern modifier, not %e.
14457         * config/cris/cris.c (cris_op_str): Update comment about pattern
14458         modifier.
14459         (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
14460         before falling through into...
14461         <case 'E'>: Redefined from old 'e' case.
14462
14463 2006-01-11  Jan Hubicka  <jh@suse.cz>
14464
14465         PR target/25042
14466         * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
14467
14468 2006-01-11  Jan Hubicka  <jh@suse.cz>
14469
14470         * i386.h (TARGET_DECOMPOSE_LEA): Kill.
14471         * i386.c (x86_decompose_lea): Kill.
14472         (ix86_rtx_costs): Kill.
14473
14474 2006-01-11  Jan Hubicka  <jh@suse.cz>
14475
14476         * cgraph.c (cgraph_insert_node_to_hashtable): New function.
14477         * cgraph.h (cgraph_node): Add inline_decl.
14478         (cgraph_insert_node_to_hashtable): Declare.
14479         (save_inline_function_body): Declare.
14480         * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
14481         clones.
14482         (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
14483         (cgraph_function_versioning): Update call of tree_function_versioning.
14484         (save_inline_function_body): New function.
14485         * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
14486         saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
14487         * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
14488         (cgraph_default_inline_p): Likewise.
14489         (cgraph_decide_inlining_incrementally): Likewise.
14490         * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
14491         (copy_bb): Kill saving; do updating of clones.
14492         (copy_cfg_body): Kill saving.
14493         (initialize_inlined-parameters): Likewise.
14494         (expand_call_inline): Likewise.
14495         (save_body): Kill.
14496         (tree_function_versioning): New parameter "update_clones".
14497         (inlining_p): Kill saving.
14498         * tree-inline.h (tree_function_versioning): Update prototype.
14499         * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
14500         saving.
14501
14502 2006-01-11  Ian Lance Taylor <ian@airs.com>
14503
14504         * combine.c (struct undo): Remove is_int.  Enumify types of undos.
14505         Allow undoing set of machine mode.
14506         (do_SUBST): Use enums instead of is_int.
14507         (do_SUBST_MODE): New function.
14508         (SUBST_MODE): New macro.
14509         (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
14510         reg and trying to replace reg_regno_rtx with a new register.
14511         (undo_all): Use new enums, handle undoing a PUT_MODE change.
14512         (simplify_set): Use SUBST_MODE.
14513         (distribute_notes): Remove code that tried to update reg notes
14514         for regno_reg_rtx changes.
14515
14516 2006-01-11  Paolo Bonzini  <bonzini@gnu.org>
14517
14518         PR tree-optimization/23109
14519         PR tree-optimization/23948
14520         PR tree-optimization/24123
14521
14522         * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
14523         * tree-cfg.c (single_noncomplex_succ): New.
14524         * tree-flow.h (single_noncomplex_succ): Declare it.
14525         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
14526         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
14527         (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
14528         insert_bb, register_division_in, insert_reciprocals,
14529         replace_reciprocal, free_bb): New.
14530         (execute_cse_reciprocals_1): Rewritten.
14531         (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
14532         Do not commit any edge insertion.  Always compute dominators and
14533         create the allocation pool.
14534         * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
14535         * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
14536         * targhooks.c (default_min_divistions_for_recip_mul): New.
14537         * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
14538         * passes.c (init_optimization_passes): Run recip after tree loop
14539         optimizations.
14540         * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
14541
14542 2006-01-11  Danny Berlin <dberlin@dberlin.org>
14543             Kenneth Zadeck <zadeck@naturalbridge.com>
14544
14545         * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
14546         DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
14547         DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
14548         DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
14549         DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
14550         DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
14551         DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
14552         DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
14553         DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
14554         DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
14555         DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
14556         DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
14557         DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
14558         DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
14559         DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
14560         DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
14561         DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
14562         DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
14563         DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
14564         DF_SCAN_POST_ALLOC): New macros.
14565         (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
14566         df_free_bb_function, df_local_compute_function, df_init_function,
14567         df_dataflow_function, df_confluence_function_0,
14568         df_confluence_function_n, df_transfer_function,
14569         df_finalizer_function, df_free_function, df_dump_problem_function,
14570         df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
14571         df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
14572         df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
14573         df_urec_bb_info, ) New types.
14574         (df_invalidated_by_call, df_all_hard_regs, df_state) New public
14575         variables.
14576         (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
14577         df_analyze_simple_change_some_blocks,
14578         df_analyze_simple_change_one_block, df_compact_blocks,
14579         df_bb_replace, df_bb_regno_last_use_find,
14580         df_bb_regno_first_def_find, df_bb_regno_last_def_find,
14581         df_insn_regno_def_p, df_find_def, df_find_use,
14582         df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
14583         df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
14584         df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
14585         debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
14586         debug_df_chain, df_get_dependent_problem, df_chain_create,
14587         df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
14588         df_grow_bb_info, df_chain_dump, df_print_bb_index,
14589         df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
14590         df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
14591         df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
14592         df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
14593         df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
14594         df_rescan_blocks, df_ref_create, df_get_artificial_defs,
14595         df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
14596         df_ref_remove, df_insn_refs_delete, df_refs_delete,
14597         df_reorganize_refs, df_set_state, df_hard_reg_init,
14598         df_read_modify_subreg_p) New public functions.
14599         * df-core.c: The core dataflow solver and glue routines for rtl
14600         dataflow.
14601         (df_init, df_add_problem, df_set_blocks, df_finish,
14602         df_hybrid_search_forward, df_hybrid_search_backward,
14603         df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
14604         df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
14605         df_bb_regno_last_use_find, df_bb_regno_first_def_find,
14606         df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
14607         df_reg_defined, df_find_use, df_reg_used, df_dump,
14608         df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
14609         df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
14610         debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
14611         debug_df_useno, reset_df_after_reload): New functions.
14612         * df-scan.c: The scanning fuctions, once in df.c, completely
14613         rewritten so that they now fully model the functionality of
14614         register usage at the backend.
14615         (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
14616         df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
14617         df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
14618         df_grow_insn_info, df_rescan_blocks, df_ref_create,
14619         df_get_artificial_defs, df_get_artificial_uses,
14620         df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
14621         df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
14622         df_refs_delete, df_reorganize_refs, df_set_state,
14623         df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
14624         df_def_record_1, df_defs_record, df_uses_record,
14625         df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
14626         df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
14627         df_record_exit_block_uses, df_hard_reg_init): New functions.
14628
14629         * df-problems.c: Seven concrete dataflow problems that use the
14630         scanning in df-scan.c and are solved by the engine in df-core.c.
14631         (df_get_dependent_problem, df_chain_create, df_chain_unlink,
14632         df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
14633         df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
14634         df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
14635         df_ru_free_bb_info, df_ru_alloc,
14636         df_ru_bb_local_compute_process_def,
14637         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
14638         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
14639         df_ru_transfer_function, df_ru_free, df_ru_dump,
14640         df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
14641         df_rd_free_bb_info, df_rd_alloc,
14642         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
14643         df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
14644         df_rd_transfer_function, df_rd_free, df_rd_dump,
14645         df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
14646         df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
14647         df_lr_local_compute, df_lr_init, df_lr_confluence_0,
14648         df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
14649         df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
14650         df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
14651         df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
14652         df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
14653         df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
14654         df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
14655         df_urec_mark_reg_change, df_urec_check_earlyclobber,
14656         df_urec_mark_reg_use_for_earlyclobber,
14657         df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
14658         df_urec_local_compute, df_urec_init, df_urec_local_finalize,
14659         df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
14660         df_urec_dump, df_urec_add_problem, df_chain_alloc,
14661         df_chain_create_bb_process_use, df_chain_create_bb,
14662         df_chain_finalize, df_chain_free, df_chains_dump,
14663         df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
14664         df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
14665         df_reg_lifetime): New functions.
14666         * df.c: Deleted file.
14667         * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
14668         consistent with new df api.
14669         * modulo-sched.c (sms_schedule, rest_of_handle_sms,
14670         rest_of_handle_sms): Ditto.
14671         * web.c (unionfind_union, union_defs, entry_register, web_main):
14672         Ditto.
14673         * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
14674         invariant_expr_equal_p, find_defs, check_dependencies,
14675         find_invariant_insn, find_invariants_to_move, move_invariant_reg,
14676         free_inv_motion_data, move_loop_invariants): Ditto.
14677         * Makefile.in (df.c, df-scan.c df-problems.c df-core.c):
14678         Update dependencies.
14679         (odf.c): Added defective entry that was deleted later in day.
14680         * sched-deps.c (sched_analyze_1): Ditto.
14681
14682 2006-01-11  Zdenek Dvorak <dvorakz@suse.cz>
14683
14684         * tree-ssa-operands.c (get_expr_operands): Record addressable
14685         variables directly.  Do not call add_stmt_operands for CONST_DECLs
14686         and ARRAY_DECLs.
14687         (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
14688         (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
14689
14690 2006-01-11  Ben Elliston  <bje@au.ibm.com>
14691
14692         * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
14693         function returns true in the positive case.
14694
14695 2006-01-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14696
14697         PR target/20754
14698         * config/pa/pa.md: Create separate 32 and 64-bit move patterns
14699         for SI, DI, SF and DF modes.  Add alternatives to copy between
14700         general and floating point registers to the 32-bit patterns.
14701         * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
14702         * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
14703         (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
14704         generating 64-bit code.
14705         * config/pa/pa.c (output_move_double): Handle copies between general
14706         and floating registers.
14707
14708 2006-01-10  Stuart Hastings  <stuart@apple.com>
14709
14710         * config/i386/i386.md (set_got): Update.
14711         (set_got_labelled): New.  (UNSPEC_LD_MPIC): New.
14712         (builtin_setjmp_receiver): Mach-O support.
14713         * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
14714         (GOT_SYMBOL_NAME): Define.
14715         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
14716         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
14717         * config/i386/i386.c (override_options): Revise for Darwin.
14718         (USE_HIDDEN_LINKONCE): Enable for Mach-O.  (ix86_file_end): Mach-O
14719         support.  (darwin_x86_file_end): New.  (output_set_got): Add label
14720         parameter, revise for Mach-O.  (x86_output_mi_thunk): Likewise.
14721         * config/i386/i386-protos.h (output_set_got): Likewise.
14722         * config/darwin.c (machopic_legitimize_pic_address): Update
14723         regs_ever_live[].
14724
14725 2006-01-10  Kaz Kojima  <kkojima@gcc.gnu.org>
14726
14727         * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
14728         when MODE isn't BLKmode.
14729
14730 2006-01-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
14731
14732         PR rtl-optimization/25367
14733         * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
14734
14735 2006-01-10  Hans-Peter Nilsson  <hp@axis.com>
14736
14737         PR target/25718
14738         * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
14739         for a negative bound.
14740
14741 2006-01-10  Richard Guenther  <rguenther@suse.de>
14742
14743         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14744         Never override with anything constraint.
14745
14746 2006-01-10  Jan Beulich  <jbeulich@novell.com>
14747
14748         * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
14749         256 bits when optimize_size.
14750
14751 2006-01-10  Jan Beulich  <jbeulich@novell.com>
14752
14753         * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
14754         MASK_ALIGN_DOUBLE.
14755         * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
14756         * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
14757         arguments.
14758
14759 2006-01-10  Ben Elliston  <bje@au.ibm.com>
14760
14761         * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
14762         float modes.
14763         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
14764         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
14765         (USE_FP_FOR_ARG): Reject decimal float modes.
14766         (function_arg_advance): Likewise.
14767         (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
14768         (rs6000_handle_altivec_attribute): Do not permit decimal floating
14769         point types in AltiVec vectors.
14770         (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
14771         (rs6000_libcall_value): Likewise.
14772
14773 2006-01-09  Bob Wilson  <bob.wilson@acm.org>
14774
14775         * config/xtensa/ieee754-df.S: New file.
14776         * config/xtensa/ieee754-sf.S: New file.
14777         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
14778         (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
14779         * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
14780
14781 2006-01-09  Kazu Hirata  <kazu@codesourcery.com>
14782
14783         * config/sh/predicates.md (binary_float_operator,
14784         binary_logical_operator, commutative_float_operator,
14785         equality_comparison_operator, greater_comparison_operator,
14786         less_comparison_operator, logical_operator,
14787         noncommutative_float_operator, shift_operator,
14788         symbol_ref_operand, unary_float_operator): Remove redundant
14789         conditionals.
14790
14791 2006-01-09  Jeff Law  <law@redhat.com>
14792
14793         * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
14794         code to propagate the RHS of a cast into COND_EXPR_COND.  Remove
14795         now unused arguments.  Callers updated.
14796         (eliminate_redundant_computations): Remove now unused arguments,
14797         callers updated.
14798         (local_fold): Remove, no longer used.
14799         (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
14800         and moved to...
14801         * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
14802         (simplify_cond): New function.
14803         (forward_propagate_into_cond): Call simplify_cond.
14804
14805 2006-01-09  Alexandre Oliva  <aoliva@redhat.com>
14806
14807         * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
14808         (*vec_extractv2di_1_sse): New.
14809
14810 2006-01-09  Ben Elliston  <bje@au.ibm.com>
14811
14812         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
14813
14814 2006-01-08  Richard Guenther  <rguenther@suse.de>
14815
14816         * tree-ssa-structalias.c (get_constraint_for): Remove
14817         anyoffset argument.
14818         (get_constraint_for_component_ref): Likewise.
14819         (do_deref): Likewise.
14820         (get_constraint_for): Likewise.
14821         (do_structure_copy): Likewise.
14822         (handle_ptr_arith): Likewise.
14823         (find_func_aliases): Likewise.  Remove unused need_anyoffset
14824         variable.
14825
14826 2006-01-08  J"orn Rennecke  <joern.rennecke@st.com>
14827             Kaz Kojima  <kkojima@gcc.gnu.org>
14828
14829         * config/sh/sh.h (CONST_OK_FOR_K16): Define.
14830         (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
14831         (EXTRA_CONSTRAINT_C16): Remove.
14832         (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
14833         (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
14834         EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
14835         * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
14836         constants of SHmedia.  Handle nested constant expressions of
14837         SHmedia correctly.
14838         (andcosts): Fix the costs for SHmedia constants.
14839         (sh_rtx_costs): Take account of outer_code for SHmedia constants.
14840         * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
14841         (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
14842         (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
14843         (movv4hi_i, movv2si_i): Likewise.
14844         (movsi_const): Adjust the second operand of ior so to match with
14845         the Csu constraint.
14846         (movdi_const, movdi_const_32bit): Likewise.
14847         (movdi_const_16bit+1): Don't sign-extend LOW.
14848         (movdi_const_16bit+2): Likewise.  Remove the zero_extend and truncate
14849         step.
14850         (*double_shori): Fix the split condition.  Use GEN_INT instead
14851         of get_int_mode calls.  Mask lower 16-bit of the argument of
14852         the last GEN_INT.
14853         (sym2GOTPLT): Remove.
14854         (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
14855         gen_rtx_UNSPEC.
14856         * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
14857         instead of EXTRA_CONSTRAINT_C16.
14858
14859 2006-01-07  Ian Lance Taylor  <ian@airs.com>
14860             David Edelsohn  <edelsohn@gnu.org>
14861
14862         PR rtl-optimization/25662
14863         * optabs.c (simplify_expand_binop): Use simplify_binary_operation
14864         for constant operands instead of simplify_gen_binary.
14865         * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
14866         after trying simplify_binary_operation
14867
14868 2006-01-06  Daniel Berlin  <dberlin@dberlin.org>
14869
14870         * tree.c (iterative_hash_expr): Hash decls based on UID.
14871
14872 2006-01-06  Eric Christopher  <echristo@apple.com>
14873
14874         * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
14875         (TARGET_UNWIND_EMIT): Fix spelling.
14876         * target.h (gcc_target): Add except_table_label.
14877         * except.c (output_function_exception_table): Use.
14878         * varasm.c (default_emit_except_table_label): New.
14879         * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
14880         define.
14881         (asm_out): Add here.
14882         * output.h (default_emit_except_table_label): Prototype.
14883         * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
14884         * config/darwin.c (darwin_emit_except_table_label): Define.
14885         * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
14886
14887 2006-01-06  Zdenek Dvorak <dvorakz@suse.cz>
14888
14889         PR tree-optimization/18527
14890         * tree-ssa-loop-niter.c (number_of_iterations_cond,
14891         number_of_iterations_special, number_of_iterations_exit):
14892         Move base and step of an iv to a single structure.  Add
14893         no_overflow flag, and use it in # of iterations analysis.
14894         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
14895         folded_casts argument.
14896         (simple_iv): Pass base and step in a structure.  Set no_overflow
14897         flag.
14898         (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
14899         Evaluate expensiveness of computing # of iterations instead of
14900         the final expression.
14901         * tree-scalar-evolution.h (affine_iv): New structure.
14902         (simple_iv): Declaration changed.
14903         * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
14904         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
14905         find_givs_in_stmt): Changed due to simple_iv change.
14906
14907 2006-01-06  Jeff Law  <law@redhat.com>
14908
14909         PR ada/24994
14910         * tree-cfg.c (bsi_replace): Rename final argument from
14911         PRESERVE_EH_INFO to UPDATE_EH_INFO.  Fix typo in last
14912         change (stmt -> orig_stmt).
14913         * tree-eh.c (verify_eh_throw_stmt_node): New function.
14914         (bsi_remove): Add new argument.  Remove EH information
14915         if requested.
14916         (verify_eh_throw_table_statements): New function.
14917         (bsi_remove): Add new argument REMOVE_EH_INFO.  All callers
14918         updated.
14919         * tree-optimize.c (execute_free_cfg_annotations): Verify
14920         the EH throw statement table after removing annotations.
14921         * except.h (verify_eh_throw_table_statements): Prototype.
14922         * tree-flow.h (bsi_remove): Update prototype.
14923         * tree-vrp.c (remove_range_assertions): Add new argument to
14924         bsi_remove call.
14925         * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
14926         * tree-complex.c (expand_complex_div_wide): Likewise.
14927         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
14928         * tree-tailcall.c (eliminate_tailcall): Likewise.
14929         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
14930         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
14931         * tree-nrv.c (tree_nrv): Likewise.
14932         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
14933         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
14934         (combine_blocks): Likewise.
14935         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
14936         * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
14937         (cleanup_control_flow): Likewise.
14938         (remove_forwarder_block): Likewise.
14939         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
14940         * tree-sra.c (sra_replace): Likewise.
14941         * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
14942         (forward_propagate_single_use_vars): Likewise.
14943         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
14944         * tree-inline.c (expand_call_inline): Likewise.
14945         * tree-vect-transform.c (vect_transform_loop): Likewise.
14946         * tree-outof-ssa.c (rewrite_trees): Likewise.
14947         * tree-cfg.c (make_goto_expr_edges): Likewise.
14948         (cleanup_dead_labels): Likewise.
14949         (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
14950         (bsi_move_before, bsi_move_after): Likewise.
14951         (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
14952         (tree_redirect_edge_and_branch, tree_split_block): Likewise.
14953
14954 2006-01-06  Andrew Pinski  <pinskia@physics.uc.edu>
14955
14956         PR tree-opt/25528
14957         * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
14958         and IMAGPART_EXPR.
14959         * tree-flow-inline.h (var_can_have_subvars): Handle complex types
14960         on non gimple variables.  Also add checks at the top for decls and
14961         mtags.
14962         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
14963         complex types.
14964         * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
14965         and IMAGPART_EXPR for creating MUST_DEFs.
14966         (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
14967         and NAME_MEMORY_TAG separately from the DECLs.
14968
14969 2006-01-06  Richard Guenther  <rguenther@suse.de>
14970
14971         * tree-dfa.c (mark_new_vars_to_rename): Create stmt
14972         annotation, if necessary.
14973         * tree-ssa-pre.c (create_expression_by_pieces): Remove
14974         redundant calls to update_stmt.
14975         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
14976         Likewise.
14977
14978 2006-01-05  Richard Henderson  <rth@redhat.com>
14979
14980         * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
14981
14982 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
14983
14984         * c-typeck.c: Update copyright date.
14985
14986 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
14987
14988         * c-typeck.c (build_c_cast): Always warn when casting
14989         from a pointer to an integer of different size, even if
14990         the node was constant.
14991
14992 2006-01-05  Richard Guenther  <rguenther@suse.de>
14993
14994         PR tree-optimization/22555
14995         * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
14996         if one structure field is an array.
14997         * tree-ssa-operands.c (get_expr_operands): Continue scanning
14998         operands even if we found a subvar, but ignore VOPs in this
14999         case.
15000         * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
15001         for renaming.
15002         * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
15003
15004 2006-01-05  Richard Earnshaw  <rearnsha@arm.com>
15005
15006         PR middle-end/24998
15007         * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
15008
15009 2006-01-05  Richard Guenther  <rguenther@suse.de>
15010             Diego Novillo  <dnovillo@redhat.com>
15011
15012         * tree-pass.h (TODO_remove_unused_locals): Define.
15013         * gimple-low.c (expand_var_p, remove_useless_vars,
15014         pass_remove_useless_vars): Remove.  Update all users.
15015         * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
15016         (remove_unused_locals): New function.
15017         * tree-flow.h (remove_unused_locals): Declare.
15018         * passes.c (execute_todo): Call remove_unused_locals if
15019         TODO_remove_unused_locals is set.
15020         * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
15021         * tree-ssa-dce.c (pass_dce): Likewise.
15022         * tree-outof-ssa.c (pass_del_ssa): Likewise.
15023
15024 2006-01-05  Richard Guenther  <rguenther@suse.de>
15025
15026         * tree-flow.h (struct fieldoff): Decompose field to
15027         type, size and decl.
15028         * tree-ssa-alias.c (create_sft): Take type as parameter.
15029         (create_overlap_variables_for): Store type, size and decl
15030         in the fieldoff structure.
15031         * tree-ssa-structalias.c (fieldoff_compare): Adjust users
15032         of struct fieldoff.
15033         (push_fields_onto_fieldstack): Likewise.
15034         (create_variable_info_for): Likewise.  Use offset for the
15035         SFT name if the decl is not available.
15036
15037 2006-01-04  Paul Brook  <paul@codesourcery.com>
15038
15039         * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
15040
15041 2006-01-04  Daniel Berlin  <dberlin@dberlin.org>
15042
15043         * lambda-code.c (can_put_in_inner_loop): Relax
15044         restrictions.
15045         (can_put_after_inner_loop): New function.
15046         (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
15047         (perfect_nestify): Change to make copies and modify uses.
15048
15049 2006-01-04  Richard Henderson  <rth@redhat.com>
15050
15051         Merge from gomp branch:
15052         * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
15053         via integer constant.
15054         (pragma_lex): Remove.
15055         * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
15056         rather than parsing it.
15057         * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
15058         handle_pragma_extern_prefix): Add %< %> quotes.
15059         (registered_pragmas): New.
15060         (c_register_pragma_1): New.
15061         (c_register_pragma): Use it.
15062         (c_register_pragma_with_expansion): Likewise.
15063         (c_invoke_pragma_handler): New.
15064         (init_pragma): Use cpp_register_deferred_pragma directly for
15065         pch_preprocess.
15066         * c-pragma.h (enum pragma_kind): New.
15067         (pragma_handler): New.
15068         (c_invoke_pragma_handler): Declare.
15069         * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
15070         CPP_PRAGMA_EOL.
15071         * c-common.h (c_common_pch_pragma): Update decl.
15072         * Makefile.in (c-parser.o): Update dependencies.
15073         (GTFILES): Add c-pragma.h.
15074         * c-parser.c (struct c_token): Add pragma_kind.
15075         (struct c_parser): Add in_pragma.
15076         (c_lex_one_token): Always initialize keyword and pragma_kind.
15077         Extract data for CPP_PRAGMA.
15078         (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
15079         (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
15080         Don't allow CPP_PRAGMA_EOL if in_pragma.
15081         (c_parser_consume_pragma): New.
15082         (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
15083         (c_parser_skip_to_end_of_parameter): Likewise.
15084         (c_parser_skip_to_end_of_block_or_statement): Likewise.
15085         (c_parser_skip_to_pragma_eol): New.
15086         (c_parser_external_declaration): Handle CPP_PRAGMA.
15087         (c_parser_compound_statement_nostart): Likewise.
15088         (c_parser_statement_after_labels): Likewise.
15089         (c_parser_pragma): New.
15090         (pragma_lex): Likewise.
15091         (c_parser_pragma_pch_preprocess): New.
15092         (c_parser_new): Merge into ...
15093         (c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
15094
15095 2006-01-04  Jeff Law  <law@redhat.com>
15096
15097         PR ada/24994
15098         * tree-cfg.c (bsi_replace): Remove the original statement
15099         from the EH throw statement table.
15100
15101 2006-01-04  Jakub Jelinek  <jakub@redhat.com>
15102
15103         * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
15104         make the prototype extern "C" and add throw ().
15105
15106         PR target/25554
15107         * config/i386/i386.md (testqi_ext_3): Ensure len is positive
15108         and pos non-negative and pos + len <= 32.
15109         (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
15110         drop pos + len < HOST_BITS_PER_WIDE_INT test.
15111         (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
15112
15113         PR c/25559
15114         * c-common.c (handle_vector_size_attribute): Reject zero vector size
15115         as well as sizes not multiple of component size.
15116
15117         PR debug/25562
15118         * function.c (instantiate_expr): New function.
15119         (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
15120         walk its DECL_VALUE_EXPR with instantiate_expr.
15121
15122         * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
15123         DW_OP_deref{,_size} if address isn't going to be added.
15124
15125 2006-01-04  Ben Elliston  <bje@au.ibm.com>
15126
15127         * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
15128         * config/fp-bit.c: Likewise.
15129
15130 2006-01-03  Daniel Berlin  <dberlin@dberlin.org>
15131
15132         * dominance.c: Add comment about why we use DFS numbering
15133         of dominance tree.
15134
15135 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
15136             Richard Henderson  <rth@redhat.com>
15137
15138         Merge from gomp-branch:
15139         * varasm.c (assemble_variable): Handle thread-local COMMON data.
15140         * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
15141
15142 2006-01-03  Paolo Bonzini  <bonzini@gnu.org>
15143
15144         PR rtl-optimization/25578
15145         * combine.c (combine_simplify_rtx, force_to_mode): Don't
15146         pass a parameter to simplify_shift_const if changing ASHIFTRT
15147         to LSHIFTRT.
15148
15149 2006-01-03  Adrian Straetling  <straetling@de.ibm.com>
15150
15151         * builtins.c (get_builtin_sync_mem): New function.
15152         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
15153         expand_builtin_lock_test_and_set, expand_builtin_lock_release):
15154         Call get_builtin_sync_mem to generate mem rtx.
15155
15156 2006-01-03  Richard Guenther  <rguenther@suse.de>
15157
15158         PR c/25183
15159         * stmt.c (add_case_node): Make sure to clear overflow flags
15160         from ranges.
15161
15162 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
15163
15164         Merge from gomp-branch.
15165         * config/sparc/sync.md: New file.
15166         * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
15167         UNSPECV_LDSTUB): New constants.
15168         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
15169         * config/sparc/predicates.md (memory_reg_operand): New predicate.
15170         * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
15171         prototype.
15172
15173 2006-01-03  Roger Sayle  <roger@eyesopen.com>
15174
15175         * combine.c (reg_subword_p): New predicate to test whether the
15176         destination of a set refers to a subword/piece of a register.
15177         (try_combine): Generalize the code to merge the setting of a
15178         pseudo to a constant followed by a set of a subword of that
15179         register to a constant.
15180
15181 2006-01-03  Kazu Hirata  <kazu@codesourcery.com>
15182
15183         * basic-block.h (control_flow_graph): Change the type of
15184         x_label_to_block_map to VEC(basic_block,gc) *.
15185         * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
15186         set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
15187
15188         * tree-ssa-propagate.c (cfg_blocks): Change the type to
15189         VEC(basic_block,heap) *.
15190         (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
15191         ssa_prop_fini): Adjust the uses of cfg_blocks.
15192
15193 2006-01-03  Steven Bosscher  <stevenb.gcc@gmail.com>
15194
15195         * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
15196         COMPONENT_REFs.
15197         * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
15198         hashing trees instead of a pointer hash.
15199         (mem_attrs_htab_eq): Do a deep compare instead of a pointer
15200         compare for MEM_EXPR.
15201
15202         PR rtl-optimization/25130
15203         * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
15204         when comparing MEMs for GCSE
15205
15206 2006-01-03  Ben Elliston  <bje@au.ibm.com>
15207
15208         * targhooks.h (default_decimal_float_supported_p): Declare.
15209         * targhooks.c (default_decimal_float_supported_p): Define.
15210         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
15211         `default_decimal_float_supported_p'.
15212         * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
15213
15214 2006-01-02  Adam Nemet  <anemet@caviumnetworks.com>
15215
15216         * combine.c (apply_distributive_law <SUBREG>): Check
15217         TRULY_NOOP_TRUNCATION.
15218
15219 2006-01-02  Geoffrey Keating  <geoffk@apple.com>
15220
15221         * dwarf2out.c (have_switched_text_section): Delete.
15222         (have_multiple_function_sections): New.
15223         (have_location_lists): Make 'bool'.
15224         (add_AT_loc_list): Use 'true' not '1'.
15225         (dwarf2out_switch_text_section): Set have_multiple_function_sections.
15226         (output_loc_list): Use have_multiple_function_sections.
15227         (output_ranges): Likewise.
15228         (dwarf2out_begin_function): Set have_multiple_function_sections if
15229         necessary.
15230         (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
15231         Check function_section rather than DECL_SECTION_NAME.
15232         (dwarf2out_finish): Use have_multiple_function_sections.
15233         Don't clear have_location_lists.
15234
15235 2006-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15236             Jan Hubicka  <jh@suse.cz>
15237
15238         * cfglayout.c (fixup_reorder_chain): Remove kludge for the
15239         case of conditional jump jumping to the next instruction.
15240         * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
15241         cases of conditional jump jumping to the next instruction.
15242
15243 2006-01-02  Jan Hubicka  <jh@suse.cz>
15244
15245         * i386.c (*_cost): Add COSTS_N_INSNS.
15246         (ix86_rtx_costs): Do not use COSTS_N_INSNS.
15247
15248 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
15249
15250         PR target/25259
15251         * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
15252
15253 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15254
15255         * config/arm/arm.c (all_fpus): Fix comment typo.
15256         * config/darwin.c: Likewise.
15257         * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
15258         * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
15259         * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
15260
15261 2006-01-01  David Edelsohn  <edelsohn@gnu.org>
15262
15263         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
15264         (rs6000_split_compare_and_swapqhi): New.
15265         * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
15266         (sync_compare_and_swapqhi_internal): New.
15267         * config/rs6000/rs6000-protos.h: Declare.