70f04aff94951a0d6274ebd19a1fa954b8733009
[gcc.git] / gcc / ChangeLog
1 2006-07-30 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2
3 PR target/28126 (partial fix)
4 * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
5
6 2006-07-28 Jan Hubicka <jh@suse.cz>
7
8 PR rtl-optimization/28071
9 * cfgrtl.c (rtl_delete_block): Free regsets.
10 * flow.c (allocate_bb_life_data): Re-use regsets if available.
11
12 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13
14 * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
15 and variables used in dependencies.
16
17 2006-07-27 Arjan van de Ven <arjan@linux.intel.com>
18
19 * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
20 %fs for -mcmodel=kernel.
21 (stack_tls_protect_test_di): Likewise.
22
23 2006-07-27 Carlos O'Donell <carlos@codesourcery.com>
24
25 * Makefile.in: Use mkinstalldirs.
26
27 2006-07-27 H.J. Lu <hongjiu.lu@intel.com>
28
29 PR driver/28437
30 * opts-common.c (prune_options): Skip joined switches.
31
32 2006-07-27 Jan Hubicka <jh@suse.cz>
33
34 PR rtl-optimization/28071
35 * cselib.c (cselib_process_insn): Don't remove useless values too
36 often for very large hashtables.
37
38 2006-07-27 Jan Hubicka <jh@suse.cz>
39
40 PR rtl-optimization/28071
41 * global.c (greg_obstack): New obstack.
42 (allocate_bb_info): Use it.
43 (free_bb_info): Likewise.
44 (modify_reg_pav): Likewise.
45
46 2006-07-27 Roger Sayle <roger@eyesopen.com>
47
48 * builtins.c (fold_fixed_mathfn): When long and long long are the
49 same size, canonicalize llceil*, llfloor*, llround* and llrint*
50 functions to their lceil*, lfloor*, lround* and lrint* forms.
51
52 2006-07-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
53
54 PR gcc/28508
55 * config/m32r/m32r.md (branch_insn): Reduce pc range for short
56 branch.
57 (rev_branch_insn): Likewise.
58
59 2006-07-27 Jan Hubicka <jh@suse.cz>
60
61 PR rtl-optimization/28071
62 * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
63 (reg_set_in_bb, max_reg_computed): New static variables.
64 (regmove_optimize): Free the new array.
65 (fixup_match_1): Update call of reg_is_remote_constant_p.
66
67 2006-07-26 Jan Hubicka <jh@suse.cz>
68
69 PR tree-optimization/27882
70 * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
71 and decl fields.
72 * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
73 next pointer
74 (cgraph_analyze_compilation_unit): Likewise.
75 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
76 * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
77 (cgraph_early_inlinine): Make order garbage collected.
78 * Makefile.in (gt-ipa-inline): New garbagecollected file.
79
80 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
81
82 * dbxout.c (output_types_sort): Add a comment.
83 (output_used_types): Free the VEC.
84
85 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
86
87 * function.c (reorder_fix_fragments): Delete.
88 (reorder_blocks): Don't call it.
89 (reorder_blocks_1): Put all subblocks under the origin block.
90
91 2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
92
93 PR rtl-optimization/27907
94 * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
95 FLOAT_TRUNCATE.
96
97 2006-07-25 Roger Sayle <roger@eyesopen.com>
98
99 PR middle-end/28473
100 * convert.c (convert_to_integer): When transforming (T)foo(x) into
101 bar(x) check that bar's result type can represent all the values of T.
102
103 2006-07-25 Zdenek Dvorak <dvorakz@suse.cz>
104
105 * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
106
107 2006-07-25 Nick Clifton <nickc@redhat.com>
108
109 * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
110 size_lookup[] array.
111 (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
112 (ggc_pch_count_object): Likewise.
113 (ggc_pch_alloc_object): Likewise.
114 (ggc_pch_write_object): Likewise.
115 (init_ggc): Do not attempt to initialize entries in the
116 size_lookup[] array for objects whose size is greater than than
117 the length of the array.
118
119 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
120
121 * dbxout.c (output_used_types_helper): Push queued types
122 on a VEC.
123 (output_types_sort): New.
124 (output_used_types): Collect used types on a VEC and sort them
125 before emission.
126
127 2006-07-24 Richard Guenther <rguenther@suse.de>
128
129 PR middle-end/28463
130 * cgraph.c (cgraph_remove_node): Do not check if dumps
131 are enabled.
132 * cgraphunit.c (cgraph_optimize): Likewise.
133
134 2006-07-24 Jan Hubicka <jh@suse.cz>
135
136 PR rtl-optimization/28071
137 * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
138 * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
139 splitting before first stmt.
140
141 2006-07-24 Jan Hubicka <jh@suse.cz>
142
143 PR rtl-optimization/28071
144 * ipa-inline.c (update_caller_keys): Remove edges that
145 are no longer inline candidates.
146
147 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
148
149 PR debug/27473
150 * dbxout.c (output_used_types_helper, output_used_types): New.
151 (dbxout_symbol): Call output_used_types.
152
153 2006-07-23 Jan Hubicka <jh@suse.cz>
154
155 PR c/25795
156 PR c++/27369
157 * cgraph.c (cgraph_varpool_nodes): Export.
158 (decide_is_variable_needed): Ignored "used" attribute in
159 unit-at-a-time mode.
160 * cgraph.h (cgraph_varpool_nodes): Declare.
161 * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
162 unit-at-a-time mode.
163
164 2006-07-23 Roger Sayle <roger@eyesopen.com>
165
166 PR target/28247
167 * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
168 mutex_destroy even when !_LIBOOBJC. Remove duplicate prototype of
169 the __gthrw form of thr_keycreate.
170 (__gthread_key_delete): Silence the unused argument warning.
171
172 2006-07-23 Steven Bosscher <steven@gcc.gnu.org>
173
174 PR debug/25468
175 * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
176 Cache the last found '\0' marker to avoid quadratic behavior.
177
178 2006-07-23 Jan Hubicka <jh@suse.cz>
179
180 * i386.md (subsi_3_zext): Fix output template.
181
182 2006-07-21 Mike Stump <mrs@apple.com>
183
184 * doc/invoke.texi (C++ Dialect Options): Note that
185 -fvisibility-inlines-hidden doesn't affect explicitly
186 instantiationed inline methods.
187
188 2006-07-20 Roger Sayle <roger@eyesopen.com>
189
190 * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
191 if the target assembler is GNU binutils' gas.
192 * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
193 whether to pass GNU gas or native as command line options.
194
195 2006-07-20 Jason Merrill <jason@redhat.com>
196
197 * tree.c (remove_attribute): New fn.
198 * tree.h: Declare it.
199
200 2006-07-20 Paul Brook <paul@codesourcery.com>
201
202 PR 27363
203 * cse.c (cse_insn): Add destination addresses to hash table. Check if
204 they are invalidated by this instruction.
205
206 2006-07-21 Danny Smith <dannysmith@users.sourceforge.net>
207
208 PR target/28427
209 * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
210
211 2006-07-20 Eric Christopher <echristo@apple.com>
212
213 PR target/26877
214 * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
215
216 2006-07-19 Eric Christopher <echristo@apple.com>
217
218 * config/t-slibgcc-darwin (stmp-lipo): Remove.
219 Rewrite dependencies for libgcc_s.1.dylib.
220
221 2006-07-19 Jakub Jelinek <jakub@redhat.com>
222
223 * except.c (duplicate_eh_regions_1): Clear next_peer.
224
225 2006-07-17 Nathan Sidwell <nathan@codesourcery.com>
226
227 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
228 -mlongcall does not guarantee all calls will be long.
229 * doc/extend.texi (long_call/short_call): Document that longcall
230 does not guarantee a long call will be used.
231 (longcall/shortcall): Likewise.
232
233 2006-07-18 Roger Sayle <roger@eyesopen.com>
234
235 PR middle-end/28283
236 * expmed.c (expand_shift): Additionally check that the shift_cost
237 is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
238 before implementing a LSHIFT_EXPR as a sequence of additions.
239 * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
240 middle-end that DImode shifts need to be synthesized by expand.
241
242 2006-07-18 Diego Novillo <dnovillo@redhat.com>
243
244 PR 28410
245 * tree-ssa-operands.c (access_can_touch_variable): Update
246 comment.
247 Return true if ALIAS is .GLOBAL_VAR.
248
249 2006-07-18 David Daney <ddaney@avtrex.com>
250
251 * gcc.c (display_help): Fix typo in help text.
252
253 2006-07-18 Olivier Hainque <hainque@adacore.com>
254
255 * tree.h (categorize_ctor_elements): Adjust prototype and add
256 descriptive comment, both in accordance with the interface change
257 described below.
258 * varasm.c (constructor_static_from_elts_p): New function.
259 Whether a constructor node is a valid static constant initializer
260 if all its elements are.
261 (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
262 * output.h: Declare it.
263 * expr.c (categorize_ctor_elements_1): Return whether the constructor
264 is a valid constant initializer instead of computing the number of
265 non-constant elements. Use constructor_static_from_elts_p for this
266 purpose. Replace the head comment with an indication that this is a
267 helper for categorize_ctor_elements.
268 (categorize_ctor_elements): Same interface change as for the _1
269 helper. Former head comment from this helper moved here, adjusted to
270 account for the interface changes.
271 (mostly_zeros_p): Adjust call to categorize_ctor_elements.
272 (all_zeros_p): Likewise.
273 * gimplify.c (gimplify_init_constructor): Decide whether we can make
274 static versions of the constructor from the categorize_ctor_elements
275 return value instead of the formerly computed number of non-constant
276 elements.
277
278 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
279
280 * configure: Regenerate.
281 * Makefile.in (build_libsubdir): New configure substitution
282 (build_libobjdir): New variable.
283 (BUILD_LIBIBERTY): Use it.
284
285 2006-07-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
286
287 PR c/28286
288 * c-pragma.c (handle_pragma_pack): Handle invalid constants.
289
290 2006-07-18 Alexandre Oliva <aoliva@redhat.com>
291
292 PR c/26993
293 * c-common.c (handle_weakref_attribute): Ignore attribute in
294 the same conditions the alias attribute is ignored.
295
296 2006-07-17 Carlos O'Donell <carlos@codesourcery.com>
297
298 * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
299 (dbxout_begin_prologue): Increment scope_labelno.
300
301 2006-07-17 Richard Henderson <rth@redhat.com>
302
303 PR 27889
304 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
305 if needed.
306
307 2006-07-17 Roger Sayle <roger@eyesopen.com>
308 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
309
310 * config/i386/gmon-sol2.c: Silence compilation warnings by partially
311 synchronizing code with config/sparc/gmon-sol2.c. Remove #if 0
312 blocks. #include "tconfig.h" and "tsystem.h" to prototype system
313 functions such as sbrk, write, etc.. Add function prototypes.
314 Convert function declarations from K&R to ISO C. Cast pointers
315 to "long" and "unsigned long" instead of "int" and "unsigned int".
316 Convert tokens following #endif into comments.
317
318 2006-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
319
320 * invoke.texi: Remove mention of f77; Reformat table for
321 inline parameter options correctly; mention that -malign-double
322 is default on x86-64 targets.
323
324 2006-07-17 Zdenek Dvorak <dvorakz@suse.cz>
325
326 * tree-chrec.c (avoid_arithmetics_in_type_p): New.
327 (convert_affine_scev, chrec_convert_aggressive): Use
328 avoid_arithmetics_in_type_p. Do not check for the subtypes
329 separately.
330
331 2006-07-17 Richard Sandiford <richard@codesourcery.com>
332
333 PR middle-end/28403
334 * optabs.c (expand_doubleword_shift): Wrap the call to
335 do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
336
337 2006-07-17 Richard Sandiford <richard@codesourcery.com>
338
339 PR middle-end/28402
340 * optabs.c (expand_binop): Pass next_methods rather than methods
341 to expand_doubleword_shift.
342
343 2006-07-17 J"orn Rennecke <joern.rennecke@st.com>
344
345 PR other/28251
346 * tree.h (dump_addr): Declare.
347 * print-tree.c (dump_addr): New function.
348 (print_node_brief, print_node): Use it.
349 * print-rtl.c (print_rtx): Likewise.
350 * common.opt (-fdump-noaddr): New option.
351 * doc/invoke.texi (-fdump-noaddr): Document.
352 * loop-unroll.c (si_info_hash): Make hash independent of addresses.
353 (ve_info_hash): Likewise.
354
355 2006-07-13 Andrew Haley <aph@redhat.com>
356
357 PR tree-optimization/19505
358 * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
359 edge leaving this block, make sure that the destination of this
360 block has only one predecessor.
361
362 2006-07-17 Richard Guenther <rguenther@suse.de>
363
364 PR tree-optimization/28238
365 * tree-inline.c (copy_bb): Check if we produced valid
366 gimple copying and substituting a stmt. If not, gimplify
367 it.
368
369 2006-07-16 Eric Botcazou <ebotcazou@adacore.com>
370
371 * optabs.c (maybe_encapsulate_block): New function extracted from...
372 (emit_libcall_block): ...here. Invoke it on the block of insns to
373 maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
374 (emit_no_conflict_block): Likewise.
375
376 2006-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
377
378 * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
379
380 2006-07-15 Roger Sayle <roger@eyesopen.com>
381
382 * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
383 a new NOP_EXPR case of the switch statement.
384
385 2006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
386
387 PR middle-end/28160
388 * stor-layout.c (place_field): Take the bit field with
389 an excessive size into account in the ms-bitfiled case.
390
391 PR middle-end/28161
392 * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
393 the previous bit field.
394
395 2006-07-14 Eliot Dresselhaus <eliot@sonic.net>
396
397 PR target/27287
398 * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
399
400 2006-07-14 Ulrich Weigand <uweigand@de.ibm.com>
401
402 * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
403 signal frames correctly even when the signal was installed with
404 sa_restorer set.
405
406 2006-07-14 Carlos O'Donell <carlos@codesourcery.com>
407
408 * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
409 (dbxout_function_end): Use local label LFBB. Remove hook
410 DBX_OUTPUT_NFUN.
411 (dbxout_source_line): Use local label LFBB.
412 (dbxout_block): Likewise.
413 (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
414 (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
415 * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
416 and DBX_OUTPUT_NFUN.
417
418 2006-07-13 Janis Johnson <janis187@us.ibm.com>
419
420 * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
421
422 2006-07-13 Jan Hubicka <jh@suse.cz>
423
424 * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
425 align_variable.
426 * output.h (align_variable): Declare.
427 * varasm.c (align_variable): Export.
428 * value-prof.c (tree_value_profile_transformations): Recompute iterator
429 when basic block changed.
430
431 2006-07-13 Nick Clifton <nickc@redhat.com>
432
433 * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
434 walking the LOG_LINKS chain.
435
436 2006-07-12 Geoffrey Keating <geoffk@apple.com>
437
438 * doc/invoke.texi (C++ Dialect Options): Explain difference
439 between -fvisibility-inlines-hidden and setting hidden
440 visibility explicitly.
441
442 2006-07-12 Eric Christopher <echristo@apple.com>
443
444 * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
445 (stmp-lipo): Depend on libgcc.a.
446
447 2006-07-12 Kazu Hirata <kazu@codesourcery.com>
448
449 * tree.c: Fix a comment typo.
450
451 2006-07-12 Naveen.H.S <naveenh@kpitcummins.com>
452
453 * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
454 dest.
455 (umulhisi3_r): Likewise.
456
457 2006-07-12 Paolo Carlini <pcarlini@suse.de>
458
459 PR libstdc++/27878
460 * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
461 x < 19, vs wchar_t support.
462
463 2006-07-12 Nick Clifton <nickc@redhat.com>
464
465 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
466 instead of -isa=sh4.
467
468 2006-07-12 Mike Stump <mrs@apple.com>
469
470 * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
471
472 2006-07-10 Eric Christopher <echristo@apple.com>
473
474 * config/t-slibgcc-darwin: Rewrite.
475
476 2006-07-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
477
478 PR bootstrap/20437
479 * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
480 dependencies.
481
482 2006-07-08 Matthias Klose <doko@debian.org>
483
484 * doc/sourcebuild.texi: Fix typo.
485
486 2006-07-07 Mike Stump <mrs@apple.com>
487
488 * toplev.c (process_options): Don't give -ffunction-sections may
489 affect debugging warning for Mach-O.
490
491 2006-07-07 James E Wilson <wilson@specifix.com>
492
493 * config/mips/mips.md (cpu): Add sb1a.
494 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
495 addition to sb1. Adjust comments to clarify SB-1A differences from
496 SB-1.
497 (ir_sb1a_load): New. Modify bypasses to use it.
498 (ir_sb1a_simple_alu): Likewise.
499 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
500 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
501 (mips_issue_rate): Add PROCESSOR_SB1A.
502 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
503 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
504 (TARGET_SB1): Add PROCESSOR_SB1A check.
505 (TUNE_SB1): Likewise.
506
507 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
508 * config/mips/mips.c (mips_store_data_bypass_p): New.
509 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
510 store_data_bypass_p.
511
512 2006-07-08 Paul Brook <paul@codesourcery.com>
513
514 PR target/27991
515 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
516
517 2006-07-07 Richard Guenther <rguenther@suse.de>
518
519 PR middle-end/28268
520 * tree.h (build_one_cst): Declare.
521 * tree.c (build_one_cst): New function.
522 * tree-ssa-math-opts.c (get_constant_one): Remove.
523 (insert_reciprocals): Use build_one_cst.
524 * fold-const.c (fold_plusminus_mult): Likewise.
525
526 2006-07-07 Roger Sayle <roger@eyesopen.com>
527
528 * pointer-set.c (pointer_set_destroy): Correct whitespace.
529 * cfgloopanal.c (dump_graph): Likewise.
530 * dojump.c (discard_pending_stack_adjust): Likewise.
531 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
532 Likewise.
533 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
534 * function.c (finalize_block_changes): Likewise.
535 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
536 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
537 * rtl.c (dump_rtx_statistics): Likewise.
538 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
539 Likewise.
540 * varray.c (dump_varray_statistics): Likewise.
541 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
542 decode_decimal64, encode_decimal128, decode_decimal128,
543 decimal_real_to_decimal): Likewise.
544
545 2006-07-07 Richard Guenther <rguenther@suse.de>
546
547 PR tree-optimization/28187
548 * tree-vrp.c (vrp_operand_equal_p): New function.
549 (vrp_bitmap_equal_p): Likewise.
550 (update_value_range): Use them to compare old and new
551 max and min values.
552
553 2006-07-06 Roger Sayle <roger@eyesopen.com>
554
555 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
556 a default case to switch statement to silence compiler warnings.
557
558 2006-07-06 Roger Sayle <roger@eyesopen.com>
559
560 PR target/27968
561 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
562 the configured assembler supports the x87's ffreep mnemonic.
563 * configure: Regenerate.
564 * config.in: Regenerate.
565
566 * config/i386/i386.c (output_387_ffreep): New function.
567 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
568 (output_387_reg_move): Likewise.
569
570 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
571
572 Port to hosts whose 'sort' and 'tail' implementations
573 treat operands with leading '+' as file names, as POSIX
574 has required since 2001. However, make sure the code still
575 works on pre-POSIX hosts.
576 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
577 which says you should use "tail -c +N" rather than "tail +Nc".
578 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
579
580 2006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
581
582 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
583 argument name.
584
585 2006-07-06 David Edelsohn <edelsohn@gnu.org>
586
587 PR target/28150
588 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
589 PRE_{INC,DEC} of TFmode.
590
591 2006-07-06 David Edelsohn <edelsohn@gnu.org>
592 Alan Modra <amodra@bigpond.net.au>
593
594 PR target/28170
595 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
596 bounds. Simplify.
597
598 2006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
599
600 PR target/28285
601 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
602 Remove duplicate gtu.
603
604 2006-07-05 Jason Merrill <jason@redhat.com>
605
606 PR c++/13983
607 PR c++/17519
608 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
609 * c-common.c (handle_packed_attribute): So don't copy it here.
610 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
611
612 2006-07-05 Mike Stump <mrs@apple.com>
613
614 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
615
616 2006-07-05 H.J. Lu <hongjiu.lu@intel.com>
617
618 PR target/26146
619 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
620
621 2006-07-05 Richard Guenther <rguenther@suse.de>
622
623 PR target/28158
624 * config/i386/i386.md (*negdf2_1): Restrict pattern to
625 TARGET_SSE2 targets if using SSE math.
626 (*absdf2_1): Likewise.
627
628 2006-07-05 Richard Guenther <rguenther@suse.de>
629
630 PR tree-optimization/28162
631 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
632 make sure to convert the operands to the correct type.
633
634 2006-07-04 Paolo Bonzini <bonzini@gnu.org>
635
636 PR tree-optimization/28218
637
638 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
639 to calculate and free the dominator information.
640
641 2006-07-04 Peter O'Gorman <peter@pogma.com>
642
643 * mklibgcc.in: chmod 644 before ranlib during install.
644
645 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
646 J"orn Rennecke <joern.rennecke@st.com>
647
648 * configure.ac (.eh_frame data check): Use diff -b.
649
650 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
651
652 PR bootstrap/18058
653 * Makefile.in (BUILD_RTL): Add build/vec.o.
654 (build/gencondmd.o): Filter out -fkeep-inline-functions.
655 (build/genextract): Delete.
656 (build/genautomata): Likewise.
657
658 2006-07-04 Alan Modra <amodra@bigpond.net.au>
659
660 PR target/28207
661 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
662 128-bit IBM long doubles for ABI_V4.
663
664 2006-07-03 Eric Botcazou <ebotcazou@adacore.com>
665
666 * tree.c (range_in_array_bounds_p): New predicate.
667 * tree.h (range_in_array_bounds_p): Declare it.
668 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
669 return a less conservative answer.
670 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
671 and flag 'is_group'.
672 (IS_ELEMENT_FOR_GROUP): New macro.
673 (FOR_EACH_ACTUAL_CHILD): Likewise.
674 (next_child_for_group): New helper function.
675 (can_completely_scalarize_p): Take into account groups.
676 (sra_hash_tree): Handle RANGE_EXPR.
677 (sra_elt_eq): Likewise.
678 (lookup_element): Be prepared for handling groups.
679 (is_valid_const_index): Delete.
680 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
681 instead of is_valid_const_index.
682 <ARRAY_RANGE_REF>: New case.
683 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
684 is_valid_const_index.
685 <ARRAY_RANGE_REF>: Do not unconditionally punt.
686 (scan_dump): Dump info for groups too.
687 (decide_instantiation_1): Likewise.
688 (decide_block_copy): Assert that the element is not a group.
689 Propagate decision to groups.
690 (generate_one_element_ref): Handle RANGE_EXPR.
691 (mark_no_warning): Iterate over actual childs.
692 (generate_copy_inout): Likewise.
693 (generate_element_copy): Likewise.
694 (generate_element_zero): Likewise.
695 (generate_element_init_1): Likewise.
696 (dump_sra_elt_name): Handle RANGE_EXPR.
697
698 2006-07-03 Roger Sayle <roger@eyesopen.com>
699
700 PR tree-optimization/26251
701 * tree-ssa-threadupdate.c (redirection_block_p): New function.
702 (thread_block): When optimizing for size refuse to thread jumps
703 that would require duplication of blocks other than redirection
704 blocks.
705
706 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
707
708 * configure.ac: Fix thinko in previous check-in.
709 * configure: Regenerate.
710
711 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
712
713 PR other/27063
714 * configure.ac (for lang...): Simplify nesting of conditionals.
715 Test subdir_requires for non-enabled languages. Move processing
716 of lang_opt_files and lang_tree_fiels below that test.
717 * configure: Regenerate.
718 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
719
720 2006-07-01 Martin Michlmayr <tbm@cyrius.com>
721
722 * doc/gcov.texi (Invoking Gcov): Add a missing word.
723
724 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
725
726 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
727 comment typos.
728
729 2006-06-29 Jason Merrill <jason@redhat.com>
730
731 PR c++/26905
732 PR c++/26612
733 PR c++/27000
734 PR c++/26984
735 PR c++/19134
736 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
737 * c-common.c (c_determine_visibility): Handle it here.
738 * c-decl.c (finish_decl): Call c_determine_visibility for
739 functions, too.
740 * flags.h (enum symbol_visibility): Sort from most to least visibility.
741 * tree.h: Likewise.
742 * varasm.c (default_assemble_visibility): Likewise.
743 * c-common.c (handle_visibility_attribute): Complain about trying
744 to give visibility to an already defined class, or trying to change
745 declared visibility. Always attach the attribute.
746
747 PR c++/26905
748 PR c++/21675
749 PR c++/17470
750 * attribs.c (decl_attributes): Ignore type-in-place attributes
751 once the type has been defined.
752
753 2006-06-29 Roger Sayle <roger@eyesopen.com>
754
755 PR middle-end/27428
756 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
757 to indicate the cpplib has issued an error message for us.
758
759 2006-06-29 Asher Langton <langton2@llnl.gov>
760
761 PR target/25765
762 * config/i386/i386.c (ix86_output_function_epilogue): Don't
763 insert a label at the end of an function under Mach-O.
764
765 2006-06-29 Eric Christopher <echristo@apple.com>
766 Evan Cheng <evan.cheng@apple.com>
767
768 * predicates.md (vector_all_ones_operand): New.
769 (nonimmediate_or_sse_const_operand): Ditto.
770 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
771 * config/i386/i386.c (standard_sse_constant_opcode): Define.
772 (standard_sse_mode_p): Ditto.
773 (standard_sse_constant_p): Add case for -1 vector.
774 (ix86_expand_vector_move): Try to use.
775 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
776 Call standard_sse_constant_opcode.
777 (*movv4sf_internal): Ditto.
778 (*movv2df_internal): Ditto.
779
780 2006-06-29 Roger Sayle <roger@eyesopen.com>
781
782 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
783 of XEXP to extract the operands of a MATCH_CODE rtx.
784
785 2006-06-28 Andrew Pinski <pinskia@gmail.com>
786
787 * tree.c (tree_size): Do not waste tail padding in
788 struct tree_string and make the size be the same as
789 build_string will generate.
790
791 2006-06-28 Jason Merrill <jason@redhat.com>
792
793 PR c++/27768
794 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
795 may_aliases already in the tag's annotations to the bitmap.
796
797 2006-06-28 Roger Sayle <roger@eyesopen.com>
798
799 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
800
801 2006-06-28 Roger Sayle <roger@eyesopen.com>
802
803 * genpreds.c (generate_switch_p): New function.
804 (add_mode_tests): Push the new mode test down inside an AND expr
805 if this allows the switch-suitable MATCH_CODE to be near the root.
806 (write_match_code_switch): New function to write a MATCH_CODE as
807 a switch statement.
808 (write_predicate_stmts): New function to write a predicate RTX
809 expression as a sequence of statements.
810 (write_one_predicate_function): Use write_predicate_stmts.
811 (write_tm_constrs_h): Likewise.
812
813 2006-06-26 Fred Fish <fnf@specifix.com>
814
815 * config/mips/t-sb1: New file.
816 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
817 tmake_file list.
818
819 2006-06-26 DJ Delorie <dj@redhat.com>
820
821 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
822
823 2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
824 Jayant Sonar <jayants@kpitcummins.com>
825 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
826
827 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
828 (subsi3, subsi3_1, subsi3_2): New.
829 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
830 * config/m32c/mov.md (SI mov peephole): New.
831 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
832 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
833
834 2006-06-26 Olivier Hainque <hainque@adacore.com>
835
836 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
837 a CALL_EXPR target function declaration.
838
839 2006-06-26 Richard Guenther <rguenther@suse.de>
840
841 * tree.c (build_string): Do not waste tail padding in
842 struct tree_string.
843
844 2006-06-26 Richard Guenther <rguenther@suse.de>
845
846 * ggc-page.c (init_ggc): Add missing element to size_lookup
847 table.
848
849 Revert
850 2006-06-23 Richard Guenther <rguenther@suse.de>
851
852 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
853 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
854 alignment requests instead. Add verification code.
855 Add struct tree_function_decl and struct tree_binfo size to
856 extra_order_size_table. Add missing element to size_lookup
857 table.
858
859 2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
860
861 PR middle-end/28151
862 * fold-const.c (const_binop): Be prepared for self returning zero.
863 Simplify code handling complex values.
864
865 2006-06-24 Olivier Hainque <hainque@adacore.com>
866
867 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
868 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
869 aggregate types.
870
871 2006-06-24 Olivier Hainque <hainque@adacore.com>
872
873 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
874 ARRAY_REF, so have the callback called for the low bound expression.
875
876 2006-06-23 Janis Johnson <janis187@us.ibm.com>
877
878 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
879 * c-typeck.c (c_common_type): Disallow operations on decimal float
880 types and other float types.
881 * convert.c (convert_to_real): Don't ignore conversions involving
882 decimal float types.
883
884 2006-06-23 Olivier Hainque <hainque@adacore.com>
885
886 * tree.c (max_int_size_in_bytes): New function, inspired from
887 code in function.c:assign_temp.
888 * tree.h (max_int_size_in_bytes): Declare.
889 * function.c (assign_temp): Use it.
890 * gimplify.c (create_tmp_var): Relax the assertions on the type
891 properties, not mandating constant size any more.
892 (force_constant_size): New static function.
893 (gimple_add_tmp_var): Use it, forcing variable size to a
894 constant upper bound if it is not constant on entry.
895
896 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
897
898 PR target/27789
899 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
900 for initialization and setting of one_only flag to ...
901 (i386_pe_encode_section_info): ...here.
902 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
903 Recheck that the symbol has not been defined.
904
905 2006-06-23 Richard Guenther <rguenther@suse.de>
906
907 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
908 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
909 alignment requests instead. Add verification code.
910 Add struct tree_function_decl and struct tree_binfo size to
911 extra_order_size_table. Add missing element to size_lookup
912 table.
913
914 2006-06-22 Roger Sayle <roger@eyesopen.com>
915 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
916
917 PR middle-end/28131
918 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
919 call to lang_hooks.types.type_for_mode returned NULL_TREE.
920
921 2006-06-23 Ben Elliston <bje@au.ibm.com>
922
923 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
924 negate dn -- manipulate it directly.
925
926 2006-06-22 Roger Sayle <roger@eyesopen.com>
927 Steven Bosscher <stevenb.gcc@gmail.com>
928
929 PR target/27531
930 * reload1.c (gen_reload): Call mark_jump_label on the new insns
931 generated by gen_move_insn to add REG_LABEL notes if necessary.
932
933 2006-06-22 Bob Wilson <bob.wilson@acm.org>
934
935 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
936 (leaf_entry): Remove use of MIN_ESA.
937
938 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
939
940 PR rtl-optimization/28121
941 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
942 the entry edge.
943
944 2006-06-21 DJ Delorie <dj@redhat.com>
945
946 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
947 (TN-16C-A156A/E).
948 (mulhisi3_r): Likewise.
949
950 2006-06-21 Richard Sandiford <richard@codesourcery.com>
951
952 PR middle-end/28034
953 * coverage.c (coverage_counter_alloc): Leave the index type
954 unspecified.
955 (coverage_counter_alloc): Use null arguments for operands 2 and 3
956 of the ARRAY_REF.
957
958 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
959
960 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
961 section from the "Options for Code Generation Conventions".
962
963 2006-06-21 Richard Henderson <rth@redhat.com>
964
965 PR target/26347
966 PR target/27082
967 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
968 symbols.
969 (global_symbolic_operand): Allow weak symbols, even if local_p.
970
971 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
972
973 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
974 (find_interesting_uses_address): Punt if above function returns true.
975
976 2006-06-21 Richard Guenther <rguenther@suse.de>
977
978 * configure: Regenerated.
979
980 2006-06-21 Joseph Myers <joseph@codesourcery.com>
981
982 * config/mips/mips.c (function_arg): Where one part of a
983 complex argument is in registers and the other part in the stack,
984 return a REG not a PARALLEL.
985
986 2006-06-21 Mark Mitchell <mark@codesourcery.com>
987
988 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
989 when cross-compiling. Do not substitute libstdcxx_incdir.
990 * configure: Regenerated.
991
992 2006-06-21 Jakub Jelinek <jakub@redhat.com>
993
994 * varasm.c (mergeable_string_section): Check for embedded NULs and
995 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
996 rather than TREE_STRING_LENGTH bytes.
997
998 2006-06-21 Richard Guenther <rguenther@suse.de>
999
1000 * ggc-page.c (extra_order_size_table): Add var_ann_d,
1001 tree_ssa_name, bitmap_element and phi_node with 4 arguments
1002 sizes.
1003
1004 2006-06-21 Richrad Guenther <rguenther@suse.de>
1005
1006 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
1007 Limit iteration over the dominators.
1008
1009 2006-06-20 Roger Sayle <roger@eyesopen.com>
1010
1011 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
1012 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
1013
1014 2006-06-20 Richard Guenther <rguenther@suse.de>
1015 Michael Matz <matz@suse.de>
1016
1017 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
1018 function.
1019 * alloc-pool.c (free_alloc_pool_if_empty): New function.
1020 * et-forest.h (et_free_pools): Prototype new function.
1021 * et-forest.c (et_free_tree_force): Free parent occurrence.
1022 (et_free_pools): New function.
1023 * dominance.c (free_dominance_info): Free et-forest alloc
1024 pools.
1025
1026 2006-06-20 Roger Sayle <roger@eyesopen.com>
1027
1028 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
1029 integer modes, attempt to directly construct an integer constant.
1030
1031 * fold-const.c (native_encode_vector): Determine the size of each
1032 element from the vector type instead of the first vector element.
1033
1034 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
1035 if all of its elements/components are constant.
1036 (build_constructor_from_list): Likewise.
1037
1038 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
1039
1040 PR tree-optimization/27331
1041 * tree-data-ref.c (free_data_ref): New function.
1042 (create_data_ref): Fail if the data reference has unknown access
1043 function.
1044 (free_data_refs): Use free_data_ref.
1045
1046 2006-06-19 Andrew Pinski <pinskia@gmail.com>
1047
1048 PR middle-end/28075
1049 * tree-inline.c (setup_one_parameter): Strip useless
1050 type conversion before adding it to the IR.
1051 (declare_return_variable): Likewise.
1052
1053 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
1054
1055 PR c/27149
1056 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
1057
1058 2006-06-19 Mike Stump <mrs@apple.com>
1059
1060 * tree.c (variably_modified_type_p): VM arguments don't make the
1061 type a VM type.
1062
1063 2006-06-19 Richard Guenther <rguenther@suse.de>
1064
1065 * tree-ssa-pre.c (try_combine_conversion): Strip useless
1066 type conversions after folding.
1067
1068 2006-06-19 Richard Guenther <rguenther@suse.de>
1069
1070 * ggc-page.c (extra_order_size_tab): Add entries with
1071 size of struct function and basic_block.
1072 (size_lookup): Extend to cover sizes up to 511.
1073 (ggc_alloc_stat): Adjust user.
1074 (ggc_pch_count_object): Likewise.
1075 (ggc_pch_alloc_object): Likewise.
1076 (ggc_pch_write_object): Likewise.
1077
1078 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
1079
1080 * tree-ssa-loop-niter.c (implies_ge_p): New function.
1081 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
1082 correctly.
1083
1084 2006-06-19 Denis Chertykov <denisc@overta.ru>
1085
1086 * config/avr/libgcc.S : Correct my wrong previous commit.
1087
1088 2006-06-19 Roger Sayle <roger@eyesopen.com>
1089
1090 PR target/27861
1091 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
1092 have stripped a SUBREG from the shift count, so we may need to
1093 convert_to_mode back to the type's mode before calling make_tree.
1094 Use new_amount instead of amount to avoid expanding a tree twice.
1095
1096 2006-06-19 Richard Guenther <rguenther@suse.de>
1097
1098 PR middle-end/28045
1099 * fold-const.c (operand_equal_p): Check if the argument types
1100 have the same precision before stripping NOPs.
1101
1102 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
1103
1104 Fix PR tree-optimization/27341
1105 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
1106 statement we get.
1107 * tree-complex.c (pass_lower_complex): Update SMT usage.
1108
1109 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
1110
1111 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
1112 Add a new alternative to the constraint strings. Add move of
1113 operand 1 to 3 to the splitter definition.
1114 ("doloop_si_long"): Second contraint alternative removed.
1115
1116 2006-06-08 Anatoly Sokolov <aesok@post.ru>
1117
1118 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
1119 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
1120 __AVR_HAVE_LPMX__.
1121 (AVR_HAVE_MOVW) Define.
1122 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
1123 (ASM_SPEC): Add avr25.
1124 (LINK_SPEC): Add avr25.
1125 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
1126 (base_arch_s): Add new member 'have_movw_lpmx'.
1127 (avr_arch_types): Init 'have_movw_lpmx'.
1128 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
1129 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
1130 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
1131 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
1132 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
1133 AVR_HAVE_MOVW.
1134 (avr_file_start): Do not output '.arh' derective.
1135 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
1136 (__do_copy_data): Use __AVR_HAVE_LPMX__.
1137 * config/avr/avr.md (mcu_enhanced): Delete.
1138 (mcu_have_movw): Define.
1139 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
1140 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
1141 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
1142 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
1143 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
1144 attiny861 and at86rf401 devices.
1145
1146 2006-06-18 Jie Zhang <jie.zhang@analog.com>
1147
1148 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
1149 of 4096.
1150
1151 2006-06-17 Karl Berry <karl@gnu.org>
1152
1153 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
1154 doc/gccint.texi, doc/install.texi (@dircategory): Use
1155 "Software development" instead of "Programming", following
1156 the Free Software Directory.
1157
1158 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
1159
1160 * config/i386/i386.c (legitimate_tls_address)
1161 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
1162 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
1163 (*tls_dynamic_gnu2_combine_64): Likewise.
1164
1165 2006-06-16 Richard Guenther <rguenther@suse.de>
1166
1167 PR middle-end/27116
1168 * fold-const.c (negate_expr_p): Do not introduce undefined
1169 overflow in negating INTEGER_CSTs.
1170 (fold_negate_expr): Rename from negate_expr. Revert last
1171 change for folding BIT_NOT_EXPR. Change semantics to
1172 return NULL_TREE for non-simplified negations. Do not
1173 strip type conversions and unify type handling.
1174 (negate_expr): New function, wrap around fold_negate_expr
1175 but ensure building a tree always. Strip type conversions
1176 here, fold to result type.
1177 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
1178
1179 2006-06-16 Roger Sayle <roger@eyesopen.com>
1180
1181 PR middle-end/27802
1182 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
1183 that (would) return their results in stack registers.
1184
1185 2006-06-16 Michael Matz <matz@suse.de>
1186 Richard Guenther <rguenther@suse.de>
1187
1188 * fold-const.c (fold_truthop): Only return new tree node if
1189 we canonicalized something.
1190
1191 2006-06-16 Richard Guenther <rguenther@suse.de>
1192
1193 * function.h (enum function_frequency): Move declaration
1194 out of struct function.
1195 (struct function): Move bool fields and the enum to the bitfield
1196 section. Reorder elements to avoid padding. Remove unused
1197 fields left over from the RTL inliner removal.
1198 * function.c (free_after_compilation): Do not zero removed fields.
1199 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
1200 (ipa-type-escape.o): Likewise.
1201
1202 2006-06-16 Richard Guenther <rguenther@suse.de>
1203
1204 * cgraph.h (struct cgraph_local_info): Turn bool elements
1205 into a bitfield.
1206 (struct cgraph_node): Likewise.
1207 (struct cgraph_varpool_node): Likewise.
1208
1209 2006-06-15 Richard Guenther <rguenther@suse.de>
1210
1211 * fold-const.c (fold_truth_not_expr): Rename from
1212 invert_truthvalue. Give it fold_* semantics to avoid
1213 generating garbage.
1214 (invert_truthvalue): New function. Wrapper around
1215 fold_truth_not_expr.
1216 (optimize_minmax_comparison): Avoid creating garbage.
1217 (fold_unary): Use fold_truth_not_expr for folding
1218 TRUTH_NOT_EXPR.
1219 (fold_ternary): Replace uses of invert_truthvalue with
1220 fold_truth_not_expr where applicable.
1221 * tree.h (fold_truth_not_expr): Prototype.
1222
1223 2006-06-16 Richard Guenther <rguenther@suse.de>
1224
1225 PR tree-optimization/27781
1226 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
1227 * ipa-pure-const.c (target.h): Include.
1228 (analyze_function): Do not analyze functions that do not
1229 bind locally.
1230
1231 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
1232
1233 PR middle-end/27793
1234 * tree-dfa.c (referenced_vars_dup_list): Remove.
1235 (find_referenced_vars): Remove assert.
1236 (referenced_var_check_and_insert): Replace dup list with assert.
1237 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
1238 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
1239
1240 2006-06-15 Richard Guenther <rguenther@suse.de>
1241
1242 * tree-ssa-structalias.c (alias_get_name): Avoid creating
1243 extra unused identifiers if not dumping.
1244 (create_variable_info_for): Likewise.
1245
1246 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
1247
1248 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
1249 (derive_constant_upper_bound): Derive more precise upper bound in
1250 common cases. Return type changed to double_int.
1251 (record_estimate): Reflect the changed return type of
1252 derive_constant_upper_bound.
1253 * double-int.c (double_int_zext, double_int_sext): Fix.
1254
1255 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
1256
1257 * configure.ac (CFLAGS): Get them from the toplevel or from the
1258 configure invocation.
1259 * configure: Regenerate.
1260 * Makefile.in (CFLAGS): Substitute value provided by configure.
1261
1262 2006-06-14 Mark Mitchell <mark@codesourcery.com>
1263
1264 PR c++/26559
1265 * c-common.h (c_finish_omp_atomic): Adjust declaration.
1266 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
1267 rather than calling add_stmt on it.
1268 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
1269
1270 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
1271
1272 PR middle-end/27959
1273 * reload1.c (reload): Remove registers returned by update_eliminables
1274 from used_spill_regs.
1275
1276 2006-06-13 DJ Delorie <dj@redhat.com>
1277
1278 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
1279
1280 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
1281
1282 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
1283 html__strip_dir, html__mkdir_p. Enhance install-html target.
1284 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
1285 * configure: Regenerate.
1286
1287 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
1288
1289 * fold-const.c (fold_cond_expr_with_comparison): Check for
1290 Objective-C++ as language in deciding COND_EXPR transformation.
1291
1292 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
1293
1294 PR target/28014:
1295 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
1296 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
1297 * config/sh/lib1funcs.h (SL, SL1): Define.
1298 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
1299 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
1300 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
1301 (OBJS_Os_4_200): New variable.
1302 ($(T)libgcc-Os-4-200.a): Use it.
1303 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
1304 when dividing 1 and/or by 0.
1305
1306 2006-06-13 Roger Sayle <roger@eyesopen.com>
1307
1308 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
1309 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
1310 * configure: Regenerate.
1311
1312 2006-06-13 Jie Zhang <jie.zhang@analog.com>
1313
1314 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
1315 for real instruction.
1316
1317 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1318
1319 PR middle-end/26807
1320 * haifa-sched.c (check_cfg): Handle special case.
1321
1322 2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
1323
1324 PR debug/26754
1325 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
1326 Add debug_info parameter. Chain the vars to the BLOCK instead
1327 of the BIND_EXPR if debug info are requested for them.
1328 (pop_gimplify_context): Adjust for above change.
1329 (gimple_add_tmp_var): Likewise.
1330 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
1331 Add bool parameter.
1332 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
1333 (convert_local_reference): Likewise.
1334 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
1335 (finalize_nesting_tree_1): Request that debug info be emitted
1336 for debug_var_chain.
1337
1338 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1339
1340 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
1341 for PR target/27863.
1342
1343 2006-06-13 Richard Guenther <rguenther@suse.de>
1344
1345 PR middle-end/27536
1346 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
1347
1348 2006-06-13 Richard Guenther <rguenther@suse.de>
1349
1350 PR tree-optimization/27830
1351 * tree-inline.c (copy_body_r): For copying the operand
1352 of an ADDR_EXPR make sure to fold &* afterwards.
1353
1354 2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
1355
1356 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
1357 lvalues in the fb_none case with side-effects.
1358
1359 2006-06-12 Kazu Hirata <kazu@codesourcery.com>
1360
1361 * tree-flow.h: Remove the prototype for
1362 compute_phi_arg_on_exit.
1363 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
1364 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
1365 Remove.
1366
1367 2006-06-12 Mark Shinwell <shinwell@codesourcery.com>
1368
1369 * builtins.c (expand_builtin_return_addr): Only use
1370 frame_pointer_rtx when count == 0 and we are expanding
1371 __builtin_return_address.
1372
1373 2006-06-12 Fred Fish <fnf@specifix.com>
1374
1375 * config/mips/mips.c (mips_file_start): Create special section
1376 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
1377
1378 2006-06-11 Eric Christopher <echristo@apple.com>
1379
1380 PR middle-end/27948
1381 * stor-layout.c (place_field): Remove check for
1382 remaining_in_alignment when aligning at the end of a run.
1383
1384 2006-06-11 Eric Christopher <echristo@apple.com>
1385
1386 PR 27542
1387 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
1388 pragma.
1389
1390 2006-06-11 Roger Sayle <roger@eyesopen.com>
1391
1392 PR target/27858
1393 Revert incorrect fix for PR target/27158
1394 2006-05-08 Roger Sayle <roger@eyesopen.com>
1395 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
1396 of a reg_equiv_constant if the result is a legitimate constant.
1397
1398 2006-06-11 Roger Sayle <roger@eyesopen.com>
1399
1400 PR target/27158
1401 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
1402 extract a CONST_VECTOR element and interpret it as an integer.
1403 (vspltis_constant): Use const_vector_elt_as_int instead of the
1404 macro CONST_VECTOR_ELT in order to handle FP vector modes.
1405 * config/rs6000/predicates.md (easy_vector_const): Consider
1406 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
1407
1408 2006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
1409
1410 PR middle-end/27942
1411 * stor-layout.c (update_alignment_for_field): Don't add extra
1412 alignment for packed non-bitfield fields in ms_bitfield_layout_p
1413 code.
1414
1415 2006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
1416
1417 * config/mips/t-rtems: Add EL/EB multilib variants.
1418
1419 2006-06-09 Mike Stump <mrs@apple.com>
1420
1421 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
1422
1423 2006-06-09 David Daney <ddaney@avtrex.com>
1424
1425 * doc/install.texi: Add binutils version recommendation for mips-*-*.
1426
1427 2006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
1428
1429 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
1430
1431 2006-06-09 Richard Guenther <rguenther@suse.de>
1432
1433 PR tree-optimization/26998
1434 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
1435 of signed types, only TYPE_MIN_VALUE is special, but for both,
1436 minimum and maximum value. Likewise VR_ANTI_RANGE is special
1437 in this case, as is -fwrapv.
1438
1439 2006-06-08 Mike Stump <mrs@apple.com>
1440
1441 PR target/26427
1442 * config/darwin.c (darwin_asm_output_anchor): Disable
1443 -fsection-anchors on darwin for now.
1444 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
1445 * rs6000/rs6000.c (optimization_options): Likewise.
1446
1447 2006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1448
1449 PR target/27421
1450 * config/i386/i386.c (classify_argument): Skip fields with invalid
1451 types in unions.
1452
1453 2006-06-08 Steven Bosscher <steven@gcc.gnu.org>
1454
1455 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
1456 (cse_insn): Likewise for the stack_pointer_rtx.
1457
1458 2006-06-08 Roger Sayle <roger@eyesopen.com>
1459
1460 * tree-ssa-dom.c (record_conditions): Only record "unordered"
1461 conditions from floating point comparisons.
1462
1463 2006-06-08 Paolo Bonzini <bonzini@gnu.org>
1464
1465 PR middle-end/27733
1466 * expmed.c (struct alg_hash_entry): Fix type of field T
1467 to match synth_mult argument.
1468 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
1469
1470 2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1471
1472 PR target/27863
1473 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
1474 block boundaries.
1475
1476 2006-06-08 Richard Guenther <rguenther@suse.de>
1477
1478 PR middle-end/27116
1479 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
1480 only, if overflow is defined and not trapping.
1481 (negate_expr): Likewise.
1482
1483 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
1484
1485 PR tree-optimization/27872
1486 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
1487 flag on the new exit edge of the unrolled loop.
1488
1489 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
1490
1491 PR rtl-optimization/26449
1492 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
1493
1494 2006-06-07 Andrew MacLeod <amacleod@redhat.com>
1495
1496 PR middle-end/27793
1497 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
1498 referenced_variables with matching DECL_UID's.
1499 (find_referenced_vars): Make sure duplicate list is empty to start.
1500 (referenced_var_p): Remove.
1501 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
1502 Check if var is in the list, and add if needed. Update the duplicate
1503 list if a different var is in the list with the same DECL_UID.
1504 (add_referenced_var): Call routine to check and insert.
1505 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
1506 * tree-flow.h (referenced_vars_dup_list): External declaration.
1507
1508 2006-06-07 Fred Fish <fnf@specifix.com>
1509
1510 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
1511 into single entry.
1512
1513 2006-06-07 Paolo Bonzini <bonzini@gnu.org>
1514
1515 PR target/27390
1516 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
1517 the imaginary and real parts of a clobbered register.
1518 Emit insn to set the imaginary part.
1519
1520 2006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
1521
1522 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
1523 in lieu of unwind-dw2-fde.c.
1524
1525 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1526
1527 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
1528
1529 2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1530
1531 PR target/27842
1532 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
1533 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
1534 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
1535 V4SImode temporaries and operations instead.
1536
1537 2006-06-06 Joseph S. Myers <joseph@codesourcery.com>
1538
1539 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
1540 dp-bit.c.
1541
1542 2006-06-06 Mike Stump <mrs@apple.com>
1543
1544 * Makefile.in: Rename to htmldir to build_htmldir to avoid
1545 installing during build.
1546
1547 2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1548
1549 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
1550 value to 0.
1551 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
1552 * config/ia64/ia64.c (params.h): New header.
1553 (ia64_optimization_options): New function to adjust parameters.
1554 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
1555 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
1556 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
1557
1558 2006-06-05 Kazu Hirata <kazu@codesourcery.com>
1559
1560 * stor-layout.c (debug_rli): Fix a typo in a debug message.
1561
1562 2006-06-05 Steve Ellcey <sje@cup.hp.com>
1563
1564 PR target/27051
1565 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
1566
1567 2006-06-05 Dorit Nuzman <dorit@il.ibm.com>
1568 Victor Kaplansky <victork@il.ibm.com>
1569
1570 PR tree-optimization/26360
1571 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
1572 stmts.
1573
1574 2006-06-04 Roger Sayle <roger@eyesopen.com>
1575 Andrew Pinski <pinskia@physics.uc.edu>
1576
1577 PR middle-end/27382
1578 * c-common.c (c_common_truthvalue_conversion): Explicitly check
1579 for LABEL_DECL before calling DECL_WEAK.
1580
1581 PR c/27150
1582 * c-typeck.c (build_binary_op): Likewise, explicitly check for
1583 LABEL_DECL and PARM_DECL.
1584
1585 2006-06-05 Joseph S. Myers <joseph@codesourcery.com>
1586
1587 PR c/25161
1588 PR c/27020
1589 * c-decl.c (grokdeclarator): Disallow variably modified types at
1590 file scope. Avoid marking shared array type of constant size as
1591 VLA.
1592
1593 2006-06-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1594
1595 PR c++/27601
1596 * c-common.c (fold_offsetof_1): Handle static members.
1597
1598 2006-06-04 Eric Christopher <echristo@apple.com>
1599
1600 * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
1601 (debug_rli): Output value for remaining_in_alignment.
1602 (update_alignment_for_field): Unconditionalize
1603 ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
1604 extra alignment code.
1605 (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
1606 ms_bitfield_layout_p code. Rewrite handling of structure fields.
1607 * tree.h (record_layout_info_s): Remove prev_packed.
1608 * doc/extend.texi (ms_struct): Add documentation of format.
1609
1610 2006-06-04 Mark Shinwell <shinwell@codesourcery.com>
1611
1612 * tree.h: Declare folding_initializer.
1613 * builtins.c (fold_builtin_constant_p): Give definite answer
1614 if folding inside an initializer.
1615 * fold-const.c: Define folding_initializer.
1616 (START_FOLD_INIT): Save and then set folding_initializer.
1617 (END_FOLD_INIT): Restore folding_initializer.
1618
1619 2006-06-04 Richard Guenther <rguenther@suse.de>
1620
1621 PR tree-optimization/27039
1622 * fold-const.c (fold_comparison): Handle pointer comparison
1623 again for all comparison codes. Compare offsets in signed
1624 size type.
1625 (fold_binary): Move code from here.
1626
1627 2006-06-03 Roger Sayle <roger@eyesopen.com>
1628
1629 PR target/26223
1630 * config/i386/i386.c (construct_container): Split static issued_error
1631 flag into issued_sse_arg_error, issued_sse_ret_error and
1632 issued_x87_ret_error. Issue a daignostic if the x86-64 ABI
1633 requires the use of x87 registers and the user explicitly
1634 specified the -mno-80387 command line option.
1635
1636 2006-06-02 Geoffrey Keating <geoffk@apple.com>
1637
1638 * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
1639 HAVE_DECL_SIGALTSTACK.
1640 (MC_FLD): New.
1641 (segv_handler): Use MC_FLD.
1642 * configure.ac: Check for a sigaltstack declaration.
1643 Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
1644 * configure: Regenerate.
1645 * config.in: Regenerate.
1646
1647 2006-06-03 J"orn Rennecke <joern.rennecke@st.com>
1648
1649 PR other/27850
1650 * Makefile.in (stmp-fixinc): Fix typo.
1651
1652 2006-06-02 Roger Sayle <roger@eyesopen.com>
1653
1654 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
1655 are type correct. Clean-up.
1656 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
1657 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
1658
1659 2006-06-01 DJ Delorie <dj@redhat.com>
1660
1661 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
1662 shift, as we've disabled the "switch" insn that needs it.
1663
1664 2006-06-01 Per Bothner <bothner@bothner.com>
1665
1666 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
1667 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
1668 * c-ppoutput.c (cb_define): Don't increment line 0.
1669
1670 2006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
1671
1672 * doc/invoke.texi: Add cpu_type power6.
1673 * config.gcc: Add cpu_type power6.
1674 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
1675 to power5+ with Altivec.
1676 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
1677 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
1678
1679 2006-05-30 Anatoly Sokolov <aesok@post.ru>
1680
1681 * config/avr/avr.h (SET_ASM_OP): Define.
1682
1683 2006-06-01 Kazu Hirata <kazu@codesourcery.com>
1684
1685 * config/bfin/bfin.c: Fix comment typos.
1686
1687 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
1688
1689 PR 25453
1690 * doc/install.texi: Document --enable-bootstrap and
1691 --disable-bootstrap.
1692
1693 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
1694
1695 * doc/install.texi: Document that InfoZIP can replace jar.
1696
1697 2006-05-31 Roger Sayle <roger@eyesopen.com>
1698
1699 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
1700 isn't available, directly generate the simpler x87 patterns without
1701 the (use (const_int 0)).
1702 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
1703 implementation isn't available.
1704 (*negdf2_1): Likewise.
1705 (*negxf2_1): XF mode negation is always done using the x87.
1706 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
1707
1708 2006-05-31 Roger Sayle <roger@eyesopen.com>
1709
1710 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
1711 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
1712 cabs(z).
1713 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
1714
1715 2006-05-31 Jie Zhang <jie.zhang@analog.com>
1716
1717 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
1718 * config/bfin/bfin.c (basic-block.h): Include.
1719 (struct machine_function): New.
1720 (bfin_init_machine_status): New.
1721 (override_options): Initialize init_machine_status.
1722 (bfin_hardware_loop): New.
1723 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
1724 (DEF_VEC_P (loop_info)): New.
1725 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
1726 (struct loop_info): New.
1727 (loop_info): New typedef.
1728 (struct loop_work): New.
1729 (loop_work): New typedef.
1730 (DEF_VEC_O (loop_work)): New.
1731 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
1732 (bfin_dump_loops): New.
1733 (bfin_bb_in_loop): New.
1734 (bfin_scan_loop): New.
1735 (bfin_optimize_loop): New.
1736 (bfin_reorg_loops): New.
1737 (bfin_reorg): Use bfin_reorg_loops.
1738 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
1739 loop registers.
1740 (I_REGNO_P): Simplify.
1741 (DP_REGNO_P, DPREG_P): New macros.
1742 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
1743 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
1744 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
1745 Add LT_REGS, LC_REGS, LB_REGS.
1746 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
1747 'l' for LB_REGS.
1748 (REGNO_REG_CLASS): Deal with loop registers.
1749 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
1750 letters.
1751 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
1752 New constants for loop registers.
1753 (UNSPEC_LSETUP_END): New.
1754 (seq_insns): New define_attr. Set it for appropriate insns.
1755 (movsi_insn): Add alternatives for move from/to
1756 loop count registers.
1757 (doloop_end): New define_expand.
1758 (loop_end): New define_insn.
1759 (define_split for bad doloop_end): New.
1760 (lsetup_with_autoinit): New define_insn.
1761 (lsetup_without_autoinit): New define_insn.
1762 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
1763 * config/bfin/predicates.md (lc_register_operand): New.
1764 (lt_register_operand): New.
1765 (lb_register_operand): New.
1766 (nondp_register_operand): New.
1767 (nondp_reg_or_memory_operand): New.
1768 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
1769
1770 2006-05-31 Jie Zhang <jie.zhang@analog.com>
1771
1772 * config/bfin/bfin.c (bfin_delegitimize_address): New.
1773 (TARGET_DELEGITIMIZE_ADDRESS): Define.
1774
1775 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1776
1777 * Makefile.in (CATALOGS): Add po/ prefix.
1778 * configure: Regenerated.
1779
1780 2006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
1781
1782 PR target/27829
1783 * arm.c (arm_print_operand case 'S'): Validate that the operand is
1784 a shift operand before calling shift_op. Avoid redundant call of
1785 shift_op.
1786
1787 2006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
1788 DJ Delorie <dj@redhat.com>
1789
1790 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
1791 we're inserting is a singlt-bit constant.
1792
1793 2006-05-30 Roger Sayle <roger@eyesopen.com>
1794
1795 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
1796 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
1797
1798 2006-05-30 Roger Sayle <roger@eyesopen.com>
1799
1800 PR tree-optimization/23452
1801 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
1802 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
1803 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
1804 complex values and with -ffast-math for FP complex values.
1805
1806 2006-05-30 Kazu Hirata <kazu@codesourcery.com>
1807
1808 * c-common.h: Remove the prototype for yyparse.
1809 * rtl.h: Remove the prototype for init_loop.
1810
1811 2006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
1812
1813 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
1814 calling recog.
1815
1816 2006-05-30 Roger Sayle <roger@eyesopen.com>
1817
1818 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
1819 and rotate cases.
1820 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
1821 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
1822
1823 2006-05-30 Dirk Mueller <dmueller@suse.de>
1824
1825 PR c/27273
1826 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
1827 for CONSTANT_CLASS_P expresisons.
1828
1829 2006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1830
1831 PR c/27718
1832 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
1833
1834 2006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
1835
1836 PR tree-optimization/27779
1837 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
1838 initial_condition instead of CHREC_LEFT.
1839
1840 2006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1841
1842 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
1843 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
1844 Make prototypes ISO C90.
1845
1846 2006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
1847 Leehod Baruch <leehod.baruch@weizmann.ac.il>
1848
1849 * see.c (see_analyze_one_def): Correct check.
1850 (see_get_extension_data): Check if extension is parallel.
1851 (see_get_extension_reg): Likewise.
1852
1853 2006-05-30 Uros Bizjak <uros@kss-loka.si>
1854
1855 PR target/27790
1856 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
1857 into register for (code == GTU).
1858
1859 2006-05-29 Roger Sayle <roger@eyesopen.com>
1860
1861 PR tree-optimization/24964
1862 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
1863 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
1864 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
1865 abs(x)*abs(x) as x*x for scalar floating point modes.
1866
1867 2006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
1868
1869 PR middle-end/27745
1870 * lambda-code.c (perfect_nestify): Don't copy statements
1871 in the inner loop: move them to the inner loop header.
1872
1873 2006-05-29 Diego Novillo <dnovillo@redhat.com>
1874
1875 PR 26237
1876 * c-tree.texi: Document OpenMP directives and clauses.
1877
1878 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
1879
1880 * varasm.c (globalize_decl): Fix indentation.
1881
1882 2006-05-29 Diego Novillo <dnovillo@redhat.com>
1883
1884 PR 26242
1885 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
1886 pass_fre, pass_store_ccp, pass_copy_prop,
1887 pass_store_copy_prop, pass_merge_phi, pass_nrv,
1888 pass_return_slot, pass_object_size, pass_lim,
1889 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
1890 pass_loop_prefetch and pass_stdarg.
1891
1892 2005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
1893
1894 * config/bfin/bfin.opt (mfdpic): New option.
1895 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
1896 (EXTRA_MULTILIB_PARTS): Likewise.
1897 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
1898 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
1899 multilib.
1900 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
1901 (CRT_CALL_STATIC_FUNCTION): New.
1902 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
1903 -shared.
1904 (CRT_CALL_STATIC_FUNCTION): New.
1905 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
1906 FD-PIC moves.
1907 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
1908 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
1909 (initialize_trampoline): Changed to handle FD-PIC code generation.
1910 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
1911 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
1912 (override_options): Disallow -mid-shared-library -mfdpic combination.
1913 Can't do unaligned ops if FD-PIC.
1914 Turn off flag_pic if trying to generate non-id-shared-library
1915 non-fdpic code, since it's not supported.
1916 (bfin_assemble_integer): New function.
1917 (TARGET_ASM_INTEGER): Define.
1918 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
1919 __BFIN_FDPIC__.
1920 * config/bfin/crtn.s: Restore them.
1921 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
1922 if TARGET_FDPIC.
1923 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1924 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
1925 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
1926 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
1927 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
1928 call-used.
1929 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
1930 FDPIC_REGS and FDPIC_FPTR_REGS.
1931 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
1932 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
1933 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
1934 (load_funcdescsi): New pattern.
1935 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
1936 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
1937 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
1938
1939 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
1940
1941 * gcse.c, rtlanal.c: Remove obsolete comments associated with
1942 loop.c.
1943
1944 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
1945
1946 * tree-flow.h: Remove the prototype for add_type_alias.
1947 * tree-ssa-alias.c (add_type_alias): Remove.
1948
1949 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
1950
1951 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
1952 config/fr30/fr30.md, config/i386/i386-interix.h,
1953 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
1954 config/sh/superh64.h, config/v850/v850.c, df-core.c,
1955 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
1956 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
1957 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
1958 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
1959 Follow spelling conventions.
1960 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
1961 Follow spelling conventions.
1962
1963 2006-05-27 Richard Guenther <rguenther@suse.de>
1964
1965 PR middle-end/27773
1966 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
1967 to produce a constant of value 1 of generic type.
1968
1969 2006-05-27 Dirk Mueller <dmueller@suse.de>
1970
1971 * cgraphunit.c (decide_is_function_needed): Fix wrong
1972 PR reference.
1973
1974 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
1975
1976 PR rtl-optimization/27661
1977 * reload.c (find_reloads): When reloading a VOIDmode constant
1978 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
1979 use Pmode as mode of the reload register.
1980
1981 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
1982
1983 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
1984 is enabled at -O and above.
1985
1986 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
1987
1988 PR target/27571
1989 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
1990 table data.
1991
1992 2006-05-25 Mark Mitchell <mark@codesourcery.com>
1993
1994 PR c++/20103
1995 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
1996 for anonymous variables explicitly declared by front ends.
1997
1998 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
1999
2000 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
2001 (struct alias_info): Add new field ref_all_symbol_mem_tag.
2002 * tree-ssa-alias.c (compute_may_aliases): If the program contains
2003 ref-all pointers, run a finalization pass for them.
2004 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
2005 (finalize_ref_all_pointers): New function.
2006 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
2007 regular pointer type to a ref-all pointer type.
2008 (get_tmt_for): Return the special memory tag for ref-all pointers.
2009
2010 2006-05-25 Richard Guenther <rguenther@suse.de>
2011
2012 PR middle-end/27743
2013 * fold-const.c (fold_binary): Do not look at the stripped
2014 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
2015
2016 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
2017
2018 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
2019 for LT and GT if the computed range is effectively empty.
2020
2021 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2022
2023 PR target/27627
2024 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
2025 mips_quad_format formats instead of ieee_single_format,
2026 ieee_double_format and ieee_quad_format formats, respectively.
2027
2028 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
2029
2030 PR tree-optimization/27639
2031 PR tree-optimization/26719
2032 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
2033 call to scev_probably_wraps_p.
2034 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
2035 used_in_pointer_arithmetic_p, convert_step): Removed.
2036 (nowrap_type_p): New function.
2037 (scev_probably_wraps_p): Rewritten.
2038 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
2039 chrec_convert if chrec_convert_aggressive might have been used.
2040 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
2041 scev_direction): New functions.
2042 (chrec_convert): Changed to a wrapper over chrec_convert_1.
2043 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
2044 instead of convert_step.
2045 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
2046 (convert_step): Declaration removed.
2047 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
2048
2049 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
2050
2051 * df-core.c: Added to header comments.
2052 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
2053 df_ur_bb_info, df_urec_bb_info): Added comments.
2054 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
2055 urec, ri problems): Fixed header comments.
2056 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
2057 code from df_rd_transfer_function.
2058
2059 2006-05-23 Richard Sandiford <richard@codesourcery.com>
2060
2061 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
2062 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
2063 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
2064
2065 2006-05-23 Joseph Myers <joseph@codesourcery.com>
2066
2067 * expr.c (undefined_operand_subword_p): New.
2068 (emit_move_multi_word): Do not generate move from undefined bits
2069 of a paradoxical subreg.
2070
2071 2006-05-23 Richard Sandiford <richard@codesourcery.com>
2072
2073 PR rtl-optimization/27736
2074 * combine.c (replaced_rhs_value): New variable.
2075 (combine_instructions): Set it.
2076 (distribute_notes): When distributing a note in replaced_rhs_insn,
2077 check whether the value was used in replaced_rhs_value.
2078
2079 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
2080
2081 PR c++/26757
2082 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
2083 add_referenced_var instead of add_referenced_tmp_var.
2084 * tree-complex.c (create_one_component_var): Use add_referenced_var.
2085 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
2086 add_referenced_var.
2087 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
2088 tree_optimize_tail_calls_1): Use add_referenced_var.
2089 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
2090 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
2091 Use add_referenced_var.
2092 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
2093 * gimplify.c (force_gimple_operand): Use add_referenced_var.
2094 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
2095 Use add_referenced_var.
2096 * tree-dfa.c (struct walk_state): Remove.
2097 (find_referenced_vars): Remove walk state and vars_found hash table.
2098 (make_rename_temp): Use add_referenced_var.
2099 (find_vars_r): Pass less parameters to add_referenced_var.
2100 (referenced_var_p): New. Is var in referenced_var hash table.
2101 (referenced_var_insert): Assert var isn't already in hash table.
2102 (add_referenced_var): Don't need walk_state parameter. Add var if it
2103 isn't already in the hash table.
2104 (add_referenced_tmp_var): Remove.
2105 (find_new_referenced_vars_1): Use add_referenced_var.
2106 * tree-ssa-pre.c (create_expression_by_pieces,
2107 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
2108 Use add_referenced_var.
2109 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
2110 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2111 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
2112 add_referenced_var.
2113 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
2114 vect_create_data_ref_ptr, vect_create_destination_var,
2115 vect_init_vector, vect_build_loop_niters,
2116 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
2117 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
2118 Use add_referenced_var.
2119 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
2120 * tree-flow.h (add_referenced_tmp_var): Remove prototype
2121 (add_referenced_var): Add prototype.
2122 * tree-ssa-structalias.c (get_constraint_for,
2123 intra_create_variable_infos): Use add_referenced_var.
2124
2125 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
2126
2127 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
2128 big-endian paradoxical subregs.
2129 * var-tracking.c (struct micro_operation_def): Document that,
2130 for modify micro operations, insn is the subsequent instruction.
2131 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
2132 (var_reg_set, var_mem_set): ... new functions.
2133 (add_stores): Record subsequent insn.
2134 (compute_bb_dataflow): Use new functions for MO_USE.
2135 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
2136 notes after the insn, and modify notes before the insn known
2137 to be the subsequent one.
2138 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
2139
2140 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
2141
2142 PR target/27696
2143 * config/i386/i386.c (ix86_expand_builtin): Use
2144 gen_sse3_monitor64 for TARGET_64BIT.
2145
2146 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2147
2148 PR rtl-optimization/26375
2149 PR rtl-optimization/26855
2150 * df-problems (df_ru_bb_local_compute_process_def): Removed update
2151 to gen set.
2152 (df_ru_bb_local_compute): Reversed statements and removed bogus
2153 comment explaining why they should be in wrong order.
2154 (df_ru_dump, df_rd_dump): Enhanced debug info.
2155 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
2156 debug info.
2157 * ddg.c (add_deps_for_def): Converted use of reaching defs to
2158 reaching uses and fixed space problem.
2159
2160 2006-05-23 Jan Hubicka <jh@suse.cz>
2161
2162 * cgraphunit.c (decide_is_function_needed): Also nested functions
2163 and functions declared inline can be optimized out at -O0.
2164
2165 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
2166
2167 * doc/install.texi (Configuration): Remove reference to CrossGCC
2168 FAQ which was gone.
2169 (Building): Ditto.
2170
2171 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
2172
2173 PR target/27266
2174 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
2175 ix86_compare_emitted is non-NULL.
2176
2177 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2178
2179 PR c++/27451
2180 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
2181 clobbers.
2182
2183 2006-05-22 Richard Sandiford <richard@codesourcery.com>
2184
2185 PR rtl-optimization/25514
2186 * combine.c (replaced_rhs_insn): New variable.
2187 (combine_instructions): Set replaced_rhs_insn when trying to replace
2188 a SET_SRC with a REG_EQUAL note.
2189 (distribute_notes): Use replaced_rhs_insn when determining the live
2190 range of a REG_DEAD register.
2191
2192 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
2193 Anatoly Sokolov <aesok@post.ru>
2194
2195 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
2196 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
2197 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
2198 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
2199 atmega3290, atmega649, atmega6490, atmega406, atmega640,
2200 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
2201 at90usb647, at90usb1286 and at90usb1287 devices.
2202 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2203 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2204
2205 2006-05-22 Richard Sandiford <richard@codesourcery.com>
2206
2207 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
2208
2209 2006-05-22 Richard Guenther <rguenther@suse.de>
2210
2211 Revert
2212 2006-01-31 Richard Guenther <rguenther@suse.de>
2213 Paolo Bonzini <bonzini@gnu.org>
2214
2215 * doc/install.texi (--disable-libgcc-math): Document.
2216
2217 2006-05-22 Richard Guenther <rguenther@suse.de>
2218
2219 Revert
2220 2006-01-31 Richard Guenther <rguenther@suse.de>
2221
2222 * doc/invoke.texi (-msselibm): Document.
2223 * target.h (expand_library_builtin): New target hook.
2224 * builtins.c (expand_builtin): Use expand_library_builtin.
2225 (default_expand_library_builtin): New function.
2226 * gcc.c (LINK_GCC_MATH_SPEC): Define.
2227 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
2228 (link_gcc_math_spec): Declare.
2229 (static_specs): Add link_gcc_math_spec.
2230 * expr.h (default_expand_library_builtin): Declare.
2231 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
2232 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
2233 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
2234 * config/i386/i386.opt (msselibm): New target option.
2235 * config/i386/i386.c (ix86_builtin_function_variants): New array.
2236 (ix86_init_sse_abi_builtins): New function.
2237 (ix86_expand_library_builtin): Likewise.
2238 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
2239 (override_options): Handle error conditions wrt -msselibm.
2240 (ix86_builtins): Add function codes for SSE2 ABI builtins.
2241 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
2242 * doc/extend.texi (__builtin_sse2_*): Document new target specific
2243 builtins.
2244
2245 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2246
2247 PR c/27420
2248 * c-common.c (self_promoting_args_p): Skip erroneous args.
2249
2250 PR c/26818
2251 * c-decl.c (finish_struct): Skip erroneous fields.
2252
2253 2006-05-22 Nick Clifton <nickc@redhat.com>
2254
2255 * config/cris/cris.opt (march): Remove VarExists attribute.
2256 (max-stackframe=): Likewise.
2257
2258 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
2259
2260 * doc/rtl.texi: Fix a typo.
2261 * see.c: Fix comment typos.
2262
2263 * tree-ssa-structalias.h (alias_info): Remove num_references.
2264
2265 2006-05-21 Mike Stump <mrs@apple.com>
2266
2267 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
2268 (BAD2): Add.
2269 (darwin_pragma_options): Use BAD instead.
2270 (darwin_pragma_unused): Likewise.
2271 (darwin_pragma_ms_struct): Likewise.
2272
2273 2006-05-21 David Edelsohn <edelsohn@gnu.org>
2274
2275 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
2276
2277 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
2278
2279 PR rtl-optimization/27671
2280 * simplify-rtx.c (simplify_relational_operation_1): Fix
2281 simplifications of (eq/ne (xor x y) y) and
2282 (eq/ne (xor x y) x).
2283
2284 PR tree-optimization/26622.
2285 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
2286 on arg1.
2287
2288 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
2289
2290 * tree-cfg.c: Prune whitespace.
2291 (debug_tree_cfg): Point to correct header containing the
2292 TDF_* defines.
2293
2294 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
2295
2296 PR middle-end/25776
2297 * cgraphunit.c (verify_cgraph_node): Typo in error message.
2298
2299 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
2300
2301 PR middle-end/25776
2302 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
2303 or sorry count is non zero.
2304
2305 2006-05-20 Andreas Schwab <schwab@suse.de>
2306
2307 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
2308
2309 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
2310 Kenneth Zadeck <zadeck@naturalbridge.com>
2311
2312 PR rtl-optimization/26855
2313
2314 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
2315 multiword refs.
2316 (df_scan_alloc): Added code to properly handle multiword hard
2317 registers and add all_blocks parameter.
2318 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
2319 code to properly handle multiword hard registers.
2320 (df_rescan_blocks): Added code to remove deleted blocks from
2321 bitmap.
2322 (df_ref_create_structure, df_ref_record): Added code to properly
2323 handle subregs.
2324 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
2325 and set DF_REF_PARTIAL.
2326 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
2327 (df_uses_record): Added DF_REF_PARTIAL for subreg.
2328 (df_scan_add_problem): Added flags parameter.
2329 (df_ref_create_structure): Changed switching structure.
2330 (df_bb_refs_record): Fixed case where duplicate artificial refs
2331 were created. Changed location of flags.
2332 (df_record_entry_block_defs): Added code to make stack pointer
2333 live in entry block. Refined cases where frame pointer is needed.
2334 Changed location of flags.
2335 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
2336 (df_set_state): Removed function.
2337 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
2338 df_insn_create_insn_record, df_insn_refs_delete,
2339 df_ref_create_structure): Formatting changes.
2340 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
2341 df_delete_basic_block): New function.
2342 (df_init): Changed location of flags.
2343 (df_add_problem): Added flags parameter and the way flags are
2344 processed.
2345 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
2346 debug_df_chain): Improved debugging output.
2347 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
2348 (df_refs_chain_dump): Removed df parameter.
2349 (df_iterative_dataflow): Added consistency check.
2350 (df_prune_to_subcfg): Made public.
2351 (df_analyze_problem): Added blocks_to_init parameter and made
2352 public.
2353 (df_ref_record, df_bb_refs_record, df_mark_reg,
2354 df_record_exit_block_uses): Whitespace changes.
2355 (df_dump): Whitespace changes.
2356 * df.h: Some reordering to remove forward references.
2357 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
2358 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
2359 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
2360 (dataflow.flags): New field.
2361 (df.flag): Deleted field.
2362 (df_alloc_function): Added additional bitmap parameter.
2363 (df_dependent_problem_function): New type.
2364 (df_problem.changeable_flags): New field.
2365 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
2366 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
2367 (df_mw_hardreg): New struct.
2368 (DF_INSN_UID_MWS): New macro.
2369 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
2370 parameter.
2371 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
2372 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
2373 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
2374 (df_set_state): Removed function.
2375 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
2376 * df-problems.c (df_chain_dump): Removed df parameter.
2377 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
2378 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
2379 parameter.
2380 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
2381 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
2382 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
2383 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
2384 DF_REF_MUST_CLOBBER cases.
2385 (df_ru_bb_local_compute_process_def,
2386 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
2387 df_lr_bb_local_compute, df_ur_bb_local_compute,
2388 df_chain_create_bb): Made subreg aware.
2389 (df_ru_bb_local_compute, df_rd_bb_local_compute,
2390 df_lr_bb_local_compute, df_lr_bb_local_compute,
2391 df_chain_create_bb): Cleanup to use proper macros.
2392 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
2393 code to fixup bitvectors.
2394 (df_ri_alloc): Cleared lifetime.
2395 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
2396 df_create_unused_note): New function.
2397 (df_ri_bb_compute, df_ri_compute): Added code to create/update
2398 REG_DEAD and REG_UNUSED notes as well as register information.
2399 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
2400 df_chains_dump): Fixed crash if problem was never run.
2401 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
2402 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
2403 df_ri_add_problem): Processes flags in uniform manner.
2404 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
2405 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
2406 df_rd_dump, df_urec_free_bb_info): Formatting changes.
2407 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
2408 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
2409 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
2410 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
2411 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
2412 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
2413 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
2414 * see.c (see_initialize_data): Ditto.
2415 * final.c (rest_of_clean_state) Added regstack_completed.
2416 * rtl.h (regstack_completed): Ditto.
2417 * reg-stack.c (regstack_completed): Ditto.
2418
2419 2006-05-19 Mike Stump <mrs@apple.com>
2420
2421 * c-tree.h (default_conversion): Remove.
2422 * c-common.h (default_conversion): Add.
2423
2424 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
2425
2426 * tree-vrp.c (valid_value_p): New function.
2427 (adjust_range_with_scev): Fail if the value of bound is not
2428 simple.
2429
2430 2006-05-19 Richard Sandiford <richard@codesourcery.com>
2431
2432 * config/mips/linux-unwind.h: Include <asm/unistd.h>
2433 (mips_fallback_frame_state): Use syscall numbers to determine
2434 the appropriate li instruction for the current ABI. Only use
2435 __NR_sigreturn for o32.
2436
2437 2006-05-19 Nicolas Setton <setton@adacore.com>
2438
2439 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
2440 * langhooks.c (lhd_dwarf_name): New function.
2441 * langhooks-def.h (lhd_dwarf_name): Declare.
2442 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
2443 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
2444 * ada/misc.c (gnat_dwarf_name): New function.
2445 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
2446
2447 2006-05-19 Richard Sandiford <richard@codesourcery.com>
2448
2449 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
2450 libgcc2.h.
2451 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
2452 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
2453 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
2454 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
2455 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
2456 determine the size of Wtype, etc.
2457 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
2458 (swfloatfuncs): New variable.
2459 (dwfloatfuncs): Likewise.
2460 (lib2funcs): Remove floating-point conversion functions from
2461 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
2462 the set of conversion routines needed. Allow entries to specify
2463 an object name, filename and word size. Update users accordingly.
2464 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
2465 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
2466
2467 Revert:
2468
2469 2006-02-08 Roger Sayle <roger@eyesopen.com>
2470
2471 PR target/22209
2472 * config/fixtfdi.c: New libgcc source file.
2473 * config/fixunstfdi.c: New source file.
2474 * config/floatditf.c: New source file.
2475 * config/floatunditf.c: New souce file.
2476 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
2477 files above instead of config/mips/_tilib.c.
2478 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
2479
2480 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2481
2482 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
2483 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
2484
2485 2006-05-18 Mike Stump <mrs@apple.com>
2486
2487 Fix up vla, vm and [*] sematics.
2488
2489 PR c/18740
2490 PR c/7948
2491 PR c/25802
2492 PR c/27673
2493 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
2494 (c_vla_unspec_p): Add.
2495 (c_vla_type_p): Add.
2496 * c-decl.c (struct c_scope): Add had_vla_unspec.
2497 (build_array_declarator): Add support for [*].
2498 (grokdeclarator): Likewise.
2499 (grokparms): Likewise.
2500 (get_parm_info): Likewise.
2501 * c-objc-common.c (c_vla_unspec_p): Likewise.
2502 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
2503 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
2504 typeof when argument is a variably modified type not inside sizeof or alignof.
2505 (c_parser_direct_declarator_inner): Propagate errors.
2506 (c_parser_sizeof_expression): Add support for [*].
2507 (c_parser_parms_declarator): Initialize had_vla_unspec.
2508 (c_parser_parms_list_declarator): Likewise.
2509 * c-typeck.c (c_vla_type_p): Add.
2510 (composite_type): Add support for vla compositing.
2511 (comptypes_internal): Add support for vla compatibility.
2512 (c_expr_sizeof_expr): Evaluate vla arguments.
2513 * tree.c (variably_modified_type_p): Update comment for [*].
2514
2515 2006-05-18 Michael Matz <matz@suse.de>
2516
2517 PR target/27599
2518 * config.host: Make assignments to host_xmake_file cumulative.
2519 * config.host (*-darwin*): Test $host, not $target.
2520
2521 2006-05-12 Stuart Hastings <stuart@apple.com>
2522
2523 * config/i386/i386.opt (-mstackrealign): New flag.
2524 * config/i386/i386.c (force_align_arg_pointer): New attribute.
2525 (ix86_handle_cconv_attribute): Emit error when
2526 force_align_arg_pointer attribute collides with too many regparms.
2527 (ix86_function_regparm): Limit regparms when used with
2528 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
2529 Support stack-realigning prologue in non-main functions. Emit
2530 warning for nested functions under -mstackrealign, emit error for
2531 nested functions with force_align_arg_pointer attribute.
2532 * doc/extend.texi (force_align_arg_pointer): Document it.
2533 * doc/invoke.texi (-mstackrealign): Document it.
2534
2535 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
2536
2537 PR rtl-optimization/27477
2538 * combine.c (try_combine): Don't split a parallel consisting
2539 of two sets into two individual sets if both sets reference
2540 cc0.
2541
2542 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
2543
2544 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
2545 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
2546
2547 * doc/options.texi (VarExists): Updated.
2548
2549 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2550
2551 * unwind-dw2.c: Add declarations for uw_update_context and
2552 uw_frame_state_for.
2553 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
2554 detected, advance frame state and context once to skip over stub.
2555
2556 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
2557
2558 PR middle-end/20256
2559 PR middle-end/26435
2560 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
2561 Call rewrite_into_loop_closed_ssa only when something changed.
2562 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
2563 * lambda-code.c (can_convert_to_perfect_nest): Declared.
2564 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
2565 Test for perfect_nest_p here. Fix formating.
2566 (replace_uses_equiv_to_x_with_y): Fix formating.
2567 (stmt_uses_op): Removed.
2568 (can_convert_to_perfect_nest): Removed loopivs parameter.
2569 Complete the test by checking the scalar dependences.
2570 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
2571 Fix formating.
2572
2573 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
2574
2575 PR bootstrap/22541
2576 From Dan Kegel <dank@kegel.com>:
2577 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
2578
2579 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
2580
2581 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
2582 if the element type is variably modified without recursing.
2583
2584 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
2585
2586 PR middle-end/27332
2587 * tree-loop-linear.c (try_interchange_loops): Test for
2588 no data dependences.
2589
2590 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
2591
2592 PR tree-optimization/27548
2593 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
2594 range of ssa names that appear on abnormal edges.
2595 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
2596 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
2597
2598 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
2599
2600 PR middle-end/27620
2601 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
2602
2603 2006-05-17 Jakub Jelinek <jakub@redhat.com>
2604
2605 PR middle-end/27415
2606 * tree.h (OMP_PARALLEL_COMBINED): Define.
2607 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
2608 (new_omp_context): Add is_combined_parallel argument.
2609 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
2610 new_omp_context caller.
2611 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
2612 Adjust gimplify_scan_omp_clauses callers.
2613 (omp_is_private): Issue errors if iteration variable is firstprivate
2614 or reduction in the current context.
2615 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
2616 on combined parallel workshare constructs.
2617
2618 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2619
2620 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
2621 (gcc-options.o): New rule.
2622
2623 * optc-gen.awk: Protect variables for gcc-options.o with
2624 #ifdef GCC_DRIVER/#endif.
2625
2626 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
2627
2628 Fix PR tree-optimization/27373
2629 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
2630 (forward_propagate_addr_expr): Update call.
2631
2632 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2633
2634 * doc/options.texi: Move the Negative option.
2635
2636 2006-05-16 Richard Guenther <rguenther@suse.de>
2637
2638 PR tree-optimization/22303
2639 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
2640 from STRING_CSTs.
2641 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
2642 ccp_fold did not simplify the statement.
2643
2644 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2645
2646 PR driver/26885
2647 * Makefile.in (GCC_OBJS): New.
2648 (OBJS-common): Add opts-common.o.
2649 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
2650 (cpp$(exeext)): Likewise.
2651 (gcc.o): Also depend on opts.h.
2652 (opts-common.o): New.
2653
2654 * common.opt (gcoff): Add Negative(gdwarf-2).
2655 (gdwarf-2): Add Negative(gstabs).
2656 (gstabs): Add Negative(gstabs+).
2657 (gstabs+): Add Negative(gvms).
2658 (gvms): Add Negative(gxcoff).
2659 (gxcoff): Add Negative(gxcoff+).
2660 (gxcoff+): Add Negative(gcoff).
2661 * config/i386/i386.opt (m32): Add Negative(m64).
2662 (m64): Add Negative(m32).
2663
2664 * doc/options.texi: Document the Negative option.
2665
2666 * gcc.c: Include "opts.h".
2667 (main): Call prune_options after expandargv.
2668
2669 * optc-gen.awk: Generate common declarations for all flag
2670 variables in options.c. Output the neg_index field.
2671
2672 * opts.c (find_opt): Moved to ...
2673 * opts-common.c: Here. New file.
2674
2675 * opts.h (cl_option): Add a neg_index field.
2676 (find_opt): New.
2677 (prune_options): Likewise.
2678
2679 2006-05-16 Jakub Jelinek <jakub@redhat.com>
2680
2681 PR middle-end/27573
2682 * omp-low.c (expand_omp_parallel): Don't assert
2683 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
2684 instead search for it.
2685
2686 PR c/27499
2687 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
2688 is signed.
2689
2690 2006-05-16 Andreas Schwab <schwab@suse.de>
2691
2692 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
2693 defmac.
2694
2695 2006-05-15 Roger Sayle <roger@eyesopen.com>
2696
2697 PR target/26600
2698 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
2699 integer constants other than zero are only legitimate on TARGET_64BIT.
2700 <CONST_VECTOR> Only zero vectors are legitimate.
2701 (ix86_cannot_force_const_mem): Integral and vector constants can
2702 always be put in the constant pool.
2703
2704 2006-05-16 DJ Delorie <dj@redhat.com>
2705
2706 * crtstuff.c (__dso_handle): Set section from
2707 TARGET_LBIGCC_SDATA_SECTION if defined.
2708 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
2709 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
2710
2711 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
2712
2713 PR target/27599
2714 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
2715 host_xmake_file.
2716
2717 2006-05-16 Ben Elliston <bje@au.ibm.com>
2718
2719 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
2720
2721 2006-05-15 Per Bothner <per@bothner.com>
2722
2723 * tree.c: (last_annotated_node): Use source_locus typedef.
2724 This permits bootstrapping with --enable-mapped-location.
2725
2726 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
2727
2728 PR tree-optimization/26830
2729 * tree-into-ssa.c (struct ssa_name_info): Add age field.
2730 (info_for_ssa_name, current_info_for_ssa_name_age,
2731 blocks_to_update): New variables.
2732 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
2733 (clear_ssa_name_info, initialize_flags_in_bb,
2734 mark_block_for_update): New functions.
2735 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
2736 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
2737 prepare_def_site_for): Use mark_block_for_update.
2738 (mark_def_interesting): Assert that the processed block is marked in
2739 blocks_to_update. Do not take blocks argument.
2740 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
2741 argument.
2742 (rewrite_update_init_block, rewrite_update_stmt): Only process
2743 blocks with statements to rewrite.
2744 (delete_update_ssa): Do not clear SSA_NAME_AUX.
2745 (update_ssa): Initialize and free blocks_to_update. Do not
2746 clear flags on statements. Do not use blocks bitmap.
2747 * tree.h (SSA_NAME_AUX): Removed.
2748 (struct tree_ssa_name): Removed aux field.
2749 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
2750
2751 2006-05-15 Richard Guenther <rguenther@suse.de>
2752
2753 PR tree-optimization/27603
2754 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
2755 Do computations in original type.
2756
2757 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
2758
2759 * see.c: Code style changes such as redundant paranthesis,
2760 redundant intialization of local variables etc.
2761 (see_main): Declared now as static.
2762 * doc/invoke.texi: Update that -fsee is not enabled by
2763 default at -O3.
2764
2765 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2766
2767 * omp-low.c (check_omp_nesting_restrictions): New function.
2768 (scan_omp_1): Call it.
2769
2770 PR middle-end/27416
2771 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
2772 construct, return *VAR.
2773
2774 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
2775
2776 PR rtl-optimization/27406
2777 * bt-load.c (migrate_btr_def): Skip the block having abnormal
2778 edges.
2779
2780 2006-05-14 Roger Sayle <roger@eyesopen.com>
2781
2782 PR rtl-optimization/27538
2783 * combine.c (expand_compound_operation): Call gen_lowpart
2784 before calling simplify_shift_const.
2785
2786 2006-05-14 Roger Sayle <roger@eyesopen.com>
2787
2788 PR rtl-optimization/22563
2789 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
2790 a fixed width bitfield, always force the intermediates into psuedos.
2791
2792 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
2793
2794 PR 27501
2795 * mkconfig.sh: Use operator = instead of == for test.
2796
2797 2006-05-13 Nick Clifton <nickc@redhat.com>
2798
2799 * dwarf2out.c (dbx_reg_number): Check return value from
2800 LEAF_REG_REMAP and only use it if it is valid.
2801 (multiple_reg_loc_descriptor): Likewise.
2802
2803 2006-05-13 Richard Guenther <rguenther@suse.de>
2804
2805 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
2806 host_xmake_file.
2807
2808 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
2809
2810 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
2811 information attached to non-INSNs such as NOTEs.
2812 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
2813
2814 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
2815
2816 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
2817 On contraint.
2818 * config/s390/s390.md: Adjust comment describing On constraint.
2819
2820 2006-05-11 Jan Hubicka <jh@suse.cz>
2821
2822 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
2823 to be output at -O0.
2824
2825 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2826
2827 PR middle-end/27384
2828 * fold-const.c (size_binop): Move sanity check for arguments to
2829 the beginning of the function.
2830
2831 PR middle-end/27488
2832 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
2833 expression.
2834
2835 2006-05-11 Richard Guenther <rguenther@suse.de>
2836
2837 PR middle-end/27529
2838 * fold-const.c (fold_unary): Handle intermediate conversion
2839 to a pointer type like intermediate conversion to an integer
2840 type in folding of (T1)(T2)var to var.
2841 Match the code to the comment in the final conversion for
2842 (T1)(T2)var to (T1)var regarding to type precision. Rather
2843 than disallow T1 being of pointer type, assert that both T1
2844 and var are of pointer type or not. Make sure not to fall
2845 over the frontends lazyness wrt array to pointer decay though.
2846
2847 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
2848
2849 * arm.c (arm_struct_value_rtx): Delete.
2850 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
2851 (arm_init_cumulative_args): Always initialize nregs to zero.
2852
2853 2006-05-10 Richard Guenther <rguenther@suse.de>
2854
2855 PR tree-optimization/27532
2856 * tree-object-size.c (plus_expr_object_size): Fix typo.
2857
2858 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
2859
2860 PR target/24949
2861 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
2862 ashrdi_const, ashrdi3): Use a scratch register.
2863
2864 2006-05-10 Richard Guenther <rguenther@suse.de>
2865
2866 PR tree-optimization/27302
2867 * fold-const.c (operand_equal_p): For two comparisons,
2868 try comparison of one comparison code swapped if that yields
2869 the same code.
2870
2871 2006-05-10 Ben Elliston <bje@au.ibm.com>
2872
2873 * tree-pretty-print.c (pretty_print_string): No need to handle
2874 '\0' as a special character.
2875
2876 * tree.h: Include "hashtab.h".
2877 (iterative_hash_expr): Use hashval_t in its prototype.
2878 * Makefile.in (TREE_H): Add $(HASHTAB_H).
2879
2880 2006-05-09 Steve Ellcey <sje@cup.hp.com>
2881
2882 PR bootstrap/26872
2883 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
2884 (hppa*64*-*-hpux11*): Ditto.
2885 (hppa[12]*-*-hpux11*): Ditto.
2886
2887 2006-05-09 David Edelsohn <edelsohn@gnu.org>
2888
2889 PR target/26545
2890 * config/rs6000/aix41.h (TARGET_64BIT): Define.
2891
2892 2006-05-09 Michael Matz <matz@suse.de>
2893
2894 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
2895 host_extra_gcc_objs and host_xmake_file.
2896 (<*-*-linux*>): Don't overwrite host_xmake_file.
2897 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
2898 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
2899 (host_detect_local_cpu): Declare.
2900 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
2901 * config/i386/i386.c (override_options): Handle -mtune=native
2902 as -mtune=generic.
2903 * config/i386/x-i386: New file.
2904 * config/i386/driver-i386.c: New file.
2905 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
2906 cpu-type "native".
2907
2908 2006-05-09 Dirk Mueller <dmueller@suse.de>
2909 Richard Guenther <rguenther@suse.de>
2910
2911 PR middle-end/27498
2912 * fold-const.c (fold_read_from_constant_string): Relax check
2913 for matching types to matching modes.
2914
2915 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
2916
2917 PR rtl-optimization/27335
2918 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
2919 loops.
2920
2921 2006-05-08 Chao-ying Fu <fu@mips.com>
2922 Richard Sandiford <richard@codesourcery.com>
2923
2924 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
2925 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
2926 * config/mips/mips.md (UNSPEC_SCC): New constant.
2927 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
2928 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
2929 (mips_emit_compare): Use it.
2930 (mips_expand_vcondv2sf): New function.
2931
2932 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
2933
2934 Fix PR tree-optimization/27093
2935 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
2936 renaming when they become not-used_alone.
2937
2938 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2939
2940 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
2941 relocation and relocation stubs.
2942
2943 2006-05-08 Eric Christopher <echristo@apple.com>
2944
2945 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
2946 section for ppc.
2947
2948 2006-05-08 Jan Hubicka <jh@suse.cz>
2949
2950 PR middle-end/24561
2951 * cgraphunit.c (decide_is_function_needed): When not optimizing even
2952 unused static functions are needed.
2953
2954 2006-05-08 Roger Sayle <roger@eyesopen.com>
2955
2956 PR target/27158
2957 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
2958 of a reg_equiv_constant if the result is a legitimate constant.
2959
2960 2006-05-08 Uros Bizjak <uros@kss-loka.si>
2961
2962 PR target/27277
2963 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
2964 standard 80387 constants, raise the cost to prevent
2965 compress_float_constant() to generate load from memory.
2966
2967 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
2968
2969 * config/arm/constraints.md (c): Fix a typo.
2970
2971 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
2972 typos.
2973
2974 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
2975
2976 PR target/24879
2977 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
2978 inline function.
2979 (_mm_mwait): Likewise.
2980
2981 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
2982 "mwait".
2983 (sse3_monitor): Make it 32bit only.
2984 (sse3_monitor64): New. 64bit monitor.
2985
2986 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2987
2988 PR target/27421
2989 * config/i386/i386.c (classify_argument): Skip fields with invalid
2990 types.
2991
2992 2006-05-07 Richard Guenther <rguenther@suse.de>
2993
2994 PR tree-optimization/27409
2995 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2996 Do not try to find zero-sized subvars.
2997
2998 2006-05-07 Richard Guenther <rguenther@suse.de>
2999
3000 PR tree-optimization/27136
3001 * tree-ssa-loop-niter.c (get_val_for): Correct function
3002 comment, assert requirements.
3003 (loop_niter_by_eval): Stop processing if the iterated
3004 value did not simplify.
3005
3006 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
3007
3008 * opts.c (flag_see): remove its setting at -O3.
3009
3010 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
3011
3012 * genpeep.c (main): Make insn-peep.c depend on flags.h.
3013 * arm/constraints.md: New file.
3014 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
3015 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
3016 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
3017 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
3018 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
3019 (EXTRA_MEMORY_CONSTRAINT): Likewise.
3020 * arm.md: Include constraints.md.
3021 (thumb_movsi_insn): Use satisfies_constraint_J.
3022 (movhi, movqi): Use satisfies_constraint_I.
3023
3024 2006-04-29 Anatoly Sokolov <aesok@post.ru>
3025
3026 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
3027 for atmeg a645 device.
3028
3029 2006-05-06 Richard Guenther <rguenther@suse.de>
3030
3031 PR tree-optimization/27151
3032 * tree-vect-transform.c (vectorizable_condition): Punt on
3033 values that have a different type than the condition.
3034
3035 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
3036
3037 PR/21391
3038 * c-parser.c (c_parser_cast_expression): Only insert casts into
3039 hash table if pointer.
3040 * function.c (used_types_insert_helper): Rename from
3041 used_types_insert.
3042 (used_types_insert): Call used_types_insert_helper.
3043 * function.h (used_types_insert): Accept only one argument.
3044
3045 2006-05-05 David Edelsohn <edesohn@gnu.org>
3046
3047 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
3048 scratch with output modifier.
3049
3050 2006-05-04 David Edelsohn <edelsohn@gnu.org>
3051
3052 PR target/26481
3053 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
3054 with output modifier.
3055
3056 2006-05-04 Richard Sandiford <richard@codesourcery.com>
3057
3058 PR target/26765
3059 * config/mips/mips.c (mips_symbolic_address_p): Return true
3060 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
3061 SYMBOL_GOTTPREL, and SYMBOL_TLS.
3062
3063 2006-05-04 Richard Guenther <rguenther@suse.de>
3064
3065 PR tree-optimization/14287
3066 PR tree-optimization/14844
3067 PR tree-optimization/19792
3068 PR tree-optimization/21608
3069 PR tree-optimization/27090
3070 * tree-ssa-pre.c (try_combine_conversion): New function.
3071 (compute_avail): After constructing the value-handle
3072 expression, use try_combine_conversion to combine NOP_EXPRs
3073 with previous value-handle expressions and use the result if it
3074 is available.
3075
3076 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
3077
3078 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
3079
3080 2006-05-04 Jan Hubicka <jh@suse.cz>
3081
3082 PR middle-end/25962
3083 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
3084
3085 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
3086
3087 * config/bfin/predicates.md (const01_rtx): Tell generator programs
3088 that this only matches CONST_INTs. All users changed to VOIDmode
3089 operands.
3090
3091 * config/bfin/bfin.c: Include "optabs.h".
3092 (bfin_rtx_costs): Some costs for vector operations, to allow combine
3093 to do more work.
3094 (enum bfin_builtins): Add a number of fractional and vector builtins.
3095 (bfin_init_builtins): Likewise.
3096 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
3097 (safe_vector_operand, bfin_expand_binop_builtin,
3098 bfin_expand_unop_builtin): New functions.
3099 (bfin_expand_builtin): Handle the new builtins.
3100 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3101 __ADSPBLACKFIN__.
3102
3103 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
3104
3105 * see.c: New file.
3106 * Makefile.in (OBJS-common): Add see.o.
3107 (see.o): Add dependencies.
3108 * common.opt (fsee): New flag for the see optimization was added.
3109 * opts.c (flag_see): Initialized.
3110 * passes.c (init_optimization_passes, pass_see): New pass.
3111 * rtl.h (see_main): Declaration as extern.
3112 * timevar.def (TV_SEE): New.
3113 * tree-pass.h (pass_see): Declaration as extern.
3114 * invoke.texi (-fsee): Document.
3115 * recog.c (validate_simplify_insn): New function.
3116 * recog.h (validate_simplify_insn): Declaration as extern.
3117 * df-problems.c (df_chain_dump): Check for NULL.
3118
3119 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
3120 Daniel Berlin <dberlin@dberlin.org>
3121
3122 * cfgrtl.c (insert_insn_bb_end_new): New function.
3123 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
3124
3125 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
3126
3127 * df.h (struct web_entry): Moved from web.c.
3128 (union_defs): Declaration as extern.
3129 (unionfind_root): Likewise.
3130 (unionfind_union): Likewise.
3131 * web.c (struct web_entry): Moved to df.h.
3132 (unionfind_root): Remove static declaration.
3133 (unionfind_union): Likewise.
3134 (union_defs): Likewise and generalize to use callback function.
3135 (web_main): Update arguments for union_defs function call.
3136
3137 2006-05-04 Richard Guenther <rguenther@suse.de>
3138
3139 PR tree-optimization/26447
3140 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
3141 produce SSA_NAME copies before the store stmt to avoid
3142 breaking exception handling.
3143
3144 2006-05-04 Jakub Jelinek <jakub@redhat.com>
3145
3146 PR middle-end/27388
3147 * gimplify.c (omp_is_private): If var is shared in some outer context,
3148 return false instead of true. Stop searching on parallel context
3149 boundary.
3150
3151 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
3152
3153 PR java/8260
3154 * coverage.c: Use get_gcov_unsigned_t() instead of
3155 unsigned_type_node all over.
3156
3157 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
3158
3159 PR tree-optimization/27381
3160 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
3161 maintain the same immediate_use links.
3162 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
3163 node rather than segfaulting.
3164
3165 2006-05-03 Jakub Jelinek <jakub@redhat.com>
3166
3167 PR fortran/27395
3168 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
3169 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
3170 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
3171
3172 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
3173
3174 Fix PR tree-optimization/26626
3175 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
3176 always.
3177 * tree-ssa-operands.c (access_can_touch_variable): Allow
3178 typecasting through union pointers.
3179
3180 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3181
3182 PR c++/26943
3183 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
3184 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
3185 to find if var will be a global variable even in the nested context.
3186 (omp_copy_decl): Only check for global variable at the end, it might
3187 be overridden in outer contexts.
3188 (scan_sharing_clauses): For global variables don't create a field.
3189 (lower_rec_input_clauses): Do nothing for global shared variables.
3190 Emit a barrier at the end of ILIST if there were any decls in both
3191 firstprivate and lastprivate clauses.
3192 (lower_send_clauses): Do nothing for global variables except for
3193 COPYIN.
3194
3195 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
3196
3197 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
3198 of the correct signedness is returned.
3199
3200 2006-05-02 Jeff Law <law@redhat.com>
3201
3202 PR tree-optimization/27364
3203 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
3204 multiply expressions.
3205
3206 2006-05-02 Tom Tromey <tromey@redhat.com>
3207
3208 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
3209
3210 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
3211
3212 PR target/27387
3213 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
3214 -mthumb -fPIC are used.
3215
3216 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
3217 Joshua Kinard <kumba@gentoo.org>
3218
3219 PR target/25871
3220 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
3221 with 64-bit pointers.
3222
3223 2006-05-02 Paul Brook <paul@codesourcery.com>
3224
3225 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
3226 and pool overlap.
3227 (create_fix_barrier): Check that a suitable barrier location is
3228 found.
3229 (arm_reorg): Include ftmp->address in allowable range of addresses.
3230
3231 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
3232
3233 PR ada/27366
3234 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
3235 on Cygwin.
3236
3237 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3238
3239 PR middle-end/27337
3240 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
3241 around RESULT_DECL for result passed by reference.
3242 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
3243 * omp-low.c (use_pointer_for_field): Don't look at
3244 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
3245 (scan_omp_1): Call remap_decl on RESULT_DECLs.
3246 (lower_rec_input_clauses): Don't allocate VLA memory for the second
3247 time or var for passing by reference for
3248 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
3249 TREE_ADDRESSABLE variables when passing by reference.
3250
3251 * omp-low.c (dump_omp_region): Fix output formatting.
3252
3253 PR middle-end/27328
3254 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
3255 (expand_omp_parallel): Likewise.
3256 * tree-cfg.c (move_sese_region_to_fn): Likewise.
3257
3258 PR middle-end/27325
3259 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
3260 on statement list containing also constructors and destructors.
3261 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
3262
3263 PR middle-end/27310
3264 * except.c (duplicate_eh_regions): Fix clearing of
3265 cfun->eh->region_array entries.
3266
3267 2006-05-01 DJ Delorie <dj@redhat.com>
3268
3269 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
3270 build!=host.
3271 (gcc_cv_objdump): Likewise.
3272 * configure: Regenerated.
3273
3274 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
3275
3276 PR target/27374
3277 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
3278 templates for case 3 and 4.
3279
3280 2006-05-01 DJ Delorie <dj@redhat.com>
3281
3282 * vec.c: Include bconfig.h when appropriate.
3283 * Makefile.in (build/vec.o): Adjust dependencies.
3284 * mkconfig.sh: Make sure config.h isn't used for build machine
3285 compiles.
3286
3287 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3288
3289 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
3290 variables.
3291 (mark_phi_for_rewrite): New function.
3292 (insert_phi_nodes_for, mark_use_interesting): Call
3293 mark_phi_for_rewrite.
3294 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
3295 (update_ssa): Initialize and free phis_to_rewrite.
3296
3297 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3298
3299 PR rtl-optimization/27291
3300 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
3301 folded to a constant.
3302
3303 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3304
3305 PR tree-optimization/27283
3306 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
3307 not whole # of iteration descriptions.
3308 (niter_for_exit): Return just # of iterations. Fail if # of iterations
3309 uses abnormal ssa name.
3310 (niter_for_single_dom_exit): Ditto.
3311 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
3312 return just the number of iterations.
3313
3314 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
3315
3316 PR tree-optimization/27144
3317 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
3318 (record_estimate): Only record constant upper bound.
3319 (infer_loop_bounds_from_undefined): Call
3320 compute_estimated_nb_iterations just once.
3321 (proved_non_wrapping_p): Renamed to ...
3322 (n_of_executions_at_most): ... this. Expect bound to be a constant.
3323 (convert_step_widening, scev_probably_wraps_p): Call
3324 n_of_executions_at_most instead of proved_non_wrapping_p.
3325 (substitute_in_loop_info): Do not replace values in bounds.
3326 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
3327 comments.
3328
3329 2006-05-01 Richard Henderson <rth@redhat.com>
3330
3331 PR c/27358
3332 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
3333 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
3334 CPP_PRAGMA.
3335
3336 2006-05-01 Roger Sayle <roger@eyesopen.com>
3337
3338 * c-typeck.c (parser_build_binary_op): Don't call the function
3339 unsigned_conversion_warning to spot operand/result type overflow.
3340 (build_binary_op): Instead, call convert_and_check instead of
3341 convert to report the problem when the operands are promoted.
3342 * c-common.c (unsigned_conversion_warning): Make static.
3343 * c-common.h (unsigned_conversion_warning): Delete prototype.
3344
3345 2006-05-01 Richard Guenther <rguenther@suse.de>
3346
3347 PR tree-optimization/26726
3348 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
3349 problem ...
3350 (find_interesting_uses_address): ... we work around here
3351 by folding INDIRECT_REFs in the substituted base.
3352
3353 2006-05-01 Diego Novillo <dnovillo@redhat.com>
3354
3355 * omp-low.c (dump_omp_region): Add newlines.
3356
3357 2006-04-30 Roger Sayle <roger@eyesopen.com>
3358
3359 * common.opt (Woverflow): New command line option.
3360 * c-common.c (constant_expression_warning): Check warn_overflow.
3361 (overflow_waring): Pass OPT_Woverflow to warning.
3362 (unsigned_conversion_warning): Likewise.
3363 (convert_and_check): Likewise.
3364 * doc/invoke.texi: Document new command line option.
3365
3366 2006-04-30 David Edelsohn <edelsohn@gnu.org>
3367
3368 * config/rs6000/rs6000.c (rs6000_override_options): Enable
3369 TARGET_NO_FP_IN_TOC for section anchors.
3370 (optimization_options): Enable section anchors for all
3371 non-"Objective" languages.
3372
3373 2006-04-28 Eric Christopher <echristo@apple.com>
3374
3375 * config/darwin-c.c (darwin_ms_struct): Move this
3376 (darwin_set_default_type_attributes): and this...
3377 * config/darwin.c: ... here.
3378 * config/darwin.h (darwin_ms_struct): Declare.
3379
3380 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
3381
3382 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
3383
3384 2006-04-28 Roger Sayle <roger@eyesopen.com>
3385
3386 PR c/25309
3387 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
3388 (push_array_bounds): Delete prototype. Change BOUNDS argument to
3389 an unsigned HOST_WIDE_INT.
3390 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
3391 array index.
3392 (really_start_incremental_init): No need to call convert because
3393 bitsize_zero_node is already of type bitsizetype.
3394 (push_init_level): Extract the value of constructor_index as an
3395 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
3396 (process_init_element): Likewise.
3397
3398 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
3399
3400 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
3401 value before passing to make_relative_prefix.
3402
3403 2006-04-28 Alan Modra <amodra@bigpond.net.au>
3404
3405 PR middle-end/27260
3406 * builtins.c (expand_builtin_memset): Expand val in original mode.
3407
3408 2006-04-27 Eric Christopher <echristo@apple.com>
3409
3410 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
3411 with #ifndef/#endif.
3412 * config/darwin-c.c (darwin_ms_struct): New.
3413 (darwin_pragma_ms_struct): Ditto.
3414 (darwin_set_default_type_attributes): Ditto.
3415 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
3416 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
3417 Register ms_struct pragma.
3418 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
3419 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
3420 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
3421 darwin_set_default_type_attributes if TARGET_MACHO.
3422
3423 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
3424
3425 PR tree-optimization/26854
3426 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
3427 * doc/tree-ssa.texi: Update immuse iterator documentation.
3428 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
3429 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
3430 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
3431 first_safe_imm_use, next_safe_imm_use): Remove.
3432 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
3433 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
3434 (move_use_after_head): New. Helper function to sort immuses in a stmt.
3435 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
3436 (first_imm_use_stmt): New. Get first stmt in an immuse list.
3437 (next_imm_use_stmt): New. Get next stmt in an immuse list.
3438 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
3439 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
3440 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
3441 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
3442 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
3443 (perfect_nestify): Use new iterator.
3444 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
3445 iterator.
3446 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
3447 (next_imm_name): New field in struct immediate_use_iterator_d.
3448 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
3449 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
3450 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
3451 * tree-cfg.c (replace_uses_by): Use new iterator.
3452 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
3453 * tree-ssa-operands.c (correct_use_link): Remove.
3454 (finalize_ssa_use_ops): No longer call correct_use_link.
3455
3456 2006-04-27 Stuart Hastings <stuart@apple.com>
3457
3458 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
3459 * config/t-darwin (crt3.o): Use it.
3460 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
3461 'pmode', use Pmode instead of SImode for SYMBOL_REF.
3462 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
3463 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
3464 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
3465 support.
3466
3467 2006-04-27 Roger Sayle <roger@eyesopen.com>
3468
3469 * expmed.c (store_fixed_bit_field): If we're not optimizing for
3470 size, force the intermediate into a new pseudo rather instead of
3471 performing both a bitwise AND and a bitwise IOR in memory.
3472
3473 2006-04-27 Richard Guenther <rguenther@suse.de>
3474
3475 PR rtl-optimization/26685
3476 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
3477 this one "max-flow-memory-locations".
3478
3479 2006-04-27 Richard Guenther <rguenther@suse.de>
3480
3481 PR tree-optimization/25148
3482 * tree-vrp.c (compare_values): Remove code dealing with
3483 comparisons against type min/max value. Honour overflow
3484 and negative constants in code dealing with comparisons
3485 of plus and minus expressions.
3486 (value_inside_range): Use fold_binary with LE_EXPR and
3487 GE_EXPR rather than compare_values.
3488
3489 2006-04-27 Dirk Mueller <dmueller@suse.de>
3490
3491 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
3492 prototype for SSE.
3493
3494 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
3495
3496 * basic-block.h (safe_insert_insn_on_edge): Removed.
3497 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
3498
3499 2006-04-26 David Edelsohn <edelsohn@gnu.org>
3500 Paolo Bonzini <bonzini@gnu.org>
3501
3502 PR middle-end/27282
3503 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
3504 (simplify_and_const_int): Same.
3505
3506 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
3507
3508 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
3509
3510 2006-04-26 Jakub Jelinek <jakub@redhat.com>
3511
3512 PR c/26171
3513 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
3514 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
3515 cgraph_global_info_ready.
3516
3517 PR middle-end/26913
3518 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
3519
3520 PR c/25996
3521 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
3522 either decl or init is error_mark_node.
3523
3524 PR middle-end/25989
3525 * tree-flow.h (struct omp_region): Add sched_kind.
3526 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
3527 instead of extracting omp for data.
3528 (expand_omp_for): Save extracted sched_kind.
3529
3530 2006-04-25 Roger Sayle <roger@eyesopen.com>
3531
3532 * expmed.c (store_bit_field): Also check whether the bitsize is
3533 valid for the machine's "insv" instruction before moving the
3534 target into a pseudo for use with the insv.
3535 * config/i386/predicates.md (const8_operand): New predicate.
3536 * config/i386/i386.md (extv, extzv, insv): Use the new
3537 const8_operand predicate where appropriate.
3538
3539 2006-04-25 DJ Delorie <dj@redhat.com>
3540
3541 * doc/install.texi (Specific): Clarify that this is not a list of
3542 supported hosts or targets.
3543
3544 2006-04-25 Richard Sandiford <richard@codesourcery.com>
3545
3546 PR rtl-optimization/26725
3547 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
3548 block's BB_DIRTY flag.
3549
3550 2006-04-25 Geoffrey Keating <geoffk@apple.com>
3551
3552 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
3553 are no branches.
3554
3555 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
3556 to print an integer.
3557
3558 2006-04-25 David Edelsohn <edelsohn@gnu.org>
3559
3560 * varasm.c (align_variable): New function.
3561 (get_block_for_decl): Apply align_variable to DECL before
3562 calculating section information.
3563 (assemble_variable): Split out alignment computation.
3564
3565 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
3566
3567 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
3568 machines.
3569
3570 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
3571
3572 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
3573 MODE_PARTIAL_INT mode.
3574 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
3575 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
3576 for CONST_INTs.
3577 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
3578 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
3579 V2PDImode.
3580 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
3581 New predicates.
3582 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
3583 New constants.
3584 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
3585 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
3586 MACFLAG_IH): Likewise.
3587 (movstricthi_1): Renamed from "*movstricthi".
3588 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
3589 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
3590 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
3591 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
3592 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
3593 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
3594 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
3595 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
3596 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
3597 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
3598 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
3599 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
3600 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
3601 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
3602 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
3603
3604 * doc/rtl.texi (ss_ashift): Improve wording.
3605
3606 2006-04-24 Geoffrey Keating <geoffk@apple.com>
3607
3608 * dwarf2out.c (verify_marks_clear): New.
3609 (prune_unused_types): Call verify_marks_clear initially, not
3610 prune_unmark_dies.
3611
3612 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
3613
3614 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
3615 * doc/rtl.texi: Document them.
3616 * simplify-rtx.c (simplify_unary_operation,
3617 simplify_binary_operation_1): Don't abort when we see them.
3618
3619 2006-04-24 Mark Mitchell <mark@codesourcery.com>
3620
3621 Revert:
3622 2006-04-23 Mark Mitchell <mark@codesourcery.com>
3623 * configure.ac: Completely disregard languages that are not
3624 enabled.
3625 * configure: Regenerated.
3626
3627 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
3628 Richard Guenther <rguenther@suse.de>
3629
3630 PR tree-optimization/27236
3631 * tree-inline.c (copy_body_r): Make sure to copy
3632 TREE_THIS_VOLATILE flag.
3633
3634 2006-04-24 Richard Guenther <rguenther@suse.de>
3635
3636 PR middle-end/26869
3637 * tree-complex.c (update_parameter_components): Don't handle
3638 unused parameters which have no default def.
3639
3640 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
3641 Richard Guenther <rguenther@suse.de>
3642
3643 PR tree-optimization/27218
3644 * tree-inline.c (expand_call_inline): Strip useless type
3645 conversions for the return slot address.
3646
3647 2006-04-24 Richard Guenther <rguenther@suse.de>
3648
3649 * cfgloop.h (struct loops): Remove unused field array. Reorder
3650 state after num.
3651 (LOOP_PREFETCH): Remove.
3652
3653 2006-04-24 Richard Guenther <rguenther@suse.de>
3654
3655 PR tree-optimization/22525
3656 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
3657 variable, adjust types of generated expressions.
3658
3659 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
3660
3661 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
3662 (tree-vect-patterns.o): Likewise.
3663 (jump.o): Likewise.
3664 (cselib.o): Likewise.
3665 (loop-doloop.o): Likewise.
3666 (regclass.o): Likewise.
3667 (reload1.o): Likewise.
3668 (explow.o): Replace target.h with $(TARGET_H).
3669 (ipa-prop.o): Likewise.
3670 (ipa-cp.o): Likewise.
3671 (ipa-inline.o): Likewise.
3672 (reorg.o): Likewise.
3673 (reg-stack.o): Likewise.
3674
3675 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
3676
3677 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
3678
3679 2006-04-23 Mark Mitchell <mark@codesourcery.com>
3680
3681 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
3682
3683 * configure.ac: Completely disregard languages that are not
3684 enabled.
3685 * configure: Regenerated.
3686
3687 PR c++/26534
3688 * c-common.h (c_build_bitfield_integer_type): Declare.
3689 * c-decl.c (c_build_bitfield_integer_type): Move to ...
3690 * c-common.c (c_build_bitfield_integer_type): ... here.
3691
3692 2006-04-23 Roger Sayle <roger@eyesopen.com>
3693
3694 PR target/21283
3695 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
3696 a SImode SUBREG of a floating point register after no_new_pseudos.
3697
3698 2006-04-23 Roger Sayle <roger@eyesopen.com>
3699
3700 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
3701 identify potentially eliminable registers to additionally catch
3702 VIRTUAL_INCOMING_ARGS_REGNUM.
3703 (addsi3): Update the conditions on when to use addsi_small_int.
3704
3705 2006-04-23 Roger Sayle <roger@eyesopen.com>
3706
3707 PR target/16641
3708 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
3709 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
3710 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
3711
3712 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
3713
3714 * fold-const.c (range_predecessor): Use operand_equal_p
3715 as the predicate for equality.
3716 (range_successor): Likewise.
3717
3718 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
3719
3720 Revert:
3721 * config/soft-fp/op-common.h: Fix a typo.
3722
3723 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
3724
3725 PR libmudflap/26864
3726 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
3727 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
3728
3729 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
3730
3731 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
3732 Fix comment typos.
3733 * doc/tm.texi: Fix a typo.
3734
3735 2006-04-21 Geoffrey Keating <geoffk@apple.com>
3736
3737 * dwarf2out.c (struct die_struct): Document that die_sib makes
3738 a circular linked list.
3739 (FOR_EACH_CHILD): New.
3740 (reverse_die_lists): Delete.
3741 (reverse_all_dies): Delete.
3742 (add_dwarf_attr): Correct documentation.
3743 (remove_child_with_prev): New.
3744 (remove_child_TAG): Update for change to die_struct, use
3745 remove_child_with_prev.
3746 (add_child_die): Update for change to die_struct.
3747 (splice_child_die): Use remove_child_with_prev and add_child_die.
3748 (print_die): Use FOR_EACH_CHILD.
3749 (die_checksum): Likewise.
3750 (assign_symbol_names): Likewise.
3751 (output_location_lists): Likewise.
3752 (build_abbrev_table): Likewise.
3753 (calc_die_sizes): Likewise.
3754 (mark_dies): Likewise.
3755 (unmark_dies): Likewise.
3756 (unmark_all_dies): Likewise.
3757 (output_die): Likewise.
3758 (prune_unused_types_mark): Likewise.
3759 (prune_unused_types_walk): Likewise.
3760 (same_die_p): Update for change to die_struct.
3761 (break_out_includes): Likewise.
3762 (prune_unused_types_prune): Likewise.
3763 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
3764 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
3765 it's already clear.
3766 (dwarf2out_finish): Don't call reverse_all_dies.
3767
3768 2006-04-21 Eric Christopher <echristo@apple.com>
3769
3770 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
3771 in comments and function names.
3772
3773 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3774
3775 PR c/25875
3776 * c-typeck.c (digest_init): Robustify.
3777
3778 * c-typeck.c (pop_init_level): Simplify.
3779
3780 2006-04-21 Steve Ellcey <sje@cup.hp.com>
3781
3782 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
3783
3784 2006-04-21 Paul Brook <paul@codesourcery.com>
3785
3786 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
3787 hardware floating point.
3788
3789 2006-04-21 David Edelsohn <edelsohn@gnu.org>
3790
3791 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
3792 NON_FLOAT_REGS.
3793
3794 2006-04-21 Nick Clifton <nickc@redhat.com>
3795
3796 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
3797 OPT_EXTRA_PARTS.
3798
3799 2006-04-21 Alan Modra <amodra@bigpond.net.au>
3800
3801 PR target/27230
3802 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
3803 C++ lang type in traceback table for Objective-C++.
3804
3805 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
3806
3807 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
3808
3809 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
3810
3811 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3812
3813 PR mudflap/26789
3814 * tree-mudflap.c (mudflap_finish_file): Skip function when there
3815 were errors. Remove check for erroneous objects.
3816
3817 2006-04-20 Jeff Law <law@redhat.com>
3818
3819 PR tree-optimization/26854
3820 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
3821 checking for zero or one use.
3822 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
3823 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
3824 * tree-ssa-reassoc.c (negate_value): Similarly.
3825 (reassociate_bb): Similarly.
3826
3827 2006-04-20 Jakub Jelinek <jakub@redhat.com>
3828
3829 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
3830 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
3831 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
3832
3833 2006-04-20 Alan Modra <amodra@bigpond.net.au>
3834
3835 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
3836 fp regs if the last fp arg doesn't fit in regs.
3837
3838 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
3839
3840 PR target/27182
3841 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
3842 that the last insn has the REG_INC note.
3843
3844 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
3845 Nathan Sidwell <nathan@codesourcery.com>
3846
3847 PR c/26774
3848 * stor-layout.c (update_alignment_for_field): Do not align
3849 ERROR_MARK nodes.
3850 (place_union_field): Place union field at the start of the union.
3851 (place_field): Move ERROR_MARK check later, and use the current
3852 allocation position to maintain monotonicity.
3853
3854 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
3855
3856 * dominance.c: Include timevar.h.
3857 (calculate_dominance_info): Use TV_DOMINANCE.
3858 * timevar.def (TV_DOMINANCE): New timevar.
3859 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
3860
3861 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
3862
3863 PR rtl-optimization/14261
3864 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
3865 move would be an INSV insn.
3866 (noce_process_if_block): Don't optimize if the destination is a
3867 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
3868
3869 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
3870
3871 * config/s390/s390.md: Add comments with the instructions emitted
3872 by an insn pattern if macros are used.
3873
3874 2006-04-19 Alan Modra <amodra@bigpond.net.au>
3875
3876 PR rtl-optimization/26026
3877 * fold-const.c (fold_binary): Optimize div and mod where the divisor
3878 is a known power of two shifted left a variable amount.
3879
3880 2006-04-18 Geoffrey Keating <geoffk@apple.com>
3881
3882 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
3883 to hash table twice when the debug_str section has SECTION_MERGE.
3884
3885 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
3886
3887 * config/soft-fp: New directory. From glibc.
3888 * config/soft-fp/t-softfp: New.
3889 * config/soft-fp/README: New.
3890 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
3891 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
3892 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
3893 (LIBGCC_DEPS): Add $(SFP_MACHINE).
3894 * config.gcc: Use rs6000/t-fprules-fpbit or
3895 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
3896 rs6000/t-fprules.
3897 * config/rs6000/sfp-machine.h: New. Based on glibc.
3898 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
3899 New.
3900 * config/rs6000/t-fprules: Remove fp-bit rules.
3901 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
3902 * config/rs6000/t-linux64: Likewise. Remove duplicates from
3903 LIB2FUNCS_EXTRA. Remove fp-bit rules.
3904 (softfp_wrap_start, softfp_wrap_end): New.
3905
3906 2006-04-18 DJ Delorie <dj@redhat.com>
3907
3908 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
3909
3910 2006-04-18 Devang Patel <dpatel@apple.com>
3911
3912 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
3913
3914 2006-04-18 Nick Clifton <nickc@redhat.com>
3915
3916 * config/sh/t-symbian: Add rule to build sh-c.o
3917 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
3918 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
3919 (sh_symbian_encode_section_info): Likewise.
3920
3921 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
3922
3923 * builtins.c (expand_builtin_strcmp): Cover label definition of
3924 do_libcall with HAVE_cmpstrnsi.
3925
3926 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
3927
3928 * function.c (temp_slots_at_level, max_slot_level): Use VEC
3929 instead of VARRAY.
3930 * function.h (temp_slot_p): New.
3931 (function): Change the type of x_used_temp_slots to
3932 VEC(temp_slot_p,gc) *.
3933
3934 2006-04-18 Nick Clifton <nickc@redhat.com>
3935
3936 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
3937 flag_strength_reduce.
3938
3939 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
3940
3941 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
3942
3943 PR target/27117
3944
3945 Partial revert of revision 112637
3946 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
3947 Dale Johannesen <dalej@apple.com>
3948
3949 PR target/19653
3950 * regclass.c (struct reg_pref): Update documentation.
3951 (regclass): Set prefclass to NO_REGS if memory is the best option.
3952 (record_reg_classes): Cope with a prefclass set to NO_REGS.
3953
3954 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
3955
3956 PR tree-optimization/26821
3957 * tree-ssa-math-opts.c (get_constant_one): New.
3958 (insert_reciprocals): Use it.
3959
3960 2006-04-17 Geoffrey Keating <geoffk@apple.com>
3961
3962 * dwarf2out.c (free_AT): Delete.
3963 (remove_AT): Update string ref counts.
3964 (remove_child_TAG): Don't call free_die.
3965 (free_die): Delete.
3966 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
3967 or DW_TAG_GNU_EINCL.
3968 (prune_unused_types_walk_attribs): Reset string refcounts.
3969 (prune_unused_types_update_strings): New.
3970 (prune_unused_types_prune): Don't make unnecessary stores. Don't
3971 call free_die. Do call prune_unused_types_update_strings.
3972 (prune_unused_types): Empty debug_str_hash.
3973
3974 2006-04-17 Roger Sayle <roger@eyesopen.com>
3975
3976 * expr.c (expand_assignment): Optimize away no-op moves where the
3977 source and destination are equal and have no side-effects.
3978
3979 2006-04-17 Richard Guenther <rguenther@suse.de>
3980
3981 PR target/26826
3982 * reload.c (push_reload): Guard calls to get_secondary_mem
3983 for memory subregs.
3984
3985 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
3986
3987 * alias.c (reg_base_value, old_reg_base_value): Change the
3988 type to VEC(rtx,gc) *.
3989 (REG_BASE_VALUE, find_base_value, record_set,
3990 init_alias_analysis): Use VEC instead of VARRAY.
3991
3992 * alias.c (alias_sets): Change the type to
3993 VEC(alias_set_entry,gc) *.
3994 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
3995 VEC instead of VARRAY.
3996 (last_alias_set): Remove.
3997
3998 * cgraph.h (cgraph_edge_p): New.
3999 Update the prototype of cgraph_function_versioning.
4000 * cgraphunit.c (cgraph_copy_node_for_versioning,
4001 cgraph_function_versioning): Use VEC instead of VARRAY.
4002 * ipa-cp.c (ipcp_insert_stage): Likewise.
4003
4004 2006-04-16 Roger Sayle <roger@eyesopen.com>
4005
4006 PR target/26961
4007 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
4008 "A op B" or "A op C", we may need to convert A to the type of B and C.
4009
4010 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
4011
4012 * target.h (struct gcc_target): Add mode_rep_extended.
4013 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
4014 (init_num_sign_bit_copies_in_rep): Initialize it using
4015 mode_rep_extended.
4016 (truncate_to_mode): Use it.
4017 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
4018 * targhooks.h (default_mode_rep_extended): Declare it.
4019 * targhooks.c (default_mode_rep_extended): Define it.
4020 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
4021 default_mode_rep_extended.
4022 (TARGET_INITIALIZER): Include it.
4023 * doc/tm.texi (Misc): Document it.
4024 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
4025 (mips_truncated_to_mode): New function.
4026
4027 2006-04-16 Roger Sayle <roger@eyesopen.com>
4028
4029 PR middle-end/25474
4030 * expr.c (compress_float_constant): Copy the narrow constant into
4031 a new pseudo before extending it to its final width.
4032
4033 2006-04-16 Roger Sayle <roger@eyesopen.com>
4034 Andrew Pinski <pinskia@gcc.gnu.org>
4035 Dale Johannesen <dalej@apple.com>
4036
4037 PR target/24076
4038 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
4039 special case code to implement V8HImode and V16QImode with SSE2.
4040
4041 2006-04-15 Roger Sayle <roger@eyesopen.com>
4042
4043 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
4044 trees are constructed with a suitable tree type.
4045
4046 2006-04-15 Roger Sayle <roger@eyesopen.com>
4047
4048 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
4049 (integer_onep): Likewise.
4050 (integer_all_onesp): Likewise.
4051 (integer_pow2p): Likewise.
4052 (integer_nonzerop): Likewise.
4053 (real_zerop): Likewise.
4054 (real_onep): Likewise.
4055 (real_twop): Likewise.
4056 (real_minus_onep): Likewise.
4057 (int_size_in_bytes): Likewise.
4058 (host_integerp): Likewise.
4059
4060 2006-04-15 Kazu Hirata <kazu@codesourcery.com>
4061
4062 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
4063 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
4064 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
4065
4066 * tree-ssa-structalias.h (alias_info): Remove num_references.
4067
4068 2006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4069
4070 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
4071 (output_bvb patterns): Likewise.
4072 * pa.c (output_bb): Use 'bb' insn for long branch case.
4073 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
4074 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
4075 1. Correct length operand for alternatives 1 and 2.
4076 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
4077 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
4078
4079 2006-04-14 Roger Sayle <roger@eyesopen.com>
4080
4081 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
4082 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
4083 were accidentally reverted by r112959.
4084
4085 2006-04-15 Jakub Jelinek <jakub@redhat.com>
4086
4087 PR middle-end/26823
4088 * except.h (eh_region_outermost): New prototype.
4089 * except.c (eh_region_outermost): New function.
4090 * tree-cfg.c (find_outermost_region_in_block): Use it.
4091
4092 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
4093
4094 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
4095 of VARRAY.
4096 * reload1.c (reg_equiv_memory_loc_varray): Rename to
4097 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
4098 (init_reload, reload): Use VEC instead of VARRAY.
4099 * reload.h: Update the prototype for
4100 reg_equiv_memory_loc_varray.
4101
4102 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
4103 Eric Botcazou <ebotcazou@libertysurf.fr>
4104
4105 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
4106 register save area.
4107
4108 2005-04-13 Uros Bizjak <uros@kss-loka.si>
4109
4110 PR middle-end/27134
4111 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
4112 to expand fallback builtin function call.
4113
4114 2006-04-14 Alan Modra <amodra@bigpond.net.au>
4115
4116 PR middle-end/27095
4117 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
4118 and emit libcall here in case the builtin fails.
4119 (expand_builtin_strcmp): Always emit the libcall here on failure.
4120
4121 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
4122
4123 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
4124 * flow.c (reg_n_info): Change the type to
4125 VEC(reg_info_p,heap) *.
4126 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
4127 instead of VARRAY.
4128 * regs.h (reg_info_p): New.
4129 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
4130 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
4131 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
4132 instead of VARRAY.
4133
4134 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
4135
4136 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
4137 defaulting to 100.
4138 * params.h (MAX_SCHED_READY_INSNS): New macro.
4139 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
4140 past MAX_SCHED_READY_INSNS during the first scheduling pass.
4141 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
4142 the ready list for 1 cycle during the first scheduling pass.
4143 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
4144
4145 2006-04-13 Richard Henderson <rth@redhat.com>
4146
4147 PR libgomp/26651
4148 * gimple-low.c (lower_omp_directive): Remove dead code.
4149 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
4150 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
4151 * omp-low.c (struct omp_region): Move to tree-flow.h.
4152 (root_omp_region): Export.
4153 (omp_regions, lookup_omp_region): Remove.
4154 (determine_parallel_type): Update for struct omp_region changes.
4155 (dump_omp_region): Dump regions with block numbers.
4156 (new_omp_region): Take type and block instead of stmt; malloc
4157 instead of ggc.
4158 (free_omp_region_1, free_omp_regions): New.
4159 (expand_parallel_call): Take entry_stmt as argument; update for
4160 changes to omp_region.
4161 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
4162 (remove_exit_barriers): New.
4163 (expand_omp_parallel): Update for struct omp_region changes.
4164 (expand_omp_synch): Likewise.
4165 (expand_omp): Likewise.
4166 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
4167 (expand_omp_for_static_chunk): Likewise.
4168 (expand_omp_for): Likewise.
4169 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
4170 (expand_omp_sections): Similarly, with GOMP_sections_end.
4171 (expand_omp_single): New.
4172 (build_omp_regions_1): Update for OMP_CONTINUE.
4173 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
4174 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
4175 OMP_SECTIONS_SECTIONS.
4176 (lower_omp_single_simple): Don't emit barrier here.
4177 (lower_omp_single_copy): Likewise.
4178 (lower_omp_single): Fix bindings, and lower to straightline now.
4179 (lower_omp_master, lower_omp_ordered): Likewise.
4180 (lower_omp_critical): Likewise.
4181 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
4182 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
4183 omp edges, free it afterward.
4184 (make_omp_sections_edges): Remove.
4185 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
4186 (move_stmt_r): Handle OMP_CONTINUE.
4187 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
4188 statement pointers to basic blocks. Add type member.
4189 (root_omp_region, new_omp_region, free_omp_regions): Declare.
4190 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
4191 * tree-inline.c (estimate_num_insns_1): Likewise.
4192 * tree-pretty-print.c (dump_generic_node): Likewise.
4193 * tree-ssa-operands.c (get_expr_operands): Likewise.
4194 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
4195 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
4196 (OMP_CONTINUE): New.
4197 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
4198 (OMP_SECTIONS_SECTIONS): Remove.
4199 (OMP_SECTION_LAST): New.
4200 (OMP_RETURN_NOWAIT): New.
4201
4202 2006-04-13 Roger Sayle <roger@eyesopen.com>
4203
4204 * fold-const.c (native_encode_vector, native_interpret_real):
4205 Correct obvious mistakes in the previous check-in.
4206
4207 2006-04-13 Roger Sayle <roger@eyesopen.com>
4208
4209 * fold-const.c (native_encode_expr): New function to encode
4210 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
4211 or VECTOR_CST into a specified buffer.
4212 (native_encode_int): New function.
4213 (native_encode_real): New function.
4214 (native_encode_complex): New function.
4215 (native_encode_vector): New function.
4216 (native_interpret_expr): Inverse of native_encode_expr to convert
4217 a target representation into an INTEGER_CST, REAL_CST etc...
4218 (native_interpret_int): New function.
4219 (native_interpret_real): New function.
4220 (native_interpret_complex): New function.
4221 (native_interpret_vector): New function.
4222 (fold_view_convert_expr): New function to constant fold/evaluate
4223 a VIEW_CONVERT_EXPR of a suitable constant expression.
4224 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
4225 Change call of build1 to fold_build1 when constructing a
4226 VIEW_CONVERT_EXPR.
4227
4228 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
4229 Ulrich Weigand <uweigand@de.ibm.com>
4230
4231 PR target/27006
4232 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
4233 to be even.
4234
4235 2006-04-13 Alan Modra <amodra@bigpond.net.au>
4236
4237 PR target/26459
4238 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
4239 optimize to lo_sum for DFmode if !TARGET_FPRS.
4240
4241 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
4242
4243 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
4244 delete_alias_info, compute_flow_sensitive_aliasing,
4245 group_aliases): Use VEC instead of VARRAY.
4246 * tree-ssa-structalias.c (update_alias_info): Likewise.
4247 * tree-ssa-structalias.h (alias_info): Change the type of
4248 processed_ptrs to VEC(tree,heap) *.
4249
4250 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
4251
4252 PR target/27060
4253 * config/sh/lib1funcs.h: New file, broken out of:
4254 * config/sh/lib1funcs.asm.
4255 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
4256 New macros.
4257 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
4258 * config/sh/lib1funcs-Os-4-200.asm: New file.
4259 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
4260 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
4261 (EXTRA_MULTILIB_PARTS): Include it.
4262 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
4263 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
4264 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
4265 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
4266 TARGET_SH2.
4267
4268 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
4269
4270 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
4271 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
4272 tpa_compact, root_var_init, type_var_init): Use VEC instead of
4273 VARRAY.
4274 * tree-ssa-live.h: Include vecprim.h.
4275 (tree_partition_associator_d): Change the type of
4276 first_partition to VEC(int,heap) *.
4277 (tpa_first_partition): Use VEC instead of VARRAY.
4278
4279 * Makefile.in (GTFILES): Move functions.h after tree.h.
4280 * function.c (reset_block_changes, record_block_change,
4281 check_block_change, free_block_changes): Use VEC instead of
4282 VARRAY.
4283 * function.h (function): Change the type of
4284 ib_boundaries_block to VEC(tree,gc) *.
4285 * tree-inline.c (copy_cfg_body): Initialize
4286 ib_boundaries_block to NULL instead of (varray_type) 0.
4287
4288 2006-04-12 Roger Sayle <roger@eyesopen.com>
4289
4290 * expr.c (emit_group_store): Correct operand order in call to
4291 subreg_lowpart_offset. Always create paradoxical SUBREGs with
4292 a SUBREG_BYTE of zero.
4293
4294 2006-04-12 Richard Guenther <rguenther@suse.de>
4295
4296 * profile.c (compute_branch_probabilities): Remove code
4297 encapsulated in !ir_type (), which are remanents of the
4298 removed RTL profiling code.
4299 * rtl-profile.c: Remove.
4300
4301 2006-04-12 Alan Modra <amodra@bigpond.net.au>
4302
4303 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
4304 magic NULL_RTX comment.
4305 (function_arg): Store entire fp arg to mem if any part should go
4306 on stack.
4307 (rs6000_arg_partial_bytes): Adjust for above change.
4308
4309 2006-04-11 Roger Sayle <roger@eyesopen.com>
4310
4311 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
4312 if it hasn't been initialized by dwarf2out_init.
4313
4314 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
4315
4316 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
4317 symbolic constants in branch patterns.
4318
4319 2006-04-11 Roger Sayle <roger@eyesopen.com>
4320
4321 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
4322
4323 2006-04-11 Richard Sandiford <richard@codesourcery.com>
4324
4325 PR rtl-optimization/27073
4326 * gcse.c (try_replace_reg): Revert last change. Continue to search
4327 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
4328 on the former.
4329
4330 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
4331
4332 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
4333 aggregate types other than record and union types.
4334 (function_arg): Likewise.
4335 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
4336 small arrays.
4337 (function_value): In 64-bit mode, return objects that require it
4338 in FP registers.
4339
4340 2006-04-11 Roger Sayle <roger@eyesopen.com>
4341
4342 * dwarf2out.c (premark_used_types): Remove problematic prototype.
4343
4344 2006-04-11 Jakub Jelinek <jakub@redhat.com>
4345
4346 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
4347
4348 2006-04-03 Jeff Law <law@redhat.com>
4349
4350 PR/27087
4351 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
4352 alias information too.
4353
4354 2006-04-10 Mike Frysinger <vapier@gentoo.org>
4355
4356 * Makefile.in (gcc-cross): Add $(exeext) to target name.
4357
4358 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
4359
4360 PR/21391
4361 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
4362 (premark_used_types_helper): New.
4363 (premark_used_types): New.
4364 (gen_subprogram_die): Call premark_used_types.
4365 (prune_unused_types_walk): Do not prune perennial dies.
4366 * function.c (used_types_insert): New.
4367 * function.h (struct function): Add used_types_hash field.
4368 (used_types_insert): Add prototype.
4369 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
4370 * c-parser.c (c_parser_cast_expression): Save casted types in used
4371 types hash table.
4372
4373 2006-04-11 Mark Mitchell <mark@codesourcery.com>
4374
4375 PR target/26459
4376 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
4377 rs6000_explicit_options.float_gprs.
4378
4379 2006-04-10 Roger Sayle <roger@eyesopen.com>
4380
4381 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
4382 from ix86_expand_vector_init_low_nonzero. Take an additional
4383 one_var argument indicating which element is non-zero. Support
4384 one_var != 0 for V4SFmode and V4SImode by permuting the result.
4385 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
4386 with one_var instead of ix86_expand_vector_init_low_nonzero.
4387
4388 2006-04-10 Kazu Hirata <kazu@codesourcery.com>
4389
4390 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
4391 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
4392 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
4393 build/genextract.o): Depend on vecprim.h.
4394 * cfglayout.c, df-problems.c, function.c, genextract.c,
4395 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
4396 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
4397 vecprim.h.
4398 * vecprim.h: New.
4399
4400 2006-04-10 Geoffrey Keating <geoffk@apple.com>
4401
4402 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
4403 Declare VECs of this type.
4404 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
4405 (remove_children): Delete.
4406 (add_dwarf_attr): Use VEC routines.
4407 (add_AT_flag): Update for changes to add_dwarf_attr.
4408 (add_AT_int): Likewise.
4409 (add_AT_unsigned): Likewise.
4410 (add_AT_long_long): Likewise.
4411 (add_AT_vec): Likewise.
4412 (add_AT_string): Likewise.
4413 (add_AT_die_ref): Likewise.
4414 (add_AT_fde_ref): Likewise.
4415 (add_AT_loc): Likewise.
4416 (add_AT_loc_list): Likewise.
4417 (add_AT_addr): Likewise.
4418 (add_AT_lbl_id): Likewise.
4419 (add_AT_lineptr): Likewise.
4420 (add_AT_macptr): Likewise.
4421 (add_AT_offset): Likewise.
4422 (add_AT_range_list): Likewise.
4423 (get_AT): Use VEC_iterate.
4424 (remove_AT): Use VEC_ordered_remove.
4425 (free_die): Fold remove_children into here; have it use VEC_iterate.
4426 (print_die): Use VEC_iterate on attrs.
4427 (reverse_die_lists): Don't reverse attr lists.
4428 (die_checksum): Use VEC_iterate on attrs.
4429 (same_die_p): Likewise.
4430 (output_location_lists): Likewise.
4431 (build_abbrev_table): Likewise.
4432 (size_of_die): Likewise.
4433 (unmark_all_dies): Likewise.
4434 (output_abbrev_section): Likewise.
4435 (output_die): Likewise.
4436 (prune_unused_types_walk_attribs): Likewise.
4437
4438 2006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4439
4440 * doc/install.texi (*-*-solaris2*): Point to the configure page.
4441
4442 2006-04-10 Jakub Jelinek <jakub@redhat.com>
4443
4444 PR debug/27057
4445 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
4446
4447 2006-04-09 Roger Sayle <roger@eyesopen.com>
4448
4449 * expr.c (store_constructor): Don't bother clearing target if
4450 we're about to assign a vector to it using vec_init_optab.
4451
4452 2006-04-10 Daniel Berlin <dberlin@dberlin.org>
4453
4454 * tree-ssa-alias.c (lhs_may_store_to): New function.
4455 (recalculate_used_alone): Handle LHS of calls.
4456
4457 2006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4458
4459 PR target/27034
4460 PR target/26508
4461 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
4462 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
4463 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
4464 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
4465 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
4466 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
4467 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
4468 stubs. Add ".align 8" directives before all ".dword" directives.
4469 (GTHREAD_USE_WEAK): Revise comment.
4470 (TARGET_ATTRIBUTE_WEAK): Define.
4471 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
4472 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
4473 * stublib.c: New file.
4474
4475 PR target/26743
4476 PR target/11254
4477 PR target/10274
4478 * pa.md (cbranch patterns): Revise arguments used in calls to
4479 output_cbranch, output_bb and output_bvd. Add long branch length
4480 attributes.
4481 (fbranch patterns): Handle long branches.
4482 (jump): Revise length check. Revise arguments for output_lbranch call.
4483 Add long branch length attributes.
4484 (decrement_and_branch_until_zero): Add long branch length attributes.
4485 (output_movb, output_parallel_addb and output_parallel_movb patterns):
4486 Likewise. Revise arguments for output_parallel_addb and
4487 output_parallel_movb calls.
4488 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
4489 output_parallel_movb and output_parallel_addb): Update prototypes.
4490 * pa.c (output_cbranch): Revise arguments. Correct handling of
4491 nullification in long branches.
4492 (output_lbranch): Add new argument to control extraction of delay
4493 instruction.
4494 (output_bb): Handle long branches.
4495 (output_bvb, output_dbra, output_movb, output_parallel_movb,
4496 output_parallel_addb): Likewise.
4497
4498 2006-04-09 Richard Sandiford <richard@codesourcery.com>
4499
4500 PR rtl-optimization/27073
4501 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
4502 not REG_EQUIVs.
4503
4504 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
4505
4506 * tree.h (tree_memory_tag): Add old_used_alone.
4507 (SMT_OLD_USED_ALONE): New macro.
4508 * tree-ssa-alias.c (recalculate_used_alone): Stop
4509 marking things for renaming unnecessarily.
4510
4511 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
4512
4513 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
4514 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
4515 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
4516 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
4517 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
4518 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
4519 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
4520 spelling convensions.
4521 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
4522 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
4523 typos. Follow spelling conventions.
4524
4525 2006-04-07 DJ Delorie <dj@redhat.com>
4526
4527 * config/m32c/m32c.c (m32c_function_arg): Structures are always
4528 passed on the stack.
4529 (m32c_init_cumulative_args): When a function returns a structure,
4530 always pass the pointer to that return area on the stack.
4531 (m32c_function_arg_advance): Don't increment the parameter number
4532 if we're processing the returned structure pointer.
4533 (pushm_info): Reverse order of registers.
4534
4535 2006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
4536
4537 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
4538 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
4539 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
4540 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
4541 build_int_cst_type.
4542 * tree-chrec.c (chrec_fold_multiply_poly_poly,
4543 chrec_fold_multiply): Same.
4544 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
4545 force_expr_to_var_cost): Same.
4546 * tree-mudflap.c (mf_xform_derefs_1): Same.
4547 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
4548
4549 2006-04-07 David Edelsohn <edelsohn@gnu.org>
4550
4551 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
4552 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
4553 insn.
4554
4555 2006-04-07 Jan Hubicka <jh@suse.cz>
4556
4557 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
4558
4559 2006-04-07 Richard Guenther <rguenther@suse.de>
4560
4561 PR tree-optimization/26135
4562 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
4563 loads for store copy-prop.
4564 (copy_prop_visit_stmt): Likewise.
4565
4566 2006-04-05 Robert Millan <robertmh@gnu.org>
4567
4568 * config/i386/linux.h: Add a comment to mark macros that are
4569 being overriden in config/k*bsd-gnu.h.
4570 * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
4571 DYNAMIC_LINKER.
4572 * config/knetbsd-gnu.h: Ditto.
4573
4574 2006-04-06 Jan Hubicka <jh@suse.cz>
4575
4576 PR profile/20815
4577 PR profile/26399
4578 * coverage.c (coverage_checksum_string): Reorganize loop to not read
4579 after buffer.
4580
4581 2006-04-06 Mike Stump <mrs@apple.com>
4582
4583 * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
4584 for HAVE_nonlocal_goto to be consistent.
4585 (expand_builtin_nonlocal_goto): Likewise.
4586 (expand_builtin_strcmp): Use #ifdef instead of #if
4587 for HAVE_cmpstrnsi to be consistent.
4588
4589 2006-04-05 DJ Delorie <dj@redhat.com>
4590
4591 * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
4592 vs m32c.
4593
4594 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
4595
4596 * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
4597 got-relative addressing for anything but SImode.
4598
4599 * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
4600 even if the calling function doesn't modify them.
4601
4602 2006-04-05 Richard Guenther <rguenther@suse.de>
4603
4604 PR tree-optimization/26919
4605 * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
4606 to cgraph_estimate_size_after_inlining.
4607
4608 2006-04-05 Alan Modra <amodra@bigpond.net.au>
4609
4610 * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
4611
4612 2006-04-05 Sebastian Pop <pop@cri.ensmp.fr>
4613
4614 PR tree-optimization/26996
4615 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
4616 VECTOR_TYPE variables.
4617
4618 2006-04-05 Richard Guenther <rguenther@suse.de>
4619
4620 PR tree-optimization/26763
4621 * fold-const.c (fold_comparison): Move folding of
4622 PTR + CST CMP PTR + CST ...
4623 (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR.
4624
4625 2006-04-05 Gerald Pfeifer <gerald@pfeifer.com>
4626
4627 * doc/install.texi (Prerequisites): Refine some wording on
4628 bootstrapping and ksh.
4629 Move the version numbers of DejaGnu here from the testing section
4630 and fix casing of names.
4631 Fix markup and clarify wording for autogen requirements.
4632 Refer to GCJ instead of just java.
4633 Refer to SVN instead of CVS.
4634 Describe diffutils as useful instead of necessary.
4635 (Downloading the source): Refer to SVN instead of CVS.
4636 Adjust a link to our web site accordingly.
4637 (Configuration): Fix casing of Bison.
4638 (Building): Refer to SVN instead of CVS.
4639 Fix a sentence on the use of Bison and remove duplicate (and
4640 incorrect) version number of Bison requirement.
4641 Remove one redundant list of packages needed for building.
4642 (Specific): Avoid reference to CVS.
4643
4644 2006-04-04 Eric Christopher <echristo@apple.com>
4645
4646 * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
4647 (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
4648 (rs6000_handle_struct_attribute): New.
4649 (rs6000_ms_bitfield_layout_p): Ditto.
4650
4651 2006-04-04 Geoffrey Keating <geoffk@apple.com>
4652
4653 * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
4654 NULL for dso parameter to atexit_common.
4655
4656 2006-04-04 Eric Christopher <echristo@apple.com>
4657
4658 * config/i386/i386.c (machopic_output_stub): Output \t
4659 between instructions and operands.
4660
4661 2006-04-04 David Edelsohn <edelsohn@gnu.org>
4662
4663 * config/rs6000/rs6000.c (num_insns_constant_wide): Change
4664 satisfies_constraint_[IL] to explicit tests on value.
4665
4666 2006-04-04 Sebastian Pop <pop@cri.ensmp.fr>
4667
4668 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
4669 set_nb_iterations_in_loop): Use build_int_cst instead of
4670 build_int_cst_type.
4671 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
4672 build_int_cst instead of convert.
4673
4674 2006-04-04 Carlos O'Donell <carlos@codesourcery.com>
4675
4676 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
4677 new value 2 for incoming.
4678 * function.c (expand_function_start): Call struct_value_rtx
4679 with incoming as 2.
4680 * config/sparc/sparc.md: Comment updated_return.
4681 * config/sparc/sparc.opt: Add -mstd-struct-return option.
4682 * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
4683 struct return if sparc_std_struct_return and incoming is 2.
4684 (print_operand): Do not adjust return if
4685 sparc_std_struct_return.
4686
4687 2006-04-04 Roger Sayle <roger@eyesopen.com>
4688
4689 * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
4690 convert in the middle-end.
4691 * expr.c (store_expr, store_constructor, get_inner_reference,
4692 expand_expr_real_1, string_constant, try_casesi, try_tablejump):
4693 Likewise.
4694 * tree.c (build_range_type): Likewise.
4695
4696 2006-04-04 Tom Tromey <tromey@redhat.com>
4697
4698 * doc/install.texi (Prerequisites): Mention jar.
4699
4700 2006-04-04 Daniel Berlin <dberlin@dberlin.org>
4701
4702 * doc/tree-ssa.texi (Preserving the virtual ssa form): New
4703 subsection.
4704
4705 2006-04-04 Matthias Klose <doko@debian.org>
4706
4707 * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
4708 * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
4709 strings.
4710
4711 2006-04-03 Geoffrey Keating <geoffk@apple.com>
4712
4713 * doc/extend.texi (Function Attributes): Rewrite visibility
4714 attribute documentation.
4715 * doc/invoke.texi (C++ Dialect Options): Rewrite
4716 -fvisibility-inlines-hidden documentation to describe something
4717 entirely different, although in practise compatible.
4718 (Code Gen Options): Warn about system headers in -fvisibility=
4719 documentation.
4720
4721 * doc/extend.texi (Other Builtins): Document that
4722 __builtin_nan is a compile-time constant only when its argument
4723 is valid.
4724
4725 2006-04-03 Adam Nemet <anemet@caviumnetworks.com>
4726
4727 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
4728 trying to remove TRUNCATE check if all bits outside the new mode
4729 are identical to the sign bit.
4730
4731 2006-04-03 Jeff Law <law@redhat.com>
4732
4733 * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
4734 and operand scanning in some common cases.
4735
4736 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
4737 Dale Johannesen <dalej@apple.com>
4738
4739 PR target/19653
4740 * regclass.c (struct reg_pref): Update documentation.
4741 (regclass): Set prefclass to NO_REGS if memory is the best option.
4742 (record_reg_classes): Cope with a prefclass set to NO_REGS.
4743 * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
4744 into account. For non-registers, equate an empty preferred
4745 reload class to a `!' in the constraint; move the if clause to
4746 do so after those that reject the insn.
4747 (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
4748 return NO_REGS.
4749 (find_dummy_reload): Likewise.
4750 * doc/tm.texi (Register Classes): Document what it means
4751 if PREFERRED_*_RELOAD_CLASS return NO_REGS.
4752 * config/i386/i386.c (ix86_preferred_reload_class): Force
4753 using SSE registers (and return NO_REGS for floating-point
4754 constants) if math is done with SSE.
4755 (ix86_preferred_output_reload_class): New.
4756 * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
4757 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
4758 * config/i386/i386.md: Remove # register preferences.
4759
4760 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
4761
4762 PR bootstrap/26992
4763 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
4764 chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
4765 the type of nb_iter.
4766 (instantiate_parameters_1): Convert the operands before calling
4767 chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
4768 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
4769
4770 2006-04-02 Roger Sayle <roger@eyesopen.com>
4771
4772 * builtins.c (dummy_object): Use build_int_cst instead of convert.
4773 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
4774 instead of convert.
4775 * dojump.c (do_jump): Likewise.
4776 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
4777 * gimplify.c (gimple_boolify, gimplify_init_constructor,
4778 gimplify_boolean_expr): Likewise.
4779 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4780 * varasm.c (array_size_for_constructor): Likewise.
4781 * tree-object-size.c (compute_object_offset): Likewise.
4782
4783 2006-04-02 Roger Sayle <roger@eyesopen.com>
4784
4785 PR middle-end/26977
4786 * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
4787 NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
4788
4789 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
4790
4791 PR tree-optimization/26939
4792 * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
4793
4794 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
4795
4796 * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
4797 at_stmt. Convert the type of operands before calling
4798 build_polynomial_chrec.
4799 (add_to_evolution): Pass an extra argument at_stmt. Adjust the call to
4800 add_to_evolution_1.
4801 (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
4802 (instantiate_parameters_1): Convert the type of operands before calling
4803 build_polynomial_chrec.
4804 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
4805 chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
4806 reset_evolution_in_loop): Insert asserts to check the types of the
4807 operands.
4808 (chrec_type): Moved...
4809 (eq_evolutions_p): Use operand_equal_p.
4810 * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
4811 the types of the operands.
4812 (chrec_type): ...here.
4813 * tree-data-ref.c (create_data_ref): Convert the operands before
4814 calling chrec_replace_initial_condition.
4815 (same_access_functions, analyze_subscript_affine_affine,
4816 analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
4817 (compute_subscript_distance, analyze_ziv_subscript,
4818 analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
4819 analyze_miv_subscript): Convert the operands before calling
4820 chrec_fold_minus or chrec_fold_plus.
4821
4822 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
4823
4824 * tree-data-ref.c (compute_all_dependences): Use a pointer to
4825 the dependence_relations vector.
4826 (compute_data_dependences_for_loop): Adjust call to
4827 compute_all_dependences.
4828
4829 2006-04-01 Roger Sayle <roger@eyesopen.com>
4830 Richard Henderson <rth@redhat.com>
4831
4832 * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
4833 gimple_boolify on the condition before calling gimplify_expr.
4834
4835 2006-03-31 Bob Wilson <bob.wilson@acm.org>
4836
4837 * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
4838 to leaf_entry/leaf_return. Change leaf_entry to add 16 bytes to
4839 the frame size. Update to use the new macros.
4840 * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
4841 * config/xtensa/ieee754-df.S: Likewise.
4842
4843 2006-03-31 Richard Henderson <rth@redhat.com>
4844
4845 * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
4846 (make_edges): ... here. Control fallthru creation with a local
4847 variable. Do not play with fake edges.
4848 (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
4849 (make_goto_expr_edges): Don't play with fake edges. Make for_call
4850 a boolean.
4851
4852 2006-04-01 Joseph S. Myers <joseph@codesourcery.com>
4853
4854 * dwarf2.h (DW64_CIE_ID): Define.
4855 * dwarf2out.c (DWARF_CIE_ID): Define.
4856 (output_call_frame_info): Output 0xffffffff before standard 8-byte
4857 length header. Use DWARF_CIE_ID.
4858 (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
4859 dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
4860
4861 2006-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
4862
4863 * config/sh/linux-atomic.asm: New file.
4864 * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
4865
4866 2006-03-31 DJ Delorie <dj@redhat.com>
4867
4868 * config/m32c/cond.md: Set condition flags properly throughout.
4869 * config/m32c/minmax.md: Likewise.
4870 * config/m32c/prologue.md: Likewise.
4871 * config/m32c/bitops.md: Likewise.
4872 * config/m32c/muldiv.md: Likewise.
4873 * config/m32c/mov.md: Likewise.
4874 * config/m32c/addsub.md: Likewise.
4875 * config/m32c/m32c.md: Likewise.
4876 * config/m32c/jump.md: Likewise.
4877 * config/m32c/shift.md: Likewise.
4878
4879 * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
4880 conditionally output the pattern for this.
4881 * config/m32c/m32c.c (flags_needed_for_conditional): New.
4882 (m32c_compare_redundant): New.
4883 (m32c_output_compare): New.
4884 * config/m32c/m32c-protos.h (m32c_output_compare): New.
4885
4886 * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
4887 dest, not src. Allow other 4-byte modes.
4888
4889 2006-03-30 Denis Chertykov <denisc@overta.ru>
4890
4891 * doc/md.texi: Refer to avr/constraints.md instead of
4892 avr/avr.h.
4893
4894 2006-03-30 Roger Sayle <roger@eyesopen.com>
4895
4896 * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
4897 signed vs. unsigned comparison failures on some hosts.
4898
4899 2006-03-31 Alan Modra <amodra@bigpond.net.au>
4900
4901 PR target/26459
4902 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
4903 change to FLOAT_REGS.
4904
4905 * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
4906 (rs6000_override_options): Use it.
4907 (rs6000_handle_option): Set it. Set rs6000_explicit_options.abi
4908 only for -mabi=spe/no-spe and -mabi=altivec.
4909
4910 2006-03-30 Geoffrey Keating <geoffk@apple.com>
4911
4912 * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
4913 !Zdynamiclib.
4914
4915 2006-03-30 Carlos O'Donell <carlos@codesourcery.com>
4916
4917 * Makefile.in: Rename docdir to gcc_docdir.
4918
4919 2006-03-30 Roger Sayle <roger@eyesopen.com>
4920
4921 PR target/17959
4922 * expr.c (emit_group_store): Optimize group stores into a pseudo
4923 register by using a paradoxical subreg to initialize the destination
4924 if the first or last member of the group specifies a "low part".
4925
4926 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
4927
4928 PR target/26734
4929 * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
4930 * target.h (struct gcc_target.speculate_insn): Change type of the
4931 second parameter to 'int'.
4932 * lists.c (alloc_DEPS_LIST): Change signature. Update reference to
4933 the second operand of the DEPS_LIST.
4934 (copy_DEPS_LIST_list): Update reference to the second operand of the
4935 DEPS_LIST.
4936 * rtl.h (alloc_DEPS_LIST): Update signature.
4937 * sched-int.h (ds_t): Change typedef to 'int'.
4938 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
4939
4940 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
4941
4942 * haifa-sched.c (try_ready): Change condition to restore
4943 non-speculative pattern of the instruction.
4944 (process_insn_depend_be_in_spec): Code to keep probability of the
4945 speculative dependence non-decreasing.
4946
4947 2006-03-30 Jie Zhang <jie.zhang@analog.com>
4948
4949 * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
4950 (single_move_for_movmem): ... this. Also change all uses.
4951 (bfin_expand_strmov): Renamed to...
4952 (bfin_expand_movmem): ... this. Also change all uses.
4953 * config/bfin/bfin.md (movstrsi): Renamed to...
4954 (movstrsi): ...this.
4955
4956 2006-03-30 Paolo Bonzini <bonzini@gnu.org>
4957
4958 PR tree-optimization/26830
4959
4960 * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
4961 (copy_prop_visit_stmt): Remove write-only variable ann.
4962 (init_copy_prop): Check variable loop depth here. Do not simulate
4963 memory-tag and virtual operand PHIs except for store copy prop.
4964
4965 2006-03-30 Richard Guenther <rguenther@suse.de>
4966
4967 * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
4968 variants with double arguments.
4969
4970 2006-03-29 David Edelsohn <edelsohn@gnu.org>
4971
4972 * genpreds.c (write_tm_constrs_h): Delete variable p.
4973 * genconditions.c (write_header): Add tm-constrs.h to included
4974 headers.
4975 * genpeep.c (main): Add toplev.h to included headers.
4976 * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
4977 (build/genpeep.o): Add toplev.h dependency.
4978 * config/rs6000/constraints.md: Add "W" constraint.
4979
4980 2006-03-29 Roger Sayle <roger@eyesopen.com>
4981
4982 * stor-layout.c (mode_for_size_tree): Remove restiction on type
4983 sizes by correctly testing whether the size fits a host integer.
4984 (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
4985 to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
4986 SImode range for the default sizetype and bitsizetype.
4987
4988 2006-03-29 Roger Sayle <roger@eyesopen.com>
4989
4990 * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
4991 and TREE_CONSTANT_OVERFLOW bits of the argument. Return
4992 quickly if the argument is already of the correct type.
4993 Call fold_build1 instead of build1. Tidy up blank lines.
4994
4995 2006-03-29 David Edelsohn <edelsohn@gnu.org>
4996
4997 * genemit.c (main): Add tm-constrs.h to included headers.
4998 * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
4999 * genpeep.c (main): Add tm-constrs.h to included headers.
5000 * genpreds.c (write_satisfies_constraint_fns): Rename to ...
5001 (write_tm_constrs_h): this and write complete file.
5002 (write_tm_preds_h): Do not emit satisfies_constraint fns.
5003 (write_insn_preds_c): Add tm-constrs.h to included headers.
5004 (gen_constrs): New variable.
5005 (parse_option): Parse "-c".
5006 (main): Invoke write_tm_constrs_h.
5007 * genrecog.c (write_header): Add tm-constrs.h to included headers.
5008 * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
5009 (object_out_file): Add tm-constrs.h dependency.
5010 (insn-emit.o): Same.
5011 (insn-output.o): Same.
5012 (insn-peep.o): Same.
5013 (insn-preds.o): Same.
5014 (insn-recog.o): Same.
5015 (tm-constsr.h): New target.
5016 (s-constrs-h): New target.
5017
5018 * config/rs6000/constraints.md: New file.
5019 * config/rs6000/rs6000.c: Include tm-constrs.h.
5020 (num_insn_constant_wide): Convert to satisfies_constraint.
5021 (rs6000_rtx_costs): Convert to satisfies_constraint.
5022 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
5023 (CONST_OK_FOR_LETTER_P): Delete.
5024 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5025 (EXTRA_CONSTRAINT): Delete.
5026 (EXTRA_MEMORY_CONSTRAINT): Delete.
5027 (EXTRA_ADDRESS_CONSTRAINT): Delete.
5028 * config/rs6000/predicates.md: Convert to satisfies_constraint.
5029 * config/rs6000/rs6000.md: Include constraints.md. Convert to
5030 satisfies_constraint.
5031
5032 * config/i386/i386.c: Include tm-constrs.h.
5033
5034 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
5035
5036 * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
5037 * tree-data-ref.c (find_data_references_in_loop,
5038 compute_data_dependences_for_loop): Use pointers to VEC.
5039 (analyze_all_data_dependences): Adjust calls.
5040 * tree-data-ref.h (find_data_references_in_loop,
5041 compute_data_dependences_for_loop): Adjust declarations.
5042 * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
5043 compute_data_dependences_for_loop.
5044
5045 2006-03-29 Paul Brook <paul@codesourcery.com>
5046
5047 * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
5048 (movdf_vfp): Ditto.
5049
5050 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
5051
5052 PR tree-optimization/26859
5053 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
5054 division by zero.
5055 (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
5056 for the step after fold_convert.
5057
5058 2006-03-29 Paul Brook <paul@codesourcery.com>
5059
5060 * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
5061 (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
5062
5063 2006-03-29 Paul Brook <paul@codesourcery.com>
5064
5065 PR middle-end/23623
5066 * targhooks.c (default_narrow_bitfield): New fuction.
5067 * targhooks.h (default_narrow_bitfield): add prototype.
5068 * target.h (gcc_target): Add narrow_volatile_bitfield.
5069 * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
5070 * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
5071 * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
5072 * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
5073
5074 2006-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
5075
5076 * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
5077 tmake_file.
5078 * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
5079 (NR_C_MODES): Add TDmode, DDmode and SDmode.
5080 (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
5081 (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
5082 (s390_function_arg_float): Allow SDmode and DDmode values to be
5083 passed in floating point registers.
5084 (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
5085 check with SCALAR_FLOAT_MODE_P.
5086 (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
5087
5088 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
5089
5090 PR tree-optimization/25985
5091 * tree-ssa-loop-niter.c (number_of_iterations_le,
5092 number_of_iterations_ne): Make comments more precise.
5093 (number_of_iterations_cond): Add only_exit argument. Use the
5094 fact that signed variables do not overflow only when only_exit
5095 is true.
5096 (loop_only_exit_p): New.
5097 (number_of_iterations_exit): Pass result of loop_only_exit_p to
5098 number_of_iterations_cond.
5099
5100 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
5101
5102 PR tree-optimization/26643
5103 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
5104 bit_field_refs.
5105
5106 2006-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
5107
5108 * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
5109 (divsi3_i4_int): Likewise.
5110
5111 2006-03-28 Roger Sayle <roger@eyesopen.com>
5112
5113 * expr.c (emit_group_store): Only create a new pseudo reg if the
5114 quantity it needs to hold isn't already a suitable pseudo.
5115
5116 2006-03-28 Jeff Law <law@redhat.com>
5117
5118 * timevar.def (TV_TREE_PHI_CPROP): New timevar.
5119 * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
5120
5121 2006-03-28 Roger Sayle <roger@eyesopen.com>
5122
5123 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
5124 the equivalent ~X & Y, and the symmetry related transformations.
5125 (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
5126 ~X & Y, and symmetry related transforms.
5127
5128 2006-03-28 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
5129
5130 Revert my 2006-03-27 patches.
5131
5132 2006-03-28 Roger Sayle <roger@eyesopen.com>
5133
5134 * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
5135 ~(T1)X, when T1 and T2 are integer types of the same precision
5136 and (T2)X isn't an extension.
5137
5138 2006-03-28 Jeff Law <law@redhat.com>
5139
5140 PR tree-optimization/26796
5141 * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
5142 need EH edge cleanups rather than purging them immediately.
5143 (eliminate_degenerate_phis): Handle queued EH cleanups.
5144
5145 2006-03-28 Daniel Berlin <dberlin@dberlin.org>
5146
5147 * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
5148 from parent_var.
5149
5150 2006-03-27 Roger Sayle <roger@eyesopen.com>
5151
5152 PR middle-end/22524
5153 * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
5154 cast BIT_NOT_EXPR operand to the correct type.
5155
5156 2006-03-27 Sebastian Pop <pop@cri.ensmp.fr>
5157
5158 * tree-loop-linear.c: Don't include varray.h.
5159 (gather_interchange_stats, try_interchange_loops,
5160 linear_transform_loops): Use VEC instead of VARRAY.
5161 * lambda-mat.c: Don't include varray.h.
5162 * tree-chrec.c: Same.
5163 * lambda-trans.c: Same.
5164 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
5165 VEC instead of VARRAY.
5166 * tree-vectorizer.h: Idem.
5167 * tree-data-ref.c (dump_data_references,
5168 dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
5169 initialize_data_dependence_relation, finalize_ddr_dependent,
5170 compute_all_dependences, find_data_references_in_loop,
5171 compute_data_dependences_for_loop, analyze_all_data_dependences,
5172 free_dependence_relation, free_dependence_relations,
5173 free_data_refs): Idem.
5174 * tree-data-ref.h (data_reference_p, subscript_p): New.
5175 (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
5176 VEC instead of VARRAY.
5177 (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
5178 (find_data_references_in_loop, compute_data_dependences_for_loop,
5179 dump_ddrs, dump_dist_dir_vectors, dump_data_references,
5180 dump_data_dependence_relations, free_dependence_relations,
5181 free_data_refs): Adjust declaration.
5182 (lambda_transform_legal_p): Move declaration here...
5183 * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
5184 vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
5185 vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
5186 vect_analyze_data_refs): Use VEC instead of VARRAY.
5187 * lambda.h (lambda_transform_legal_p): ...from here.
5188 * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
5189 * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
5190 * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
5191 tree-chrec.o): Don't depend on VARRAY_H.
5192
5193 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
5194
5195 * rtl.def (Copyright): Update date.
5196 (DEPS_LIST): Change type of the second operand to 'int'.
5197 * target.h (Copyright): Update date.
5198 (struct gcc_target.speculate_insn): Change type of the second parameter
5199 to 'int'.
5200 * lists.c (Copyright): Update date.
5201 (alloc_DEPS_LIST): Change signature. Update reference to the second
5202 operand of the DEPS_LIST.
5203 (copy_DEPS_LIST_list): Update reference to the second operand of the
5204 DEPS_LIST.
5205 * rtl.h (Copyright): Update date.
5206 (alloc_DEPS_LIST): Update signature.
5207 * sched-int.h (Copyright): Update date.
5208 (ds_t): Change typedef to 'int'.
5209 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
5210
5211 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
5212
5213 * haifa-sched.c (Copyright): Update date.
5214 (try_ready): Change condition to restore non-speculative pattern
5215 of the instruction.
5216 (process_insn_depend_be_in_spec): Code to keep probability of the
5217 speculative dependence non-decreasing.
5218
5219 2006-03-27 Bernd Schmidt <bernd.schmidt@analog.com>
5220
5221 * regrename.c (replace_oldest_value_addr): Initialize a variable to
5222 shut up the compiler.
5223
5224 2006-03-27 J"orn Rennecke <joern.rennecke@st.com>
5225
5226 * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
5227 to use lib prefix for target.
5228 ($(T)libic_invalidate_array_4-200.a): Likewise.
5229 ($(T)libic_invalidate_array_4a.a): Likewise.
5230
5231 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
5232 J"orn Rennecke <joern.rennecke@st.com>
5233
5234 * superh.opt: New file.
5235 * sh.c (boardtype, osruntime): Remove.
5236 * superh.h (SUBTARGET_OPTIONS): Remove.
5237 * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
5238
5239 * config.gcc (sh*-*-*): Don't use c-c ranges for tr. Quote sed
5240 arguments with ^ and/or [].
5241
5242 * config.gcc (sh-*-*): Add quoting to account for quirk of
5243 Solaris /bin/sh.
5244 Replace == with = in enable_incomplete_targets test.
5245
5246 * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
5247 with MASK_LITTLE_ENDIAN.
5248
5249 * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
5250 * config/sh/sh.opt: Added to some comments.
5251 * config/sh/superh.h: Removed some chaff.
5252
5253 * config/sh/sh.opt: Add m4-[1234]00* options.
5254 * config/sh/sh.c (sh_handle_option): Likewise.
5255 * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
5256 (ic_invalidate_array_4-100.o): New rule.
5257 ($(T)libic_invalidate_array_4-100.a): Likewise.
5258 (ic_invalidate_array_4-200.o): Likewise.
5259 ($(T)libic_invalidate_array_4-200.a): Likewise.
5260 (ic_invalidate_array_4a.o): Likewise.
5261 ($(T)libic_invalidate_array_4a.a): Likewise.
5262 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
5263 * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
5264 m4-200*, and m4a*.
5265 * config/sh/crt1.asm: Merged in profiling code.
5266 * config/sh/superh.h (STARTFILE_SPEC): Override.
5267 * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
5268 Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
5269 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
5270
5271 * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
5272 * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
5273 MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
5274
5275 * sh.opt (mpretend-cmove): New option.
5276 * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
5277 * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
5278 (movsicc): Add TARGET_PRETEND_CMOVE code.
5279
5280 2006-03-27 Andreas Krebbel <krebbel1@de.ibm.com>
5281
5282 * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
5283 s390_class_max_nregs): New function prototypes.
5284 * config/s390/s390.c (REGNO_PAIR_OK): New macro.
5285 (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
5286 * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
5287 CLASS_MAX_NREGS): Macro bodies replaced by function calls.
5288
5289 2006-03-26 Geoffrey Keating <geoffk@apple.com>
5290
5291 * dwarf2out.c (add_location_or_const_value_attribute): Call
5292 tree_add_const_value_attribute if nothing else works.
5293 (reference_to_unused): New.
5294 (rtl_for_decl_init): Use reference_to_unused to decide whether
5295 to output an initializer.
5296
5297 2006-03-27 Alan Modra <amodra@bigpond.net.au>
5298
5299 PR target/26459
5300 * config/rs6000/rs6000.md (DF reg move peephole): Prevent
5301 peephole removing spe frob_di_df_2.
5302
5303 2006-03-26 Sebastian Pop <pop@cri.ensmp.fr>
5304
5305 * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
5306 (subscript_dependence_tester_1): Declared.
5307 (print_dir_vectors, print_dist_vectors): New.
5308 (debug_data_dependence_relation): New.
5309 (dump_data_dependence_relation): Print more details.
5310 (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
5311 (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
5312 (save_dist_v, save_dir_v, add_outer_distances,
5313 build_classic_dist_vector_1): New.
5314 (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
5315 Don't test for lambda_vector_lexico_pos.
5316 (same_access_functions, add_multivariate_self_dist,
5317 add_other_self_distances, dir_from_dist): New.
5318 (build_classic_dir_vector): Replace implementation almost identical to
5319 build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
5320 dir_from_dist.
5321 (subscript_dependence_tester_1): New.
5322 (subscript_dependence_tester): Handle the lexicographically negative
5323 distance vectors by recomputing the dependence relation.
5324 (compute_affine_dependence): Remove parameter loop_nest_depth.
5325 (compute_self_dependence): Don't call compute_subscript_distance.
5326 (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
5327 Add a parameter for the loop_nest.
5328 (find_loop_nest_1, find_loop_nest): New.
5329 (compute_data_dependences_for_loop): Compute the loop nest, and give
5330 up if the nest is not well formed.
5331 * tree-data-ref.h (loop_p): New.
5332 (struct data_dependence_relation): Replace size_vect field with
5333 loop_nest, a vec of loops.
5334 (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
5335 (DDR_LOOP_NEST): New.
5336 (print_dir_vectors, print_dist_vectors,
5337 debug_data_dependence_relation): Declared.
5338 (index_in_loop_nest): New.
5339 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
5340 DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
5341 distance.
5342
5343 2006-03-25 Adam Nemet <anemet@caviumnetworks.com>
5344
5345 * simplify-rtx.c (simplify_relational_operation): Call
5346 simplify_relational_operation_1 even if mode is VOIDmode.
5347
5348 2006-03-25 Daniel Berlin <dberlin@dberlin.org>
5349
5350 PR tree-optimization/26804
5351 * tree.h (DECL_CALL_CLOBBERED): New macro.
5352 (tree_decl_common): Add call_clobbered_flag.
5353 * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
5354 (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
5355 (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
5356 (mark_non_addressable): Ditto.
5357 * tree-ssa.c (verify_call_clobbered): New function.
5358 (verify_alias_info): Use it.
5359 * tree-pass.h (pass_reset_cc_flags): New prototype.
5360 * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
5361 (reset_cc_flags): New function.
5362 * passes.c (init_optimization_passes): Call reset_cc_flags after
5363 initializing referenced_vars.
5364
5365 2006-03-25 Uros Bizjak <uros@kss-loka.si>
5366 Roger Sayle <roger@eyesopen.com>
5367
5368 PR middle-end/26717
5369 * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
5370 to 1.0 for non-real operands. Implement A / A optimization for
5371 complex operands.
5372
5373 2006-03-25 H.J. Lu <hongjiu.lu@intel.com>
5374
5375 * config/i386/i386.c (size_cost): Correct the comment for
5376 cost of storing fp registers.
5377 (i386_cost): Likewise.
5378 (i486_cost): Likewise.
5379 (pentium_cost): Likewise.
5380 (pentiumpro_cost): Likewise.
5381 (k6_cost): Likewise.
5382 (athlon_cost): Likewise.
5383 (k8_cost): Likewise.
5384 (pentium4_cost): Likewise.
5385 (nocona_cost): Likewise.
5386 (generic64_cost): Likewise.
5387 (generic32_cost): Likewise.
5388
5389 2006-03-24 Denis Chertykov <denisc@overta.ru>
5390
5391 * config/avr/avr-protos.h (extra_constraint): Delete.
5392 (extra_constraint_Q): New declaration.
5393 * config/avr/constraints.md: New file.
5394 * config/avr/avr.md: Include it.
5395 (REG_X, REG_Y, REG_Z, REG_W): New constants.
5396 (TMP_REGNO, ZERO_REGNO): Likewise.
5397 (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
5398 * config/avr/avr.c (avr_reg_class_from_letter): Delete.
5399 (extra_constraint): Delete.
5400 (extra_constraint_Q): Test for memory constraint 'Q'.
5401 * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
5402 (REG_CLASS_FROM_LETTER): Delete.
5403 (CONST_OK_FOR_LETTER_P): Delete.
5404 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5405 (EXTRA_CONSTRAINT): Delete.
5406 (TMP_REGNO): Delete.
5407 (ZERO_REGNO): Delete.
5408
5409 2006-03-24 Jeff Law <law@redhat.com>
5410
5411 * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
5412 directly. Call mark_new_vars_to_rename slightly earlier.
5413
5414 2006-03-24 Geoffrey Keating <geoffk@apple.com>
5415
5416 * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
5417 (is_cxx): Likewise.
5418 (gen_compile_unit_die): Use new language types for Objective-C and
5419 Objective-C++.
5420 (dwarf2out_decl): Use is_cxx rather than testing explicitly against
5421 DW_LANG_C_plus_plus.
5422
5423 PR 26793
5424 * config/t-darwin (crt3.o): Work around bug 26840.
5425 * config/darwin-crt3.c: Rewrite.
5426 * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
5427
5428 2006-03-24 Carlos O'Donell <carlos@codesourcery.com>
5429
5430 * doc/invoke.texi: Document -femit-class-debug-always
5431 * common.opt: Add -femit-class-debug-always.
5432
5433 2006-03-24 Andreas Krebbel <krebbel1@de.ibm.com>
5434
5435 * config/s390/s390.c (s390_decompose_address): Allow SImode for
5436 index and base register.
5437 (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
5438 print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
5439 with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
5440 REGNO_OK_FOR_INDEX_P.
5441 * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
5442 ADDR_REGNO_P.
5443 (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
5444 REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
5445 REG_OK_FOR_BASE_P): Definitions removed.
5446
5447 2006-03-24 Jakub Jelinek <jakub@redhat.com>
5448
5449 PR middle-end/26611
5450 * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
5451 non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
5452 set yet or weren't marked as local yet.
5453
5454 2006-03-24 Bernd Schmidt <bernd.schmidt@analog.com>
5455
5456 * regrename.c (scan_rtx_address): Initialize a variable to shut up
5457 the compiler.
5458
5459 2006-03-24 Eric Botcazou <ebotcazou@adacore.com>
5460
5461 * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
5462 (rs6000_legitimate_small_data_p): Delete.
5463 * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
5464 (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
5465 and make static. Add forward declaration. Update uses.
5466 (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
5467 of offsettable_memref_p.
5468 * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
5469 Use rs6000_offsettable_memref_p instead of a less accurate predicate.
5470
5471 2006-03-24 Jeff Law <law@redhat.com>
5472
5473 * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
5474 around bug in immediate-use iterator.
5475
5476 2006-03-24 Alan Modra <amodra@bigpond.net.au>
5477
5478 PR target/26607
5479 * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
5480 or __LITTLE_ENDIAN__.
5481
5482 2006-03-23 J"orn Rennecke <joern.rennecke@st.com>
5483
5484 * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
5485 * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
5486 * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
5487 * config/sh/sh.opt (mdiv=): Amend description.
5488 * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
5489 (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
5490 (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
5491 SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
5492 (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
5493 Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
5494 * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
5495 (udivsi3, divsi3): Use them. Check TARGET_DIVIDE_CALL_TABLE /
5496 TARGET_DIVIDE_CALL_FP.
5497
5498 2006-03-23 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
5499
5500 * haifa-sched.c (choose_ready): Fix type of the local variable.
5501 Move local variables. Add comment.
5502 (check_reg_live): Change signature. Make callable from debugger.
5503 * sched-int.h (check_reg_live): Update signature.
5504 * sched-ebb.c (check_reg_live): Update parameters.
5505 * sched-rgn.c (check_reg_live): Ditto.
5506 (region_head_or_leaf_p): Check pointer before dereferencing.
5507 * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
5508 before reload on optimization levels below 1.
5509
5510 2006-03-23 Richard Henderson <rth@redhat.com>
5511
5512 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
5513 tls symbols.
5514
5515 PR target/26347
5516 * config/alpha/predicates.md (local_symbolic_operand): Reject
5517 weak symbols.
5518
5519 2006-03-23 Andrew Pinski <pinskia@physics.uc.edu>
5520
5521 PR tree-opt/26795
5522 * tree-ssa-pre.c (create_value_expr_from): Don't reject
5523 expressions which have overflowed constants.
5524
5525 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
5526
5527 * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
5528
5529 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
5530
5531 * cfgloopmanip.c (create_loop_notes): Removed.
5532 * final.c (final_scan_insn): Do not handle loop notes.
5533 * jump.c (squeeze_notes): Ditto.
5534 * cfglayout.c (skip_insns_after_block,
5535 duplicate_insn_chain): Ditto.
5536 * cfgcleanup.c (rest_of_handle_jump2): Do not call
5537 create_loop_notes.
5538 * cfgloop.h (create_loop_notes): Declaration removed.
5539
5540 2006-03-23 Richard Sandiford <richard@codesourcery.com>
5541
5542 * varasm.c (output_constant_pool): Restore fnname and fndecl
5543 arguments.
5544 (assemble_start_function): Adjust call accordingly.
5545 (assemble_end_function): Likewise.
5546
5547 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5548
5549 PR mudflap/26789
5550 * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
5551
5552 PR mudflap/26790
5553 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
5554
5555 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5556
5557 PR driver/22600
5558 * system.h (ICE_EXIT_CODE): New macro.
5559 * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
5560 (diagnostic_action_after_output): Likewise.
5561 * gcc.c (fatal_ice): New function.
5562 (execute): Use it instead of fatal.
5563 (fancy_abort): Likewise.
5564 * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
5565
5566 2006-03-22 Jeff Law <law@redhat.com>
5567
5568 * loop-unroll.c (analyze_iv_to_split_insn): Handle
5569 iv_analyze_result returning false.
5570
5571 2006-03-22 Jie Zhang <jie.zhang@analog.com>
5572
5573 * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
5574
5575 2006-03-22 Richard Henderson <rth@redhat.com>
5576
5577 PR middle-end/26084
5578 * except.c (duplicate_eh_regions_0): New.
5579 (duplicate_eh_region_1): Duplicate the children of the node as
5580 well as the node itself. Link them up properly.
5581 (duplicate_eh_region_2): Merge into ...
5582 (duplicate_eh_regions): ... here. Take copy_region argument, and
5583 copy only a sub-tree if asked. Simplify copying and fixup.
5584 (eh_region_outer_p): New.
5585 * except.h (duplicate_eh_regions): Update decl.
5586 (eh_region_outer_p): Declare.
5587 * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
5588 (lower_omp_master): Likewise.
5589 (lower_omp_ordered): Likewise.
5590 * tree-cfg.c (struct move_stmt_d): Add new_label_map.
5591 (move_stmt_r): Use it to remap labels. Handle recursion vs
5592 remap_decls_p properly.
5593 (move_block_to_fn): Pass in new_label_map. Remap RESX_EXPR.
5594 (find_outermost_region_in_block): New.
5595 (new_label_mapper): New.
5596 (move_sese_region_to_fn): Copy eh information to the new function
5597 properly.
5598 * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
5599 argument.
5600 * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
5601 number.
5602
5603 2006-03-22 Richard Sandiford <richard@codesourcery.com>
5604
5605 * doc/md.texi (-mshared): Mention that -mshared code can be linked
5606 into shared libraries.
5607
5608 2006-03-22 Richard Sandiford <richard@codesourcery.com>
5609
5610 * doc/md.texi: Refer to i386/constraints.md instead of
5611 i386/predicates.md.
5612 * config/i386/constraints.md: New file, extracted from...
5613 * config/i386/predicates.md: ...here.
5614 * config/i386/i386.md: Include constraints.md.
5615
5616 2006-03-21 Jason Merrill <jason@redhat.com>
5617
5618 * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
5619
5620 PR middle-end/20297
5621 * expr.c (init_block_move_fn): Force default visibility.
5622 (init_block_clear_fn): Likewise.
5623 * builtins.c (expand_builtin_fork_or_exec): Likewise.
5624 * targhooks.c (default_external_stack_protect_fail): Likewise.
5625
5626 2006-03-21 Richard Sandiford <richard@codesourcery.com>
5627
5628 * config/mips/predicates.md (const_call_insn_operand): Allow direct
5629 calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
5630 * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
5631 Use TARGET_OLDABI instead of !TARGET_NEWABI.
5632 (loadgp): Use mips_current_loadgp_style.
5633 (loadgp_noshared): New pattern.
5634 (sibcall_internal): Use MIPS_CALL.
5635 (sibcall_value_internal): Likewise.
5636 (sibcall_value_multiple_internal): Likewise.
5637 (call_internal): Likewise.
5638 (call_value_internal): Likewise.
5639 (call_value_multiple_internal): Likewise.
5640 (call_split): Use MIPS_CALL and add an 'S' constraint.
5641 (call_value_split): Likewise.
5642 (call_value_multiple_split): Likewise.
5643 * config/mips/mips.opt (-mabicalls): Tweak docstring.
5644 (-mshared): New option.
5645 * config/mips/mips-protos.h (mips_loadgp_style): New enum.
5646 (mips_current_loadgp_style): Declare.
5647 * config/mips/mips.c (mips_classify_symbol): Avoid using
5648 SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS. Use SYMBOL_GENERAL
5649 rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
5650 TARGET_ABSOLUTE_ABICALLS.
5651 (override_options): Adjust comments. Improve the warning that is
5652 issued when -mabicalls and -G are used together.
5653 (mips_file_start): Remove comment.
5654 (mips_current_loadgp_style): New function.
5655 (mips_gnu_local_gp): New variable.
5656 (mips_emit_loadgp): Use mips_current_loadgp_style. Handle
5657 LOADGP_ABSOLUTE.
5658 (mips_output_function_prologue): Use mips_current_laodgp_style.
5659 (mips_expand_prologue): Call mips_emit_loadgp before emitting
5660 the cprestore instruction.
5661 (mips_extra_live_on_entry): Fix reversed test. Don't make $25
5662 live for TARGET_ABSOLUTE_ABICALLS.
5663 * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
5664 (ASM_SPEC): Pass down -mshared and -mno-shared.
5665 (MIPS_CALL): New macro.
5666 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
5667 definition.
5668 * doc/invoke.texi (-mabicalls): Update documentation.
5669 (-mshared): Document.
5670
5671 2006-03-21 Steve Ellcey <sje@cup.hp.com>
5672
5673 * config/ia64/unwind-hpux.c: New file.
5674 * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
5675
5676 2006-03-21 Steve Ellcey <sje@cup.hp.com>
5677
5678 PR libgomp/26384
5679 * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
5680
5681 2006-03-21 Jeff Law <law@redhat.com>
5682
5683 * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
5684 type conversions of a VR_VARYING source to a wider type.
5685
5686 2006-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
5687
5688 * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
5689 tm_file on Solaris 10 and later.
5690 (sparc64-*-solaris2*): Likewise.
5691 (sparc-*-solaris2*): Likewise.
5692 * config/sol26.h: Rename to config/sol2-6.h.
5693 * config/sol2-10.h: New file.
5694
5695 2006-03-21 Andrew Pinski <pinskia@physics.uc.edu>
5696
5697 PR tree-opt/26781
5698 * tree-ssa-pre.c (create_component_ref_by_pieces):
5699 Handle STRING_CST.
5700
5701 2006-03-21 Jakub Jelinek <jakub@redhat.com>
5702
5703 PR c++/26690
5704 * tree.c (get_callee_fndecl): If CALL is error_mark_node,
5705 return it immediately.
5706
5707 2006-03-21 Michael Matz <matz@suse.de>
5708
5709 * genautomata.c (<struct state>, num_out_arcs, presence_signature):
5710 New members.
5711 (remove_arc, add_arc): Update num_out_arcs member.
5712 (set_out_arc_insns_equiv_num): Returns nothing instead of number
5713 of out arcs.
5714 (cache_presence): New function.
5715 (compare_states_for_equiv): New function.
5716 (state_is_differed): Don't take number of outargs, adjust callers.
5717 Use new invariant for speeding up.
5718 (init_equiv_class): Create initial classes based on sorted
5719 input.
5720 (partition_equiv_class): Don't track out_arcs_num.
5721 (evaluate_equiv_classes): Call cache_presence on all states and
5722 sort them.
5723
5724 2006-03-21 Bernd Schmidt <bernd.schmidt@analog.com>
5725
5726 * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
5727 * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
5728 (bfin_valid_reg_p): Test for pseudos explicitly and use only
5729 REGNO_MODE_CODE_OK_FOR_BASE_P. New args MODE and OUTER_CODE; all
5730 callers changed.
5731 * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
5732 (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
5733 (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
5734 (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5735 REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
5736 macros.
5737 (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
5738 REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
5739 (REGNO_REG_CLASS): ARGP is in PREGS.
5740 * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
5741 IREGS.
5742 (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
5743 to deal with those addresses.
5744 * addresses.h: New file.
5745 * caller-save.c: Include "addresses.h".
5746 (init_caller_save): Use new base_reg_class function.
5747 * rtl-factoring.c: Include "addresses.h".
5748 (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
5749 * recog.c: Include "addresses.h".
5750 (preprocess_constraints): Use new base_reg_class function.
5751 * regrename.c: Include "addresses.h".
5752 (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
5753 functions. Keep track of a new var INDEX_CODE to compute valid
5754 classes.
5755 (replace_oldest_value_addr): Likewise.
5756 (replace_oldest_value_mem): Use base_reg_class.
5757 * reload.c: Include "addresses.h".
5758 (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
5759 (find_reloads): Use new base_reg_class function.
5760 (find_reloads_address): Likewise; also use regno_ok_for_base_p.
5761 (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
5762 all callers and prototype changed.
5763 * reload1.c: Include "addresses.h".
5764 (maybe_fix_stack_asms): Use base_reg_class.
5765 * regclass.c: Include "addresses.h".
5766 (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
5767 (init_reg_autoinc): Use new base_reg_class function.
5768 (record_reg_classes): Likewise.
5769 (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
5770 OUTER_CODE and INDEX_CODE. All callers and prototype changed.
5771 Use new args to compute necessary class.
5772
5773 * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
5774 regrename.o, rtl-factoring.o): Update dependencies.
5775 * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
5776 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
5777 (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
5778 REG_OK_FOR_INDEX_P): Delete documentation.
5779
5780 2006-03-21 Alexey Starovoytov <alexey.starovoytov@sun.com>
5781
5782 * config.gcc (sparc-*-solaris2*): Change the default CPU setting
5783 from V7 to V9 for Solaris 7 and above.
5784
5785 2006-03-21 Toon Moene <toon@moene.indiv.nluug.nl>
5786
5787 * doc/invoke.texi: Document new flag -fargument-noalias-anything.
5788 * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
5789 argument pointers may not alias any other storage.
5790 * common.opt: Define option -fargument-noalias-anything.
5791 * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
5792 alias semantics is specified by flag_argument_noalias > 2.
5793
5794 2006-03-20 Jeff Law <law@redhat.com>
5795
5796 * tree-pass.h (pass_phi_only_copy_prop): Delete.
5797 (pass_phi_only_cprop): Declare.
5798 * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
5799 with phi_only_cprop
5800 * tree-ssa-dom.c (degenerate_phi_result): New function.
5801 (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
5802 (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
5803 (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
5804 (eliminate_degenerate_phis): Likewise.
5805 (pass_phi_only_cprop): New pass descriptor.
5806 * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
5807 support code. Callers updated.
5808 (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
5809 (store_copy_prop): Likewise.
5810 (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
5811
5812 2006-03-20 Jason Merrill <jason@redhat.com>
5813
5814 PR c++/21764
5815 * c-pragma.c (visstack): Move out of handle_pragma_visibility.
5816 (push_visibility, pop_visibility): Likewise.
5817 * c-pragma.h: Declare them.
5818
5819 2006-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
5820
5821 * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
5822
5823 * config/sh/sh.c (find_regmode_weight): Change the type of the first
5824 parameter and use get_ebb_head_tail.
5825 (sh_md_init_global): Adjust uses of find_regmode_weight.
5826
5827 2006-03-20 Steven Bosscher <stevenb.gcc@gmail.com>
5828
5829 * function.h (struct function) <x_tail_recursion_reentry>:
5830 Rename to x_stack_check_probe_note.
5831 (tail_recursion_reentry): Rename to stack_check_probe_note.
5832 * function.c: Replace tail_recursion_reentry with
5833 stack_check_probe_note everywhere.
5834 (expand_function_start): Only emit a note for
5835 stack_check_probe_note with -fstack-protect.
5836 * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
5837
5838 * emit-rtl.c (remove_unnecessary_notes): Remove.
5839 (pass_remove_unnecessary_notes): Remove.
5840 * rtl.h (remove_unnecessary_notes): Remove prototype.
5841 * final.c (final_start_function): Don't call remove_unnecessary_notes.
5842 * tree-pass.h (pass_remove_unnecessary_notes): Remove.
5843 * passes.c (pass_remove_unnecessary_notes): Don't run it.
5844
5845 2006-03-20 Andrew Pinski <pinskia@physics.uc.edu>
5846
5847 PR tree-opt/26629
5848 * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
5849 (valid_in_set): Handle ARRAY_REF.
5850 Change "if min_variant or VH" to asserts.
5851 (create_component_ref_by_pieces): Handle ARRAY_REF.
5852 (create_expression_by_pieces): Likewise.
5853 (can_PRE_operation): ARRAY_REFs can now be PRE'd.
5854
5855 2006-03-20 David Edelsohn <edelsohn@gnu.org>
5856
5857 * genpreds.c (write_insn_extra_address_constraint): Argument `c'
5858 is operand of switch, not str[0].
5859
5860 2006-03-20 Alan Modra <amodra@bigpond.net.au>
5861
5862 * config/rs6000/rs6000.c (rs6000_handle_option): Use
5863 TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
5864
5865 2006-03-19 David Edelsohn <edelsohn@gnu.org>
5866
5867 * genpreds.c (write_tm_preds_h): Add semicolon and newline at
5868 end of insn_extra_address_constraint declaration.
5869
5870 2006-03-19 David Edelsohn <edelsohn@gnu.org>
5871
5872 * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
5873 (no-sum-in-toc): Same.
5874 * config/rs6000/rs6000.c (rs6000_handle_option): Use new
5875 variables.
5876 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
5877 NO_FP_IN_TOC for -fPIC instead of mask.
5878
5879 * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
5880 (BOOT_LDFLAGS): Delete.
5881 (LDFLAGS): Delete.
5882 * config/rs6000/t-aix52: Same.
5883
5884 * config/rs6000/rs6000.md (store_multiple_power): Delete.
5885 (stmsi[345678]_power): New.
5886
5887 2006-03-17 Steve Ellcey <sje@cup.hp.com>
5888
5889 * config/ia64/ia64.opt: Add empty line to end of file.
5890
5891 2006-03-17 Richard Guenther <rguenther@suse.de>
5892
5893 PR middle-end/26721
5894 * builtins.c (get_pointer_alignment): For component style references
5895 adjust alignment to the component type alignment. Make sure
5896 to adjust alignment for component access of constants.
5897
5898 2006-03-17 David Edelsohn <edelsohn@gnu.org>
5899
5900 * config/rs6000/rs6000.md (strlensi): Emit barrier after
5901 unconditional jump.
5902
5903 2006-03-17 Paul Brook <paul@codesourcery.com>
5904
5905 * doc/install.texi: Docuemnt --with-mode.
5906 * config.gcc: Add --with-mode for arm*-*-*.
5907 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
5908
5909 2006-03-17 J"orn Rennecke <joern.rennecke@st.com>
5910
5911 * sh.c (max_labelno_before_reorg): New variable.
5912 (sh_reorg): Initialize it.
5913 (find_barrier): Check max_labelno_before_reorg before using
5914 label_to_alignment. Take length of explicit alignment insns
5915 into account. When seeing a UNSPECV_CONST_END, return it.
5916
5917 * sh.c (fixup_mova): Set mode of affected label to QImode.
5918 (untangle_mova): New function.
5919 (find_barrier): Use it. Check mode of label before decrementing
5920 num_mova.
5921 (sh_reorg): Likewise.
5922 Set mode of all insns back to VOIDmode.
5923
5924 * sh.c (MOVA_LABELREF): New macro.
5925 (mova_p, fixup_mova, sh_reorg): Use it.
5926 (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
5927 ADDR_DIFF_VEC matches mova.
5928
5929 2006-03-17 Steven Bosscher <stevenb.gcc@gmail.com>
5930
5931 * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
5932 with ATTRIBUTE_UNUSED.
5933
5934 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
5935
5936 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
5937 pointer, instead of assuming it is possible to derive the
5938 correct args size from a call insn.
5939
5940 2006-03-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5941
5942 * rtl.h (CONST_INT_P): Define.
5943 * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
5944 instead of GET_CODE(x) == CONST_INT.
5945 (vax_rtx_costs): Likewise.
5946 (vax_output_int_move): Likewise.
5947 (vax_output_int_add): Likewise.
5948 (legitimate_constant_address_p): Likewise.
5949 (index_term_p): Likewise.
5950 * config/vax/vax.h (PRINT_OPERAND): Likewise.
5951 * config/vax/vax.md (and<mode>3): Likewise.
5952 (ashrsi3): Likewise.
5953 (extv): Likewise.
5954 (movstricthi): Likewise.
5955 (movstrictqi): Likewise.
5956 (rotrsi3): Likewise.
5957 (five unnamed insns): Likewise.
5958
5959 2006-03-16 Geoffrey Keating <geoffk@apple.com>
5960
5961 * doc/tm.texi (SDB and DWARF): Add extra parameter to
5962 ASM_OUTPUT_DWARF_OFFSET. Use @var to indicate metavariables.
5963 * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
5964 * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
5965 Pass to ASM_OUTPUT_DWARF_OFFSET.
5966 * dwarf2out.c (debug_frame_section): New.
5967 (output_call_frame_info): Use debug_frame_section. Pass it to
5968 dw2_asm_output_offset.
5969 (output_die): Pass appropriate section to dw2_asm_output_offset.
5970 (output_compilation_unit_header): Likewise.
5971 (output_pubnames): Likewise.
5972 (output_aranges): Likewise.
5973 (enum dw_val_class): Break dw_val_class_lbl_offset into
5974 dw_val_class_lineptr and dw_val_class_macptr.
5975 (add_AT_lbl_offset): Delete.
5976 (add_AT_lineptr): New.
5977 (add_AT_macptr): New.
5978 (AT_lbl): Expect a lineptr or macptr.
5979 (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
5980 (attr_checksum): Likewise.
5981 (same_dw_val_p): Likewise.
5982 (size_of_die): Likewise.
5983 (value_format): Likewise.
5984 (output_die): Likewise.
5985 (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
5986 add_AT_lbl_offset.
5987 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
5988 * config/i386/i386.c (x86_file_start): Call darwin_file_start.
5989 * config/darwin-protos.h (darwin_file_start): New.
5990 (darwin_asm_output_dwarf_offset): New.
5991 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
5992 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
5993 darwin_file_start.
5994 * config/darwin.c (darwin_emit_unwind_label): Don't output label
5995 if not EH section; simplify.
5996 (darwin_file_start): New.
5997 (darwin_asm_output_dwarf_offset): New.
5998 * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
5999 mark as 'debug'.
6000 (DEBUG_INFO_SECTION): Likewise.
6001 (DEBUG_ABBREV_SECTION): Likewise.
6002 (DEBUG_ARANGES_SECTION): Likewise.
6003 (DEBUG_MACINFO_SECTION): Likewise.
6004 (DEBUG_LINE_SECTION): Likewise.
6005 (DEBUG_LOC_SECTION): Likewise.
6006 (DEBUG_PUBNAMES_SECTION): Likewise.
6007 (DEBUG_STR_SECTION): Likewise.
6008 (DEBUG_RANGES_SECTION): Likewise.
6009 (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
6010 (ASM_OUTPUT_DWARF_OFFSET): New.
6011
6012 2006-03-16 Joseph S. Myers <joseph@codesourcery.com>
6013
6014 * config.gcc (tm_defines): Always add to previous value rather
6015 than replacing it.
6016
6017 2006-03-16 Richard Sandiford <richard@codesourcery.com>
6018
6019 * config/mips/predicates.md (splittable_const_int_operand): New,
6020 split from move_operand.
6021 (splittable_symbolic_operand): New.
6022 (move_operand): Add commentary. Use splittable_const_int_operand.
6023 Inline mips_atomic_symbolic_constant_p.
6024 * config/mips/mips.md: Add combine splitters for handling moves
6025 of splittable_const_int_operands and splittable_symbolic_operands.
6026 * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
6027 (mips_split_symbol): Declare.
6028 (mips_move_integer): Declare.
6029 * config/mips/mips.c (mips_split_p): Make global.
6030 (TARGET_MIN_ANCHOR_OFFSET): Override default.
6031 (TARGET_MAX_ANCHOR_OFFSET): Likewise.
6032 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
6033 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
6034 (mips_offset_within_object_p): Handle block symbols.
6035 (mips_atomic_symbolic_constant_p): Delete.
6036 (mips_cannot_force_const_mem): Return false for constants that
6037 mips_legitimize_move can handle.
6038 (mips_use_blocks_for_constant_p): New function.
6039 (mips_split_symbol): Make global.
6040 (mips_move_integer): Likewise. Add a temporary register argument.
6041 (mips_legitimize_const_move): Use splittable_const_int_operand and
6042 splittable_symbolic_operand.
6043 (mips_use_anchors_for_symbol_p): New function.
6044 * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
6045 (mips_split_p): Declare.
6046
6047 2006-03-16 Richard Sandiford <richard@codesourcery.com>
6048
6049 * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
6050 (mips*-*-linux*): Likewise.
6051
6052 2006-03-16 Roger Sayle <roger@eyesopen.com>
6053 Daniel Speyer <dspeyer@wam.umd.edu>
6054
6055 PR middle-end/18259
6056 * tree-dump.c (dump_real): New function.
6057 (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
6058 * Makefile.in (REAL_H): New macro for dependencies on real.h.
6059 (tree-dump.o): Add $(REAL_H) to the dependencies.
6060
6061 2006-03-16 Roger Sayle <roger@eyesopen.com>
6062
6063 PR middle-end/21781
6064 * real.c (real_from_string): If the mantissa is zero, don't bother
6065 parsing the exponent as the result should always be zero.
6066
6067 2006-03-16 Andreas Krebbel <krebbel1@de.ibm.com>
6068
6069 * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
6070
6071 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
6072
6073 * config/ia64/ia64.c (stops_p): Added explicit initialization.
6074 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
6075 ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
6076 ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
6077 ia64_sched_finish_global): New static functions to implement
6078 hooks from gcc_target.sched.
6079 (spec_check_no, max_uid, pending_data_specs): New static variables.
6080 (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
6081 ia64_spec_check_src_p): New static functions.
6082 (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
6083 (TARGET_SCHED_ADJUST_COST): Removed.
6084 (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
6085 TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
6086 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
6087 TARGET_SCHED_GEN_CHECK,
6088 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
6089 TARGET_SCHED_SET_SCHED_FLAGS): New macros.
6090 (update_set_flags, group_barrier_needed, set_src_needs_barrier):
6091 Fixed to handle speculation checks.
6092 (rtx_needs_barrier): Fixed to handle speculative loads and
6093 their checks.
6094 (ia64_variable_issue): Added code to count speculative loads and their
6095 checks.
6096 (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
6097 speculative loads.
6098 (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
6099 New enumerations.
6100 (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
6101 New constants.
6102 (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
6103 (ia64_reorg): Reset stops_p to NULL after it is freed.
6104 * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
6105 UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
6106 (itanium_class): chk_s renamed to chk_s_i. New constants: chk_s_f,
6107 chk_a.
6108 (data_speculative, control_speculative, check_load): New attributes.
6109 (mov<mode>_advanced, mov<mode>_speculative,
6110 mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
6111 zero_extend<mode>di2_speculative,
6112 zero_extend<mode>di2_speculative_advanced): New patterns for
6113 data and control speculative loads.
6114 (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
6115 check loads.
6116 (advanced_load_check_clr_<mode>, speculation_check_<mode>):
6117 New pattern for data and control speculation checks.
6118 (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
6119 ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
6120 reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
6121 Auxiliary definitions for the patterns.
6122 * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
6123 1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
6124 constraints.
6125 (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
6126 for speculation.
6127 (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
6128 * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
6129 2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
6130 New resource constraints.
6131 (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
6132 for speculation.
6133 (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
6134 * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
6135 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
6136 msched-in-control-spec, msched-ldc, msched-control-ldc,
6137 msched-spec-verbose, msched-prefer-non-data-spec-insns,
6138 msched-prefer-non-control-spec-insns,
6139 msched-count-spec-in-critical-path): New flags to tune speculative
6140 scheduling.
6141 * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
6142 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
6143 msched-in-control-spec, msched-ldc, msched-control-ldc,
6144 msched-spec-verbose, msched-prefer-non-data-spec-insns,
6145 msched-prefer-non-control-spec-insns,
6146 msched-count-spec-in-critical-path): Document new flags.
6147
6148 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
6149
6150 * target.h (struct spec_info_def): New opaque declaration.
6151 (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
6152 speculate_insn, needs_block_p, gen_check,
6153 first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
6154 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
6155 TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
6156 TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
6157 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
6158 TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
6159 gcc_target.sched.
6160 (TARGET_SCHED): Use new macros.
6161 * rtl.h (copy_DEPS_LIST_list): New prototype.
6162 * sched-int.h (struct sched_info): Change signature of new_ready field,
6163 adjust all initializations. New fields: add_remove_insn,
6164 begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
6165 region_head_or_leaf_p.
6166 (struct spec_info_def): New structure declaration.
6167 (spec_info_t): New typedef.
6168 (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
6169 recovery_block, orig_pat.
6170 (glat_start, glat_end): New variables declaraions.
6171 (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
6172 New access macros.
6173 (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
6174 DETACH_LIFE_INFO, USE_GLAT.
6175 (enum SPEC_SCHED_FLAGS): New enumeration.
6176 (NOTE_NOTE_BB_P): New macro.
6177 (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
6178 attach_life_info, debug_spec_status, check_reg_live): New functions.
6179 (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
6180 all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
6181 sched-ebb.c
6182 (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
6183 * ddg.c (get_block_head_tail): Adjust all uses.
6184 * modulo-sched.c (get_block_head_tail): Adjust all uses.
6185 (sms_sched_info): Initialize new fields.
6186 (contributes_to_priority): Removed.
6187 * haifa-sched.c (params.h): New include.
6188 (get_block_head_tail): Adjust all uses.
6189 (ISSUE_POINTS): New macro.
6190 (glat_start, glat_end): New global variables.
6191 (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
6192 nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
6193 old_last_basic_block, before_recovery, current_sched_info_var,
6194 rgn_n_insns, luid): New static variables.
6195 (insn_cost1): New function. Move logic from insn_cost to here.
6196 (find_insn_reg_weight1): New function. Move logic from
6197 find_insn_reg_weight to here.
6198 (reemit_notes, move_insn, max_issue): Change signature.
6199 (move_insn1): Removed.
6200 (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
6201 extend_bb): New static functions to support extension of scheduler's
6202 data structures.
6203 (generate_recovery_code, process_insn_depend_be_in_spec,
6204 begin_speculative_block, add_to_speculative_block,
6205 init_before_recovery, create_recovery_block, create_check_block_twin,
6206 fix_recovery_deps): New static functions to support
6207 generation of recovery code.
6208 (fix_jump_move, find_fallthru_edge, dump_new_block_header,
6209 restore_bb_notes, move_block_after_check, move_succs): New static
6210 functions to support ebb scheduling.
6211 (init_glat, init_glat1, attach_life_info1, free_glat): New static
6212 functions to support handling of register live information.
6213 (associate_line_notes_with_blocks, change_pattern, speculate_insn,
6214 sched_remove_insn, clear_priorities, calc_priorities, bb_note,
6215 add_jump_dependencies): New static functions.
6216 (check_cfg, has_edge_p, check_sched_flags): New static functions for
6217 consistancy checking.
6218 (debug_spec_status): New function to call from debugger.
6219 (priority): Added code to handle speculation checks.
6220 (rank_for_schedule): Added code to distinguish speculative instructions.
6221 (schedule_insn): Added code to handle speculation checks.
6222 (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
6223 Fixed to handle ebbs.
6224 (move_insn): Added code to handle ebb scheduling.
6225 (max_issue): Added code to use ISSUE_POINTS of instructions.
6226 (choose_ready): Added code to choose between speculative and
6227 non-speculative instructions.
6228 (schedule_block): Added code to handle ebb scheduling and scheduling of
6229 speculative instructions.
6230 (sched_init): Initialize new variables.
6231 (sched_finish): Free new variables. Print statistics.
6232 (try_ready): Added code to handle speculative instructions.
6233 * lists.c (copy_DEPS_LIST_list): New function.
6234 * sched-deps.c (extend_dependency_caches): New function. Move logic
6235 from create_dependency_caches to here.
6236 (get_dep_weak, ds_merge): Make global.
6237 * genattr.c (main): Code to output prototype for
6238 dfa_clear_single_insn_cache.
6239 * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
6240 (output_dfa_clean_insn_cache_func): Code to output
6241 dfa_clear_single_insn_cache function.
6242 * sched-ebb.c (target_n_insns): Remove. Adjust all users to use
6243 n_insns.
6244 (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
6245 Removed.
6246 (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
6247 New static variables.
6248 (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
6249 fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
6250 struct sched_info.
6251 (ebb_sched_info): Initialize new fields.
6252 (get_block_head_tail): Adjust all uses.
6253 (compute_jump_reg_dependencies): Fixed to use glat_start.
6254 (schedule_ebb): Code to remove unreachable last block.
6255 (schedule_ebbs): Added code to update register live information.
6256 * sched-rgn.c (region_sched_info): Initialize new fields.
6257 (get_block_head_tail): Adjust all uses.
6258 (last_was_jump): Removed. Adjust users.
6259 (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
6260 add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
6261 Implement new hooks.
6262 (check_dead_notes1): New static function.
6263 (struct region): New fields: dont_calc_deps, has_real_ebb.
6264 (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
6265 (BB_TO_BLOCK): Fixed to handle EBBs.
6266 (EBB_FIRST_BB, EBB_LAST_BB): New macros.
6267 (ebb_head): New static variable.
6268 (debug_regions, contributes_to_priority): Fixed to handle EBBs.
6269 (find_single_block_regions, find_rgns, find_more_rgns): Initialize
6270 new fields.
6271 (compute_dom_prob_ps): New assertion.
6272 (check_live_1, update_live_1): Fixed to work with glat_start instead of
6273 global_live_at_start.
6274 (init_ready_list): New assertions.
6275 (can_schedule_ready_p): Split update code to begin_schedule_ready.
6276 (new_ready): Add support for BEGIN_CONTROL speculation.
6277 (schedule_insns): Fixed code that updates register live information
6278 to handle EBBs.
6279 (schedule_region): Fixed to handle EBBs.
6280 (init_regions): Use extend_regions and check_dead_notes1.
6281 * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
6282 PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
6283 * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
6284 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
6285 TARGET_SCHED_GEN_CHECK,
6286 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
6287 TARGET_SCHED_SET_SCHED_FLAGS): Document.
6288 * doc/invoke.texi (max-sched-insn-conflict-delay,
6289 sched-spec-prob-cutoff): Document.
6290
6291 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
6292
6293 * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
6294 inter_tick, queue_index.
6295 (struct sched_info): Change signature of init_ready_list field.
6296 Adjust all initializations.
6297 (RESOLVED_DEPS): New access macro.
6298 (ready_add): Remove prototype.
6299 (try_ready): Add prototype.
6300 * sched-rgn.c (init_ready_list): Use try_ready.
6301 (schedule_region): Initialize
6302 current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
6303 * sched-ebb.c (new_ready): Remove. Adjust ebb_sched_info.
6304 (init_ready_list): Use try_ready.
6305 (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
6306 * lists.c (remove_list_elem): Remove `static'.
6307 (remove_free_INSN_LIST_elem): New function.
6308 * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
6309 * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
6310 (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
6311 New constants.
6312 (readyp): New variable.
6313 (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
6314 change_queue_index, resolve_dep): New static functions.
6315 (try_ready): New function. Adjust callers in sched-rgn.c and
6316 sched-ebb.c to use it instead of ready_add.
6317 (clock_var): Move at the begining of file.
6318 (rank_for_schedule): Fix typo.
6319 (queue_insn): Add assertion. Handle QUEUE_INDEX.
6320 (ready_lastpos): Enforce assertion.
6321 (ready_add): Make it static. Handle QUEUE_INDEX. Add new argument,
6322 update all callers.
6323 (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
6324 (schedule_insn): Rewrite to use try_ready and resolve_dep.
6325 (queue_to_ready): Use free_INSN_LIST_list.
6326 (early_queue_to_ready): Fix typo.
6327 (schedule_block): Init readyp. Move init_ready_list call after the
6328 initialization of clock_var. Fix error in rejecting insn by
6329 targetm.sched.dfa_new_cycle. Add call to fix_inter_tick. Remove code
6330 that previously corrected INSN_TICKs. Add code for handling
6331 QUEUE_INDEX.
6332 (set_priorities): Fix typo.
6333 (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
6334 Clarify comment and code that keeps current_sched_info->next_tail
6335 non-null.
6336
6337 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
6338
6339 * sched-rgn.c (extend_rgns): New static function.
6340 (find_rgns): Use it.
6341 (gather_region_statistics, print_region_statistics): New static
6342 functions.
6343 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
6344 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
6345
6346 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
6347 Andrey Belevantsev <abel@ispras.ru>
6348
6349 * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
6350 * lists.c (unused_deps_list): New variable.
6351 (free_list): Add assertions to verify the proper distinguishing
6352 between INSN_LISTs and DEPS_LISTs.
6353 (find_list_elem, remove_list_elem, remove_list_node): New static
6354 functions.
6355 (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
6356 remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
6357 remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
6358 (alloc_INSN_LIST): Assert that the list we're working on is indeed
6359 an INSN_LIST.
6360 (free_INSN_LIST_node): Likewise.
6361 * modulo-sched.c (current_sched_info): Initialize flags field.
6362 * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
6363 * rtl.def (DEPS_LIST): Define.
6364 * rtl.h: Declare new functions from lists.c.
6365 * sched-deps.c (spec_dependency_cache): New static variable.
6366 (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
6367 (add_dependence): Change return type to void. Move the logic to ...
6368 (add_or_update_back_dep_1): ... here. Handle speculative dependencies.
6369 (delete_all_dependences): Add comment about forward_dependency_cache.
6370 Handle spec_dependency_cache. Handle DEPS_LISTs.
6371 (fixup_sched_groups): Clarify the change of priority of output
6372 and anti dependencies.
6373 (sched_analyze_2): Adjust add_dependence calls to create data
6374 speculative dependence.
6375 (add_forward_dependence): Renamed to add_forw_dep, change prototype.
6376 Adjust all callers. Handle DEPS_LISTS.
6377 (compute_forward_dependences): Use add_forw_dep. Sort LOG_LINKs in
6378 presence of speculation.
6379 (init_dependency_caches, free_dependency_caches):
6380 Handle spec_dependency_cache.
6381 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
6382 estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
6383 New static functions.
6384 (add_or_update_back_dep, add_or_update_back_forw_dep,
6385 add_back_forw_dep, delete_back_forw_dep): New functions.
6386 * sched-int.h (ds_t, dw_t): New typedefs.
6387 (struct sched_info): Add new field flags.
6388 (struct haifa_insn_data): Add new bitfield has_internal_dep.
6389 Prototype new sched-deps.c functions.
6390 (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
6391 (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
6392 MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
6393 BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
6394 SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
6395 SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
6396 New constants.
6397 (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
6398 New enums.
6399 * sched-rgn.c (current_sched_info): Initialize flags field.
6400 (schedule_insns): Initialize current_sched_info before the sched_init
6401 call.
6402 * sched-ebb.c (current_sched_info): Initialize flags field.
6403 (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
6404 Call add_or_update_back_dep instead of add_dependence.
6405 Create control speculative dependencies.
6406 (schedule_insns): Initialize current_sched_info before the sched_init
6407 call.
6408
6409 2006-03-16 Kaz Kojima <kkojima@gcc.gnu.org>
6410
6411 * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
6412 fs->signal_frame.
6413 (sh_fallback_frame_state): Likewise.
6414
6415 2006-03-15 Geoffrey Keating <geoffk@apple.com>
6416
6417 * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
6418 Do switch on default_use_cxa_atexit.
6419 (powerpc*-*-darwin*): Build crt2.o on powerpc.
6420 * config/darwin-crt3.o: New.
6421 * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
6422 to 10.3. Pass '-multiply_defined suppress' if crt3.o is in use.
6423 (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
6424 OS version.
6425 * config/rs6000/t-darwin: Move crt2.o building to here.
6426 * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
6427 Mac OS version for using __cxa_get_exception_ptr. Don't test versions
6428 of __cxa_atexit.
6429
6430 2006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6431
6432 * config/vax/vax.c (nonindexed_address_p): Change logical negation
6433 from '! xxx' to '!xxx' for coding-style conformance.
6434 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
6435 (EXTRA_CONSTRAINT): Likewise.
6436 * config/vax/vax.md (four unnamed insns): Likewise.
6437
6438 2006-03-15 Paul Brook <paul@codesourcery.com>
6439
6440 * config/arm/arm.c (minipool_pad): New.
6441 (add_minipool_forward_ref): Include pool alignment padding in address
6442 calculation.
6443 (push_minipool_fix): Set minipool_pad.
6444 (minipool_pad): Ditto.
6445
6446 2006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6447
6448 * config/vax/vax.c (split_quadword_operands): Use MEM_P()
6449 instead of GET_CODE() == MEM and REG_P() instead of
6450 GET_CODE() == REG.
6451 (print_operand_address): Likewise.
6452 (vax_address_cost): Likewise.
6453 (vax_rtx_costs): Likewise.
6454 (vax_notice_update_cc): Likewise.
6455 (vax_output_int_add): Likewise.
6456 (INDEX_REGISTER_P): Likewise.
6457 (BASE_REGISTER_P): Likewise.
6458 (nonindexed_address_p): Likewise.
6459 (vax_mode_dependent_address_p): Likewise.
6460 * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
6461 (PRINT_OPERAND): Likewise.
6462 * config/vax/vax.md (ashlsi3): Likewise.
6463 (ashlsi3): Likewise.
6464 (some more unnamed insns): Likewise.
6465
6466 2006-03-15 Kazu Hirata <kazu@codesourcery.com>
6467
6468 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
6469 iterator-style macro.
6470 (mark_control_dependent_edges_necessary): Update the use of
6471 EXECUTE_IF_CONTROL_DEPENDENT.
6472
6473 2006-03-15 J"orn Rennecke <joern.rennecke@st.com>
6474
6475 * config/sh/predicates.md (cache_address_operand): Special.
6476 (ua_address_operand): Likewise.
6477
6478 2006-03-15 Zdenek Dvorak <dvorakz@suse.cz>
6479
6480 * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
6481 loop notes.
6482 * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
6483
6484 2006-03-15 Andreas Schwab <schwab@suse.de>
6485
6486 * gensupport.c (identify_predicable_attribute): Don't free p_false
6487 when it is still in use.
6488
6489 2006-03-15 Eric Botcazou <ebotcazou@libertysurf.fr>
6490
6491 * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
6492 the default setting here.
6493
6494 2006-03-14 Steven Bosscher <stevenb.gcc@gmail.com>
6495
6496 * tree-pass.h (pass_cfg): Remove.
6497 * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
6498 * passes.c (pass_cfg): Don't run it.
6499
6500 2006-03-14 Kazu Hirata <kazu@codesourcery.com>
6501
6502 * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
6503 * reg-stack.c (stack_regs_mentioned_data): Change the type to
6504 VEC(char,heap) *.
6505 (stack_regs_mentioned): Update the uses of
6506 stack_regs_mentioned_data. Don't access the array beyond its
6507 end.
6508 (reg_to_stack): Update the uses of stack_regs_mentioned_data.
6509 Don't include gt-reg-stack.h.
6510
6511 * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
6512 * system.h (UNALIGNED_WORD_ASM_OP): Poison.
6513
6514 * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
6515
6516 PR middle-end/26684
6517 * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
6518 STACK_REGS.
6519
6520 2006-03-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6521
6522 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
6523
6524 2006-03-14 Richard Guenther <rguenther@suse.de>
6525
6526 PR tree-optimization/26672
6527 * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
6528 SSA form.
6529
6530 2006-03-14 Richard Guenther <rguenther@suse.de>
6531
6532 PR tree-optimization/26667
6533 * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
6534 node for the callees. Always allow inlining if it will shrink
6535 the function size.
6536
6537 2006-03-14 Richard Guenther <rguenther@suse.de>
6538
6539 PR middle-end/26659
6540 * builtins.c (get_pointer_alignment): Prefer alignment
6541 information from decls over that from types.
6542
6543 2006-03-14 Andrew Pinski <pinskia@physics.uc.edu>
6544
6545 PR target/26657
6546 * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
6547
6548 2006-03-14 Joseph S. Myers <joseph@codesourcery.com>
6549
6550 * config/rs6000/rs6000.opt (mdlmzb): New option.
6551 (msched-prolog, msched-epilog): Use Var not Mask.
6552 * doc/invoke.texi (-mdlmzb): Document.
6553 * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
6554 MASK_SCHED_PROLOG.
6555 (rs6000_override_options): Enable -mdlmzb for 405 and 440.
6556 * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
6557
6558 2006-03-13 Uttam Pawar <uttamp@us.ibm.com>
6559
6560 PR rtl-optimization/25739
6561 * bt-load.c (augment_live_range): Free tos pointer.
6562
6563 * gensupport.c (identify_predicable_attribute): Free
6564 p_false pointer.
6565 * gcov.c (create_file_names): Free name pointer.
6566
6567 2006-03-13 Roger Sayle <roger@eyesopen.com>
6568
6569 PR middle-end/26557
6570 * stmt.c (emit_case_nodes): Handle the case where the index is a
6571 CONST_INT, where the comparison mode is specified by the index type.
6572
6573 2006-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6574
6575 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
6576 is defined.
6577
6578 2006-03-13 Richard Sandiford <richard@codesourcery.com>
6579
6580 * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
6581 (*branch_fp_inverted): Likewise.
6582
6583 2006-03-13 Jakub Jelinek <jakub@redhat.com>
6584
6585 PR middle-end/25989
6586 * omp-low.c (expand_omp_for_generic): Mark istart0
6587 and iend0 as addressable.
6588
6589 2006-03-13 Jie Zhang <jie.zhang@analog.com>
6590
6591 * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
6592
6593 2006-03-13 Jeff Law <law@redhat.com>
6594
6595 * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
6596 virtual operands are interesting.
6597 (vrp_visit_stmt): Corresponding changes.
6598
6599 2006-03-13 Bernd Schmidt <bernd.schmidt@analog.com>
6600
6601 * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
6602 of RETS.
6603 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
6604 TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
6605 * config/bfin/crti.S: Use it instead of __PIC__.
6606 * config/bfin/crtn.S: Likewise.
6607
6608 * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
6609 call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
6610 not if flag_pic.
6611 Lose 'G' modifier for call operand.
6612 * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
6613 recognize 'G' modifier.
6614
6615 2006-03-13 Eric Botcazou <ebotcazou@adacore.com>
6616
6617 PR middle-end/18859
6618 * gimplify.c (gimplify_switch_expr): Discard empty ranges.
6619 * stmt.c (expand_case): Likewise.
6620
6621 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
6622
6623 PR rtl-optimization/26254
6624 * loop-invariant.c (seq_insns_valid_p): New function.
6625 (move_invariant_reg): Only emit new code if it is valid.
6626
6627 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
6628
6629 * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
6630 Removed.
6631 (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
6632 (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
6633 (commit_one_edge_insertion): Do not look for loop notes.
6634
6635 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
6636
6637 * jump.c (follow_jumps): Do not check for loop notes. Move check for
6638 flag_test_coverage out of loop.
6639
6640 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
6641
6642 * final.c (shorten_branches): Remove outdated comment, and turn
6643 the if branch that guards it to continue.
6644
6645 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
6646
6647 * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
6648 * cfgloop.h (struct loop): Remove unused fields.
6649
6650 2006-03-13 Kazu Hirata <kazu@codesourcery.com>
6651
6652 * doc/invoke.texi (-fdump-rtl-loop): Remove.
6653 (-dL, -fdump-rtl-loop2): Update the dump file names
6654
6655 * doc/invoke.texi: Update dump file names.
6656
6657 2006-03-12 Steven Bosscher <stevenb.gcc@gmail.com>
6658
6659 * predict.c (estimate_probability): Remove.
6660 * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
6661 * basic-block.h (estimate_probability): Remove prototype.
6662 * passes.c (finish_optimization_passes): Dump branch prediction or
6663 profiling heuristics to the .profile tree dump.
6664 (init_optimization_passes): Unqueue pass_branch_prob.
6665
6666 * doc/invoke.texi (-fdump-rtl-bp): Remove.
6667
6668 2006-03-11 Steven Bosscher <stevenb.gcc@gmail.com>
6669
6670 * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
6671 * rtl.h (LABEL_NEXTREF): Remove field accessor.
6672
6673 2006-03-11 Eric Botcazou <ebotcazou@adacore.com>
6674
6675 * function.h (frame_offset_overflow): Declare.
6676 * function.c (frame_offset_overflow): New function.
6677 (assign_stack_local_1): Call it to detect that the offset overflows.
6678 * cfgexpand.c (alloc_stack_frame_space): Likewise.
6679
6680 2006-03-11 Steven Bosscher <stevenb.gcc@gmail.com>
6681
6682 * config/sh/sh.c: Include alloc-pool.h.
6683 (label_ref_list_pool): New alloc pool.
6684 (label_ref_list_t): New type for lists of labels.
6685 (struct pool_node): Make wend a label_ref_list_t.
6686 (add_constant): Use the new type, eradicate LABEL_NEXTREF
6687 references.
6688 (dump_table): Likewise.
6689 (sh_reorg): Set up the alloc pool before using add_constant and
6690 dump_table, and destroy it when finishing.
6691
6692 2006-03-11 Richard Sandiford <richard@codesourcery.com>
6693
6694 * config/mips/mips.c: Remove redundant comment.
6695
6696 2006-03-10 Jason Merrill <jason@redhat.com>
6697
6698 PR c/26004
6699 * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
6700 the target was declared 'register'.
6701
6702 2006-03-10 Adam Nemet <anemet@caviumnetworks.com>
6703
6704 * genpreds.c (write_insn_constraint_len): Change definition of
6705 insn_constraint_len to return size_t to match the declaration.
6706
6707 2006-03-10 DJ Delorie <dj@redhat.com>
6708
6709 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
6710 start at zero.
6711 (m32c_expand_insv): Fix test for an AND mask.
6712
6713 2006-03-10 Richard Guenther <rguenther@suse.de>
6714
6715 PR middle-end/26565
6716 * builtins.c (get_pointer_alignment): Handle component
6717 references for field alignment.
6718
6719 2006-03-10 J"orn Rennecke <joern.rennecke@st.com>
6720
6721 * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
6722 when building with libgloss.
6723 (sh*elf): Implement --without-fp option.
6724 (sh64-superh-linux*): Don't multilib.
6725
6726 2006-03-10 J"orn Rennecke <joern.rennecke@st.com>
6727
6728 * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
6729
6730 2006-03-09 Andrew Pinski <pinskia@physics.uc.edu>
6731
6732 * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
6733 Set it when one of the replacement functions returned true.
6734 Return TODO_cleanup_cfg if cfgchanged is true.
6735 (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
6736
6737 2006-03-09 Adam Nemet <anemet@caviumnetworks.com>
6738
6739 * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
6740 instead of gen_lowpart.
6741
6742 2006-03-09 Richard Sandiford <richard@codesourcery.com>
6743
6744 * config/mips/mips-protos.h (mips_output_conditional_branch): Change
6745 interface.
6746 (mips_output_order_conditional_branch): Declare.
6747 * config/mips/mips.h (MIPS_BRANCH): New macro.
6748 * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
6749 for the comparison. Use gen_condjump.
6750 (mips_output_conditional_branch): Rework interface to take the
6751 asm templates for a direct branch and the inverse of a direct branch.
6752 (mips_output_order_conditional_branch): New function.
6753 (mips_builtin_branch_and_move): New function.
6754 (mips_expand_builtin_compare): Use it. Use VOIDmode for the
6755 branch condition. Use gen_single_cc as the condition for
6756 __builtin_mips_upper_* or __builtin_mips_lower_*.
6757 (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
6758 Use VOIDmode for the branch condition.
6759 * config/mips/predicates.md (order_operator): New predicate.
6760 * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
6761 (branch_fp): Rename to...
6762 (*branch_fp): ...this. Remove mode from comparison operator.
6763 Use new mips_output_conditional_branch interface.
6764 (branch_fp_inverted): Rename to...
6765 (*branch_fp_inverted): ...this and update as for *branch_fp.
6766 (*branch_zero<mode>): Rename to...
6767 (*branch_order<mode>): ...this. Remove mode from comparison operator.
6768 Use mips_output_order_conditional_branch. Only accept ordered
6769 comparisons.
6770 (*branch_zero<mode>_inverted): Rename to...
6771 (*branch_order<mode>_inverted): ...this and update as for
6772 *branch_order<mode>.
6773 (*branch_equality<mode>): Accept zero as the second operand to
6774 the equality operator. Use the new mips_output_conditional_branch
6775 interface.
6776 (*branch_equality<mode>_inverted): Likewise.
6777 (condjump): New expander.
6778 * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
6779 operator.
6780 * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
6781 (bc1any2t, bc1any2f): Likewise.
6782 (single_cc): New expander.
6783 (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
6784
6785 2006-03-09 Richard Sandiford <richard@codesourcery.com>
6786
6787 * doc/md.texi: Update documentation of MIPS constraints.
6788 * config/mips/constraints.md: New file.
6789 * config/mips/mips.md: Include it.
6790 * config/mips/mips.c (mips_char_to_class): Delete.
6791 (override_options): Don't initialize mips_char_to_class.
6792 * config/mips/mips.h (mips_char_to_class): Delete.
6793 (REG_CLASS_FROM_LETTER): Delete.
6794 (CONST_OK_FOR_LETTER_P): Delete.
6795 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6796 (EXTRA_CONSTRAINT_Y): Delete.
6797 (EXTRA_CONSTRAINT_STR): Delete.
6798 (CONSTRAINT_LEN): Delete.
6799 (EXTRA_MEMORY_CONSTRAINT): Delete.
6800
6801 2006-03-09 Diego Novillo <dnovillo@redhat.com>
6802
6803 * tree-cfg.c (move_block_to_fn): Remove the statements from the
6804 original fn's eh regions.
6805
6806 2006-03-09 Eric Botcazou <ebotcazou@adacore.com>
6807
6808 * fold-const.c (build_range_check): Make sure to use a valid type to
6809 apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
6810 transformation.
6811
6812 (range_predecessor): New static function.
6813 (range_successor): Likewise.
6814 (merge_ranges): Use them to compute predecessors and successors of
6815 range bounds.
6816
6817 2006-03-09 Roger Sayle <roger@eyesopen.com>
6818
6819 PR middle-end/26561
6820 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
6821 X op C3, consider whether C3 overflows towards +Inf or -Inf.
6822
6823 2006-03-08 DJ Delorie <dj@redhat.com>
6824
6825 * config/m32c/addsub.md (addqi3): Disparage a0/a1.
6826 (addpsi3): Expand to include memory operands. Remove
6827 reload-specific splits.
6828 * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
6829 (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
6830 (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
6831 (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
6832 (shift1_qi, shift1_hi, insv): New.
6833 * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
6834 (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
6835 cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
6836 cond_to_int): New.
6837 * config/m32c/m32c-protos.h: Update as needed.
6838 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
6839 default the Rcr, Rcl, Raw, and Ral constraints. Add Ra0 and Ra1.
6840 Fail for unrecognized R* constraints.
6841 (m32c_cannot_change_mode_class): Be more picky about pseudos.
6842 (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
6843 (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
6844 Add Sp constraint.
6845 (m32c_init_libfuncs): New.
6846 (m32c_legitimate_address_p): Add debug wrapper.
6847 (m32c_rtx_costs): New.
6848 (m32c_address_cost): New.
6849 (conversions): Add 'B' prefix.
6850 (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
6851 operands, or word regnames for QI operands. 'B' prints bit
6852 position.
6853 (m32c_expand_setmemhi): New.
6854 (m32c_expand_movmemhi): New.
6855 (m32c_expand_movstr): New.
6856 (m32c_expand_cmpstr): New.
6857 (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
6858 (m32c_expand_neg_mulpsi3): Handle non-ints.
6859 (m32c_cmp_flg_0): New.
6860 (m32c_expand_movcc): New.
6861 (m32c_expand_insv): New.
6862 (m32c_scc_pattern): New.
6863 * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS. Take
6864 a0/a1 out of SIregs.
6865 (STORE_FLAG_VALUE): New.
6866 * config/m32c/m32c.md: Add unspecs for string moves. Define various mode and
6867 code macros.
6868 (no_insn): New.
6869 * config/m32c/mov.md: Make constraints more liberal.
6870 (zero_extendqihi2): Optimize r0/r1 case.
6871 * config/m32c/muldiv.md (mulpsi3): Check for intvals.
6872 * config/m32c/predicates.md (m32c_any_operand): New.
6873 (m32c_nonimmediate_operand): New.
6874 (m32c_hl_operand): New.
6875 (m32c_r3_operand): New.
6876 (ap_operand): New.
6877 (ma_operand): New.
6878 (memsym_operand): New.
6879 (memimmed_operand): New.
6880 (a_qi_operand): New.
6881 (m32c_eqne_operator): New.
6882 (m32c_1bit8_operand): New.
6883 (m32c_1bit16_operand): New.
6884 (m32c_1mask8_operand): New.
6885 (m32c_1mask16_operand): New.
6886 * config/m32c/blkmov.md: New file.
6887 * config/m32c/t-m32c (MD_FILES): Add blkmov.
6888
6889 2006-03-08 Andreas Tobler <a.tobler@schweiz.ch>
6890
6891 * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
6892 unsigned to fix signed/unsigned comparison issue in
6893 DWARF2_FRAME_REG_OUT.
6894 (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
6895 unsigned comparison issue in DWARF2_FRAME_REG_OUT.
6896
6897 * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
6898 of ptr into the ENABLE_CHECKING section.
6899
6900 2006-03-08 Jeff Law <law@redhat.com>
6901
6902 * tree-vrp.c (infer_value_range): Only count pointer uses
6903 and dereferences if -fdelete-null-pointer-checks is enabled.
6904
6905 * tree-vrp.c (find_assert_locations): Infer value ranges for
6906 single use pointers, but do not create ASSERT_EXPRs for them.
6907 When a non-null range is inferred for a pointer, backwards
6908 propagate that range to other equivalent pointers through the
6909 use-def chain.
6910
6911 2006-03-08 Paolo Bonzini <bonzini@gnu.org>
6912
6913 PR bootstrap/26500
6914 * Makefile.in (dvi, html, install-info): Invoke the corresponding
6915 language hook targets.
6916 * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
6917 objcp/Make-lang.in: Create stub rules for dvi, html, install-info
6918 if language hook targets were missing.
6919
6920 2006-03-07 Zdenek Dvorak <dvorakz@suse.cz>
6921
6922 * tree-ssa-opfinalize.h: Removed.
6923 * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
6924 dependency.
6925 * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
6926 (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
6927 INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
6928 add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
6929 finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
6930 finalize_ssa_v_must_def_ops): New.
6931
6932 2006-03-07 Kenneth Zadeck <zadeck@naturalbridge.com>
6933
6934 * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
6935 block as parameter.
6936
6937 2006-03-07 Geoffrey Keating <geoffk@apple.com>
6938
6939 * varasm.c (assemble_end_function): Say that 'fnname' is unused.
6940
6941 * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
6942 addresses with offsets; reorganize.
6943
6944 * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
6945 (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
6946 (expand_builtin_init_dwarf_reg_sizes): Likewise.
6947
6948 2006-03-08 David Billinghurst <David.Billinghurst@riotinto.com>
6949
6950 PR target/26588
6951 * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
6952
6953 2006-03-08 Ben Elliston <bje@au.ibm.com>
6954
6955 * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
6956
6957 2006-03-07 Aldy Hernandez <aldyh@redhat.com>
6958
6959 PR gomp/26238
6960 * doc/passes.texi (Tree-SSA passes): Document omp lowering and
6961 expansion.
6962
6963 2006-03-07 Richard Guenther <rguenther@suse.de>
6964
6965 PR tree-optimization/26587
6966 * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
6967
6968 2006-03-07 Richard Sandiford <richard@codesourcery.com>
6969
6970 * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
6971
6972 2006-03-07 Richard Sandiford <richard@codesourcery.com>
6973
6974 * hooks.c (hook_bool_mode_rtx_true): New function.
6975 * hooks.h (hook_bool_mode_rtx_true): Declare.
6976 * toplev.c (compile_file): Call output_shared_constant_pool.
6977 * varasm.c (shared_constant_pool): New variable.
6978 (assemble_start_function, assemble_end_function): Remove arguments
6979 from call to output_constant_pool.
6980 (create_constant_pool): New function, split out from...
6981 (init_varasm_status): ...here.
6982 (force_const_mem): Choose between the shared and per-function constant
6983 pools. Set current_function_uses_const_pool when reusing old entries
6984 as well as when creating new ones.
6985 (mark_constant): Ignore data argument.
6986 (mark_constants): Remove pool argument.
6987 (mark_constant_pool): Likewise. Use current_function_uses_const_pool
6988 to decide whether the function uses a constant pool.
6989 (output_constant_pool_contents): New function, split out from...
6990 (output_constant_pool): ...here.
6991 (output_shared_constant_pool): New function.
6992 (init_varasm_once): Initialize shared_constant_pool.
6993 * output.h (output_constant_pool): Delete.
6994 (output_shared_constant_pool): Declare.
6995 * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
6996 * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
6997
6998 2006-03-06 Nick Clifton <nickc@redhat.com>
6999
7000 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
7001 flag_strength_reduce.
7002
7003 2006-03-06 Ben Elliston <bje@au.ibm.com>
7004
7005 * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
7006 x86_64-*-linux* configurations.
7007
7008 * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
7009 (LIBGCC2_WORDS_BIG_ENDIAN): Define.
7010
7011 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
7012
7013 * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
7014 Remove.
7015 * basic-block.h: Remove the extern for
7016 rediscover_loops_after_threading.
7017
7018 * cfgloop.c (cancel_loop): Make it static.
7019 * cfgloop.h: Remove the prototype for cancel_loop.
7020
7021 * flow.c (recompute_reg_usage): Make it static.
7022 * rtl.h: Remove the prototype for recompute_reg_usage.
7023
7024 * function.c (use_return_register): Make it static.
7025 * function.h: Remove the prototype.
7026
7027 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
7028
7029 * recog.c (volatile_mem_p, validate_change_maybe_volatile):
7030 Remove.
7031 * recog.h: Remove the prototype for
7032 validate_change_maybe_volatile.
7033
7034 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
7035
7036 * rtlanal.c (replace_reg): Remove.
7037 * rtl.h: Remove the prototype for replace_reg.
7038
7039 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
7040
7041 * regclass.c (reg_scan_update): Remove.
7042 (reg_scan_mark_refs): Remove the last argument.
7043 * rtl.h: Remove the prototype for reg_scan_update.
7044
7045 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
7046
7047 * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
7048 combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
7049 config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
7050 config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
7051 df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
7052 loop-invariant.c, omp-low.c, opts.c, passes.c,
7053 rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
7054 tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
7055 tree-ssa-structalias.c, tree-ssa-threadedge.c,
7056 tree-ssa-threadupdate.c, tree-vect-patterns.c,
7057 tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
7058 unwind-dw2.c: Fix comment typos. Follow spelling conventions.
7059
7060 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
7061
7062 * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
7063 * dwarf2out.h: Remove the prototype for
7064 dwarf2out_add_library_unit_info.
7065
7066 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
7067
7068 * tree.c (add_var_to_bind_expr): Remove.
7069 * tree.h: Remove the prototype for add_var_to_bind_expr.
7070
7071 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
7072
7073 * regclass.c (n_non_fixed_regs): Remove.
7074 (init_reg_sets_1, globalize_reg): Remove all uses of
7075 n_non_fixed_regs.
7076 * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
7077
7078 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
7079
7080 * rtlanal.c (insns_safe_to_move_p): Remove.
7081 * rtl.h: Remove the prototype for insns_safe_to_move_p.
7082
7083 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
7084
7085 * expmed.c (expand_mult_add): Remove.
7086 * expr.h: Remove the prototype for expand_mult_add.
7087
7088 2006-03-04 Jakub Jelinek <jakub@redhat.com>
7089
7090 * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
7091 and REG_SAVED_VAL_EXP constants.
7092 * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
7093 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
7094 Handle regs stored by value.
7095 (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
7096 (execute_cfa_program): Handle DW_CFA_val_offset,
7097 DW_CFA_val_offset_sf and DW_CFA_val_expression.
7098 (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
7099 value specially. Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
7100 (uw_install_context_1): Handle target regs stored by value.
7101
7102 2006-03-03 Daniel Berlin <dberlin@dberlin.org>
7103
7104 * tree-sra.c (tree_sra): Return todoflags;
7105 (generate_one_element): Set TODO_update_smt_usage if needed.
7106 (pass_sra): Remove TODO_update_smt_usage.
7107 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
7108 parameter.
7109 (tree_ssa_forward_propagate_single_use_vars): Return
7110 TODO_update_smt_usage if we need to update SMT usage.
7111 (pass_forwprop): Remove TODO_update_smt_usage.
7112
7113 2006-03-03 Diego Novillo <dnovillo@redhat.com>
7114
7115 * tree-ssa-operands.c: Tidy whitespace. Fix spelling.
7116 (correct_use_link): Remove reference to get_stmt_operands.
7117 (update_stmt_operands): Likewise.
7118 (get_modify_expr_operands): New function factored out of
7119 parse_ssa_operands and get_expr_operands.
7120 Try to create V_MUST_DEFs for LHS by default.
7121 (get_expr_operands) <case MODIFY_EXPR>: Call
7122 get_modify_expr_operands.
7123 <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
7124 <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
7125 (parse_ssa_operands) <case MODIFY_EXPR>: Call
7126 get_modify_expr_operands.
7127
7128 2006-03-03 Kazu Hirata <kazu@codesourcery.com>
7129
7130 * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
7131 * tree-flow.h: Remove the prototype for
7132 referenced_var_lookup_if_exists.
7133
7134 2006-03-03 Steve Ellcey <sje@cup.hp.com>
7135
7136 PR rtl-optimization/26345
7137 PR target/19061
7138 * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
7139
7140 2006-03-03 Roger Sayle <roger@eyesopen.com>
7141
7142 PR tree-optimization/26524
7143 * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
7144 fold_convert to create a constant of the appropriate type.
7145
7146 2006-03-03 Richard Sandiford <richard@codesourcery.com>
7147
7148 * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
7149 SYMBOL_REF_IN_BLOCK_P.
7150 * doc/rtl.texi: Likewise. Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
7151 of SYMBOL_FLAG_IN_BLOCK.
7152 * gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
7153 instead of SYMBOL_REF_IN_BLOCK_P.
7154 * explow.c (use_anchored_address): Likewise.
7155 * rtl.c (rtx_size): Likewise.
7156 * varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
7157 instead of SYMBOL_FLAG_IN_BLOCK.
7158 (make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
7159 SYMBOL_REF_IN_BLOCK_P.
7160 (assemble_variable): Likewise.
7161 (output_constant_def_contents): Likewise.
7162 (output_constant_pool): Likewise.
7163 (default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
7164 instead of SYMBOL_FLAG_IN_BLOCK.
7165 * rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
7166 SYMBOL_REF_IN_BLOCK_P.
7167 (SYMBOL_REF_BLOCK): Likewise.
7168 (SYMBOL_REF_OFFSET): Likewise.
7169 (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
7170 SYMBOL_REF_IN_BLOCK_P.
7171 (SYMBOL_FLAG_IN_BLOCK): Replace with...
7172 (SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
7173 (SYMBOL_REF_IN_BLOCK_P): Replace with...
7174 (SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.
7175
7176 2006-03-03 Jakub Jelinek <jakub@redhat.com>
7177
7178 * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Fix pasto.
7179
7180 2006-03-02 Roger Sayle <roger@eyesopen.com>
7181
7182 * simplify-rtx.c (simplify_unary_operation): When simplifying
7183 (neg (lt X 0)) into (ashiftrt X C) or (lshiftrt X C), make sure
7184 that we perform the right shift in the appropriate mode, and
7185 then extend or truncate the result to requested mode.
7186
7187 2006-03-03 Zdenek Dvorak <dvorakz@suse.cz>
7188
7189 * gengtype.c (main): Handle double_int type.
7190 * tree.h (struct tree_int_cst): Make type of int_cst double_int.
7191 * double-int.c: New file.
7192 * double-int.h: New file.
7193 * system.h: Include doubleint.h.
7194 * Makefile.in (SYSTEM_H): Include double-int.h.
7195 (double-int.o): Add.
7196
7197 2006-03-03 Joseph S. Myers <joseph@codesourcery.com>
7198
7199 PR bootstrap/26478
7200 * Makefile.in (stmp-int-hdrs): Remove include/unwind.h before
7201 copying over it.
7202
7203 2006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
7204
7205 * tree-vrp.c (remove_range_assertions): Do not update statements
7206 unnecessarily.
7207
7208 2006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
7209
7210 * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
7211 cleanup.
7212 * gcse.c (rest_of_handle_gcse): Ditto.
7213 * except.c (gate_handle_eh): Ditto.
7214 * cfgcleanup.c (rest_of_handle_jump2): Ditto.
7215 * basic-block.h (CLEANUP_PRE_LOOP): Remove.
7216
7217 2006-03-02 Eric Christopher <echristo@apple.com>
7218
7219 * config/i386/i386.c (machopic_output_stub): Add indirection to
7220 jump.
7221
7222 2006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
7223
7224 * loop.c: Removed.
7225
7226 2006-03-02 David S. Miller <davem@sunset.davemloft.net>
7227
7228 Sun Niagara specific optimizations.
7229 * config.gcc: Recognize niagara as target.
7230 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Mention Niagara.
7231 (TARGET_CPU_niagara): Define.
7232 (CPP_CPU64_DEFAULT_SPEC): Define __sparc_v9__ for Niagara.
7233 (ASM_CPU64_DEFAULT_SPEC): Pass -Av9b for Niagara.
7234 (CPP_CPU_SPEC): Handle -mcpu=niagara.
7235 (ASM_CPU_SPEC): Likewise.
7236 (PROCESSOR_NIAGARA): New enum entry.
7237 (REGISTER_MOVE_COST): Handle Niagara.
7238 (BRANCH_COST, PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): Likewise.
7239 * config/sparc/sparc.c (niagara_costs): New processor_costs entry.
7240 (sparc_override_options): Recognize "niagara", set appropriate
7241 default MASK_* values for it, and align functions to 32-bytes
7242 by default just like ULTRASPARC/ULTRASPARC3.
7243 (sparc_initialize_trampoline): Handle niagara like ultrasparc.
7244 (sparc64_initialize_trampoline): Likewise.
7245 (sparc_use_sched_lookahead): Use zero for niagara.
7246 (sparc_issue_rate): Use one for niagara.
7247 * config/sparc/niagara.md: New file.
7248 * config/sparc/sparc.md: Include it.
7249 * config/sparc/sol2-bi.h (CPP_CPU64_DEFAULT_SPEC,
7250 ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Set appropriately
7251 when default cpu is niagara.
7252 (CPP_CPU_SPEC): Handle -mcpu=niagara.
7253 (ASM_CPU_SPEC): Likewise.
7254 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Set appropriately
7255 when default cpu is niagara.
7256 (ASM_CPU_SPEC): Handle -mcpu=niagara.
7257 * config/sparc/linux64.h: Handle a default of TARGET_CPU_niagara
7258 just like v9/ultrasparc/ultrasparc3.
7259 * doc/invoke.texi: Add documentation for "niagara" and improve
7260 existing documentation for ultrasparc variants.
7261
7262 2006-03-02 Diego Novillo <dnovillo@redhat.com>
7263
7264 * tree-ssa-operands.c (update_stmt_operands): Update documentation.
7265
7266 2006-03-02 Richard Sandiford <richard@codesourcery.com>
7267
7268 * doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
7269 (ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
7270 and say that only one is needed.
7271 * doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
7272 * target.h (have_switchable_bss_sections): New hook.
7273 * explow.c (use_anchored_address): Check that the symbol is in a block.
7274 * varasm.c (tls_comm_section, comm_section, lcomm_section)
7275 (bss_noswitch_section): New variables.
7276 (get_unnamed_section): Add SECTION_UNNAMED to the flags.
7277 (get_noswitch_section): New function.
7278 (get_block_for_section): Allow SECT to be null.
7279 (unlikely_text_section_p): Use SECTION_STYLE.
7280 (bss_initializer_p): New function.
7281 (get_variable_section): Move earlier in file. Take a new argument,
7282 prefer_noswitch_p. Move bss checks from assemble_variable to here.
7283 Return one of the new *_sections in such cases.
7284 (get_block_for_decl): New function, extracting some logic from
7285 use_blocks_for_decl_p.
7286 (change_symbol_section): Remove in favor of...
7287 (change_symbol_block): ...this new function.
7288 (use_blocks_for_decl_p): Remove checks now performed by
7289 get_block_for_decl.
7290 (make_decl_rtl): Use change_symbol_block and get_block_for_decl.
7291 (ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
7292 (emit_local, emit_bss, emit_common): ...these new functions.
7293 Return true if the alignment was honored.
7294 (emit_tls_common): New function.
7295 (asm_emit_uninitialised): Delete.
7296 (assemble_variable_noswitch): New function, split out from...
7297 (assemble_variable): ...here. Don't make decisions about common
7298 variables here. Globalize all public decls that go into non-common
7299 sections. Check whether SYMBOL_REF_BLOCK is null.
7300 (output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
7301 (output_constant_pool): Likewise.
7302 (init_varasm_once): Initialize the new section variables.
7303 (have_global_bss_p): New function.
7304 (categorize_decl_for_section): Use bss_initializer_p.
7305 (switch_to_section): Use SECTION_STYLE. Abort for SECTION_NOSWITCH.
7306 (place_block_symbol): Assert that the symbol must be in a block.
7307 * target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
7308 (TARGET_INITIALIZER): Include it.
7309 * rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
7310 * output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
7311 (SECTION_MACH_DEP): Bump by two.
7312 (SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
7313 (unnamed_section): Mention SECTION_UNNAMED in comment.
7314 (named_section): Likewise SECTION_NAMED.
7315 (noswitch_section_callback): New type.
7316 (noswitch_section): New structure.
7317 (section): Add a noswitch_section alternative.
7318 (SECTION_STYLE): New macro.
7319 (tls_comm_section, comm_section, lcomm_section): Declare.
7320 (bss_noswitch_section, have_global_bss_p): Declare.
7321 * config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
7322 * config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
7323 Override.
7324 * config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
7325 * config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
7326 Override.
7327
7328 2006-03-02 Daniel Berlin <dberlin@dberlin.org>
7329
7330 * tree-vrp.c (execute_vrp): Return value.
7331 * regrename.c (rest_of_handle_regrename): Ditto.
7332 * tree-into-ssa.c (rewrite_into_ssa): Ditto.
7333 * tree-complex.c (tree_lower_complex): Ditto.
7334 (tree_lower_complex_O0): Ditto.
7335 * tracer.c (rest_of_handle_tracer): Ditto.
7336 * postreload-gcse.c (rest_of_handle_gcse2): Ditto.
7337 * postreload.c (rest_of_handle_postreload): Ditto.
7338 * tree-tailcall.c (execute_tail_recursion): Ditto.
7339 (execute_tail_calls): Ditto.
7340 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
7341 * tree.h (init_function_for_compilation): Ditto.
7342 * ipa-cp.c (ipcp_driver): Ditto.
7343 * tree-scalar-evolution.c (scev_const_prop): Ditto.
7344 * tree-scalar-evolution.h (scev_const_prop): Ditto.
7345 * final.c (compute_alignments): Ditto.
7346 (rest_of_handle_final): Ditto.
7347 (rest_of_handle_shorten_branches): Ditto.
7348 (rest_of_clean_state): Ditto.
7349 * omp-low.c (execute_expand_omp): Ditto.
7350 (execute_lower_omp): Ditto.
7351 * tree-ssa-dse.c (tree_ssa_dse): Ditto.
7352 * ipa-reference.c (static_execute): Ditto.
7353 * tree-ssa-uncprop.c (tree_ssa_uncprop): Ditto.
7354 * reorg.c (rest_of_handle_delay_slots): Ditto.
7355 (rest_of_handle_machine_reorg): Ditto.
7356 * cgraphunit.c (rebuild_cgraph_edges): Ditto.
7357 * flow.c (recompute_reg_usage): Ditto.
7358 (rest_of_handle_remove_death_notes): Ditto.
7359 (rest_of_handle_life): Ditto.
7360 (rest_of_handle_flow2): Ditto.
7361 * tree-ssa-copyrename.c (rename_ssa_copies): Ditto.
7362 * tree-ssa-ccp.c (do_ssa_ccp): Ditto.
7363 (do_ssa_store_ccp): Ditto.
7364 (execute_fold_all_builtins): Ditto.
7365 * mode-switching.c (rest_of_handle_mode_switching): Ditto.
7366 * modulo-sched.c (rest_of_handle_sms): Ditto.
7367 * ipa-pure-const.c (static_execute): Ditto.
7368 * cse.c (rest_of_handle_cse): Ditto.
7369 (rest_of_handle_cse2): Ditto.
7370 * web.c (rest_of_handle_web): Ditto.
7371 * tree-stdarg.c (execute_optimize_stdarg): Ditto.
7372 * tree-ssa-math-opts.c (execute_cse_reciprocals): Ditto.
7373 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
7374 * tree-nrv.c (tree_nrv): Ditto.
7375 (execute_return_slot_opt): Ditto.
7376 * tree-ssa-alias.c (compute_may_aliases): Ditto.
7377 (create_structure_vars): Ditto.
7378 * loop-init.c (rtl_loop_init): Ditto.
7379 (rtl_loop_done): Ditto.
7380 (rtl_move_loop_invariants): Ditto.
7381 (rtl_unswitch): Ditto.
7382 (rtl_unroll_and_peel_loops): Ditto.
7383 (rtl_doloop): Ditto.
7384 * gimple-low.c (lower_function_body): Ditto.
7385 (mark_used_blocks): Ditto.
7386 * tree-ssa-sink.c (execute_sink_code): Ditto.
7387 * ipa-inline.c (cgraph_decide_inlining): Ditto.
7388 (cgraph_early_inlining): Ditto.
7389 * global.c (rest_of_handle_global_alloc): Ditto.
7390 * jump.c (cleanup_barriers): Ditto.
7391 (purge_line_number_notes): Ditto.
7392 * ifcvt.c (rest_of_handle_if_conversion): Ditto.
7393 (rest_of_handle_if_after_reload): Ditto.
7394 * tree-ssa-loop.c (tree_ssa_loop_init): Ditto.
7395 (tree_ssa_loop_im): Ditto.
7396 (tree_ssa_loop_unswitch): Ditto.
7397 (tree_vectorize): Ditto.
7398 (tree_linear_transform): Ditto.
7399 (tree_ssa_loop_ivcanon): Ditto.
7400 (tree_ssa_empty_loop): Ditto.
7401 (tree_ssa_loop_bounds): Ditto.
7402 (tree_complete_unroll): Ditto.
7403 (tree_ssa_loop_prefetch): Ditto.
7404 (tree_ssa_loop_ivopts): Ditto.
7405 (tree_ssa_loop_done): Ditto.
7406 * predict.c (tree_estimate_probability): Ditto.
7407 * recog.c (split_all_insns_noflow): Ditto.
7408 (rest_of_handle_peephole2): Ditto.
7409 (rest_of_handle_split_all_insns): Ditto.
7410 * tree-eh.c (lower_eh_constructs): Ditto.
7411 * regmove.c (rest_of_handle_regmove): Ditto.
7412 (rest_of_handle_stack_adjustments): Ditto.
7413 * local-alloc.c (rest_of_handle_local_alloc): Ditto.
7414 * function.c (instantiate_virtual_regs): Ditto.
7415 (init_function_for_compilation): Ditto.
7416 (rest_of_handle_check_leaf_regs): Ditto.
7417 * gcse.c (rest_of_handle_jump_bypass): Ditto.
7418 (rest_of_handle_gcse): Ditto.
7419 * ipa-type-escape.c (type_escape_execute): Ditto.
7420 * alias.c (rest_of_handle_cfg): Ditto.
7421 * tree-if-conv.c (main_tree_if_conversion): Ditto.
7422 * profile.c (rest_of_handle_branch_prob): Ditto.
7423 * tree-ssa-phiopt.c (tree_ssa_phiopt): Ditto.
7424 * rtl-factoring.c (rest_of_rtl_seqabstr): Ditto.
7425 * bt-load.c (rest_of_handle_branch_target_load_optimize): Ditto
7426 * tree-dfa.c (find_referenced_vars): Ditto.
7427 * except.c (set_nothrow_function_flags): Ditto.
7428 (convert_to_eh_region_ranges): Ditto.
7429 (rest_of_handle_eh): Ditto.
7430 * emit-rtl.c (unshare_all_rtl): Ditto.
7431 (remove_unnecessary_notes): Ditto.
7432 * except.h (set_nothrow_function_flags): Ditto.
7433 (convert_to_eh_region_ranges): Ditto.
7434 * cfgexpand.c (tree_expand_cfg): Ditto.
7435 * tree-cfgcleanup.c (merge_phi_nodes): Ditto.
7436 * tree-ssa-pre.c (do_pre): Ditto.
7437 (execute_fre): Ditto.
7438 * cfgcleanup.c (rest_of_handle_jump): Ditto.
7439 (rest_of_handle_jump2): Ditto.
7440 * tree-sra.c (tree_sra): Ditto.
7441 * tree-mudflap.c (execute_mudflap_function_ops): Ditto.
7442 (execute_mudflap_function_decls): Ditto.
7443 * tree-ssa-copy.c (do_copy_prop): Ditto.
7444 (do_store_copy_prop): Ditto.
7445 * ipa-prop.h (ipcp_driver): Ditto.
7446 * cfglayout.c (insn_locators_initialize): Ditto.
7447 * tree-ssa-forwprop.c
7448 (tree_ssa_forward_propagate_single_use_vars): Ditto.
7449 * cfglayout.h (insn_locators_initialize): Ditto.
7450 * tree-ssa-dce.c (tree_ssa_dce): Ditto.
7451 * tree-ssa.c (execute_early_warn_uninitialized): Ditto.
7452 (execute_late_warn_uninitialized): Ditto.
7453 * rtl.h (cleanup_barriers): Ditto.
7454 (split_all_insns_noflow): Ditto.
7455 (purge_line_number_notes): Ditto.
7456 (unshare_all_rtl): Ditto.
7457 (remove_unnecessary_notes): Ditto.
7458 (recompute_reg_usage): Ditto.
7459 (variable_tracking_main): Ditto.
7460 * integrate.c (emit_initial_value_sets): Ditto.
7461 * integrate.h (emit_initial_value_sets): Ditto.
7462 * tree-optimize.c (execute_free_datastructures): Ditto
7463 (execute_free_cfg_annotations): Ditto.
7464 (execute_fixup_cfg): Ditto.
7465 (execute_cleanup_cfg_pre_ipa): Ditto.
7466 (execute_cleanup_cfg_post_optimizing): Ditto.
7467 (execute_init_datastructures): Ditto.
7468 * tree-object-size.c (compute_object_sizes): Ditto.
7469 * combine.c (rest_of_handle_combine): Ditto.
7470 * tree-outof-ssa.c (rewrite_out_of_ssa): Ditto.
7471 * bb-reorder.c (duplicate_computed_gotos): Ditto.
7472 (rest_of_handle_reorder_blocks): Ditto.
7473 (rest_of_handle_partition_blocks): Ditto.
7474 * var-tracking.c (variable_tracking_main): Ditto.
7475 * tree-profile.c (tree_profiling): Ditto.
7476 * tree-vect-generic.c (expand_vector_operations): Ditto.
7477 * reg-stack.c (rest_of_handle_stack_regs): Ditto.
7478 * sched-rgn.c (rest_of_handle_sched): Ditto.
7479 (rest_of_handle_sched2): Ditto.
7480 * basic-block.h (free_bb_insn): Ditto.
7481 * tree-ssa-structalias.c (ipa_pta_execute): Ditto.
7482 * tree-cfg.c (execute_build_cfg): Ditto.
7483 (remove_useless_stmts): Ditto.
7484 (split_critical_edges): Ditto.
7485 (execute_warn_function_return): Ditto.
7486 (execute_warn_function_noreturn): Ditto.
7487 * tree-ssa-reassoc.c (execute_reassoc): Ditto.
7488 * cfgrtl.c (free_bb_for_insn): Ditto.
7489 * passes.c (execute_one_pass): Run additional
7490 todos returned by execute function.
7491 * tree-pass.h (struct tree_opt_pass): Make execute
7492 return a value.
7493
7494 2006-03-02 Richard Guenther <rguenther@suse.de>
7495
7496 * tree-ssa-alias.c (find_used_portions): Consider taking
7497 the address as making the variable not write-only.
7498
7499 2006-03-02 Nick Clifton <nickc@redhat.com>
7500
7501 * config.gcc (default_use_cxa_atexit): Extend the description of
7502 this configure variable. Set its default value to "yes" for
7503 Linux, NetBSD and ELF targets on the assumption that they will
7504 use C libraries with the __cxa_atexit function.
7505
7506 2006-03-02 Ben Elliston <bje@au.ibm.com>
7507
7508 * config/rs6000/linux-unwind.h (frob_update_context): Mark `fs'
7509 parameter as unused to suppress a build warning.
7510
7511 2006-03-02 Ben Elliston <bje@au.ibm.com>
7512
7513 * mklibgcc.in: Depend on config/dfp-bit.h in rules that compile
7514 config/dfp-bit.c.
7515
7516 2006-03-01 Roger Sayle <roger@eyesopen.com>
7517
7518 PR other/26489
7519 * gthr-posix.h (__gthrw2): Define to take three parameters, the
7520 declared name, the weak reference name, and the typeof name.
7521 (__gthrw): Avoid expanding the declared name suffix.
7522 (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls.
7523
7524 2006-03-01 Jakub Jelinek <jakub@redhat.com>
7525
7526 * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
7527 from DWARF 3.
7528 (DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
7529 DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
7530 DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
7531 DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
7532 DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
7533 (DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
7534 (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
7535 DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
7536 (DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
7537 DW_DS_leading_separate, DW_DS_trailing_separate): New.
7538 (DW_END_default, DW_END_big, DW_END_little): New.
7539 (DW_END_lo_user, DW_END_hi_user): Define.
7540 (DW_LNE_lo_user, DW_LNE_hi_user): Define.
7541 (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
7542 (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
7543 DW_LANG_D): New.
7544
7545 2006-03-01 Diego Novillo <dnovillo@redhat.com>
7546
7547 * tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
7548 Update all users.
7549 * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage.
7550 Update all users.
7551 (TODO_update_smt_usage): Rename from TODO_update_tmt_usage.
7552 Update all users.
7553 * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE.
7554 Update all users.
7555 * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag'
7556 to 'symbol_mem_tag'.
7557 Update all users.
7558 * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT
7559 rename.
7560
7561 2006-03-01 Roger Sayle <roger@eyesopen.com>
7562
7563 * builtins.c (fold_builtin_copysign): Delete unreachable code.
7564
7565 2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
7566
7567 PR target/25761
7568 * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
7569 MACHO_DYNAMIC_NO_PIC_P.
7570 (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
7571
7572 2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
7573
7574 PR target/26389
7575 * config/darwin-protos.h (darwin_asm_output_anchor):
7576 Declare.
7577 * config/darwin-sections.def (cstring_section):
7578 Add SECTION_MERGE to the flags.
7579 (literal4_section): Likewise.
7580 (literal8_section): Likewise.
7581 (objc_selector_refs_section): Likewise.
7582 (objc_cls_refs_section): Likewise.
7583 * config/darwin.c (darwin_asm_output_anchor): New
7584 function.
7585 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
7586
7587 2006-03-01 Daniel Berlin <dberlin@dberlin.org>
7588
7589 Fix PR tree-optimization/26443
7590 * tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
7591 to todo and PROP_tmt_usage to properties_destroyed.
7592 * tree-ssa-ccp.c (pass_ccp): Ditto.
7593 (pass_store_ccp): Ditto.
7594 * tree-ssa-dom.c (pass_dominator): Ditto.
7595
7596 2006-03-01 Diego Novillo <dnovillo@redhat.com>
7597
7598 * tree-ssa-operands.c: Cleanup whitespace.
7599 (get_asm_expr_operands): Move before first invocation.
7600 (get_indirect_ref_operands): Likewise.
7601 (get_tmr_operands): Likewise.
7602 (get_call_expr_operands): Likewise.
7603 (append_def): Likewise.
7604 (append_use): Likewise.
7605 (append_v_may_def): Likewise.
7606 (append_v_must_def): Likewise.
7607 (add_call_clobber_ops): Likewise.
7608 (add_call_read_ops): Likewise.
7609 (add_stmt_operand): Likewise.
7610 (add_virtual_operand): Likewise.
7611 (build_ssa_operands): Likewise.
7612
7613 2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
7614
7615 PR middle-end/26022
7616 Revert:
7617 PR middle-end/24437
7618 * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
7619 with a call expr to ...
7620 * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
7621
7622 2006-03-01 Diego Novillo <dnovillo@redhat.com>
7623
7624 * tree-vrp.c (extract_range_from_assert): Remove special
7625 handling for types with super-types.
7626
7627 2006-03-01 Ben Elliston <bje@au.ibm.com>
7628
7629 * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
7630 and powerpc64-*-linux* configurations.
7631 * config/t-dfprules: New file.
7632
7633 * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
7634 Compile dfp-bit.c from the source directory using -DWIDTH and
7635 $DFP_CFLAGS to control the compilation of that file, rather than
7636 generating width-specific versions in the build directory.
7637 * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
7638 (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
7639
7640 2006-02-28 Zack Weinberg <zackw@panix.com>
7641
7642 * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
7643 continues to work.
7644
7645 2006-02-28 Eric Christopher <echristo@apple.com>
7646
7647 * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
7648 Set up IN_LIBGCC definition of TARGET_64BIT.
7649 * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
7650
7651 2006-02-28 Roger Sayle <roger@eyesopen.com>
7652
7653 PR middle-end/14752
7654 * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
7655 BIT_XOR_EXPR, BIT_AND_EXPR>: Delete. Let fold optimize these
7656 cases via the construction of "expr != 0".
7657
7658 2006-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
7659
7660 * alias.c (alias_invariant, alias_invariant_size): Remove.
7661 (record_base_value): Remove.
7662 (memrefs_conflict_p): Don't look at alias_invariant.
7663 (end_alias_analysis): Don't free it.
7664 * alias.h (record_base_value): Remove prototype.
7665
7666 2006-02-28 Paolo Bonzini <bonzini@gnu.org>
7667 Adam Nemet <anemet@caviumnetworks.com>
7668
7669 * rtl.h (truncated_to_mode): Declare it.
7670 (struct rtl_hooks): Add reg_truncated_to_mode hook.
7671 * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
7672 (RTL_HOOKS_INITIALIZER): Include it.
7673 * rtlhooks.c (reg_truncated_to_mode_general): New function.
7674 * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
7675 reg_truncated_to_mode.
7676 * rtlanal.c (truncated_to_mode): Define it.
7677 * simplify-rtx.c (simplify_unary_operation_1): Use it.
7678
7679 2006-02-28 Jeff Law <law@redhat.com>
7680
7681 * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
7682 conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
7683 the range allowed by TYPE_PRECISION.
7684
7685 * tree.h (strct phi_arg_d): Remove unused NONZERO field.
7686
7687 2006-02-28 Dorit Nuzman <dorit@il.ibm.com>
7688
7689 PR tree-optimization/26419
7690 * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
7691 values of n.
7692
7693 2006-02-27 Zack Weinberg <zackw@panix.com>
7694
7695 * doc/md.texi: Fix typo in previous change.
7696
7697 2006-02-27 Kenneth Zadeck <zadeck@naturalbridge.com>
7698
7699 * df.c: Remove.
7700
7701 2006-02-27 Zack Weinberg <zackw@panix.com>
7702
7703 * rtl.def (define_constraint, define_register_constraint)
7704 (define_memory_constraint, define_address_constraint): New MD forms.
7705 * gensupport.c (process_rtx): Put define_constraint etc on the
7706 predicate queue.
7707 * genpreds.c (process_define_predicate): Adjust comment. Validate
7708 the name, and call validate_exp to validate the expression.
7709 (mark_mode_tests, write_extract_subexp): Can assume correct input.
7710 (write_predicate_expr): Likewise. NAME argument no longer necessary;
7711 all callers changed.
7712 (validate_exp, needs_variable, struct constraint_data)
7713 (constraints_by_letter_table, first_constraint, last_constraint_ptr)
7714 (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
7715 (const_dbl_constraints, constraint_max_namelen)
7716 (have_register_constraints, have_memory_constraints)
7717 (have_address_constraints, have_address_constraints)
7718 (have_extra_constraints, have_const_int_constraints)
7719 (have_const_dbl_constraints, mangle, add_constraint)
7720 (process_define_constraint, process_define_register_constraint)
7721 (write_enum_constraint_num, write_lookup_constraint)
7722 (write_insn_constraint_len, write_regclass_for_constraint)
7723 (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
7724 (write_insn_extra_memory_constraint)
7725 (write_insn_extra_address_constraint)
7726 (write_satisfies_constraint_fns): New.
7727 (write_tm_preds_h): If we have new-style constraint definitions,
7728 prototype the functions generated from them, and define the
7729 old constraint interface (still used by generic code) in terms of
7730 those functions.
7731 (write_insn_preds_c): If we have new-style constraint definitions,
7732 generate all relevant functions from those definitions.
7733 (main): Handle define_constraint etc.
7734 * genoutput.c (struct constraint_data, indep_constraints)
7735 (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
7736 (mdep_constraint_len): New data structures and functions, defined
7737 #ifdef USE_MD_CONSTRAINTS.
7738 (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
7739 (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
7740 use new logic to validate operand constraints against constraint
7741 definitions.
7742 (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
7743 defined.
7744 * defaults.h: If none of the old-style constraint macros are
7745 defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
7746 old-style macros; and poison REG_CLASS_FROM_LETTER,
7747 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
7748 EXTRA_CONSTRAINT.
7749 * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
7750 * doc/md.texi: Document new constraint-definition mechanism and the
7751 C interface it provides. Remove references to old mechanism
7752 elsewhere in the document.
7753 (Machine Constraints): Use pathnames relative to gcc directory,
7754 i.e. config/ARCH/FILE. Change i386 section to refer to
7755 config/i386/predicates.md; update that section to match docstrings.
7756 * doc/tm.texi: Move all documentation of the old constraint-
7757 definition macros to their own section, clearly mark as obsolete.
7758
7759 * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
7760 (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
7761 definitions.
7762 * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
7763 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
7764 * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
7765 constraint strings.
7766 (splits and peepholes): Use satisfies_constraint_*.
7767 * config/i386/i386.c (memory_address_length)
7768 (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
7769
7770 2006-02-27 Daniel Berlin <dberlin@dberlin.org>
7771
7772 * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
7773 scalar operation to be put back into the loop.
7774
7775 2006-02-27 Jakub Jelinek <jakub@redhat.com>
7776
7777 PR other/26208
7778 * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
7779 (extract_cie_info): Handle S flag in augmentation string.
7780 (execute_cfa_program): If context->signal_frame, execute also
7781 fs->pc == context->ra instructions.
7782 (uw_frame_state_for): If context->signal_frame, don't subtract one
7783 from context->ra to find FDE.
7784 (uw_update_context_1): Set context->signal_frame to
7785 fs->signal_frame.
7786 (_Unwind_GetIPInfo): New function.
7787 * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
7788 * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
7789 of _Unwind_GetIP.
7790 * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
7791 * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
7792 * unwind-compat.c (_Unwind_GetIPInfo): New function.
7793 * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
7794 * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
7795 * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
7796 * config/i386/linux-unwind.h (x86_fallback_frame_state,
7797 x86_64_fallback_frame_state): Set fs->signal_frame.
7798 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
7799 (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
7800 (frob_update_context): Likewise. Workaround missing S flag in
7801 Linux 2.6.12 - 2.6.16 kernel vDSOs.
7802 * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
7803 Remove the psw_addr + 1 hack.
7804
7805 2006-02-27 Daniel Berlin <dberlin@dberlin.org>
7806
7807 * tree-ssa-structalias.c (get_constraint_for): Move code to deal
7808 with aggregates here.
7809 (find_func_aliases): Remove code for &<aggregate> from here.
7810
7811 2006-02-26 Roger Sayle <roger@eyesopen.com>
7812
7813 * fold-const.c (fold_binary) <EQ_EXPR>: Fold (~X & C) eq/ne 0 as
7814 (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
7815 Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
7816 as (X & C) ne/eq 0.
7817
7818 2006-02-26 Roger Sayle <roger@eyesopen.com>
7819
7820 PR middle-end/19983
7821 * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
7822
7823 2006-02-26 Zdenek Dvorak <dvorakz@suse.cz>
7824
7825 * opts.c (decode_options): Do not handle flag_strength_reduce.
7826 (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
7827 and OPT_fstrength_reduce.
7828 * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
7829 flag_prefetch_loop_arrays for being nonzero.
7830 * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
7831 no-ops.
7832 (fprefetch-loop-arrays-rtl): Removed.
7833 (flag_prefetch_loop_arrays): Do not specify the value.
7834
7835 * doc/passes.texi: Update documentation of loop optimizer
7836 passes.
7837 * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
7838 -frerun-loop-opt): Remove.
7839
7840 2006-02-26 Richard Guenther <rguenther@suse.de>
7841
7842 PR tree-optimization/26421
7843 * tree-ssa-alias.c (find_used_portions): Don't treat parameters
7844 in function calls that are ADDR_EXPRs as using the whole structure.
7845
7846 2006-02-26 Steven Bosscher <stevenb.gcc@gmail.com>
7847
7848 * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
7849 * tree-pass.h (pass_loop_optimize): Remove.
7850 * passes.c (pass_loop_optimize): Never run it.
7851 * toplev.c (backend_init): Don't call init_loop.
7852 * opts.c (flag_loop_optimize_set): Remove.
7853 (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
7854 (common_handle_option) <OPT_floop_optimize>: Remove. Don't disable
7855 the old RTL loop optimizer when profiling enabled.
7856 * predict.c (tree_estimate_probability): Always strip builtin_expect.
7857 * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
7858 pre-headers for the sake of the old RTL loop optimizer.
7859 * Makefile.in: Remove all references to loop.o.
7860
7861 * doc/invoke.texi: Remove all references to -floop-optimize
7862 and -frerun-loop-opt.
7863
7864 2006-02-26 Zack Weinberg <zackw@panix.com>
7865
7866 * doc/md.texi (Machine Constraints): Refer to all files with paths
7867 relative to gcc directory (i.e. config/CPU/file). Add missing
7868 @table @code ... @end table to M32C subsection.
7869
7870 2006-02-26 Roger Sayle <roger@eyesopen.com>
7871
7872 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
7873 (X & 1) == 0.
7874 <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
7875
7876 2006-02-26 Roger Sayle <roger@eyesopen.com>
7877 James A. Morrison <phython@gcc.gnu.org>
7878
7879 PR middle-end/21137
7880 * fold-const.c (fold_binary) <EQ_EXPR>: Fold ((X>>C1)&C2) eq/ne 0,
7881 when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
7882 new constant C2<<C1, or as (X<0) or (X,false) depending upon the
7883 signedness of the shift operation.
7884
7885 2006-02-26 Dorit Nuzman <dorit@il.ibm.com>
7886
7887 PR tree-optimization/26359
7888 * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
7889
7890 2006-02-25 Roger Sayle <roger@eyesopen.com>
7891
7892 * simplify-rtx.c (simplify_relational_operation_1): Simplify
7893 (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y. Simplify (X^Y) == Y
7894 as X == 0, and some symmetry related transformations.
7895 Simplify (X^C1) == C2 as X == (C1^C2). Split long comment line.
7896
7897 2006-02-25 Roger Sayle <roger@eyesopen.com>
7898
7899 PR middle-end/23673
7900 * fold-const.c (fold_binary) <EQ_EXPR>: Fold (X^Y) == 0 as X == Y
7901 and (X^Y) != 0 as X != Y. Fold (X^Y) == Y as X == 0, and some
7902 symmetry related transformations. Fold (X^C1) == C2 as
7903 X == (C1^C2).
7904
7905 2006-02-25 Juergen Weigert <jw@suse.de>
7906 Richard Guenther <rguenther@suse.de>
7907
7908 * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
7909
7910 2006-02-24 Adam Nemet <anemet@caviumnetworks.com>
7911
7912 * combine.c (gen_lowpart_or_truncate): Call
7913 simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
7914
7915 2006-02-24 Diego Novillo <dnovillo@redhat.com>
7916
7917 * doc/invoke.texi: Move -fopenmp description to "Options for
7918 Code Generation".
7919 Remove reference to -lgomp.
7920
7921 2006-02-24 David Edelsohn <edelsohn@gnu.org>
7922
7923 * doc/install.texi: Require GNU tar version 1.14.
7924
7925 2006-02-24 Geoffrey Keating <geoffk@apple.com>
7926
7927 * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
7928 * doc/invoke.texi (C++ Dialect Options): Document
7929 -fno-use-cxa-get-exception-ptr.
7930 * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
7931 * configure: Regenerate.
7932 * c.opt (fuse-cxa-get-exception-ptr): New.
7933 * c-opts.c (c_common_handle_option): Handle
7934 OPT_fuse_cxa_get_exception_ptr.
7935 * c-common.c (flag_use_cxa_atexit): Update documentation.
7936 (flag_use_cxa_get_exception_ptr): New.
7937 * c-common.h (flag_use_cxa_get_exception_ptr): New.
7938 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
7939 documentation.
7940 (C_COMMON_OVERRIDE_OPTIONS): New.
7941
7942 2006-02-24 Roger Sayle <roger@eyesopen.com>
7943
7944 PR middle-end/24952
7945 * combine.c (try_combine): Explicitly check whether GET_CODE is
7946 a SET or a CLOBBER, instead on checking that it isn't a USE.
7947
7948 2006-02-24 Roger Sayle <roger@eyesopen.com>
7949
7950 * fold-const.c (fold_comparison): New subroutine of fold_binary
7951 containing transformations common to both the equality and
7952 ordering relational operators, factored out of fold_binary.
7953 (fold_binary): Separate out the equality operators (EQ_EXPR
7954 and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
7955 LE_EXPR and GE_EXPR), calling fold_comparison to perform the
7956 transformations common to both.
7957 (fold_div_compare): Fix latent bugs in the previously unreachable
7958 LT_EXPR and GE_EXPR cases.
7959
7960 2006-02-24 David Edelsohn <edelsohn@gnu.org>
7961
7962 * config/rs6000/rs6000.c (rs6000_init_builtins): Change
7963 decl libname for clog to __clog on AIX.
7964
7965 * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
7966
7967 2006-02-24 Alan Modra <amodra@bigpond.net.au>
7968
7969 PR target/26453
7970 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
7971 output traceback table for thunks. Localise rs6000_stack_info call.
7972
7973 2006-02-23 Roger Sayle <roger@eyesopen.com>
7974 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7975
7976 * gthr-posix.h (__gthrw): Fix typo in comment.
7977
7978 2006-02-23 Geoffrey Keating <geoffk@apple.com>
7979
7980 * doc/cpp.texi (Character sets): Document that we do support
7981 input files to be in any character set.
7982
7983 2006-02-23 Jeff Law <law@redhat.com>
7984
7985 * tree.h (PHI_ARG_NONZERO): Remove.
7986 * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
7987 (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
7988 node to the new node.
7989
7990 PR tree-optimization/26425
7991 * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
7992 min/max, then assume its varying.
7993
7994 2006-02-23 Zdenek Dvorak <dvorakz@suse.cz>
7995
7996 PR rtl-optimization/26316
7997 * rtlanal.c (enum may_trap_p_flags): New.
7998 (may_trap_p_1): Take flags instead of unaligned_mems argument. Ignore
7999 MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
8000 (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
8001 (may_trap_after_code_motion_p): New function.
8002 * loop-invariant.c (find_identical_invariants): Fix dump formating.
8003 (find_invariant_insn): Use may_trap_after_code_motion_p.
8004 * rtl.h (may_trap_after_code_motion_p): Declare.
8005
8006 2006-02-23 Zdenek Dvorak <dvorakz@suse.cz>
8007
8008 * emit-rtl.c (immed_double_const): Cleanup.
8009
8010 2006-02-23 Daniel Berlin <dberlin@dberlin.org>
8011
8012 Fix PR tree-optimization/26376
8013 * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree,
8014 remove assert.
8015
8016 2006-02-23 Jakub Jelinek <jakub@redhat.com>
8017
8018 PR middle-end/26412
8019 * gimplify.c (omp_add_variable): Guard variable size decl test with
8020 DECL_SIZE (decl) check.
8021
8022 2006-02-23 Richard Guenther <rguenther@suse.de>
8023
8024 PR middle-end/26439
8025 * tree-ssa-structalias.c (find_func_aliases): Handle complex types
8026 like aggregate types.
8027
8028 2006-02-23 Jakub Jelinek <jakub@redhat.com>
8029
8030 * configure.ac: Add --with{,out}-long-double-128 configure option.
8031 (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
8032 * configure: Rebuilt.
8033 * config.in: Rebuilt.
8034 * doc/install.texi (Options specification): Document
8035 --with-long-double-128.
8036
8037 * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
8038 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
8039 * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
8040 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
8041
8042 2006-02-23 Aldy Hernandez <aldyh@redhat.com>
8043
8044 * config/s390/s390.c (override_options): Handle
8045 TARGET_DEFAULT_LONG_DOUBLE_128.
8046
8047 * config/alpha/alpha.c (override_options): Handle
8048 TARGET_DEFAULT_LONG_DOUBLE_128.
8049
8050 * config/sparc/sparc.c (sparc_override_options): Handle
8051 TARGET_DEFAULT_LONG_DOUBLE_128.
8052
8053 2006-02-22 Daniel Jacobowitz <dan@codesourcery.com>
8054
8055 * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
8056 (real-install-headers-tar, real-install-headers-cpio)
8057 (real-install-headers-cp): New targets.
8058
8059 2006-02-22 Richard Sandiford <richard@codesourcery.com>
8060
8061 * tree.h (variable_section): Delete.
8062 * varasm.c (variable_section): Delete.
8063
8064 2006-02-22 Paolo Bonzini <bonzini@gnu.org>
8065
8066 * install.texi: Add notes on install.texi2html.
8067 (Building in parallel): Do not use footnotes.
8068
8069 2006-02-21 Aldy Hernandez <aldyh@redhat.com>
8070
8071 PR libgomp/26234
8072 * doc/install.texi (Configuration): Document --disable-libgomp.
8073
8074 2006-02-21 Geoffrey Keating <geoffk@apple.com>
8075
8076 * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
8077
8078 2006-02-21 Alexandre Oliva <aoliva@redhat.com>
8079
8080 * config/i386/sse.md (vec_extractv2df_1_sse): New.
8081 (vec_extractv2df_0_sse): New.
8082
8083 2006-02-21 Alexandre Oliva <aoliva@redhat.com>
8084
8085 * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
8086 * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
8087 * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
8088 * dwarf2out.c (build_cfa_loc): New offset parameter. Add it
8089 to the result of the expression.
8090 (def_cfa_1): Adjust.
8091 (frame_pointer_cfa_offset): Rename to...
8092 (frame_pointer_fb_offset): ... this. Adjust all uses.
8093 (convert_cfa_to_loc_list): Rename to...
8094 (convert_cfa_to_fb_loc_list): ... this. New offset parameter.
8095 Pass it on to build_cfa_loc.
8096 (compute_frame_pointer_to_cfa_displacement): Rename to...
8097 (compute_frame_pointer_to_fb_displacement): ... this. New
8098 offset parameter. Use it in computation.
8099 (gen_subprogram_die): Compute cfa_fb_offset with the new
8100 macro, and use it to compute the fb loc list and the
8101 displacement.
8102
8103 2006-02-21 Bernd Schmidt <bernd.schmidt@analog.com>
8104
8105 * config/bfin/predicates.md (cc_operand): Delete predicate. All uses
8106 replaced with register_operand.
8107 * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
8108 non-DREG is expensive.
8109 * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
8110 * config/bfin/bfin.md (movbi): Fix constraints and template for moves
8111 involving memory.
8112
8113 2006-02-21 Joseph S. Myers <joseph@codesourcery.com>
8114
8115 * doc/install.texi2html: Use set -e.
8116
8117 2006-02-21 Richard Sandiford <richard@codesourcery.com>
8118
8119 * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
8120 (ASM_OUTPUT_SHARED_LOCAL): Delete.
8121 * doc/invoke.texi (-fshared-data): Delete.
8122 * common.opt (fshared-data): Delete.
8123 * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
8124 (assemble_static_space): Remove #if 0 code.
8125 * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
8126 (ASM_OUTPUT_SHARED_LOCAL): Poison.
8127 * config/cris/cris.h: Remove FIXME.
8128
8129 2006-02-21 Paolo Bonzini <bonzini@gnu.org>
8130
8131 * doc/sourcebuild.texi (Front End Directory): No more double-colon
8132 hooks.
8133
8134 2006-02-21 Jakub Jelinek <jakub@redhat.com>
8135
8136 PR middle-end/26379
8137 * combine.c (simplify_shift_const_1): Disable nested shifts
8138 optimization for vector shifts.
8139
8140 2006-02-20 Roger Sayle <roger@eyesopen.com>
8141
8142 PR tree-optimization/26361
8143 * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
8144 of unsigned integer types.
8145
8146 2006-02-20 Sebastian Pop <pop@cri.ensmp.fr>
8147
8148 * tree-chrec.c (eq_evolutions_p): New.
8149 * tree-chrec.h (eq_evolutions_p): Declared.
8150 * tree-data-ref.c: Fix formatting.
8151 (datadep_stats, dependence_stats): New.
8152 (gcd): Moved...
8153 (print_direction_vector): New.
8154 (dump_data_dependence_relation): Use print_direction_vector.
8155 (object_analysis, create_data_ref): Handle COMPONENT_REF.
8156 (compute_subscript_distance): Static.
8157 (initialize_data_dependence_relation): Static. Get the number
8158 of loops surrounding the references from the callers, and initialize
8159 DDR_SIZE_VECT to nb_loops. Use both base_addr_differ_p and
8160 base_object_differ_p analyzers.
8161 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
8162 compute_overlap_steps_for_affine_1_2,
8163 analyze_subscript_affine_affine): Count the classified dependences.
8164 Print a message when a test failed.
8165 (can_use_analyze_subscript_affine_affine): New.
8166 (analyze_siv_subscript): Compute the data dependences on symbolic
8167 scevs that verify can_use_analyze_subscript_affine_affine.
8168 (chrec_steps_divide_constant_p): Returns true, false, or unknown.
8169 (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
8170 Handle symbolic scevs.
8171 (analyze_overlapping_iterations): Let symbolic affine scevs to be
8172 analyzed.
8173 (subscript_dependence_tester): Moved...
8174 (build_classic_dist_vector, build_classic_dir_vector): Don't use
8175 lambda_vector_clear on newly allocated vectors. Get nb_loops from
8176 DDR_SIZE_VECT instead of getting it in parameter.
8177 (subscript_dependence_tester): ... here. Take as a parameter
8178 loop_nest_depth. Call build_classic_dist_vector and
8179 build_classic_dir_vector.
8180 (compute_affine_dependence): Update subscript_dependence_tester
8181 parameters. Update datadep_stats counters. Call
8182 compute_subscript_distance.
8183 (compute_self_dependence): Save the dist and dir vectors. Call
8184 compute_subscript_distance.
8185 (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
8186 (compute_all_dependences): Reorder parameters as they were before
8187 conversion to VEC. Pass nb_loops and loop_nest_depth. Don't call
8188 compute_subscript_distance. Update the use of
8189 compute_affine_dependence and initialize_data_dependence_relation.
8190 (find_data_references_in_loop): Handle COMPONENT_REF.
8191 (compute_data_dependences_for_loop): Initialize dependence_stats.
8192 Don't call build_classic_dist_vector and build_classic_dir_vector.
8193 Update the parameters of initialize_data_dependence_relation and
8194 compute_all_dependences. Print the statistics from datadep_stats.
8195 (analyze_all_data_dependences): Static. Not used until the pass for
8196 checking the data dependences is contributed.
8197 * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
8198 DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
8199 (initialize_data_dependence_relation, compute_affine_dependence,
8200 analyze_all_data_dependences, compute_subscript_distance): Removed.
8201 (print_direction_vector): New.
8202 * lambda.h (gcd): ... here.
8203 (lambda_vector_gcd): Moved here from gcd_vector.
8204 * lambda-code.c (gcd, gcd_vector): Removed.
8205 (lambda_compute_target_space): Use lambda_vector_gcd. Fix formatting.
8206 * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
8207
8208 2006-02-20 Diego Novillo <dnovillo@redhat.com>
8209
8210 * ipa-type-escape.c: Tidy some comments and white space.
8211 * tree-ssa-operands.c: Likewise.
8212
8213 2006-02-20 Andrew Pinski <pinskia@physics.uc.edu>
8214
8215 PR tree-opt/25879
8216 * tree-pretty-print.c (debug_tree_chain): Walk the chains.
8217 (dump_decl_name): Do not walk the decl tree chains.
8218 * tree-pass.h (TDF_CHAIN): Remove.
8219
8220 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
8221
8222 * Makefile.in (C): Remove
8223 (PROTO): Remove
8224 (.PHONY): Remove C and PROTO
8225
8226 2006-02-20 Roger Sayle <roger@eyesopen.com>
8227
8228 PR middle-end/26236
8229 * doc/c-tree.texi (INTEGER_TYPE): Remove reference to the now
8230 deprecated CHAR_TYPE tree code.
8231
8232 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
8233
8234 * configure.ac (target_list): Add install-info, dvi, html.
8235 * configure: Regenerate.
8236
8237 * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
8238 java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
8239 treelang/Make-lang.in: Do not use double-colon rules.
8240
8241 2006-02-20 Daniel Berlin <dberlin@dberlin.org>
8242
8243 * tree.h (struct tree_memory_tag): Add is_used_alone member.
8244 (TMT_USED_ALONE): New macro.
8245 * tree-pass.h (PROP_tmt_usage): New property.
8246 (TODO_update_tmt_usage): New todo.
8247 * tree-ssa-alias.c (updating_used_alone): New variable.
8248 (recalculate_used_alone): New function.
8249 (compute_may_aliases): Set updating_used_alone, call
8250 recalculate_used_alone.
8251 * tree-sra.c (pass_sra): Note that this pass destroys
8252 PROP_tmt_usage, and add TODO_update_tmt_usage.
8253 * tree-ssa-forwprop.c (pass_forwprop): Ditto.
8254 * tree-flow.h (updating_used_alone): Prototype.
8255 (recalculate_used_alone): Ditto.
8256 * passes.c (execute_todo): Add code to set updating_used_alone,
8257 and call recalculate.
8258 * tree-ssa-operands.c (add_virtual_operand): Only append bare def
8259 for clobber if used alone, and add assert to verify used_alone
8260 status.
8261
8262 2006-02-20 Angel Nunez Mencias <anunez@de.ibm.com>
8263
8264 * config/s390/s390.c (legitimize_pic_address): Assertions checking
8265 for non tls symbols added.
8266 (legitimize_address): Do nothing for PLUS expressions if one of the
8267 addends is a tls symbol reference.
8268
8269 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
8270
8271 PR bootstrap/25476
8272
8273 * Makefile.in (LDFLAGS): Define from autoconf substitution.
8274
8275 * Makefile.in (BOOTSTRAPPING): New.
8276 (quickstrap): New definition if BOOTSTRAPPING=yes.
8277
8278 * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages.
8279 * configure.ac: Substitute all_selected_languages with the languages
8280 that were configured. For all the other variables except
8281 lang_specs_files, include all the languages in the tree.
8282 * configure: Regenerate.
8283
8284 * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory,
8285 if there is one. Run the commands to run fixincludes in the same
8286 subshell.
8287
8288 * doc/makefile.texi: Document new makefile targets from toplevel bootstrap.
8289 * doc/install.texi: Document exact conventions for searching target tools.
8290 Document --with-build-time-tools. Document toplevel bootstrap. Document
8291 something more about building an Ada cross-compiler. Don't list GNU Make
8292 requirements which affect all platforms.
8293
8294 2006-02-19 Roger Sayle <roger@eyesopen.com>
8295
8296 PR middle-end/19543
8297 * varasm.c (compare_constant) <INTEGER_CST>: Integer constants are
8298 only equivalent if the have both the same mode and precision.
8299
8300 2006-02-20 Ben Elliston <bje@au.ibm.com>
8301
8302 * doc/tree-ssa.texi (Interfaces): Describe low vs. high GIMPLE.
8303
8304 2006-02-19 Roger Sayle <roger@eyesopen.com>
8305 Steven Bosscher <stevenb.gcc@gmail.com>
8306
8307 * gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
8308 constant pool references to identify stack mode constants.
8309 * rtlanal.c (constant_pool_constant_p): New predicate to check
8310 whether operand is a floating point constant in the pool.
8311 * rtl.h (constant_pool_constant_p): Prototype here.
8312 * loop.c (scan_loop): Avoid hoisting constants from the constant
8313 pool on STACK_REGS targets.
8314 (load_mems): Likewise.
8315 * loop-invariant.c (get_inv_cost): Make hoisting constant pool
8316 loads into x87 registers expensive in terms of register pressure.
8317
8318 2006-02-19 Roger Sayle <roger@eyesopen.com>
8319
8320 * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to
8321 __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined.
8322
8323 2006-02-19 David Edelsohn <edelsohn@gnu.org>
8324
8325 * config/rs6000/xcoff.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
8326 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_anchor): Define.
8327
8328 2006-02-19 Daniel Berlin <dberlin@dberlin.org>
8329
8330 * doc/invoke.texi: Document -fipa-pta.
8331 * common.opt: Add ipa-pta option.
8332 * tree-ssa-structalias.c (DONT_PROPAGATE_WITH_ANYTHING): Removed.
8333 (do_sd_constraint): Enable DONT_PROPAGATE_WITH_ANYTHING code.
8334 (do_ds_constraint): Ditto.
8335 (get_constraint_for): Only add to referenced_vars if
8336 referenced_vars exists.
8337 (insert_into_field_list): Rewrite to do this unsorted.
8338 (insert_into_field_list_sorted): Rename old insert_into_field_list
8339 to this.
8340 (create_function_info_for): Use insert_into_field_list_sorted.
8341 (create_variable_info_for): Rewrite so it uses unsorted version,
8342 since the field list is sorted.
8343 (intra_create_variable_infos): Only add to referenced_vars if
8344 referenced_vars exists.
8345 (ipa_pta_execute): Init heapvars, and delete when done.
8346 * passes.c (init_optimization_passes): Add call to pass_ipa_pta.
8347
8348 2006-02-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8349
8350 * doc/install.texi: Add missing `@samp'.
8351
8352 2006-02-18 Andrew Pinski <pinskia@physics.uc.edu>
8353
8354 * config/rs6000/darwin.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P):
8355 Use the arguments.
8356
8357 2006-02-18 Mark Wielaard <mark@klomp.org>
8358
8359 * doc/contrib.texi (Contributors): Add classpath/libgcj hackers
8360 who added new 4.1 features, bug fixes and integration support.
8361
8362 2006-02-18 David Edelsohn <edelsohn@gnu.org>
8363
8364 PR target/26350
8365 * config/rs6000/rs6000.md (extenddftf2): Force 0.0 to validized
8366 MEM for ABI_V4 pic.
8367
8368 2006-02-18 Richard Sandiford <richard@codesourcery.com>
8369
8370 * cselib.c (cselib_init): Change RTX_SIZE to RTX_CODE_SIZE.
8371 * emit-rtl.c (copy_rtx_if_shared_1): Use shallow_copy_rtx.
8372 (copy_insn_1): Likewise. Don't copy each field individually.
8373 Reindent.
8374 * read-rtl.c (apply_macro_to_rtx): Use RTX_CODE_SIZE instead
8375 of RTX_SIZE.
8376 * reload1.c (eliminate_regs): Use shallow_copy_rtx.
8377 * rtl.c (rtx_size): Rename variable to...
8378 (rtx_code_size): ...this.
8379 (rtx_size): New function.
8380 (rtx_alloc_stat): Use RTX_CODE_SIZE instead of RTX_SIZE.
8381 (copy_rtx): Use shallow_copy_rtx. Don't copy each field individually.
8382 Reindent.
8383 (shallow_copy_rtx_stat): Use rtx_size instead of RTX_SIZE.
8384 * rtl.h (rtx_code_size): New variable.
8385 (rtx_size): Change from a variable to a function.
8386 (RTX_SIZE): Rename to...
8387 (RTX_CODE_SIZE): ...this.
8388
8389 PR target/9703
8390 PR tree-optimization/17106
8391 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Document.
8392 (Anchored Addresses): New section.
8393 * doc/invoke.texi (-fsection-anchors): Document.
8394 * doc/rtl.texi (SYMBOL_REF_IN_BLOCK_P, SYMBOL_FLAG_IN_BLOCK): Likewise.
8395 (SYMBOL_REF_ANCHOR_P, SYMBOL_FLAG_ANCHOR): Likewise.
8396 (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): Likewise.
8397 * hooks.c (hook_bool_mode_rtx_false): New function.
8398 * hooks.h (hook_bool_mode_rtx_false): Declare.
8399 * gengtype.c (create_optional_field): New function.
8400 (adjust_field_rtx_def): Add the "block_sym" field for SYMBOL_REFs when
8401 SYMBOL_REF_IN_BLOCK_P is true.
8402 * target.h (output_anchor, use_blocks_for_constant_p): New hooks.
8403 (min_anchor_offset, max_anchor_offset): Likewise.
8404 (use_anchors_for_symbol_p): New hook.
8405 * toplev.c (compile_file): Call output_object_blocks.
8406 (target_supports_section_anchors_p): New function.
8407 (process_options): Check that -fsection-anchors is only used on
8408 targets that support it and when -funit-at-a-time is in effect.
8409 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Only create DECL_RTL
8410 if the decl doesn't have one.
8411 * dwarf2out.c: Remove instantiations of VEC(rtx,gc).
8412 * expr.c (emit_move_multi_word, emit_move_insn): Pass the result
8413 of force_const_mem through use_anchored_address.
8414 (expand_expr_constant): New function.
8415 (expand_expr_addr_expr_1): Call it. Use the same modifier when
8416 calling expand_expr for INDIRECT_REF.
8417 (expand_expr_real_1): Pass DECL_RTL through use_anchored_address
8418 for all modifiers except EXPAND_INITIALIZER. Use expand_expr_constant.
8419 * expr.h (use_anchored_address): Declare.
8420 * loop-unroll.c: Don't declare rtx vectors here.
8421 * explow.c: Include output.h.
8422 (validize_mem): Call use_anchored_address.
8423 (use_anchored_address): New function.
8424 * common.opt (-fsection-anchors): New switch.
8425 * varasm.c (object_block_htab, anchor_labelno): New variables.
8426 (hash_section, object_block_entry_eq, object_block_entry_hash)
8427 (use_object_blocks_p, get_block_for_section, create_block_symbol)
8428 (use_blocks_for_decl_p, change_symbol_section): New functions.
8429 (get_variable_section): New function, split out from assemble_variable.
8430 (make_decl_rtl): Create a block symbol if use_object_blocks_p and
8431 use_blocks_for_decl_p say so. Use change_symbol_section if the
8432 symbol has already been created.
8433 (assemble_variable_contents): New function, split out from...
8434 (assemble_variable): ...here. Don't output any code for
8435 block symbols; just pass them to place_block_symbol.
8436 Use get_variable_section and assemble_variable_contents.
8437 (get_constant_alignment, get_constant_section, get_constant_size): New
8438 functions, split from output_constant_def_contents.
8439 (build_constant_desc): Create a block symbol if use_object_blocks_p
8440 says so. Or into SYMBOL_REF_FLAGS.
8441 (assemble_constant_contents): New function, split from...
8442 (output_constant_def_contents): ...here. Don't output any code
8443 for block symbols; just pass them to place_section_symbol.
8444 Use get_constant_section and get_constant_alignment.
8445 (force_const_mem): Create a block symbol if use_object_blocks_p and
8446 use_blocks_for_constant_p say so. Or into SYMBOL_REF_FLAGS.
8447 (output_constant_pool_1): Add an explicit alignment argument.
8448 Don't switch sections here.
8449 (output_constant_pool): Adjust call to output_constant_pool_1.
8450 Switch sections here instead. Don't output anything for block symbols;
8451 just pass them to place_block_symbol.
8452 (init_varasm_once): Initialize object_block_htab.
8453 (default_encode_section_info): Keep the old SYMBOL_FLAG_IN_BLOCK.
8454 (default_asm_output_anchor, default_use_aenchors_for_symbol_p)
8455 (place_block_symbol, get_section_anchor, output_object_block)
8456 (output_object_block_htab, output_object_blocks): New functions.
8457 * target-def.h (TARGET_ASM_OUTPUT_ANCHOR): New macro.
8458 (TARGET_ASM_OUT): Include it.
8459 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): New macro.
8460 (TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET): New macros.
8461 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): New macro.
8462 (TARGET_INITIALIZER): Include them.
8463 * rtl.c (rtl_check_failed_block_symbol): New function.
8464 * rtl.h: Include vec.h. Declare heap and gc rtx vectors.
8465 (block_symbol, object_block): New structures.
8466 (rtx_def): Add a block_symbol field to the union.
8467 (BLOCK_SYMBOL_CHECK): New macro.
8468 (rtl_check_failed_block_symbol): Declare.
8469 (SYMBOL_FLAG_IN_BLOCK, SYMBOL_FLAG_ANCHOR): New SYMBOL_REF flags.
8470 (SYMBOL_REF_IN_BLOCK_P, SYMBOL_REF_ANCHOR_P): New predicates.
8471 (SYMBOL_FLAG_MACH_DEP_SHIFT): Bump by 2.
8472 (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): New accessors.
8473 * output.h (output_section_symbols): Declare.
8474 (object_block): Name structure.
8475 (place_section_symbol, get_section_anchor, default_asm_output_anchor)
8476 (default_use_anchors_for_symbol_p): Declare.
8477 * Makefile.in (RTL_BASE_H): Add vec.h.
8478 (explow.o): Depend on output.h.
8479 * config/rs6000/rs6000.c (TARGET_MIN_ANCHOR_OFFSET): Override default.
8480 (TARGET_MAX_ANCHOR_OFFSET): Likewise.
8481 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
8482 (rs6000_use_blocks_for_constant_p): New function.
8483
8484 2006-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8485
8486 * doc/install.texi (hppa*-hp-hpux*): Update for 4.1.0.
8487
8488 2006-02-18 Andrew Pinski <pinskia@physics.uc.edu>
8489
8490 PR tree-opt/25680
8491 * tree-ssa-ccp.c (ccp_fold): Handle store CCP of REALPART_EXPR and
8492 IMAGPART_EXPR.
8493
8494 2006-02-18 Diego Novillo <dnovillo@redhat.com>
8495
8496 * tree-flow.h (struct var_ann_d): Rename field is_alias_tag to
8497 is_aliased.
8498 Update all users.
8499
8500 2006-02-18 Jakub Jelinek <jakub@redhat.com>
8501
8502 PR middle-end/26334
8503 * stmt.c (decl_overlaps_hard_reg_set_p): Use DECL_HARD_REGISTER
8504 instead of DECL_REGISTER.
8505
8506 2006-02-18 Olivier Hainque <hainque@adacore.com>
8507
8508 PR ada/13408
8509 * pa.h (WIDEST_HARDWARE_FP_SIZE): Define.
8510
8511 2006-02-18 Joseph S. Myers <joseph@codesourcery.com>
8512
8513 PR target/24837
8514 * config.gcc: Define UCLIBC_DEFAULT to 0 or 1.
8515 * opth-gen.awk: Handle Var and InverseMask together.
8516 * config/linux.opt (muclibc, mglibc): Use Var(linux_uclibc).
8517 * config/linux.h: Use #if not #ifdef for testing UCLIBC_DEFAULT.
8518 (TARGET_C99_FUNCTIONS): Test OPTION_GLIBC not TARGET_GLIBC.
8519 (CHOOSE_DYNAMIC_LINKER): Give an error for -mglibc and -muclibc
8520 used together.
8521 (UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
8522 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
8523 * config/alpha/linux-elf.h (GLIBC_DYNAMIC_LINKER,
8524 UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
8525 LINUX_DYNAMIC_LINKER): Define.
8526 (ELF_DYNAMIC_LINKER): Define to LINUX_DYNAMIC_LINKER.
8527 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): Define to
8528 TARGET_GLIBC.
8529 * config/cris/linux.h (GLIBC_DYNAMIC_LINKER): Define.
8530 (CRIS_LINK_SUBTARGET_SPEC): Pass a -dynamic-linker option.
8531 * config/frv/linux.h (GLIBC_DYNAMIC_LINKER): Define.
8532 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8533 (TARGET_C99_FUNCTIONS): Don't define.
8534 * config/i386/linux.h (DYNAMIC_LINKER): Rename to
8535 GLIBC_DYNAMIC_LINKER.
8536 (SUBTARGET_EXTRA_SPECS): Use LINUX_DYNAMIC_LINKER.
8537 * config/i386/linux64.h (GLIBC_DYNAMIC_LINKER32,
8538 GLIBC_DYNAMIC_LINKER64): Define.
8539 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
8540 LINUX_DYNAMIC_LINKER64.
8541 * config/ia64/linux.h (GLIBC_DYNAMIC_LINKER): Define.
8542 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8543 * config/m32r/linux.h (GLIBC_DYNAMIC_LINKE): Define.
8544 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8545 * config/m68k/linux.h (GLIBC_DYNAMIC_LINKER): Define.
8546 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8547 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32,
8548 GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32,
8549 UCLIBC_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKERN32): Define.
8550 (LINK_SPEC): Use LINUX_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKER64
8551 and LINUX_DYNAMIC_LINKER32.
8552 * config/mn10300/linux.h (GLIBC_DYNAMIC_LINKER): Define.
8553 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8554 * config/pa/pa-linux.h (GLIBC_DYNAMIC_LINKER): Define.
8555 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8556 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define to
8557 TARGET_GLIBC.
8558 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
8559 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64,
8560 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
8561 CHOOSE_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
8562 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
8563 (LINK_OS_LINUX_SPEC32): Use LINUX_DYNAMIC_LINKER32.
8564 (LINK_OS_LINUX_SPEC64): Use LINUX_DYNAMIC_LINKER64.
8565 * config/rs6000/sysv4.h (GLIBC_DYNAMIC_LINKER,
8566 UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
8567 LINUX_DYNAMIC_LINKER): Define.
8568 (LINK_OS_LINUX_SPEC): Use LINUX_DYNAMIC_LINKE.
8569 * config/s390/linux.h (GLIBC_DYNAMIC_LINKER32,
8570 GLIBC_DYNAMIC_LINKER64): Define.
8571 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
8572 LINUX_DYNAMIC_LINKER64.
8573 * config/sh/linux.h (GLIBC_DYNAMIC_LINKER): Define.
8574 (SUBTARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8575 * config/sparc/linux.h (GLIBC_DYNAMIC_LINKER,
8576 UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
8577 LINUX_DYNAMIC_LINKER): Define.
8578 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8579 (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
8580 * config/sparc/linux64.h (GLIBC_DYNAMIC_LINKER32,
8581 GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER32,
8582 UCLIBC_DYNAMIC_LINKER64, CHOOSE_DYNAMIC_LINKER,
8583 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
8584 (LINK_ARCH32_SPEC): Use LINUX_DYNAMIC_LINKER32.
8585 (LINK_ARCH64_SPEC, LINK_SPEC): Use LINUX_DYNAMIC_LINKER64.
8586 (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
8587 * config/xtensa/linux.h (GLIBC_DYNAMIC_LINKER): Define.
8588 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8589 * doc/invoke.texi (-muclibc): Remove caveat about supported
8590 targets.
8591
8592 2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
8593
8594 * doc/cpp.texi (__TIMESTAMP__): Document.
8595
8596 2006-02-17 Roger Sayle <roger@eyesopen.com>
8597
8598 PR middle-end/25600
8599 * fold-const.c (fold_binary): Fold (X >> C) != 0 into X < 0 when
8600 C is one less than the width of X (and related transformations).
8601 * simplify-rtx.c (simplify_unary_operation_1): Transform
8602 (neg (lt x 0)) into either (ashiftrt X C) or (lshiftrt X C)
8603 depending on STORE_FLAG_VALUE, were C is one less then the
8604 width of X.
8605
8606 2006-02-17 Daniel Berlin <dberlin@dberlin.org>
8607
8608 Fix PR tree-optimization/26341
8609 * tree-ssa-operands.c (add_virtual_operand): Remove assert
8610 about NAME_MEMORY_TAG's.
8611
8612 2006-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8613
8614 PR target/26255
8615 * pa.md: Create separate HI and QI move patterns for 32-bit and 64-bit
8616 with hardware float support, and software float support. Add fcpy
8617 alternative to hardware patterns. Add alternatives to copy between
8618 general and floating-point registers to the 32-bit pattern.
8619 * pa.c (pa_secondary_reload): Don't abort if reload tries to find a
8620 secondary reload to load a QI or HI mode constant into a floating
8621 point register.
8622 * pa32-regs.h (VALID_FP_MODE_P): Allow QImode and HImode.
8623 * pa64-regs.h (VALID_FP_MODE_P): Likewise.
8624
8625 2006-02-17 Andrew Pinski <pinskia@physics.uc.edu>
8626
8627 PR target/26272
8628 * config/rs6000/darwin.md (load_macho_picbase_si): Add
8629 pc to the pattern.
8630 (load_macho_picbase_di): Likewise.
8631
8632 2006-02-16 Jeff Law <law@redhat.com>
8633
8634 * tree-vrp.c (set_value_range_to_nonnegative): New function.
8635 (vrp_expr_computes_nonnegative, ssa_name_nonnegative_p): Likewise.
8636 (ssa_name_nonzero_p): Likewise.
8637 (get_value_range): Return NULL if VRP is not running.
8638 (extract_range_from_expr): Fallback to tree_expr_XXX_p if
8639 VRP routines do not discover a range.
8640 (vrp_finalize): Clear VR_VALUE to indicate VRP is not running.
8641 * tree.h (ssa_name_nonzero_p, ssa_name_nonnegative_p): Prototype.
8642 * fold-const.c (tree_expr_nonzero_p): For SSA_NAMEs, query VRP.
8643 (tree_expr_nonnegative_p): Similarly.
8644 * tree-ssa-dom.c (nonzero_vars, nonzero_vars_stack): Remove.
8645 (restore_nonzero_vars_to_original_value): Remove.
8646 (unsafe_associative_fp_binop): Remove.
8647 (tree_ssa_dominator_optimize): Remove initialization and
8648 finalization of nonzero_vars and nonzero_vars_stack.
8649 (dom_opt_initialize_block): No longer push marker on
8650 nonzero_vars_stack.
8651 (dom_opt_finalize_block): No longer call
8652 restore_nonzero_vars_to_original_value.
8653 (record_equivalences_from_phis): No longer look for
8654 nonzero PHI arguments.
8655 (cprop_into_successor_phis): No longer propagate nonzero
8656 property into PHI arguments. Lose unused argument. Caller
8657 updated.
8658 (record_equivalences_from_stmt): No longer record nonzero
8659 values for SSA_NAMEs.
8660 (lookup_avail_expr): No longer use nonzero_vars.
8661
8662 * stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly
8663 for sizetype when sizetype is unsigned.
8664
8665 2006-02-16 Denis Nagorny <denis_nagorny@linux.intel.com>
8666
8667 PR rtl-optimization/25603
8668 * reload.c (reg_inc_found_and_valid_p): New. Check REG_INC note.
8669 (regno_clobbered_p): Use it. Reusing SETS argument for REG_INC case.
8670 * reload1.c (choose_reload_regs): Added call of regno_clobbered_p
8671 with new meaning of SETS.
8672
8673 2006-02-16 Joseph S. Myers <joseph@codesourcery.com>
8674
8675 PR target/20353
8676 PR target/24578
8677 PR target/24837
8678 * config/linux.opt: New file.
8679 * config/linux.h (CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
8680 LINUX_DYNAMIC_LINKER): Define.
8681 (TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
8682 * config.gcc (*-*-linux*): Define extra_options.
8683 (*-*-*uclibc*): Define UCLIBC_DEFAULT.
8684 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
8685 * config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change to
8686 GLIBC_DYNAMIC_LINKER.
8687 * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
8688 (LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8689 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
8690 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
8691 * doc/invoke.texi (GNU/Linux Options): New section.
8692
8693 2006-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
8694
8695 * config/sparc/sparc.md (setjmp): Rewrite.
8696 (setjmp_32): Delete.
8697 (setjmp_64): Likewise.
8698
8699 2006-02-16 Daniel Berlin <dberlin@dberlin.org>
8700
8701 * tree-ssa-operands.c (access_can_touch_variable): Fix typo in
8702 previous change.
8703
8704 2006-02-16 Zdenek Dvorak <dvorakz@suse.cz>
8705
8706 * loop-invariant.c (invariant_for_use, check_dependencies): Fail for
8707 read-write uses.
8708
8709 2006-02-16 Zdenek Dvorak <dvorakz@suse.cz>
8710
8711 PR rtl-optimization/26296
8712 * Makefile.in (loop-invariant.c): Add except.h dependency.
8713 * loop-invariant.c: Include except.h.
8714 (find_invariant_insn): Ignore insns satisfying can_throw_internal.
8715
8716 2005-02-16 Paul Brook <paul@codesourcery.com>
8717
8718 * reload1.c (emit_reload_insns): Invalidate dead input registers used
8719 for reloads.
8720
8721 2006-02-16 Bernd Schmidt <bernd.schmidt@analog.com>
8722
8723 PR rtl-optimization/25636
8724 * local-alloc.c (update_equiv_regs): Lose a bogus rtx_equal_p test
8725 when deciding whether an insn is an initializing insn.
8726
8727 2006-02-15 Daniel Berlin <dberlin@dberlin.org>
8728
8729 * tree.c (init_ttree): Add STRUCT_FIELD_TAG handling.
8730 (tree_code_size): Ditto.
8731 * tree.h (struct tree_memory_tag): Remove parent_var.
8732 (struct tree_struct_field_tag): New.
8733 (SFT_OFFSET): New.
8734 (SFT_SIZE): New.
8735 (union tree_node): Add sft member.
8736 * tree-ssa-alias.c (get_tmt_for): Don't handle TYPE_READONLY
8737 specially here.
8738 (create_sft): Add size and offset argument, set SFT_OFFSET and
8739 SFT_SIZE.
8740 (create_overlap_variables_for): Update for SFT_OFFSET/SFT_SIZE.
8741 * treestruct.def: Add TS_STRUCT_FIELD_TAG.
8742 * tree-flow-inline.h (get_subvar_at): Update for
8743 SFT_OFFSET/SFT_SIZE.
8744 (var_can_have_subvars): Ditto.
8745 (overlap_subvar): Ditto.
8746 * print-tree.c (print_node): Print out interesting things for
8747 SFT's.
8748 * tree-flow.h (struct subvar): Remove offset and size members.
8749 * tree-ssa-operands.c (get_expr_operands): Update for
8750 get_indirect_ref_operands changes.
8751 (get_indirect_ref_operands): Call add_virtual_operand instead of
8752 add_stmt_operand. Only recurse on base var if requested.
8753 (access_can_touch_variable): New function.
8754 (add_stmt_operand): Split virtual operand handling into ...
8755 (add_virtual_operand): Here. Add offset, size, and for_clobber
8756 arguments. Prune alias sets.
8757 (add_call_clobber_ops): Call add_virtual_operand.
8758
8759 2006-02-15 Jakub Jelinek <jakub@redhat.com>
8760
8761 PR middle-end/26300
8762 * combine.c (make_extraction): Bail out if ORIG_POS is negative.
8763
8764 * tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather
8765 than TREE_CODE as index into omp_clause_num_ops array.
8766
8767 2006-02-15 Uttam Pawar <uttamp@us.ibm.com>
8768
8769 PR rtl-optimization/26184
8770 * modulo-sched.c (generate_reg_moves): Free bitmap vector
8771 uses_of_defs.
8772 * modulo-sched.c (sms_schedule): Free g_arr pointer.
8773 * modulo-sched.c (sms_schedule_by_order): Free bitmap pointers
8774 must_precede, must_follow and tobe_scheduled.
8775
8776 PR other/26147
8777 * opts.c (common_handle_option): Free new_option pointer.
8778 * df-core.c (df_analyze): Free postorder pointer.
8779
8780 2006-02-15 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
8781
8782 * Makefile.in: Fix the examples about the use of stamps
8783
8784 2006-02-15 Michael Matz <matz@suse.de>
8785
8786 PR middle-end/22275
8787
8788 * stor-layout.c (layout_decl): Zero-width bitfields aren't
8789 influenced by maximum_field_alignment or DECL_PACKED.
8790 (update_alignment_for_field): Ditto.
8791 (place_field): Ditto.
8792 * doc/extend.texi (<#pragma pack>, <Type Attributes>): Document
8793 this behaviour.
8794
8795 2006-02-15 Paolo Bonzini <bonzini@gnu.org>
8796
8797 * cfg.c (dump_flow_info): Get dump flags as an additional parameter.
8798 (debug_flow_info): Pass it.
8799 * alias.c (rest_of_handle_cfg): Adjust calls to dump_flow_info.
8800 * bb-reorder.c (reorder_basic_blocks): Likewise.
8801 * cfgcleanup.c (rest_of_handle_jump2): Likewise.
8802 * cse.c (rest_of_handle_cse, rest_of_handle_cse2): Likewise.
8803 * flow.c (life_analysis, recompute_reg_usage): Likewise.
8804 * gcse.c (gcse_main, bypass_jumps): Likewise.
8805 * ifcvt.c (rest_of_handle_if_conversion): Likewise.
8806 * local-alloc.c (rest_of_handle_local_alloc): Likewise.
8807 * loop-init.c (rtl_loop_init, rtl_loop_done): Likewise.
8808 * profile.c (compute_branch_probabilities, branch_prob): Likewise.
8809 * rtl.h (dump_flow_info): Adjust prototype.
8810 * tracer.c (rest_of_handle_tracer, tracer): Likewise.
8811 * var-tracking.c (variable_tracking_main): Likewise.
8812 * passes.c (execute_todo): Obey TDF_BLOCKS for RTL.
8813 * tree-dump.c (enable_rtl_dump_file): Enable the details and blocks
8814 options.
8815
8816 2006-02-15 Marcin Dalecki <martin@dalecki.de>
8817
8818 * tree-ssa-dom.c (dom_thread_across_edge): fix tag expression
8819 construction.
8820
8821 2006-02-14 Zdenek Dvorak <dvorakz@suse.cz>
8822
8823 PR tree-optimization/26209
8824 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_cleanup_cfg.
8825 * tree-cfgcleanup.c (cleanup_control_flow): Remove dead
8826 eh edges.
8827 * tree-cfg.c (replace_uses_by): Do not alter cfg.
8828
8829 2006-02-14 Roger Sayle <roger@eyesopen.com>
8830
8831 PR middle-end/23670
8832 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into
8833 (X,Y) and the corresponding symmetry related transformations.
8834 (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into
8835 (X,Y) and its symmetry related transformations.
8836
8837 2006-02-14 Roger Sayle <roger@eyesopen.com>
8838
8839 * dojump.c (do_compare_rtx_and_jump): Also handle multi-word GTU
8840 and GEU.
8841
8842 2006-02-14 Adam Nemet <anemet@caviumnetworks.com>
8843
8844 * simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
8845
8846 2006-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8847
8848 PR bootstrap/26053
8849 * configure.ac (HAVE_COMDAT_GROUP): Don't assume non-GNU linkers
8850 support COMDAT group.
8851 * configure: Regenerate.
8852
8853 2006-02-14 Roger Sayle <roger@eyesopen.com>
8854
8855 PR middle-end/26279
8856 PR middle-end/26280
8857 PR middle-end/26283
8858 * dojump.c (do_compare_rtx_and_jump): Handle multi-word LE.
8859
8860 2006-02-14 Daniel Berlin <dberlin@dberlin.org>
8861
8862 Fix PR tree-optimization/26260
8863
8864 * doc/invoke.texi (max-fields-for-field-sensitive): Document
8865 param.
8866 * params.h (MAX_FIELDS_FOR_FIELD_SENSITIVE): New.
8867 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Ditto.
8868 * tree-ssa-structalias.c (create_variable_info_for): Use
8869 MAX_FIELDS_FOR_FIELD_SENSITIVE.
8870
8871 2006-02-14 Zdenek Dvorak <dvorakz@suse.cz>
8872
8873 * doc/invoke.texi (-fprefetch-loop-arrays, -fprefetch-loop-arrays-rtl):
8874 Document.
8875 * tree-ssa-loop-niter.c (number_of_iterations_ne,
8876 number_of_iterations_lt, number_of_iterations_cond): Remember the shape
8877 of the ending condition.
8878 * tree-ssa-loop-manip.c: Include params.h.
8879 (build_if_stmt, can_unroll_loop_p, determine_exit_conditions,
8880 tree_unroll_loop): New functions.
8881 * tree-pass.h (pass_loop_prefetch): Declare.
8882 * loop.c (rest_of_handle_loop_optimize): Test for
8883 -fprefetch-loop-arrays-rtl.
8884 * tree-scalar-evolution.h (affine_iv): Moved to tree-flow.h.
8885 * timevar.def (TV_TREE_PREFETCH): New timevar.
8886 * tree-ssa-loop.c (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
8887 pass_loop_prefetch): New.
8888 * tree-cfgcleanup.c: Include tree-scalar-evolution.h.
8889 (cleanup_tree_cfg_loop): Call scev_reset.
8890 * common.opt (fprefetch-loop-arrays-rtl): Add.
8891 * tree-ssa-loop-prefetch.c: New file.
8892 * tree-outof-ssa.c (struct value_expr_d): Add expr_vars field.
8893 (new_temp_expr_table): Initialize expr_vars.
8894 (free_temp_expr_table): Cleanup expr_vars.
8895 (check_replaceable, find_replaceable_in_bb): Prevent accumulating
8896 expressions from being merged into one.
8897 * tree-flow.h (affine_iv): Moved from tree-scalar-evolution.h.
8898 (struct tree_niter_desc): Add control, bound and cmp fields.
8899 (tree_ssa_prefetch_arrays, can_unroll_loop_p, tree_unroll_loop):
8900 Declare.
8901 * Makefile.in (tree-ssa-loop-prefetch.o): Add.
8902 (tree-cfgcleanup.o): Add SCEV_H dependency.
8903 (tree-ssa-loop-manip.o): Add PARAMS_H dependency.
8904 * passes.c (init_optimization_passes): Add pass_loop_prefetch.
8905
8906 2006-02-14 Richard Guenther <rguenther@suse.de>
8907
8908 PR tree-optimization/26258
8909 * tree-ssa-structalias.c (find_func_aliases): Handle aggregates
8910 in PHI argument processing.
8911
8912 2006-02-13 Adam Nemet <anemet@caviumnetworks.com>
8913
8914 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: Return
8915 new expression in the requested machine mode.
8916
8917 2006-02-13 Roger Sayle <roger@eyesopen.com>
8918
8919 * optabs.c (expand_abs): Don't call do_jump_by_parts_greater_rtx
8920 directly, instead let do_compare_rtx_and_jump handle this for us.
8921 * expr.c (expand_expr_real_1): Likewise.
8922 * dojump.c (do_jump_by_parts_greater_rtx): Make static. Move
8923 before do_jump_by_parts_greater.
8924 (do_jump_by_parts_greater): Move after do_jump_by_parts_greater_rtx.
8925 * expr.h (do_jump_by_parts_greater_rtx): Delete prototype.
8926
8927 2006-02-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8928
8929 * pa/quadlib.c: Use defines instead of enum qfcmp_magic.
8930
8931 2006-02-13 Zdenek Dvorak <dvorakz@suse.cz>
8932
8933 PR rtl-optimization/26235
8934 * loop-invariant.c (hash_invariant_expr_1): Handle 'i' and 'n' formats.
8935 (invariant_expr_equal_p): Handle 'i' and 'n' formats. Fail on unknown
8936 format.
8937
8938 2006-02-13 Jeff Law <law@redhat.com>
8939
8940 * tree-vrp.c (extract_range_from_binary_expr): Remove handling of
8941 TRUTH_XOR_EPR.
8942
8943 2006-02-13 Jakub Jelinek <jakub@redhat.com>
8944
8945 PR middle-end/26092
8946 * gimplify.c (gimplify_call_expr): Don't call get_callee_fndecl
8947 twice if decl is a builtin. When trying again, call get_callee_fndecl
8948 first to verify it is still a builtin.
8949
8950 2006-02-13 Geoffrey Keating <geoffk@apple.com>
8951
8952 * dwarf2out.c (base_type_die): Don't add AT_name here.
8953 (subrange_type_die): Don't add AT_name here.
8954 (modified_type_die): Rearrange code flow. Do add AT_name here.
8955
8956 2006-02-13 Zdenek Dvorak <dvorakz@suse.cz>
8957
8958 PR rtl-optimization/26247
8959 PR rtl-optimization/26248
8960 * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode.
8961
8962 2006-02-13 Richard Sandiford <richard@codesourcery.com>
8963
8964 * config/floatunditf.c: Use if __LDBL_MANT_DIG__ == 113.
8965 * config/fixtfdi.c: Likewise.
8966 * config/fixunstfdi.c: Likewise.
8967 * config/floatditf.c: Likewise.
8968
8969 2006-02-13 Roger Sayle <roger@eyesopen.com>
8970
8971 PR middle-end/24427
8972 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Transform (X&C1)|C2
8973 into (X,C2) if C1 is a subset of the bits of C2. Transform
8974 (X&C1)|C2 into X|C2 if C1|C2 == ~0. Canonicalize (X&C1)|C2 as
8975 (X&(C1&~C2))|C2.
8976 <BIT_AND_EXPR>: Canonicalize (X|C1)&C2 as (X&C2)|(C1&C2).
8977
8978 2006-02-13 Josh Conner <jconner@apple.com>
8979
8980 PR target/25376
8981 * varasm.c (function_section): Check for section name before
8982 calling select_section on targets that define
8983 USE_SELECT_SECTION_FOR_FUNCTIONS. On other targets, use
8984 unlikely_text_section instead of hot_function_section if
8985 first_function_block_is_cold.
8986
8987 2006-02-13 J"orn Rennecke <joern.rennecke@st.com>
8988
8989 PR middle-end/25335
8990 * reload1.c (gen_reload): Also use find_replacement in UNARY_P case.
8991
8992 2006-02-12 Zdenek Dvorak <dvorakz@suse.cz>
8993
8994 PR rtl-optimization/26222
8995 * function.c (assign_stack_temp_for_type): Do not reuse stack slots
8996 after tree->rtl expansion.
8997 * loop-invariant.c (move_invariant_reg): Use force_operand on rhs
8998 before passing it to emit_move_insn.
8999
9000 2006-02-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
9001
9002 * doc/invoke.texi (-Write-strings): Document that it is enabled by
9003 default.
9004 * c.opt (-Wwrite-strings): Declare variable warn_write_strings.
9005 Clarify documentation.
9006 * c-common.h (warn_write_strings): Remove.
9007 * c-common.c (warn_write_strings): Likewise.
9008 * c-opts.c (c_common_init_options): Enable -Wwrite-strings by
9009 default for C++.
9010
9011 2006-02-12 Roger Sayle <roger@eyesopen.com>
9012
9013 PR middle-end/25724
9014 * dojump.c (do_jump): Call do_compare_rtx_and_jump.
9015 (do_jump_parts_zero_rtx): New function renamed from
9016 do_jump_parts_equality_rtx. Made static. Add a mode argument.
9017 (do_jump_parts_equality_rtx): New function split out from
9018 do_jump_parts_equality. Old implementation renamed as above.
9019 Call do_jump_parts_zero_rtx if either operand is zero.
9020 (do_jump_parts_equality): Call do_jump_parts_equality_rtx to
9021 do all of the heavy lifting.
9022 (do_compare_rtx_and_jump): Handle multi-word comparisons by
9023 calling either do_jump_by_parts_greater_rtx or
9024 do_jump_by_parts_equality_rtx.
9025 * expr.h (do_jump_by_parts_equality_rtx): Remove prototype.
9026 * expmed.c (do_cmp_and_jump): Now multi-word optimization has
9027 moved to do_compare_rtx_and_jump, call it directly.
9028 * stmt.c (do_jump_if_equal): Remove static prototype. Add a
9029 mode argument. Call do_compare_rtx_and_jump.
9030 (emit_case_nodes): Update calls to do_jump_if_equal.
9031
9032 2006-02-12 Zdenek Dvorak <dvorakz@suse.cz>
9033
9034 PR rtl-optimization/26225
9035 * loop-invariant.c (may_assign_reg_p): Do not allow BLKmode operands.
9036
9037 2006-02-12 Zdenek Dvorak <dvorakz@suse.cz>
9038
9039 PR rtl-optimization/26232
9040 * loop-invariant.c (find_invariant_insn): Ignore insns that set CC0.
9041
9042 2006-02-11 Jason Merrill <jason@redhat.com>
9043
9044 PR tree-opt/24365
9045 * tree-inline.c (declare_return_variable): Just don't use the
9046 modify target if it's a gimple complex reg and the return slot
9047 isn't.
9048
9049 2006-02-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9050
9051 * doc/contrib.texi: Update my entry.
9052
9053 2006-02-10 Geoffrey Keating <geoffk@apple.com>
9054
9055 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
9056
9057 2006-02-10 Diego Novillo <dnovillo@redhat.com>
9058
9059 * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
9060 expensive.
9061
9062 2006-02-10 Zdenek Dvorak <dvorakz@suse.cz>
9063
9064 * doc/invoke.texi (-floop-optimize2): Removed.
9065 * toplev.c (process_options): Remove handling of flag_loop_optimize2.
9066 * loop-init.c (gate_handle_loop2): Do not test flag_loop_optimize2.
9067 Test flag_branch_on_count_reg only if HAVE_doloop_end.
9068 * common.opt (floop-optimize2): Removed.
9069 (fmove-loop-invariants): Enabled by default.
9070
9071 2006-02-10 Sebastian Pop <pop@cri.ensmp.fr>
9072
9073 * tree-if-conv.c (combine_blocks): Free the result of
9074 get_loop_exit_edges.
9075
9076 2006-02-10 Jeff Law <law@redhat.com>
9077
9078 * fold-const.c (tree_expr_nonzero_p): Fix thinko.
9079
9080 PR tree-optimization/26213
9081 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
9082 loop trying to follow SSA_NAME_VALUE chains.
9083
9084 2006-02-10 Richard Guenther <rguenther@suse.de>
9085
9086 * tree-dfa.c (get_ref_base_and_extent): When computing maxsize
9087 deal with structures that end in implicitly variable sized arrays.
9088
9089 2006-02-09 Zdenek Dvorak <dvorakz@suse.cz>
9090
9091 PR rtl-optimization/24762
9092 * df-scan.c (df_bb_refs_record): Record correct registers defined on
9093 eh edges.
9094
9095 2006-02-09 Zdenek Dvorak <dvorakz@suse.cz>
9096
9097 * tree-ssa-loop-ivopts.c (struct loop_data, loop_data): Removed.
9098 (struct ivopts_data): Add regs_used field.
9099 (tree_ssa_iv_optimize_init): Do not allocate aux fields for loops.
9100 (ivopts_global_cost_for_size, determine_set_costs): Use data->regs_used
9101 instead of loop_data->regs_used;
9102 (free_loop_data): Do not free aux fields for loops.
9103 (tree_ssa_iv_optimize): Do not pass loops to tree_ssa_iv_optimize_init
9104 and tree_ssa_iv_optimize_finalize.
9105
9106 2006-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
9107
9108 * config/sh/sh.h (FUNCTION_VALUE): Don't handle CHAR_TYPE.
9109
9110 2006-02-09 J"orn Rennecke <joern.rennecke@st.com>
9111
9112 PR target/26141
9113 * sh.c (sh_gimplify_va_arg_expr): Don't change the result type when
9114 computing the effective result type.
9115
9116 2006-02-09 J"orn Rennecke <joern.rennecke@st.com>
9117
9118 PR inline-asm/16194
9119 * tree.h (decl_overlaps_hard_reg_set_p) Don't declare.
9120 (tree_overlaps_hard_reg_set): Declare.
9121 * stmt.c (decl_overlaps_hard_reg_set_p): Now static. Change return
9122 type and signature to match function type expected by walk_tree.
9123 (tree_overlaps_hard_reg_set): New function.
9124 (decl_conflicts_with_clobbers_p): Rename to:
9125 (tree_conflicts_with_clobbers_p). Take HARD_REG_SET * argument.
9126 Use tree_overlaps_hard_reg_set. Changed caller.
9127 * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Replace
9128 decl_overlaps_hard_reg_set_p with tree_overlaps_hard_reg_set.
9129 * cris.c (cris_md_asm_clobbers): Likewise.
9130
9131 2006-02-09 Bernd Schmidt <bernd.schmidt@analog.com>
9132
9133 * reload1.c (emit_input_reload_insns): Delete code that tries to
9134 inherit using find_equiv_reg.
9135
9136 2006-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9137
9138 * c-common.h (flag_const_strings): Don't declare.
9139 * c-common.c (flag_const_strings): Remove.
9140 * c.opt (fconst_strings): Remove.
9141 * c-opts.c (c_common_handle_option): Remove <OPT_fconst_strings>.
9142 <OPT_Wwrite_strings>: Don't set flag_const_strings.
9143 (c_common_init_options): Don't set flag_const_strings.
9144 * doc/invoke.texi (-fno-const-strings): Remove documentation.
9145
9146 2006-02-09 Richard Earnshaw <richard.earnshaw@arm.com>
9147
9148 * arm.md (tlobits_cbranch): New pattern.
9149 * arm.h (arm_select_cc_mode): For thumb, only return CC_Nmode if
9150 testing a single bit.
9151
9152 2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
9153
9154 PR tree-opt/26179
9155 * tree-ssa-pre.c (create_component_ref_by_pieces):
9156 Handle RETURN_DECL like VAR_DECL.
9157
9158 2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
9159
9160 PR middle-end/26134
9161 * fold-const.c (fold_indirect_ref_1): Fold
9162 "*(foo *)&complexfoo" to "__real__ complexfoo"
9163 and "((foo*)&complexfoo)[1]" to "__imag__ complexfoo".
9164
9165 2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
9166
9167 * tree-flow-inline.h (var_can_have_subvars):
9168 Volatile variables should not have subvariables.
9169
9170 2006-02-09 Diego Novillo <dnovillo@redhat.com>
9171
9172 PR 26180
9173 * tree-vrp.c (vrp_int_const_binop): Detect overflow when
9174 multiplying unsigned values.
9175 Tidy comments.
9176
9177 2006-02-09 Eric Botcazou <ebotcazou@libertysurf.fr>
9178
9179 * config/sparc/sparc.c (tls_call_delay): Fix oversight.
9180
9181 2006-02-08 Jason Merrill <jason@redhat.com>
9182
9183 PR c++/25979
9184 * tree.def: Elaborate on difference from MODIFY_EXPR.
9185 * doc/c-tree.texi (INIT_EXPR): Likewise.
9186 * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
9187 (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
9188 (gimplify_target_expr): Likewise.
9189 (gimplify_cond_expr): Remove target handling.
9190 (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
9191 (gimplify_expr): Clobber it here.
9192 (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
9193 Do return slot optimization if we have an INIT_EXPR.
9194
9195 PR tree-opt/24365
9196 * tree-inline.c (declare_return_variable): Also clear
9197 DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.
9198
9199 PR c++/16405
9200 * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.
9201
9202 PR middle-end/22439
9203 * gimplify.c (gimplify_one_sizepos): Fix typo.
9204
9205 2006-02-08 Jeff Law <law@redhat.com>
9206
9207 PR tree-optimization/21417
9208 * tree-ssa-threadedge.c (thread_across_edge): Reject threading
9209 across a backedge if the control statement at the end of the
9210 block is data dependent on other statements in the same block.
9211 (record_temporary_equivalences_from_stmts): Remove over-conservative
9212 test for threading across backedges.
9213
9214 * tree-ssa-dce.c (remove_dead_statement): When removing a dead
9215 control statement, handle all three special cases in the same
9216 manner as they all have the same desired solution. No longer
9217 special case edge flag updating when the post dominator is
9218 the exit block.
9219
9220 2006-02-08 Roger Sayle <roger@eyesopen.com>
9221
9222 * tree.def (CHAR_TYPE): Remove.
9223 * dbxout.c (dbxout_type): Delete dead handling of CHAR_TYPE.
9224 * dwarf2out.c (base_type_die, is_base_type): Likewise.
9225 (gen_type_die) <ARRAY_TYPE>: Remove handling of CHAR_TYPE arrays.
9226 (gen_string_type_die): Delete unreachable function.
9227
9228 * tree-pretty-print.c (dump_generic_node): Don't handle CHAR_TYPE.
9229 * tree.c (build_int_cst_wide, type_contains_placeholder_1,
9230 type_hash_eq, variably_modified_type_p, walk_type_fields): Likewise.
9231 * tree.h (NUMERICAL_TYPE_CHECK, INTEGRAL_TYPE_P): Likewise.
9232 * builtins.c (type_to_class): Likewise.
9233 * fold-const.c (fold_convert, build_range_check,
9234 merge_ranges): Likewise.
9235 * expr.c (count_type_elements): Likewise.
9236 * c-pretty-print.c (pp_c_type_specifier): Likewise.
9237 * stor-layout.c (layout_type): Likewise.
9238 * ipa-type-escape.c (type_to_consider): Likewise.
9239 * gimplify.c (omp_firstprivatize_type_sizes,
9240 gimplify_type_sizes): Likewise.
9241 * explow.c (promote_mode): Likewise.
9242 * tree-sra.c (is_sra_scalar_type): Likewise.
9243 * varasm.c (output_constant): Likewise.
9244 * tree-inline.c (remap_type_1): Likewise.
9245 * convert.c (convert_to_pointer, convert_to_real,
9246 convert_to_integer, convert_to_complex): Likewise.
9247
9248 2006-02-08 Daniel Berlin <dberlin@dberlin.org>
9249
9250 * df-scan.c (df_def_record_1): A set destination may
9251 be a parallel regardless of mode.
9252
9253 2006-02-08 Roger Sayle <roger@eyesopen.com>
9254
9255 PR target/22209
9256 * config/mips/mips.h (MIN_UNITS_PER_WORD): Don't define for libgcc.
9257 * config/mips/_tilib.c: Remove.
9258 * config/fixtfdi.c: New libgcc source file.
9259 * config/fixunstfdi.c: New source file.
9260 * config/floatditf.c: New source file.
9261 * config/floatunditf.c: New souce file.
9262 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
9263 files above instead of config/mips/_tilib.c.
9264 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
9265
9266 2006-02-08 Jeff Law <law@redhat.com>
9267
9268 PR tree-optimization/26169
9269 * tree-vrp.c (execute_vrp): Perform any queued SSA updates before
9270 threading jumps.
9271
9272 2006-02-08 Zdenek Dvorak <dvorakz@suse.cz>
9273
9274 * df.h (DF_REG_SIZE): Return the length of the initialized
9275 part of the array.
9276
9277 2006-02-08 Nathan Sidwell <nathan@codesourcery.com>
9278
9279 * config/m68k/lb1sf68.asm (__divsf3, __divdf3, __mulsf3,
9280 __muldf3): Return a correctly signed zero.
9281
9282 2006-02-08 Paolo Bonzini <bonzini@gnu.org>
9283
9284 * passes.c (register_one_dump_file): Accept the current properties
9285 instead of pass number. Adjust call to dump_register. Remove
9286 duplicated code.
9287 (register_dump_files): Now a wrapper around...
9288 (register_dump_files_1): ... this one. Do not modify the pass
9289 structure.
9290 (next_pass_1): Cosmetic fix.
9291 (execute_todo): Keep second parameter only. Use curr_properties
9292 instead of fetching it from the pass structure. Check and set
9293 last_verified.
9294 (execute_one_pass): Handle TODO_set_props. Use curr_properties
9295 instead of fetching it from the pass structure. Fix calls to
9296 execute_todo. Update curr_properties and initialize .vcg RTL dump
9297 after running the pass. Reset last_verified.
9298 * tree-dump.c (dump_files): Renumber consecutively. Put .cgraph dump
9299 at the beginning.
9300 (FIRST_AUTO_NUMBERED_DUMP): New.
9301 (dump_register): Remove "num" parameter, assign it within the
9302 function.
9303 (get_dump_file_name): Modify template for dumps.
9304 * tree-dump.h (dump_register): Adjust prototype.
9305 * tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
9306 (PROP_trees): Add PROP_gimple_lomp.
9307 (TODO_set_props): New.
9308 * gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
9309 * tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
9310 * cfgexpand.c (pass_expand): Destroy PROP_trees.
9311
9312 2006-02-08 Jakub Jelinek <jakub@redhat.com>
9313
9314 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
9315 (sparc64-*-linux*): Likewise.
9316 * config/sparc/t-linux64 (SHLIB_MAPFILES): Removed.
9317 * config/sparc/t-linux: New file.
9318 * config/sparc/libgcc-sparc-glibc.ver (__fixtfdi, __fixunstfdi,
9319 __floatditf): Export at GCC_LDBL_3.0 if -m32 -mlong-double-128.
9320 (__divtc3, __multc3, __powitf2): Export at GCC_LDBL_4.0.0 if
9321 -m32 -mlong-double-128.
9322
9323 * config.gcc (alpha*-*-linux*): Add alpha/t-linux to tmake_file.
9324 * config/alpha/t-linux: New file.
9325 * config/alpha/libgcc-alpha-ldbl.ver: New file.
9326
9327 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Define
9328 __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128.
9329 (CPP_SUBTARGET_SPEC): Don't add -D__LONG_DOUBLE_128__ here.
9330 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define
9331 __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128 and TARGET_ARCH32.
9332 (CPP_ARCH32_SPEC): Remove.
9333
9334 2006-02-07 Uttam Pawar <uttamp@us.ibm.com>
9335
9336 PR tree-optimization/26145
9337 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free
9338 bbs pointer.
9339
9340 2006-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9341
9342 PR target/26109
9343 * pa.c (attr_length_indirect_call): Don't return length 8 for distances
9344 >= 240000 when generating code for SOM runtime.
9345 (output_indirect_call): Don't use "b,l" instruction for indirect calls
9346 to $$dyncall when generating code for SOM runtime..
9347
9348 2006-02-07 Dirk Mueller <dmueller@suse.com>
9349
9350 PR c++/18150
9351 * doc/invoke.texi (-Wsequence-point): Update documentation
9352 that -Wsequence-point is implemented for C++ as well.
9353
9354 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
9355
9356 * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
9357 * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
9358 (LIB_SPEC): Likewise.
9359 * doc/invoke.texi (SPARC options): Document -pthread.
9360
9361 2006-02-07 Geoffrey Keating <geoffk@apple.com>
9362
9363 * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
9364 PIC addresses.
9365
9366 2006-02-07 Roger Sayle <roger@eyesopen.com>
9367
9368 * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE.
9369 Correct comment describing BOOLEAN_TYPE.
9370
9371 2006-02-07 Dirk Mueller <dmueller@suse.com>
9372
9373 * c.opt: C++ frontend supports -Wdiv-by-zero.
9374 * c-opts.c (c_common_handle_option): Remove dead case.
9375
9376 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
9377
9378 * configure.ac (TLS assembler check): Do not enable TLS by
9379 default on SPARC/Solaris before version 10.
9380 * configure: Regenerate.
9381
9382 2006-02-07 David Edelsohn <edelsohn@gnu.org>
9383
9384 * doc/invoke.texi (xl-compat): Document conversion and support
9385 routine names.
9386
9387 2006-02-07 Jeff Law <law@redhat.com>
9388
9389 * tree-vrp.c (find_conditional_asserts): Update comments.
9390 (simplify_stmt_for_jump_threading): New.
9391 (identify_jump_threads, finalize_jump_threads): New.
9392 (vrp_finalize): Call identify_jump_threads.
9393 (execute_vrp): Call finalize_jump_threads.
9394 * tree-ssa-dom.c (struct opt_stats_d): Remove num_iterations field.
9395 (vrp_element, vrp_data, vrp_element_p): Remove.
9396 (vrp_hash_elt, vrp_variables_stack): Remove.
9397 (vrp_hash, vrp_eq, record_range): Remove.
9398 (simplify_cond_and_lookup_avail_expr): Remove.
9399 (extract_range_from_cond): Remove.
9400 (thread_across_edge): Relocated into tree-ssa-threadedge.c.
9401 (simplify_stmt_for_jump_threading): New.
9402 (dom_thread_across_edge): New wrapper.
9403 (tree_ssa_dominator_optimize): No longer initialize or
9404 finalize any of the VRP datastructures. Remove iteration
9405 step and simplify as a result of removal of iteration step.
9406 (pass_dominator): Perform a cfg cleanup after DOM.
9407 (dom_opt_finalize_block): Use the new common routines
9408 for threading jumps. Simplify stack management slightly.
9409 No longer need to unwind VRP state.
9410 (record_equivalences_from_incoming_edge): No longer record
9411 VRP information.
9412 (eliminate_redundant_computations): No longer call
9413 simplify_cond_and_lookup_avail_expr.
9414 * tree-flow.h (potentially_threadable_block): Prototype.
9415 (thread_across_edge): Likewise.
9416 * Makefile.in (OBJS-common): Add tree-ssa-threadedge.o
9417 (tree-ssa-threadedge.o): Add dependencies.
9418 * tree-ssa-threadedge.c: New file.
9419 * passes.c (init_optimization_passes): Merge PHIs before
9420 calling VRP. Run VRP again late in the SSA optimization pipeline.
9421
9422 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
9423
9424 * df-core.c (df_set_blocks): Do not dereference function pointers.
9425 (df_finish1): Likewise.
9426 (df_hybrid_search_forward): Likewise.
9427 (df_hybrid_search_backward): Likewise.
9428 (df_iterative_dataflow): Likewise.
9429 (df_analyze_problem): Likewise.
9430 (df_compact_blocks): Likewise.
9431 (df_dump): Likewise.
9432 * df-scan.c (df_rescan_blocks): Likewise.
9433 (df_record_entry_block_defs): Likewise.
9434
9435 * genconditions.c (write_conditions): Guard the definition of
9436 'insn_conditions' with the check on GCC version.
9437 (write_writer): Guard the traversal 'insn_conditions' with
9438 the check on GCC version.
9439
9440 2006-02-07 Richard Guenther <rguenther@suse.de>
9441
9442 PR c++/26140
9443 Revert
9444 2006-01-30 Richard Guenther <rguenther@suse.de>
9445 PR c++/23372
9446 * gimplify.c (gimplify_target_expr): Handle easy cases
9447 without creating a temporary.
9448
9449 2006-02-07 Pete Steinmetz <steinmtz@us.ibm.com>
9450
9451 * sched-rgn.c (compute_dom_prob_ps, compute_trg_info): Eradicate
9452 use of float in probability computations. Use edge probabilities
9453 in place of statically computed probabilities.
9454 (min_spec_prob): New static variable.
9455 (schedule_insns): Initialize it.
9456 (GET_SRC_PROB): Removed.
9457 * doc/invoke.texi (min-sched-prob): Renamed to min-spec-prob.
9458
9459 2006-02-07 Alexandre Oliva <aoliva@redhat.com>
9460
9461 PR debug/24444
9462 * config/ia64/unwind-ia64.c: Revert last change.
9463 * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Removed.
9464 (INCOMING_FRAME_SP_OFFSET): Define.
9465
9466 2006-02-06 Roger Sayle <roger@eyesopen.com>
9467
9468 * config/ia64/ia64.c (hfa_element_mode): Don't handle CHAR_TYPE.
9469
9470 2006-02-07 Ben Elliston <bje@au.ibm.com>
9471
9472 * config/i386/i386.c (ix86_scalar_mode_supported_p): New.
9473 (TARGET_SCALAR_MODE_SUPPORTED_P): Define hook.
9474 (classify_argument): Handle SDmode, DDmode, TDmode for 64-bit.
9475 (ix86_return_in_memory): Handle TDmode.
9476 (ix86_libcall_value): Handle SDmode, DDmode, TDmode.
9477 (ix86_value_regno): Return non-TDmode decimal float modes in %eax.
9478
9479 2006-02-06 Richard Sandiford <richard@codesourcery.com>
9480
9481 * reorg.c (dbr_schedule): Use dump_file instead of file.
9482
9483 2006-02-06 Steve Ellcey <sje@cup.hp.com>
9484
9485 PR target/25917
9486 * config/ia64/predicates.md (extr_len_operand): New predicate.
9487 * config/ia64/ia64.md (extv): Tighten constraints.
9488 (extzv): Ditto.
9489 (*tbit_and_2): Ditto.
9490 (*tbit_and_3): Ditto.
9491 (*tbit_or_2): Ditto.
9492 (*tbit_or_3): Ditto.
9493 (*bit_zero): Ditto.
9494 (*bit_one): Ditto.
9495
9496 2006-02-06 Andrew Pinski <pinskia@physics.uc.edu>
9497
9498 PR target/23359
9499 * config/i386/i386.md (trap): Use ASM_SHORT instead of .word.
9500
9501 2006-02-06 Zdenek Dvorak <dvorakz@suse.cz>
9502
9503 * tree-vrp.c (execute_vrp): Do not pass dump argument to.
9504 loop_optimizer_init and loop_optimizer_finalize
9505 * tree-ssa-sink.c (execute_sink_code): Ditto.
9506 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
9507 * tree-ssa-loop.c (tree_loop_optimizer_init, tree_ssa_loop_init,
9508 tree_ssa_loop_done): Ditto.
9509 * tree-ssa-pre.c (init_pre, fini_pre): Ditto.
9510 * sched-ebb.c: Include output.h.
9511 (schedule_ebbs): Do not use dump argument.
9512 * value-prof.h (struct profile_hooks): Remove profile_dump_file.
9513 * loop.c (loop_dump_stream): Removed.
9514 (loop_optimize, rest_of_handle_loop_optimize): Do not use dump
9515 argument.
9516 (scan_loop, move_movables, find_and_verify_loops, mark_loop_jump,
9517 emit_prefetch_instructions, loop_bivs_find, loop_bivs_check,
9518 final_biv_value, loop_biv_eliminable_p, loop_givs_rescan,
9519 loop_iterations, strength_reduce, record_biv, record_giv,
9520 final_giv_value, check_final_value, check_ext_dependent_givs,
9521 combine_givs, check_dbra_loop, maybe_eliminate_biv, load_mems,
9522 try_copy_prop, loop_delete_insns, try_swap_copy_prop): Use
9523 dump_file instead of loop_dump_stream.
9524 * ddg.c (print_ddg_edge, print_ddg, vcg_print_ddg): Do not call
9525 argument dump_file.
9526 * reorg.c (dbr_schedule, rest_of_handle_delay_slots): Do not use
9527 dump argument.
9528 * flow.c (life_analysis, rest_of_handle_life): Ditto.
9529 * haifa-sched.c: Include output.h
9530 (schedule_insns, sched_init): Do not use dump argument.
9531 * mode-switching.c (optimize_mode_switching): Ditto.
9532 * modulo-sched.c (stats_file): Removed.
9533 (print_node_sched_params): Do not call argument dump_file.
9534 (sms_schedule_by_order, loop_canon_p, sms_schedule,
9535 rest_of_handle_sms): Do not use dump argument. Use dump_file instead
9536 of stats_file.
9537 * cse.c (cse_main, rest_of_handle_cse, rest_of_handle_cse2): Do not
9538 use dump argument.
9539 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize,
9540 rtl_loop_init, rtl_loop_done): Ditto.
9541 * global.c (global_alloc, rest_of_handle_global_alloc): Ditto.
9542 * predict.c (combine_predictions_for_bb, tree_estimate_probability):
9543 Ditto.
9544 * recog.c (peephole2_optimize, rest_of_handle_peephole2): Ditto.
9545 * lcm.c (pre_edge_lcm, pre_edge_rev_lcm): Ditto.
9546 * regmove.c (fixup_match_1, fixup_match_2, regmove_optimize,
9547 rest_of_handle_regmove, rest_of_handle_stack_adjustments): Ditto.
9548 * emit-rtl.c (renumber_insns): Ditto.
9549 * cfgexpand.c (add_reg_br_prob_note, expand_gimple_cond_expr,
9550 expand_gimple_basic_block, tree_expand_cfg): Ditto.
9551 * regclass.c (regclass): Ditto.
9552 * tree-outof-ssa.c (analyze_edges_for_bb, perform_edge_inserts,
9553 remove_ssa_form, rewrite_out_of_ssa): Ditto.
9554 * reg-stack.c (compensate_edge, compensate_edges, convert_regs_1,
9555 convert_regs_2, convert_regs, reg_to_stack, rest_of_handle_stack_regs):
9556 Ditto.
9557 * sched-rgn.c (schedule_insns, rest_of_handle_sched): Ditto.
9558 * local-alloc.c (rest_of_handle_local_alloc): Do not pass dump_file
9559 to regclass.
9560 * gcse.c (gcse_file, debug_stderr): Removed.
9561 (gcse_main, bypass_jumps, rest_of_handle_jump_bypass,
9562 rest_of_handle_gcse): Do not use dump argument.
9563 (cprop_jump, cprop_insn, do_local_cprop, cprop, find_implicit_sets,
9564 one_cprop_pass, bypass_block, compute_pre_data, insert_insn_end_bb,
9565 pre_edge_insert, pre_insert_copy_insn, pre_delete, one_pre_gcse_pass,
9566 compute_code_hoist_vbeinout, compute_code_hoist_data,
9567 one_code_hoisting_pass, trim_ld_motion_mems, update_ld_motion_stores,
9568 compute_store_table, build_store_vectors, insert_insn_start_bb,
9569 insert_store, remove_reachable_equiv_notes, replace_store_insn,
9570 store_motion): Use dump_file instead of gcse_file.
9571 * ipa-type-escape.c (type_escape_execute): Remove debugging comments.
9572 * profile.c (profile_dump_file): Removed.
9573 (branch_prob): Use dump_file instead of profile_dump_file.
9574 * ipa.c (cgraph_remove_unreachable_nodes): Do not call argument
9575 dump_file.
9576 * tree-ssa-copy.c (dump_copy_of): Ditto.
9577 * rtl-factoring.c (rtl_seqabstr, rest_of_rtl_seqabstr): Do not pass
9578 dump file to life_analysis.
9579 * bt-load.c (branch_target_load_optimize): Ditto.
9580 * cfgcleanup.c (rest_of_handle_jump2): Do not pass dump_file to
9581 renumber_insns.
9582 * rtl.h (cse_main, renumber_insns, schedule_insns, schedule_ebbs,
9583 regclass, dbr_schedule): Declaration changed.
9584 * sched-int.h (sched_init): Declaration changed.
9585 * tree-profile.c (tree_profile_dump_file): Removed.
9586 (tree_profile_hooks): Removed profile_dump_file hook.
9587 * rtl-profile (rtl_profile_dump_file): Removed.
9588 (rtl_profile_hooks): emoved profile_dump_file hook.
9589 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize): Declaration
9590 changed.
9591 * c-gimplify.c (c_genericize): Do not call local variable dump_file.
9592 * tree-cfg.c (build_tree_cfg): Ditto.
9593 * Makefile.in (haifa-sched.o, sched-ebb.o): Add output.h dependency.
9594 * basic-block.h (life_analysis, pre_edge_lcm, pre_edge_rev_lcm):
9595 Declaration changed.
9596 * config/sh/sh.c (sh_output_mi_thunk): Do not pass dump_file to
9597 life_analysis and schedule_insns.
9598 * config/m68hc11/m68hc11.c (m68hc11_reorg): Do not pass dump_file to
9599 life_analysis.
9600 * config/mt/mt.c (mt_machine_reorg): Do not pass dump_file to
9601 dbr_schedule.
9602 * config/mips/mips.c (mips_reorg): Ditto.
9603 * config/ia64/ia64.c (ia64_reorg): Do not pass dump_file to
9604 schedule_ebbs.
9605
9606 2006-02-06 Aldy Hernandez <aldyh@redhat.com>
9607
9608 * config/s390/s390.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
9609 (s390_mangle_fundamental_type): New.
9610 * config/s390/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
9611 Define.
9612
9613 * config/alpha/alpha.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
9614 (alpha_mangle_fundamental_type): New.
9615 * config/alpha/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
9616 Define.
9617
9618 * config/sparc/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
9619 Define.
9620 * config/sparc/linux64.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
9621 Define.
9622 * config/sparc/sparc.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
9623 (sparc_mangle_fundamental_type): New.
9624
9625 2006-02-06 Jakub Jelinek <jakub@redhat.com>
9626
9627 * config.gcc (s390-*-linux*): Add s390/t-linux to tmake_file.
9628 (s390x-*-linux*): Likewise.
9629 * config/s390/t-linux64 (SHLIB_MAPFILES): Removed.
9630 * config/s390/t-linux: New file.
9631
9632 2006-02-02 Bernd Schmidt <bernd.schmidt@analog.com>
9633
9634 * config/i386/sync.md (sync_add<mode>, sync_sub<mode>, sync_ior<mode>,
9635 sync_and<mode>, sync_xor<mode>): Operand 0 is in-out.
9636
9637 2006-02-06 Daniel Berlin <dberlin@dberlin.org>
9638
9639 * tree-ssa-pre.c (bb_value_sets_t): Add antic_safe_loads.
9640 (ANTIC_SAFE_LOADS): New macro.
9641 (find_or_generate_expression): Add prototype.
9642 (set_contains_value): Allow null set for sake of not always having
9643 to allocate ANTIC_SAFE_LOADS.
9644 (phi_translate): Move placement of AGGREGATE_TYPE_P check.
9645 Allow COMPONENT_REF too.
9646 (valid_in_set): Allow COMPONENT_REF.
9647 Check ANTIC_SAFE_LOADS too.
9648 (compute_antic_aux): Print out ANTIC_SAFE_LOADS.
9649 (compute_rvuse_and_antic_safe): Add ANTIC_SAFE computation, and
9650 rename.
9651 (can_PRE_operation): Add COMPONENT_REF.
9652 (create_component_ref_by_pieces): New function.
9653 (create_expression_by_pieces): Use create_component_ref_by_pieces.
9654 (insert_aux): Move AGGREGATE_TYPE_P check here.
9655 (compute_avail): Set bb local stmt uids.
9656 (pass_pre): Use TODO_update_ssa_only_virtuals.
9657
9658 2006-02-06 Ben Elliston <bje@au.ibm.com>
9659
9660 * configure.ac: Unconditionally disable decimal float by default.
9661 * configure: Regenerate.
9662
9663 2006-02-06 Ben Elliston <bje@au.ibm.com>
9664
9665 * read-rtl.c (read_name): Terminate reading on EOF.
9666
9667 2006-02-06 Ben Elliston <bje@au.ibm.com>
9668
9669 * dfp.c (decimal_real_arithmetic): Change second argument type
9670 from int to enum tree_code. Do not always return true, but now
9671 return result of any call to decimal_do helper functions.
9672 * dfp.h (decimal_real_arithmetic): Update prototype.
9673
9674 2006-02-05 Eric Botcazou <ebotcazou@libertysurf.fr>
9675
9676 * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
9677
9678 2006-02-05 Andrew Pinski <pinskia@physics.uc.edu>
9679
9680 PR tree-opt/25251
9681 * tree-cfg.c (cleanup_dead_labels): Also don't remove
9682 forced labels.
9683
9684 2006-02-04 Zdenek Dvorak <dvorakz@suse.cz>
9685
9686 * tree-vrp.c (cfg_loops): Removed.
9687 (adjust_range_with_scev, vrp_visit_assignment, execute_vrp):
9688 Use current_loops instead of cfg_loops. Pass flags to
9689 loop_optimizer_init.
9690 * cfgloopmanip.c (fix_loop_structure): Update only available
9691 information.
9692 * tree-ssa-loop-ch.c (copy_loop_headers): Pass flags to
9693 loop_optimizer_init.
9694 * modulo-sched.c (build_loops_structure): Removed.
9695 (sms_schedule): Use loop_optimizer_init.
9696 * loop-init.c (loop_optimizer_init): Use flags to determine
9697 which properties of loops to prepare.
9698 (rtl_loop_init): Pass flags to loop_optimizer_init.
9699 * tree-ssa-sink.c (execute_sink_code): Ditto.
9700 * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
9701 * tree-ssa-pre.c (init_pre): Ditto.
9702 * cfgloop.h (LOOPS_NORMAL): New.
9703 (loop_optimizer_init): Declaration changed.
9704
9705 2006-02-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9706
9707 * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
9708 * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of
9709 pa/t-pa.
9710 * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of
9711 pa/t-pa.
9712 * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of
9713 pa/x-ada.
9714 * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules.
9715 * pa/t-pa64: Delete quadlib.c rule.
9716 * pa/x-ada: Revert last change.
9717 * pa/t-pa: Revert last change. Delete quadlib.c rule.
9718
9719 2006-02-04 Zdenek Dvorak <dvorakz@suse.cz>
9720
9721 PR rtl-optimization/26087
9722 * rtlanal.c (canonicalize_condition): Do not cross basic block
9723 boundaries.
9724
9725 2006-02-04 Alexandre Oliva <aoliva@redhat.com>
9726
9727 PR debug/24444
9728 * config/ia64/ia64.c: Include debug.h.
9729 (MAX_ARTIFICIAL_LABEL_BYTES): New.
9730 (ia64_label_after_insn, ia64_dwarf2out_def_steady_cfa): New.
9731 (IA64_CHANGE_CFA_IN_EPILOGUE): Define to 0.
9732 (process_epilogue, process_set, process_for_unwind_directive):
9733 Output unwind info only if requested. Add CFA info if requested.
9734 Add new arguments as needed. Adjust callers.
9735 * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Override
9736 incorrect default.
9737 (DWARF2_FRAME_INFO): Define to zero.
9738 * config/ia64/unwind-ia64.c: Remove code that compensated for
9739 the CFA offset error fixed above.
9740 * config/ia64/t-ia64 (ia64.o): Depend on debug.h.
9741 * dwarf2out.c (DWARF2_FRAME_INFO): Define default.
9742 (dwarf2out_do_frame): Require nonzero DWARF2_UNWIND_INFO for
9743 -funwind-tables and -fexceptions to enable frame info.
9744 (dwarf2out_frame_init): Define initial CFA even if
9745 DWARF2_UNWIND_INFO is disabled. Call initial_return_save if
9746 DWARF2_UNWIND_INFO is nonzero, not just defined.
9747 (dwarf2out_frame_finish): Output non-EH call frame info only
9748 if DWARF2_FRAME_INFO is nonzero.
9749 (convert_cfa_to_loc_list,
9750 compute_frame_pointer_to_cfa_displacement): Define even if
9751 unwind info is not supported.
9752 (gen_subprogram_die): Use the above unconditionally. Remove
9753 legacy alternate code.
9754 * toplev.c (compile_file): Compile in call to
9755 dwarf2out_frame_finish if DWARF2_DEBUGGING_INFO is defined.
9756 (lang_dependent_init): Ditto for dwarf2out_frame_init.
9757
9758 2006-02-04 David Edelsohn <edelsohn@gnu.org>
9759 Jakub Jelinek <jakub@redhat.com>
9760
9761 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Mangle
9762 IBM extended float format long double as "g" on powerpc*-linux.
9763
9764 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9765
9766 PR target/25926
9767 * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
9768 * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
9769
9770 2006-02-03 Jason Merrill <jason@redhat.com>
9771
9772 PR c++/25979
9773 * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.
9774
9775 PR middle-end/25977
9776 * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
9777 on the return slot if it's an NRV.
9778
9779 2006-02-03 Zdenek Dvorak <dvorakz@suse.cz>
9780
9781 * tree-ssa-loop-ivopts.c (enum use_type): Remove USE_OUTER.
9782 (dump_use, add_derived_ivs_candidates, determine_use_iv_cost,
9783 rewrite_use): Do not handle USE_OUTER.
9784 (find_interesting_uses_outer_or_nonlin, find_interesting_uses_outer,
9785 add_iv_outer_candidates, may_replace_final_value,
9786 determine_use_iv_cost_outer, rewrite_use_outer): Removed.
9787 (find_interesting_uses_op): Functionality of
9788 find_interesting_uses_outer_or_nonlin moved here.
9789 (find_interesting_uses_outside): Use find_interesting_uses_op.
9790
9791 2006-02-03 Alan Modra <amodra@bigpond.net.au>
9792
9793 PR target/25960
9794 * config/rs6000/darwin-ldouble.c (__gcc_qadd): Preserve -0.0 result.
9795
9796 2006-02-03 Andreas Krebbel <krebbel1@de.ibm.com>
9797 Ulrich Weigand <uweigand@de.ibm.com>
9798
9799 PR target/25864
9800 * config/s390/2084.md ("x_fsimptf", "x_fmultf", "x_fdivtf",
9801 "x_floadtf", "x_ftrunctf", "x_ftruncdf"): New insn reservations.
9802 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): New functions.
9803 * config/s390/s390.c (struct processor_costs): Add mxbr, sqxbr, dxbr
9804 and dxr fields.
9805 (z900_cost, z990_cost, z9_109_cost): Values for the new fields added.
9806 (s390_rtx_costs): Use the new fields to calculate rtx costs.
9807 (s390_secondary_input_reload_class, s390_secondary_output_reload_class):
9808 Define secondary reloads for TFmode moves.
9809 (constant_modes): Add TFmode.
9810 (NR_C_MODES): Set to 8.
9811 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Add __LONG_DOUBLE_128__
9812 builtin define.
9813 (LONG_DOUBLE_TYPE_SIZE): Set to 128 or 64.
9814 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE, WIDEST_HARDWARE_FP_SIZE): Define.
9815 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
9816 CANNOT_CHANGE_MODE_CLASS): Consider TFmode.
9817 * config/s390/s390.md ("type" attribute): Add fsimptf, floadtf, fmultf,
9818 fdivtf, fsqrttf, ftrunctf, ftruncdf as possible values.
9819 (FPR mode macro): Add TFmode.
9820 (DSF mode macro): New.
9821 (<de>, <dee> mode attributes): Removed.
9822 (<xde>, <xdee>, <RRe>, <RXe>, <Rf> mode attributes): New.
9823 ("*cmp<mode>_ccs_0", "*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs",
9824 "*cmp<mode>_ccs_ibm", "fix_trunc<FPR:mode><GPR:mode>2_ieee",
9825 "floatdi<mode>2", "floatsi<mode>2_ieee", "*add<mode>3",
9826 "*add<mode>3_cc", "*add<mode>3_cconly", "*add<mode>3_ibm",
9827 "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly",
9828 "*sub<mode>3_ibm", "*mul<mode>3_ibm", "*fmadd<mode>", "*fmsub<mode>",
9829 "*div<mode>3", "*div<mode>3_ibm", "*neg<mode>2_cc",
9830 "*neg<mode>2_cconly", "*neg<mode>2", "*neg<mode>2_ibm",
9831 "*abs<mode>2_cc", "*abs<mode>2_cconly", "*abs<mode>2",
9832 "*abs<mode>2_ibm", "*negabs<mode>2_cc", "*negabs<mode>2_cconly",
9833 "*negabs<mode>2", "sqrt<mode>2"):
9834 Changed <de> to <xde>. R constraint replaced by <Rf>.
9835 ("*mul<mode>3"): Changed <dee> to <xdee>. R constraint replaced by
9836 <Rf>.
9837 ("fix_trunc<FPR:mode>di2"): 'FPR:' removed.
9838 ("*fmadd<mode>", "*fmsub<mode>"): FPR mode replaced by DSF.
9839 ("*movtf_64", "*movtf_31"): New insn definitions followed by 5
9840 splitters.
9841 ("movtf", "reload_outtf", "reload_intf", "trunctfdf2", "trunctfsf2",
9842 "extenddftf2", "extendsftf2"): New expanders.
9843 ("*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
9844 "*trunctfsf2_ibm", "*extenddftf2_ieee", "*extenddftf2_ibm",
9845 "*extendsftf2_ieee", "*extendsftf2_ibm"): New insn patterns.
9846 * config/s390/s390.opt (mlong-double-128, mlong-double-64):
9847 New options.
9848 * config/s390/t-crtstuff (TARGET_LIBGCC2_CFLAGS): Macro defined.
9849 * config/s390/libgcc-glibc.ver (__divtc3, __multc3, __powitf2,
9850 __fixtfti, __fixunstfti, __floattitf, __fixtfdi, __fixunstfdi,
9851 __floatditf): Add a GCC_4.1.0 symbol version tag.
9852 * doc/invoke.texi (-mlong-double-128, -mlong-double-64): Document
9853 the new options.
9854
9855 2006-02-02 Andrew Pinski <pinskia@physics.uc.edu>
9856
9857 PR target/25377
9858 * config/i386/i386.c (ix86_function_ok_for_sibcall):
9859 Use targetm.binds_local_p instead of TREE_PUBLIC.
9860
9861 2006-02-02 Roger Sayle <roger@eyesopen.com>
9862
9863 * tree.h (TYPE_STRING_FLAG): Document that this field may be used
9864 on INTEGER_TYPEs to indicate that it denotes a character type.
9865 * tree.c (build_common_tree_nodes): Set TYPE_STRING_FLAG on
9866 signed_char_type_node, unsigned_char_type_node and char_type_node.
9867 * dwarf2out.c (base_type_die): Treat CHAR_TYPE identically to
9868 INTEGER_TYPE. Use TYPE_STRING_FLAG to decide whether to emit
9869 a DW_ATE_[un]signed_char instead of a DW_ATE_[un]signed.
9870
9871 2006-02-02 Zdenek Dvorak <dvorakz@suse.cz>
9872 Daniel Berlin <dberlin@dberlin.org>
9873
9874 * tree-tailcall.c (arg_needs_copy_p): New function.
9875 (eliminate_tail_call): Use arg_needs_copy_p.
9876 (tree_optimize_tail_calls_1): Ditto. Also call add_virtual_phis.
9877 (add_virtual_phis): New function.
9878
9879 2006-02-02 Jakub Jelinek <jakub@redhat.com>
9880
9881 * config/sparc/sparc.c (sparc_output_scratch_registers): Use
9882 #ignore instead of #scratch for %g7 .register directive.
9883
9884 2006-02-02 Andreas Tobler <a.tobler@schweiz.ch>
9885
9886 * config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
9887 object files.
9888
9889 2006-02-02 Bernd Schmidt <bernd.schmidt@analog.com>
9890
9891 * flow.c (calculate_global_regs_live): Assert that there aren't any
9892 EDGE_FAKE edges.
9893
9894 2006-02-02 Paolo Bonzini <bonzini@gnu.org>
9895
9896 * tree-flow-inline.h (bsi_after_labels): Rewrite, return
9897 what its name says.
9898 * lambda-code.c (perfect_nestify): Use bsi_insert_before on
9899 bsi_after_labels iterator.
9900 * tree-if-conv.c (find_phi_replacement_condition,
9901 replace_phi_with_cond_modify_expr): Likewise.
9902 * tree-scalar-evolution.c (scev_const_prop): Likewise.
9903 * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
9904
9905 2006-02-02 Diego Novillo <dnovillo@redhat.com>
9906
9907 * tree-inline.c (copy_tree_r): Also copy OMP_CLAUSE nodes.
9908
9909 2006-02-02 Diego Novillo <dnovillo@redhat.com>
9910
9911 PR 25990
9912 * tree-cfg.c (move_block_to_fn): Clear out the basic block
9913 array after growing it.
9914
9915 2006-02-01 Steve Ellcey <sje@cup.hp.com>
9916
9917 PR middle-end/24901
9918 * fold-const.c (fold_checksum_tree): Change type of buf.
9919
9920 2006-02-01 Bernd Schmidt <bernd.schmidt@analog.com>
9921
9922 * reload.c (push_secondary_reload): Initialize t_icode.
9923
9924 2006-02-01 Jakub Jelinek <jakub@redhat.com>
9925
9926 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
9927 -msoft-float -mlong-double-128 only issue a warning, but don't
9928 swich to DFmode long double.
9929
9930 2006-02-01 Hans-Peter Nilsson <hp@axis.com>
9931
9932 * cse.c (fold_rtx) <case RTX_COMM_COMPARE, RTX_COMPARE>: When arg1
9933 has a constant equivalent, iterate over equivalents for arg0,
9934 calling simplify_relational_operation and if there's a result
9935 cheaper than X, apply fold_rtx and return the result.
9936
9937 2006-02-01 Jan Hubicka <jh@suse.cz>
9938
9939 * opts.c (no_unit_at_a_time_default): New global variable.
9940 (decode_options): Use it.
9941 * opts.h (no_unit_at_a_time_default): Declare.
9942
9943 2006-02-01 Paul Brook <paul@codesourcery.com>
9944
9945 * function.c (assign_parm_setup_reg): Use function argument promotion
9946 rules.
9947 * expr.c (expand_expr_real_1): Use function argument promotion rules
9948 for PARM_DECLs.
9949
9950 2006-02-01 Steve Ellcey <sje@cup.hp.com>
9951
9952 * gcc.c (process_command): Change j to 'unsigned int'.
9953
9954 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
9955
9956 PR middle-end/26001
9957 * expr.c (expand_expr_real_1) <case ARRAY_REF>:
9958 Use the corrected index for the character
9959 out of the string constant.
9960
9961 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
9962
9963 * mode-switching.c (optimize_mode_switching): Fix size
9964 allocated for bb_info[n_entities].
9965
9966 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
9967
9968 * gcc.c (main): Correct type that is allocated for
9969 explicit_link_files.
9970
9971 2006-01-31 Jakub Jelinek <jakub@redhat.com>
9972
9973 * config/s390/s390.c (init_alignment_context): Set
9974 ALIAS_SET_MEMORY_BARRIER on the MEM.
9975 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
9976
9977 2006-01-31 Uttam Pawar <uttamp@us.ibm.com>
9978
9979 PR middle-end/25933
9980 * loop-unroll.c (unroll_loop_runtime_iterations): Free
9981 dom_bbs pointer.
9982 * tree-ssa-live.c (type_var_init): Allocate bitmap after
9983 call to tpa_init.
9984
9985 2006-01-31 Marcin Dalecki <martin@dalecki.de>
9986
9987 * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
9988 * regrename.c: Ditto.
9989 * tree-ssa-loop-im.c: Ditto.
9990 * tree-dump.c: Ditto.
9991 * tree-complex.c: Ditto.
9992 * genrecog.c: Ditto.
9993 * tree-ssa-threadupdate.c: Ditto.
9994 * tracer.c: Ditto.
9995 * java/class.c: Ditto.
9996 * java/jcf-parse.c: Ditto.
9997 * java/resource.c: Ditto.
9998 * java/except.c: Ditto.
9999 * java/jvspec.c: Ditto.
10000 * java/jcf-write.c: Ditto.
10001 * java/jcf-path.c: Ditto.
10002 * java/gjavah.c: Ditto.
10003 * java/zextract.c: Ditto.
10004 * java/jcf-io.c: Ditto.
10005 * java/jcf.h: Ditto.
10006 * java/buffer.c: Ditto.
10007 * java/lang.c: Ditto.
10008 * java/parse-scan.y: Ditto.
10009 * java/lex.c: Ditto.
10010 * java/lex.h: Ditto.
10011 * cfgloopmanip.c: Ditto.
10012 * postreload-gcse.c: Ditto.
10013 * tree-ssa-loop-manip.c: Ditto.
10014 * postreload.c: Ditto.
10015 * tree-ssa-loop-ch.c: Ditto.
10016 * loop.c: Ditto.
10017 * ipa-cp.c: Ditto.
10018 * cppspec.c: Ditto.
10019 * diagnostic.c: Ditto.
10020 * final.c: Ditto.
10021 * genoutput.c: Ditto.
10022 * gcc.c: Ditto.
10023 * cfghooks.c: Ditto.
10024 * cfgloopanal.c: Ditto.
10025 * objc/objc-act.c: Ditto.
10026 * gcov.c: Ditto.
10027 * genextract.c: Ditto.
10028 * genautomata.c: Ditto.
10029 * pretty-print.c: Ditto.
10030 * genemit.c: Ditto.
10031 * cgraphunit.c: Ditto.
10032 * flow.c: Ditto.
10033 * df-scan.c: Ditto.
10034 * haifa-sched.c: Ditto.
10035 * dominance.c: Ditto.
10036 * dbxout.c: Ditto.
10037 * tree-ssa-loop-ivopts.c: Ditto.
10038 * df-core.c: Ditto.
10039 * mode-switching.c: Ditto.
10040 * modulo-sched.c: Ditto.
10041 * graph.c: Ditto.
10042 * ipa-pure-const.c: Ditto.
10043 * cse.c: Ditto.
10044 * fix-header.c: Ditto.
10045 * web.c: Ditto.
10046 * tree-stdarg.c: Ditto.
10047 * ipa-utils.c: Ditto.
10048 * loop-init.c: Ditto.
10049 * ipa-inline.c: Ditto.
10050 * cfganal.c: Ditto.
10051 * global.c: Ditto.
10052 * alloc-pool.c: Ditto.
10053 * dwarf2out.c: Ditto.
10054 * opts.c: Ditto.
10055 * genattrtab.c: Ditto.
10056 * tree-ssa-loop-ivcanon.c: Ditto.
10057 * predict.c: Ditto.
10058 * timevar.c: Ditto.
10059 * lcm.c: Ditto.
10060 * fortran/gfortranspec.c: Ditto.
10061 * regmove.c: Ditto.
10062 * local-alloc.c: Ditto.
10063 * langhooks.c: Ditto.
10064 * function.c: Ditto.
10065 * tree-vectorizer.c: Ditto.
10066 * gcse.c: Ditto.
10067 * ipa-type-escape.c: Ditto.
10068 * alias.c: Ditto.
10069 * tree-if-conv.c: Ditto.
10070 * profile.c: Ditto.
10071 * ipa.c: Ditto.
10072 * tree-data-ref.c: Ditto.
10073 * loop-unroll.c: Ditto.
10074 * treelang/treetree.c: Ditto.
10075 * calls.c: Ditto.
10076 * bt-load.c: Ditto.
10077 * ggc-common.c: Ditto.
10078 * except.c: Ditto.
10079 * coverage.c: Ditto.
10080 * cselib.c: Ditto.
10081 * tree-cfgcleanup.c: Ditto.
10082 * tree-ssa-pre.c: Ditto.
10083 * cfgcleanup.c: Ditto.
10084 * loop-invariant.c: Ditto.
10085 * loop-iv.c: Ditto.
10086 * ipa-prop.c: Ditto.
10087 * print-tree.c: Ditto.
10088 * conflict.c: Ditto.
10089 * ggc-page.c: Ditto.
10090 * sched-deps.c: Ditto.
10091 * regclass.c: Ditto.
10092 * tree-object-size.c: Ditto.
10093 * combine.c: Ditto.
10094 * bb-reorder.c: Ditto.
10095 * resource.c: Ditto.
10096 * var-tracking.c: Ditto.
10097 * cfgloop.c: Ditto.
10098 * df-problems.c: Ditto.
10099 * reg-stack.c: Ditto.
10100 * tlink.c: Ditto.
10101 * gccspec.c: Ditto.
10102 * sched-rgn.c: Ditto.
10103 * tree-ssa-structalias.c: Ditto.
10104 * tree-ssa-reassoc.c: Ditto.
10105 * config/darwin-c.c: Ditto.
10106 * config/darwin.c: Ditto.
10107 * config/arm/arm.c: Ditto.
10108 * cfgrtl.c: Ditto.
10109 * collect2.c: Ditto.
10110 * reload1.c: Ditto.
10111
10112 2006-01-31 Nicolas Pitre <nico@cam.org>
10113
10114 * arm.md (smaxsi3): Make aware of smax_m1.
10115 (smax_m1): New.
10116
10117 2006-01-31 Nathan Sidwell <nathan@codesourcery.com>
10118
10119 * config/m68k/lb1sf68.asm: Use moveq to load small constants.
10120
10121 2006-01-31 Richard Guenther <rguenther@suse.de>
10122
10123 * doc/invoke.texi (-msselibm): Document.
10124 * target.h (expand_library_builtin): New target hook.
10125 * builtins.c (expand_builtin): Use expand_library_builtin.
10126 (default_expand_library_builtin): New function.
10127 * gcc.c (LINK_GCC_MATH_SPEC): Define.
10128 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
10129 (link_gcc_math_spec): Declare.
10130 (static_specs): Add link_gcc_math_spec.
10131 * expr.h (default_expand_library_builtin): Declare.
10132 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
10133 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
10134 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
10135 * config/i386/i386.opt (msselibm): New target option.
10136 * config/i386/i386.c (ix86_builtin_function_variants): New array.
10137 (ix86_init_sse_abi_builtins): New function.
10138 (ix86_expand_library_builtin): Likewise.
10139 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
10140 (override_options): Handle error conditions wrt -msselibm.
10141 (ix86_builtins): Add function codes for SSE2 ABI builtins.
10142 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
10143 * doc/extend.texi (__builtin_sse2_*): Document new target specific
10144 builtins.
10145
10146 2006-01-31 Richard Guenther <rguenther@suse.de>
10147 Paolo Bonzini <bonzini@gnu.org>
10148
10149 * doc/install.texi (--disable-libgcc-math): Document.
10150
10151 2006-01-30 Marcin Dalecki <martin@dalecki.de>
10152
10153 * expr.h (expand_normal): new inline function.
10154 * builtins.c: use it, use EXPAND_NORMAL explicitely.
10155 * dojump.c: use it.
10156 * dwarf2out.c: use it.
10157 * expr.c: use it.
10158 * calls.c: use it.
10159 * expmed.c: use it.
10160 * except.c: use it.
10161 * config/sparc/sparc.c: use it.
10162 * config/i386/i386.c: use it.
10163 * config/rs6000/rs6000.c: use it.
10164 * config/arm/arm.c: use it.
10165 * config/mips/mips.c: use it.
10166 * stmt.c: use it, use EXPAND_NORMAL explicitely.
10167
10168 2006-01-30 Roger Sayle <roger@eyesopen.com>
10169
10170 * config/i386/cygwin.h (GCC_DRIVER_HOST_INITIALIZATION): Cast
10171 argv to the appropriate type.
10172
10173 2006-01-30 Zdenek Dvorak <dvorakz@suse.cz>
10174
10175 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
10176 unreachable code.
10177
10178 2006-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10179
10180 PR target/26018
10181 * config/s390/s390.c (struct machine_function): New flag
10182 decomposed_literal_pool_addresses_ok_p.
10183 (s390_reorg): Set it before final stage of literal pool transforms.
10184 (s390_decompose_address): Only accept displacements of the form
10185 (minus (label_ref ...) (label_ref ...)) if that flag is set.
10186
10187 2006-01-30 Carlos O'Donell <carlos@codesourcery.com>
10188
10189 * optabs.c (prepare_cmp_insn): If unbaised and unsigned then bias
10190 the comparison routine return.
10191
10192 2006-01-30 Michael Matz <matz@suse.de>
10193
10194 * global.c (find_reg): Only evict for global regs.
10195 Take n_refs into account and dump more info.
10196
10197 2006-01-30 J"orn Rennecke <joern.rennecke@st.com>
10198
10199 PR target/14798:
10200 * sh.c (pragma_interrupt, trap_exit, sp_switch): Remove variable.
10201 (pragma_trap, pragma_nosave_low_regs): Likewise.
10202 (current_function_anonymous_args): Likewise.
10203 (sh_deferred_function_attributes): New variable.
10204 (sh_deferred_function_attributes_tail): Likewise.
10205 (print_operand): For '@', look up trap_exit attribute.
10206 (calc_live_regs): Look up trapa_handler attribute. For trapa
10207 handlers, save/restore fpscr, but don't do any other
10208 interrupt-specific saves.
10209 Don't save r0..r7 if the nosave_low_regs attribute is in effect.
10210 Fix check for partially saved registers to check for SHmedia.
10211 (sh_expand_prologue, sh_expand_epilogue): Look up sp_switch attribute.
10212 (sh_output_function_epilogue): Don't clear any of the removed
10213 variables.
10214 (sh_insert_attributes): Don't check pragma_interrupt.
10215 Insert deferred attributes. Check that interrupt attribute is
10216 present for other attributes that require its presence.
10217 (sh_attribute_table): Add new attributes trapa_handler and
10218 nosave_low_regs.
10219 (sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
10220 Don't check for pragma_interrupt. Don't store argument.
10221 * sh.h (pragma_interrupt, sp_switch): Don't declare.
10222 (sh_deferred_function_attributes): Declare.
10223 (sh_deferred_function_attributes_tail): Likewise.
10224 * sh.md (sp_switch_1): Add operand. Change generator caller.
10225 (sh_pr_interrupt, sh_pr_trapa, sh_pr_nosave_low_regs): Remove.
10226 (*return_i): Don't use when trap_exit attribute is in effect.
10227 (*return_trapa): New insn pattern.
10228 * sh-c.c: New file.
10229 * config.gcc (sh[123456ble]*-* | sh-*-*): New trailer stanza,
10230 setting c_target_objs and cxx_target_objs.
10231 * t-sh: Add rule for sh-c.o.
10232
10233 2006-01-30 Richard Guenther <rguenther@suse.de>
10234
10235 PR c++/23372
10236 * gimplify.c (gimplify_target_expr): Handle easy cases
10237 without creating a temporary.
10238
10239 2006-01-30 Nathan Sidwell <nathan@codesourcery.com>
10240
10241 * vec.h (safe_grow): Remove duplicated line.
10242
10243 2006-01-29 Diego Novillo <dnovillo@redhat.com>
10244
10245 PR 25874
10246 * omp-low.c (execute_expand_omp): Move CFG cleanup code ...
10247 (expand_omp): ... here.
10248 (expand_omp_parallel): Only remove barriers for combined
10249 parallel+workshare constructs.
10250
10251 2006-01-29 Eric Botcazou <ebotcazou@adacore.com>
10252
10253 Revert
10254
10255 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
10256 * tree.c (build_qualified_type): Chain the new type to the original
10257 type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
10258 a POINTER_TYPE or a REFERENCE_TYPE respectively.
10259 (build_pointer_type_for_mode): Only return unqualified types.
10260 (build_reference_type_for_mode): Likewise.
10261
10262 2006-01-29 Gabriel Dos Reis <gdr@integgrable-solutions.net>
10263
10264 * configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.
10265 * Makefile.in (CXX_COMPAT_WARN): Define.
10266 * configure: Regenerate.
10267
10268 2006-01-29 Dorit Nuzman <dorit@il.ibm.com>
10269
10270 PR tree-opt/25911
10271 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
10272 to an if check.
10273
10274 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
10275
10276 * toplev.c: Fix thinko.
10277
10278 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
10279 Marcin Dalecki <martin@dalecki.de>
10280
10281 * toplev.c (floor_log2, exact_log2): Don't define if __cplusplus.
10282 (push_srcloc): Use XNEW.
10283 (init_asm_output, default_get_pch_validity): Use XNEWVEC.
10284
10285 2006-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
10286
10287 * df-core.c (df_set_blocks): Deleted all variable.
10288
10289 2006-01-28 Ian Lance Taylor <ian@airs.com>
10290
10291 * cgraphunit.c (cgraph_assemble_pending_functions): Call
10292 cgraph_output_pending_asms.
10293
10294 2006-01-28 Zack Weinberg <zackw@panix.com>
10295
10296 * c.opt: Add -W(no-)overlength-strings.
10297 * doc/invoke.texi: Document it.
10298 * c-opts.c (c_common_handle_option): -pedantic implies
10299 -Woverlength-strings, if not explicitly disabled already.
10300 (c_common_post_options): -Woverlength-strings defaults to off, and
10301 is always off for C++.
10302 * c-common.c (fix_string_type): Issue warning about strings longer
10303 than is portable only if warn_overlength_strings. Rearrange code
10304 a little for clarity.
10305 * configure.in: Check for -Wno-overlength-strings as well before
10306 enabling -pedantic in stage 1.
10307 * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
10308 (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.
10309
10310 * genconditions.c (write_header, write_one_condition)
10311 (write_conditions, write_writer): Consolidate very long strings
10312 that were broken up to fit in C89 portable limit. Don't use
10313 printf when fputs will do.
10314
10315 2006-01-28 Adam Nemet <anemet@caviumnetworks.com>
10316
10317 * combine.c (simplify_comparison <AND>): Check
10318 TRULY_NOOP_TRUNCATION before start using a subreg.
10319
10320 * config/mips/mips.md (*branch_zero<mode>,
10321 *branch_zero<mode>_inverted, *branch_equality<mode>,
10322 *branch_equality<mode>_inverted, *branch_equality<mode>_mips16):
10323 Remove mode check from comparisons.
10324
10325 2006-01-28 Kenneth Zadeck <zadeck@naturalbridge.com>
10326
10327 * config/mips/mips-protos.h (mips_set_live_on_entry): Deleted.
10328
10329 2006-01-28 Kazu Hirata <kazu@codesourcery.com>
10330
10331 * expmed.c (const_mult_add_overflow_p): Remove.
10332 * expr.h: Remove the prototype for const_mult_add_overflow_p.
10333
10334 * recog.c (validate_replace_rtx_subexp): Remove.
10335 * recog.h: Remove the prototype for
10336 validate_replace_rtx_subexp.
10337
10338 * integrate.h: Remove the prototype for
10339 copy_decl_for_inlining.
10340 * rtl.h: Remove the prototype for mark_constant_function.
10341 * tree-vectorizer.h: Remove the prototype for
10342 vect_strip_conversion.
10343
10344 * modulo-sched.c (create_partial_schedule,
10345 free_partial_schedule, reset_partial_schedule): Make them
10346 static.
10347
10348 * hooks.c (hook_bool_rtx_int_false): Remove.
10349 * hooks.h: Remove the prototype for hook_bool_rtx_int_false.
10350
10351 2006-01-28 David Edelsohn <edelsohn@gnu.org>
10352
10353 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
10354 and -mlong-double-128 are incompatible.
10355 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
10356 * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
10357 (TARGET_LIBGCC2_CFLAGS): Define.
10358 * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): Same.
10359 (TARGET_LIBGCC2_CFLAGS): Same.
10360 * config/rs6000/ppc64-fp.c: Compile for 64-bit AIX.
10361
10362 2006-01-28 Kazu Hirata <kazu@codesourcery.com>
10363
10364 PR c/19606.
10365 * c-typeck.c (build_binary_op): Perform implicit casts of
10366 operands before shortening them.
10367
10368 * cfgloopmanip.c (split_loop_bb): Remove.
10369 * cfgloop.h: Remove the prototype for split_loop_bb.
10370
10371 * cfgloop.c (flow_loop_outside_edge_p): Remove.
10372 * cfgloop.h: Remove the prototype for
10373 flow_loop_outside_edge_p.
10374
10375 * emit-rtl.c (init_virtual_regs): Make it static.
10376 * function.h: Remove the prototype for init_virtual_regs.
10377
10378 * recog.c (peephole2_optimize): Make it static.
10379 * recog.h: Remove the prototype for peephole2_optimize.
10380
10381 2006-01-27 H.J. Lu <hongjiu.lu@intel.com>
10382
10383 * df-scan.c (df_record_entry_block_defs): Check if
10384 INCOMING_RETURN_ADDR_RTX is defined.
10385
10386 2006-01-27 Daniel Berlin <dberlin@dberlin.org>
10387 Kenneth Zadeck <zadeck@naturalbridge.com>
10388
10389 PR rtl-optimization/24762
10390 * doc/tm.texi: Added TARGET_EXTRA_LIVE_ON_ENTRY.
10391 * targhooks.c (hook_void_bitmap): New hook prototype.
10392 * targhoohs.h (hook_void_bitmap): Ditto.
10393 * bitmap.h (bitmap_head_def): Moved to coretypes.h.
10394 * coretypes.h (bitmap_head_def): Moved from bitmap.h.
10395 * target.h (live_on_entry): New function pointer.
10396 * df-scan.c (df_all_hard_regs): Removed.
10397 (df_scan_dump, df_hard_reg_init): Removed df_all_hard_regs.
10398 (df_scan_free_internal): Added df->entry_block_defs.
10399 (df_scan_alloc): Ditto.
10400 (df_scan_dump): Ditto.
10401 (df_uses_record): Plumbed flag field properly thru calls.
10402 Record EH_RETURN_DATA_REGNO in eh blocks unconditionally.
10403 This part fixes PR24762.
10404 (df_bb_refs_record): Added code to make the frame and arg
10405 pointers live in EH blocks.
10406 (df_refs_record): Added call to df_record_entry_block_defs.
10407 (df_record_entry_block_defs): New function.
10408 * df-core.c: Added comments to describe new artifical defs.
10409 * df.h (DF_REF_DIES_AFTER_THIS_USE): New flag in enum df_ref_flags.
10410 (entry_block_defs): New field in struct df.
10411 (df_all_hard_regs): Deleted.
10412 * target-def.h: Added TARGET_EXTRA_LIVE_ON_ENTRY.
10413 * df-problems.c (df_ru_bb_local_compute_process_def):
10414 Added code to handle artifical defs in the entry to a function.
10415 (df_ru_bb_local_compute): Ditto.
10416 (df_rd_bb_local_compute_process_def): Ditto.
10417 (df_rd_bb_local_compute): Ditto.
10418 (df_lr_bb_local_compute): Ditto.
10419 (df_ur_bb_local_compute): Ditto.
10420 (df_urec_bb_local_compute): Ditto.
10421 (df_chain_create_bb): Ditto.
10422 (df_ur_local_finalize): Removed entry.
10423 (df_urec_init): Ditto.
10424 (df_urec_local_finalize): Ditto.
10425 (df_ri_bb_compute): Added detection of last use of pseudos.
10426 * Makefile.in (df-scan.o): Updated dependencies.
10427 * config/mips/mips-protos.h (mips_set_live_on_entry): Added.
10428 * config/mips/mips.c (mips_set_live_on_entry): Added.
10429 * config/mips/mips.c (TARGET_EXTRA_LIVE_ON_ENTRY): Added value
10430 for target hook.
10431 * dce.c (marked_insn_p): Added code to handle artifical defs.
10432
10433 2006-01-27 H.J. Lu <hongjiu.lu@intel.com>
10434
10435 * config/i386/emmintrin.h (_mm_cvtsd_f64): Add missing Intel
10436 intrinsic.
10437 (_mm_cvtsi128_si64): Likewise.
10438 (_mm_cvtsd_si64): Likewise.
10439 (_mm_cvttsd_si64): Likewise.
10440 (_mm_cvtsi64_sd): Likewise.
10441 (_mm_cvtsi64_si128): Likewise.
10442 * config/i386/mmintrin.h (_m_from_int64): Likewise.
10443 (_mm_cvtsi64_m64): Likewise.
10444 (_m_to_int64): Likewise.
10445 (_mm_cvtm64_si64): Likewise.
10446 * config/i386/xmmintrin.h (_mm_cvtss_si64): Likewise.
10447 (_mm_cvttss_si64): Likewise.
10448 (_mm_cvtsi64_ss): Likewise.
10449 (_mm_cvtss_f32): Likewise.
10450
10451 2006-01-27 Carlos O'Donell <carlos@codesourcery.com>
10452
10453 * c-pragma.c (init_pragma) : Call c_register_pragma_with_expansion
10454 for pragma redefine_extname.
10455
10456 2006-01-27 Jakub Jelinek <jakub@redhat.com>
10457
10458 PR target/25864
10459 * libgcc-std.ver: Add GCC_4.1.0 symbol version.
10460 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Only append
10461 -mno-minimal-toc to previous content.
10462 (bispecs): Remove goal.
10463 * config/rs6000/ppc64-fp.c: Define TMODES before including fp-bit.h.
10464 * config/rs6000/darwin-ldouble.c: Don't provide _xlq*@GCC_3.4
10465 compatibility aliases on powerpc-*-*gnu*.
10466 * config/rs6000/libgcc-ppc-glibc.ver: New file.
10467 * config/rs6000/t-ppccomm (SHLIB_MAPFILES): Append
10468 libgcc-ppc-glibc.ver on powerpc*-*-*gnu*.
10469 (TARGET_LIBGCC2_CFLAGS): Append -specs=ldblspecs.
10470 (ldblspecs): New goal.
10471 * config/rs6000/t-linux64 (SHLIB_MAPFILES): Removed.
10472 * mklibgcc.in: If $TPBIT is empty, don't compile _sf_to_tf and
10473 _df_to_tf.
10474 * config/fp-bit.h (TMODES): Don't define if none of TFLOAT,
10475 L_sf_to_tf or L_df_to_tf is defined.
10476
10477 2006-01-27 David Edelsohn <edelsohn@gnu.org>
10478 Alan Modra <amodra@bigpond.net.au>
10479
10480 PR target/25864
10481 * config/rs6000/linux.h (POWERPC_LINUX): Define.
10482 * config/rs6000/linux64.h (POWERPC_LINUX): Define.
10483 * config/rs6000/darwin-ldouble.c: Build on 32-bit PowerPC.
10484 * config/rs6000/darwin.h (TARGET_IEEEQUAD): Define to zero.
10485 * config/rs6000/aix.h (TARGET_IEEEQUAD): Define to zero.
10486 * config/rs6000/rs6000.c (rs6000_ieeequad): New variable.
10487 (rs6000_override_options): Initialize rs6000_ieeequad.
10488 Initialize TFmode format to ibm_extended_format if not
10489 TARGET_IEEEQUAD.
10490 (rs6000_handle_option): Accept -mabi= ibmlongdouble and
10491 ieeelongdouble.
10492 (rs6000_emit_move): Move !TARGET_IEEEQUAD as two parts.
10493 (rs6000_return_in_memory): Only return IEEEQUAD in memory.
10494 (function_arg_advance): IBM long double passed in two FPRs, not
10495 split.
10496 (function_arg): IBM long double passed in FPRs.
10497 (rs6000_pass_by_reference): Only IEEEQUAD passed by reference.
10498 (rs6000_gimplify_va_arg): IBM long double passed in two FPRs.
10499 Only multireg GPR aligned.
10500 (rs6000_init_libfuncs): Enable IBM long double functions if not
10501 IEEEQUAD.
10502 (rs6000_generate_compare): Use IBM long double compare if not
10503 TARGET_IEEEQUAD.
10504 * config/rs6000/rs6000.h (rs6000_ieeequad): Declare.
10505 (TARGET_IEEEQUAD): Define.
10506 (CANNOT_CHANGE_MODE_CLASS): Any mode larger than doubleword if
10507 not TARGET_IEEEQUAD.
10508 * config/rs6000/rs6000.md: Enable TFmode patterns if
10509 !TARGET_IEEEQUAD.
10510 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
10511 * config/rs6000/svr4.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
10512 and -mlong-double-128 are incompatible.
10513 * doc/invoke.texi (-mabi): Collect options together. Add
10514 ibmlongdouble and ieeelongdouble.
10515
10516 2006-01-27 Richard Sandiford <richard@codesourcery.com>
10517
10518 * doc/rtl.texi (SYMBOL_REF_DATA): Adjust documentation for new
10519 opaque type.
10520 * optabs.c (init_one_libfunc): Use SET_SYMBOL_REF_DECL.
10521 * varasm.c (make_decl_rtl, build_constant_desc): Likewise.
10522 (force_const_mem): Use SET_SYMBOL_REF_CONSTANT.
10523 * rtl.h (rtunion_def): Remove rt_ptr.
10524 (X0PTR): Delete.
10525 (SYMBOL_REF_DATA): Use X0ANY instead of X0PTR.
10526 (SET_SYMBOL_REF_DECL, SET_SYMBOL_REF_CONSTANT): New macros.
10527 * config/i386/winnt.c (i386_pe_mark_dllexport)
10528 (i386_pe_mark_dllimport): Use SET_SYMBOL_REF_DECL.
10529
10530 2006-01-27 Gabor Loki <loki@gcc.gnu.org>
10531
10532 * cfgcleanup.c (try_crossjump_to_edge): Fix comment typo.
10533
10534 2006-01-26 Alexandre Oliva <aoliva@redhat.com>
10535
10536 PR other/24829
10537 PR target/24831
10538 * gthr-dce.h: Do not gthrw-ify pthread_once_init,
10539 pthread_key_delete. From John David Anglin. gthrw-ify
10540 pthread_getunique_np only if it it's not a macro. Delete
10541 UNUSED macro.
10542 (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate,
10543 __gthread_objc_condition_wait, __gthread_objc_condition_broadcast,
10544 __gthread_objc_condition_signal, __gthread_key_delete): Add
10545 "__attribute__ ((__unused__))" to unused arguments.
10546 (__gthread_recursive_mutex_init_function): Add missing return.
10547 * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h,
10548 gthr-posix95.h: Use macro-based approach for name redirection
10549 on targets missing weakref.
10550
10551 2006-01-26 Zack Weinberg <zackw@panix.com>
10552
10553 * genconditions.c (write_header): In generated code, #ifdef out
10554 all includes and fake declarations, except includes of bconfig.h
10555 and system.h, unless GCC_VERSION >= 3001. Do not include
10556 gensupport.h in any case.
10557 (write_conditions): Generate a definition of struct c_test. Add
10558 a comment to the generated #endif.
10559 (write_one_condition): Escape backslashes in string too.
10560 (write_writer): Generated code must escape backslashes and quote
10561 marks (but not newlines) in the strings it writes.
10562 * Makefile.in (build/gencondmd.o): Update dependencies.
10563
10564 2006-01-26 Steve Ellcey <sje@cup.hp.com>
10565
10566 PR target/25961
10567 * Makefile.in (insn-automata.o): Add header file dependencies.
10568 * genautomata.c: Add includes.
10569
10570 2006-01-26 Steve Ellcey <sje@cup.hp.com>
10571
10572 PR target/25961
10573 * Makefile.in (insn-automata.o): Add -Wno-error flag.
10574
10575 2006-01-26 Paolo Bonzini <bonzini@gnu.org>
10576
10577 * configure.ac: Expect target tools paths to be passed from the toplevel
10578 and wrap the detection into AS_SET_VAR_IF. Extract side-effects out of
10579 AS_SET_VAR_IF.
10580 * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove.
10581
10582 2006-01-26 Alexandre Oliva <aoliva@redhat.com>
10583
10584 PR c/25892
10585 * c.opt (Wpointer-sign): Init to -1.
10586 * c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
10587 OPT_pedantic, to 0 otherwise.
10588 * doc/invoke.texi: Update.
10589
10590 2006-01-26 Paolo Bonzini <bonzini@gnu.org>
10591
10592 * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Emit
10593 constants provided by 80387 instructions in the destination mode.
10594
10595 2006-01-26 Richard Guenther <rguenther@suse.de>
10596 Andrew Pinski <pinskia@physics.uc.edu>
10597
10598 PR tree-opt/21470
10599 partial PR tree-opt/17064
10600 * tree-ssa-structalias.c (intra_create_variable_infos):
10601 Create heap variables for incoming parameters if
10602 flag_argument_noalias > 1.
10603 (find_what_p_points_to): Look through default defs of
10604 parameter decls.
10605
10606 2006-01-26 Jeff Law <law@redhat.com>
10607
10608 PR ada/25900
10609 * tree-vrp.c (extract_range_from_assert): When merging a VR_RANGE
10610 with a VR_ANTI_RANGE and the VR_ANTI_RANGE is completely contained
10611 within the VR_RANGE, use the VR_RANGE as the result, not the
10612 VR_ANTI_RANGE.
10613 (adjust_range_with_scev): Reject ranges from SCEV which are out of
10614 bounds for the type.
10615
10616 2006-01-26 Daniel Berlin <dberlin@dberlin.org>
10617
10618 * tree-ssa-alias.c (maybe_create_global_var): Change
10619 subvar walking to an assertion that we don't have subvar'd variables.
10620
10621 2006-01-26 Andrew Pinski <pinskia@physics.uc.edu>
10622
10623 PR C/25861
10624 * c-common.c (c_common_truthvalue_conversion) <case ADDR_EXPR>:
10625 Use a new variable, inner. PARM_DECLs are always non-weak.
10626
10627 2006-01-26 Shantonu Sen <ssen@opendarwin.org>
10628
10629 * tree.h (OMP_CLAUSE_SUBCODE_CHECK): Add definition for
10630 --disable-checking.
10631
10632 2006-01-26 Adam Nemet <anemet@caviumnetworks.com>
10633
10634 * config/mips/mips.md (*clear_upper32): New combiner pattern.
10635
10636 2006-01-26 Richard Earnshaw <richard.earnshaw@arm.com>
10637
10638 * arm.md (smaxsi3, sminsi3): Convert to define_expand.
10639 (smax_insn, smin_insn, smax_0, smin_0): New.
10640
10641 2006-01-26 Hans-Peter Nilsson <hp@axis.com>
10642
10643 PR target/25947
10644 * config/cris/cris.c (cris_order_for_addsi3): New function.
10645 * config/cris/cris-protos.h: Prototype it.
10646 * config/cris/cris.md (split for "move.S1 [rx=rx+i],ry")
10647 (split for "move.S1 ry,[rx=rx+i]", split for "clear.[bwd] [rx=rx+i]")
10648 (split for "mov(s|u).S1 [rx=rx+i],ry", split for "op.S1 [rx=rx+i],ry")
10649 (split for "op.S1 [rx=rx+i],ry (swapped)")
10650 (split for "op(s|u).S1 [rx=rx+i],ry")
10651 (split for "op(s|u).S1 [rx=rx+i],ry (swapped, plus or bound)"):
10652 Apply cris_order_for_addsi3 when generating addsi3 insns.
10653
10654 2006-01-25 Diego Novillo <dnovillo@redhat.com>
10655
10656 * tree.h (TREE_RANGE_CHECK): Fix range predicate.
10657 (TREE_BLOCK): Add call to EXPR_CHECK.
10658
10659 2006-01-25 Diego Novillo <dnovillo@redhat.com>
10660
10661 PR 25886
10662 * tree-dump.c (dequeue_and_dump): Handle OMP_CLAUSE.
10663 * tree-pretty-print.c (dump_omp_clause): Extract from ...
10664 (dump_omp_clauses): ... here.
10665 (dump_generic_node): Handle OMP_CLAUSE.
10666 * tree.c (omp_clause_num_ops): New.
10667 (omp_clause_code_name): New.
10668 (tree_code_size): Handle OMP_CLAUSE.
10669 (tree_size): Likewise.
10670 (make_node): Document handling of OMP_CLAUSE.
10671 (tree_node_structure): Handle OMP_CLAUSE.
10672 (omp_clause_check_failed): New.
10673 (omp_clause_range_check_failed): New.
10674 (omp_clause_operand_check_failed): New.
10675 (build_omp_clause): New.
10676 (walk_tree): Adjust handling of OMP_CLAUSE_* nodes.
10677 * tree.h (enum omp_clause_code): Declare.
10678 (OMP_CLAUSE_SUBCODE_CHECK): Define.
10679 (OMP_CLAUSE_RANGE_CHECK): Define.
10680 (OMP_CLAUSE_ELT_CHECK): Define.
10681 (omp_clause_check_failed): Declare.
10682 (omp_clause_operand_check_failed): Declare.
10683 (omp_clause_range_check_failed): Declare.
10684 (OMP_CLAUSE_CHAIN): Do not use TREE_RANGE_CHECK.
10685 (OMP_CLAUSE_OPERAND): Use OMP_CLAUSE_RANGE_CHECK.
10686 (OMP_CLAUSE_PRIVATE_DEBUG): Use OMP_CLAUSE_SUBCODE_CHECK.
10687 (OMP_CLAUSE_LASTPRIVATE): Likewise.
10688 (OMP_CLAUSE_IF_EXPR): Likewise.
10689 (OMP_CLAUSE_NUM_THREADS_EXPR): Likewise.
10690 (OMP_CLAUSE_SCHEDULE_CHUNK_EXPR): Likewise.
10691 (OMP_CLAUSE_REDUCTION_CODE): Likewise.
10692 (OMP_CLAUSE_REDUCTION_INIT): Likewise.
10693 (OMP_CLAUSE_REDUCTION_MERGE): Likewise.
10694 (OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
10695 Use tree_node.omp_clause.subcode instead of TREE_COMPLEXITY.
10696 (OMP_CLAUSE_SCHEDULE_KIND): Likewise.
10697 (OMP_CLAUSE_DEFAULT_KIND): Likewise.
10698 (OMP_CLAUSE_CODE): Define.
10699 (OMP_CLAUSE_SET_CODE): Define.
10700 (OMP_CLAUSE_CODE): Define.
10701 (OMP_CLAUSE_OPERAND): Define.
10702 (struct tree_omp_clause): Declare.
10703 (union tree_node): Add field 'omp_clause'.
10704 * treestruct.def (TS_OMP_CLAUSE): Define.
10705 * tree.def (OMP_CLAUSE_PRIVATE, OMP_CLAUSE_SHARED
10706 OMP_CLAUSE_FIRSTPRIVATE, OMP_CLAUSE_LASTPRIVATE,
10707 OMP_CLAUSE_REDUCTION, OMP_CLAUSE_COPYIN,
10708 OMP_CLAUSE_COPYPRIVATE, OMP_CLAUSE_IF,
10709 OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE,
10710 OMP_CLAUSE_NOWAIT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Remove.
10711 (OMP_CLAUSE): Define.
10712 * print-tree.c (print_node): Handle OMP_CLAUSE.
10713 * omp-low.c: Adapt all uses of OMP_CLAUSE_* nodes.
10714 * c-typeck.c: Likewise.
10715 * gimplify.c: Likewise.
10716 * c-omp.c: Likewise.
10717 * tree-nested.c: Likewise.
10718 * tree-inline.c: Likewise.
10719 * c-parser.c: Likewise.
10720 * gimple-low.c (lower_omp_directive): Do not set TREE_BLOCK on
10721 clauses.
10722
10723 2006-01-25 Roger Sayle <roger@eyesopen.com>
10724
10725 PR rtl-optimization/25703
10726 * combine.c (try_combine): Handle zero_extract and strict_low_part
10727 of non-lowpart SUBREGs for constant reg_subword_p set optimization.
10728
10729 2006-01-25 Peter Bergner <bergner@vnet.ibm.com>
10730
10731 * global.c: Fix comment typos.
10732
10733 2006-01-25 Andrew Pinski <pinskia@physics.uc.edu>
10734
10735 PR target/25758
10736 * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
10737 Use output_addr_const instead of assemble_name.
10738
10739 2006-01-25 Paolo Bonzini <bonzini@gnu.org>
10740
10741 * Makefile.in (sched-vis.o): Update dependencies.
10742 * haifa-sched.c (sched_finish): Clear current_sched_info.
10743 * cfg.c (dump_bb_info): New, split from dump_flow_info.
10744 (dump_flow_info): Call it.
10745 * passes.c (execute_todo): Call print_rtl_slim_with_bb to make
10746 a slim RTL dump.
10747 * basic-block.h (dump_bb_info): Declare.
10748 * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all
10749 option, and apply options only for dump files whose TDF_RTL,
10750 TDF_TREE, or TDF_IPA bits match.
10751 * rtl.h: Declare new functions exported from sched-vis.c.
10752 * sched-vis.c: Enable also if scheduling is not used.
10753 (print_value): Print the mode of registers if not inside scheduling.
10754 (print_insn): Make it work outside the scheduler. Beautify the output
10755 a bit.
10756 (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New.
10757
10758 2006-01-25 Richard Sandiford <richard@codesourcery.com>
10759
10760 * doc/rtl.texi (SYMBOL_REF_CONSTANT, SYMBOL_REF_DATA): Document.
10761 * gengtype.c (adjust_field_rtx_def): Garbage-collect field 2 of
10762 a SYMBOL_REF as either a tree or a constant_descriptor_rtx,
10763 depending on the value of CONSTANT_POOL_ADDRESS_P.
10764 * optabs.c (init_one_libfunc): Nullify SYMBOL_REF_DATA rather than
10765 SYMBOL_REF_DECL.
10766 * varasm.c (make_decl_rtl, build_constant_desc): Set SYMBOL_REF_DATA
10767 rather than SYMBOL_REF_DECL.
10768 (rtx_constant_pool): Remove const_rtx_sym_htab.
10769 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): Delete.
10770 (init_varasm_status): Don't initialize const_rtx_sym_htab.
10771 (force_const_mem): Point SYMBOL_REF_DATA to the constant pool entry.
10772 Remove handling of const_rtx_sym_htab.
10773 (find_pool_constant): Delete.
10774 (get_pool_constant, get_pool_constant_mark): Use SYMBOL_REF_CONSTANT
10775 rather than find_pool_constant.
10776 (get_pool_constant_for_function): Delete.
10777 (get_pool_mode, mark_constant): Use SYMBOL_REF_CONSTANT rather than
10778 find_pool_constant.
10779 * rtl.h (rtunion_def): Add rt_constant and rt_ptr fields.
10780 (X0CONSTANT, X0PTR, SYMBOL_REF_DATA): New macros.
10781 (SYMBOL_REF_DECL): Return NULL if CONSTANT_POOL_ADDRESS_P.
10782 (SYMBOL_REF_CONSTANT): New macro.
10783 (get_pool_constant_for_function): Delete.
10784 * config/i386/winnt.c (i386_pe_mark_dllexport): Set SYMBOL_REF_DATA
10785 rather than SYMBOL_REF_DECL.
10786 (i386_pe_mark_dllimport): Likewise.
10787 * config/rs6000/rs6000.c (rs6000_emit_move): Copy SYMBOL_REF_DATA
10788 rather than SYMBOL_REF_DECL.
10789 * config/darwin.c (machopic_indirect_data_reference): Likewise.
10790 (machopic_indirect_call_target): Likewise.
10791
10792 2006-01-25 Eric Botcazou <ebotcazou@adacore.com>
10793
10794 * flow.c (delete_noop_moves): Add missing EOL to dump message.
10795
10796 2006-01-25 Richard Sandiford <richard@codesourcery.com>
10797
10798 * genattrtab.c (gen_bypass): Allow bypasses to contain whitespace.
10799
10800 2006-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
10801
10802 * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
10803
10804 2006-01-24 David Daney <ddaney@avtrex.com>
10805
10806 PR java/25816
10807 * configure.ac (enable_tls): New enable option.
10808 (HAVE_AS_TLS): Don't do assembler check if enable_tls set.
10809 * configure: Regenerate.
10810 * doc/install.texi (--enable-tls): Document new option.
10811 (--disable-tls): Ditto.
10812
10813 2006-01-24 Richard Henderson <rth@redehat.com>
10814
10815 * alias.h (ALIAS_SET_MEMORY_BARRIER): New.
10816 * alias.c (true_dependence): Respect it.
10817 (canon_true_dependence, write_dependence_p): Likewise.
10818 * builtins.c (get_builtin_sync_mem): Set it.
10819
10820 2006-01-25 Zdenek Dvorak <dvorakz@suse.cz>
10821
10822 * loop-iv.c (iv_analysis_loop_init): Use df analysis in a more
10823 efficient way.
10824
10825 2006-01-24 DJ Delorie <dj@redhat.com>
10826
10827 * expmed.c (store_bit_field): Don't arbitrarily deny using insv
10828 for storing constants in single-bit bitfields.
10829
10830 2006-01-25 Ben Elliston <bje@au.ibm.com>
10831
10832 * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long.
10833
10834 2006-01-24 Andrew Pinski <pinskia@physics.uc.edu>
10835
10836 PR tree-opt/25860
10837 * tree-ssa-pre.c (phi_translate): Return NULL
10838 for AGGREGATE_TYPE's.
10839
10840 2006-01-24 Zack Weinberg <zackw@panix.com>
10841
10842 * genautomata.c (process_state_for_insn_equiv_partition):
10843 Use xcalloc for insn_arcs_array.
10844 * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates.
10845 (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P.
10846
10847 2006-01-24 Richard Henderson <rth@redhat.com>
10848
10849 * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
10850 update all callers.
10851
10852 2006-01-23 Paolo Bonzini <bonzini@gnu.org>
10853
10854 PR rtl-optimization/25890
10855 PR rtl-optimization/25905
10856 * combine.c (expand_compound_operation, expand_field_assignment):
10857 Fail if the bitfield's final position is out of bounds.
10858
10859 2006-01-24 Ian Lance Taylor <ian@airs.com>
10860
10861 PR middle-end/25930
10862 * cgraphunit.c (cgraph_output_in_order): Don't clear
10863 cgraph_asm_nodes until after asm strings have been output.
10864
10865 2006-01-23 Adam Nemet <anemet@caviumnetworks.com>
10866
10867 * fix-header.c (read_scan_file): Add new parameter imultilib when
10868 calling register_include_chains.
10869
10870 2006-01-23 Diego Novillo <dnovillo@redhat.com>
10871
10872 * omp-low.c: Update documentation.
10873
10874 2006-01-23 Andrew Pinski <pinskia@physics.uc.edu>
10875 Daniel Berlin <dberlin@dberlin.org>
10876
10877 PR tree-opt/25315
10878 PR tree-opt/25857
10879 * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal
10880 return from the function.
10881
10882 2006-01-22 Zack Weinberg <zackw@panix.com>
10883
10884 * rtl.def (match_code): Add second argument.
10885 * genpreds.c (write_extract_subexp): New function.
10886 (write_match_code): Add path argument. Use write_extract_subexp.
10887 (write_predicate_expr): Pass path to write_match_code.
10888 (mark_mode_tests): MATCH_CODE applied to a subexpression does
10889 not perform a mode test.
10890 * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
10891 a subexpression does not constrain the top-level code set.
10892 * read-rtl.c (read_rtx_variadic): New function.
10893 (read_rtx_1): Use it; allow AND and IOR to be variadic.
10894 * doc/md.texi: Document new notation.
10895 * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
10896 (cmpsi_operand): ... here, using new notation.
10897
10898 2006-01-22 Zack Weinberg <zackw@panix.com>
10899
10900 * varray.c: Remove GENERATOR_FILE #ifdefs.
10901
10902 2006-01-22 Zack Weinberg <zackw@panix.com>
10903
10904 * genautomata.c (output_reserved_units_table): Emit nothing if
10905 description->query_units_num is zero. Remove extra blank line.
10906 (output_cpu_unit_reservation_p): Short circuit
10907 if description->query_units_num is zero.
10908
10909 2006-01-22 Zack Weinberg <zackw@panix.com>
10910
10911 * genattrtab.c: Don't include genattrtab.h. Define ATTR_NONE
10912 and ATTR_SPECIAL (from genattrtab.h). Don't define num_dfa_decls
10913 nor any of the random handful of variables that used to be necessary
10914 when this program was linked with rtlanal.o. Prune set of forward
10915 function declarations.
10916 (struct attr_desc): Remove static_p field.
10917 (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
10918 (check_attr_test, make_internal_attr, make_numeric_value): Make static.
10919 (attr_string): Do not read the character one past the length of
10920 the string.
10921 (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
10922 (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
10923 (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
10924 (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
10925 (make_automaton_attrs): New.
10926 (main): Do not call into genautomata. Call local gen_bypass
10927 and gen_insn_reserv as appropriate. Call make_automaton_attrs.
10928 Remove special case for insn_alts.
10929 * genautomata.c: Include gensupport.h; not genattrtab.h nor
10930 varray.h (leftover from previous change). Prune set of forward
10931 function declarations. Remove state_alts fields from all
10932 structures. Remove state_alts_table from struct automaton.
10933 Make everything except main static. Do not maintain num_dfa_decls.
10934 Do not maintain state_alts fields of various structures.
10935 (process_decls): Don't validate condexp for dm_insn_reserv decls.
10936 (add_arc): Remove state_alts argument. All callers updated.
10937 (output_reserved_units_table): Emit #ifdef here...
10938 (output_tables): ...not here. Don't generate state_alts tables.
10939 (expand_automata): Don't generate attributes.
10940 (write_automata): Don't generate state_alts functions.
10941 (main): New function.
10942 (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
10943 (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
10944 (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
10945 (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
10946 (BYPASS_P_FUNC_NAME, output_state_alts_table)
10947 (output_automata_list_state_alts_code, output_internal_state_alts_func)
10948 (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
10949 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
10950 Delete.
10951 * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
10952 * genattrtab.h: Delete file.
10953 * Makefile.in (OBJS-common): Add insn-automata.o.
10954 (insn-automata.o): New rule.
10955 (simple_generated_c): Add insn-automata.c.
10956 (build/genattrtab.o, build/genautomata.o): Update dependencies.
10957 (genprogmd): Add automata.
10958 (build/genattrtab): Needs no extra objects nor libraries.
10959 (build/genautomata): Needs build/vec.o and -lm.
10960
10961 2006-01-22 Zack Weinberg <zackw@panix.com>
10962
10963 * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
10964 (output_dfa_max_issue_rate, locked_states_num): Delete.
10965 (struct automaton): Add locked_states field.
10966 (output_dead_lock_vect): Save number of locked states in
10967 automaton->locked_states. If it is zero, don't print anything.
10968 (output_max_insn_queue_index_def): Define max_insn_queue_index const.
10969 (output_internal_dead_lock_func): Only test the dead_lock_vect
10970 for automata that have locked states.
10971 (output_statistics): Always print the number of locked states for
10972 each automaton. Calculate total number of locked states here.
10973 (write_automata): Don't call output_dfa_max_issue_rate.
10974 * genattrtab.c: Define length_unit_log as a const variable.
10975 * genattr.c: Don't emit MAX_DFA_ISSUE_RATE. Declare
10976 max_insn_queue_index const.
10977 * final.c (length_unit_log): Declare const.
10978 * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
10979
10980 2006-01-22 Zack Weinberg <zackw@panix.com>
10981
10982 * genautomata.c: Include vec.h, not varray.h.
10983 Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
10984 VLA_HWINT_ macros. Change vla_hwint_t to a typedef for
10985 VEC(vect_el_t,heap) *. Convert all uses of VLA_* macros to
10986 VEC_* macros operating on appropriately typed vectors, or to
10987 malloced arrays when the size is known in advance. Const-ify
10988 many char* variables and function arguments. No functional changes.
10989 * Makefile.in (build/varray.o): Delete rule.
10990 (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
10991 (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
10992
10993 2006-01-22 Zack Weinberg <zackw@panix.com>
10994
10995 * gensupport.c: Define get_insn_name and record_insn_name here.
10996 (read_md_rtx): Call record_insn_name as appropriate.
10997 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
10998 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
10999 * genpreds.c, genrecog.c: Don't define get_insn_name nor
11000 record_insn_name.
11001 * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
11002 (BUILD_VARRAY): Delete.
11003 (genprognormal): Rename genprogmd. Fold in all programs from
11004 genprognoprint; also attrtab.
11005 (build/genattrtab): Just mention genautomata.o and varray.o.
11006 Reorganize a bit, add comments to make the categories clearer.
11007
11008 2006-01-22 Zack Weinberg <zackw@panix.com>
11009
11010 * genconditions.c (condition_table, add_condition): Delete.
11011 (write_conditions): Don't emit n_insn_conditions nor
11012 insn_elision_unavailable. Issue the gcc version #ifdef here,
11013 inside the table, with no #else clause ...
11014 (write_header): ...not here.
11015 (write_writer): New function.
11016 (main): Don't initialize condition_table. Use add_c_test.
11017 Call write_writer.
11018 * gensupport.c (init_md_reader_args_cb): Handle multiple input
11019 files on the command line.
11020 (maybe_eval_c_test): Don't check insn_elision_unavailable.
11021 Return -1 if there is no entry in the table, don't abort.
11022 (add_c_test, traverse_c_tests): New functions.
11023 * gensupport.h (insn_elision_unavailable, insn_conditions)
11024 (n_insn_conditions): Delete declarations.
11025 (add_c_test, traverse_c_tests): Declare.
11026 * read-rtl.c: Include gensupport.h.
11027 (read_conditions): New function.
11028 (read_rtx): If read_rtx_1 returns 0, treat as EOF.
11029 (read_rtx_1): If we get EOF when we were looking for an initial
11030 open paren, return 0. Call read_conditions when appropriate.
11031 * Makefile.in: Kill BUILD_EARLY_SUPPORT and all references to
11032 dummy-conditions.o. Eliminate references to insn-conditions.o,
11033 or change them to build/gencondmd.o, as appropriate. Remove
11034 insn-constants.h from $(simple_generated_h) and insn-conditions.c
11035 from $(simple_generated_c). For all files remaining in those
11036 two lists, add insn-conditions.md to the generator command line.
11037 Give insn-constants.h/s-constants their own rules. Add rules
11038 for build/gencondmd.c, s-conditions, insn-conditions.md, s-condmd.
11039 (build/read-rtl.o): Depend on gensupport.h.
11040 (genprognormal): Include preds.
11041 (genprogearly): Rename genprognoprint; only difference is now that
11042 they don't link with $(BUILD_PRINT).
11043 * dummy-conditions.c: Delete.
11044
11045 2006-01-22 Zack Weinberg <zackw@panix.com>
11046
11047 * genextract.c: Don't include insn-config.h. Do include vec.h.
11048 Declare vectors of int, char, and locstr.
11049 (locstr): New typedef.
11050 (struct extraction): Make all array fields into bare pointers.
11051 (insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
11052 (insn_code_number): Delete.
11053 (accum_extract): New struct.
11054 (VEC_safe_set_locstr, VEC_char_to_string): New functions.
11055 (gen_insn): Take insn_code_number as an argument. Use an
11056 accum_extract structure instead of loading data directly into
11057 a struct extraction, and having to know how big it might get.
11058 (walk_rtx): Operate entirely on an accum_extract structure.
11059 (print_path): Avoid unnecessary use of printf.
11060 (print_header): New function, split out of main. Distinguish
11061 more carefully between an unrecognizable insn and an insn that
11062 has the code number of a define_expand.
11063 (main): Pass insn_code_number to gen_insn. Call print_header
11064 only after parsing. Avoid unnecessary use of printf.
11065 * Makefile.in (build/vec.o): New rule.
11066 (build/genextract): Depend on build/vec.o.
11067 (build/genextract.o): Don't depend on insn-config.h.
11068
11069 2006-01-22 Zack Weinberg <zackw@panix.com>
11070
11071 * Makefile.in: Consolidate most rules that use $(CC_FOR_BUILD) and/or
11072 $(RUN_GEN). Use pattern rules to factor out as much boilerplate as
11073 practical. Eliminate per-generator-program link rules.
11074
11075 2006-01-23 Andrew Pinski <pinskia@physics.uc.edu>
11076
11077 PR middle-end/24437
11078 * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
11079 with a call expr to ...
11080 * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
11081
11082 2006-01-23 Richard Guenther <rguenther@suse.de>
11083
11084 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Add comment
11085 before make_edge with conditional EDGE_TRUE_VALUE.
11086
11087 2006-01-23 Steven Bosscher <stevenb.gcc@gmail.com>
11088 Jan Hubicka <jh@suse.cz>
11089 Richard Guenther <rguenther@suse.de>
11090
11091 PR rtl-optimization/25654
11092 * cfgexpand.c (aggregate_contains_union_type): New function.
11093 (add_alias_set_conflicts): Call it. Make sure to add conflicts
11094 for structure variables that contain a union type.
11095
11096 2006-01-23 Richard Sandiford <richard@codesourcery.com>
11097
11098 * gengtype.c (new_structure): Return the structure.
11099 (create_option): Add an extra "next" argument.
11100 (create_field): New function.
11101 (adjust_field_rtx_def): Use create_option and create_field.
11102 Remove a now-unnecessary call to find_structure.
11103 (adjust_field_tree_def): Likewise.
11104 (note_yacc_type): Remove an unnecessary call to find_structure.
11105 * gengtype.h (new_structure): Return the structure.
11106 (create_option): Add an extra argument.
11107 * gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
11108 (option): Adjust calls to create_option.
11109
11110 2006-01-22 David Edelsohn <edelsohn@gnu.org>
11111
11112 * config/rs6000/aix.h (STACK_BOUNDARY): Define.
11113
11114 2006-01-22 Paul Brook <paul@codesourcery.com>
11115 Peter Barada <peter@the-baradas.com>
11116
11117 * config/m68k/m68k.md: Add Coldfire FPU support.
11118 Define FP mode macro and associated attributes.
11119 Use it for float mode patterns.
11120 * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value.
11121 (LIBCALL_VALUE): Use m68k_libcall_value.
11122 * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype.
11123 (m68k_function_value): Ditto.
11124 (emit_move_sequence): Ditto.
11125 * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value.
11126 * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e.
11127 * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e.
11128 (MULTILIB_EXCEPTIONS): Ditto.
11129 * config/m68k/m68k.opt: Add mcfv4e.
11130 * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e.
11131 (m68k_compute_frame_layout): Include space for ColdFire FPU regs.
11132 (m68k_output_function_prologue): Save ColdFire FPU registers.
11133 (m68k_output_function_epilogue): Restore ColdFire FPU registers.
11134 (force_mode, fp_reg_operand, emit_move_sequence): New functions.
11135 (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in
11136 ColdFire FPU registers.
11137 (m68k_libcall_value, m68k_function_value): New functions.
11138 * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value.
11139 (LIBCALL_VALUE): Use m68k_libcall_value.
11140 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__.
11141 (MASK_COLDFIRE): Add MASK_CFV4E.
11142 (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New.
11143 (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT.
11144 (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto.
11145 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define.
11146 (GO_IF_LEGITIMATE_ADDRESS): Use it.
11147 (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses.
11148 * doc/invoke.tex: Document -mcfv4e on m68k.
11149
11150 2006-01-22 Ranjit Mathew <rmathew@gcc.gnu.org>
11151
11152 * doc/contribute.texi: Change CVS to SVN and update the corresponding
11153 URL.
11154
11155 2006-01-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
11156
11157 PR c++/16190
11158 * c-opts.c (c_common_handle_option): Don't include
11159 -Wnon-virtual-dtor in -Wall; enable if -Weffc++.
11160 * doc/invoke.texi (C++ Dialect Options): Document that
11161 -Wnon-virtual-dtor is no longer included in -Wall.
11162
11163 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
11164
11165 * gcov.c (print_version), gcov-dump.c (print_version),
11166 mips-tdump.c (main), mips-tfile.c (main): Update copyright notice
11167 dates.
11168
11169 2006-01-21 Kenneth Zadeck <zadeck@naturalbridge.com>
11170
11171 * df-scan.c (problem_SCAN): Added NULL reset function.
11172 (df_scan_reset_blocks): Added code to call reset block function
11173 (df_bb_refs_delete) Fixed comment.
11174 (df_insn_refs_delete): Made tolerant of deleting non existent info
11175 for dataflow problems that need to be reset.
11176 * df-core.c (df_set_blocks): Ditto.
11177 * df.h (struct df_problem): Added reset_fun.
11178 * df-problems.c (problem_RU, problem_RD, problem_LR, problem_UR,
11179 problem_UREC, problem_CHAIN, problem_RI): Initialized reset_fun field.
11180 (df_chain_insn_reset, df_chain_bb_reset, df_chain_reset): New
11181 functions to clear out all references to def-use or use-def chains.
11182
11183 2006-01-21 Ben Elliston <bje@au.ibm.com>
11184
11185 * varasm.c (assemble_real): Initialise data array.
11186
11187 2006-01-20 Paul Brook <paul@codesourcery.com>
11188
11189 Merge from csl-arm-branch.
11190 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
11191 * config/arm/arm.md (movdi): Force operands[1] to a register
11192 if we have a non-register source.
11193 (*arm_movdi, *movdf_soft_insn): Require that one of the
11194 operands be a register.
11195 * config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
11196 * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
11197
11198 2006-01-20 DJ Delorie <dj@redhat.com>
11199
11200 * varasm.c (initializer_constant_valid_p): Allow pointers
11201 initialized from integer constants of lesser precision.
11202 (output_constant): Allow non-int-sized pointer modes to be
11203 initialized from integer constants.
11204
11205 2006-01-20 Joseph S. Myers <joseph@codesourcery.com>
11206
11207 PR libstdc++/25524
11208 * cppdefault.h (struct default_include): Add multilib flag.
11209 * cppdefault.c (cpp_include_defaults): Set it.
11210 * c.opt (-imultilib): New option.
11211 * c-opts.c (imultilib): New.
11212 (c_common_handle_option): Handle -imultilib.
11213 (c_common_post_options): Likewise.
11214 * c-incpath.c (add_standard_paths, register_include_chains):
11215 Likewise.
11216 * c-incpath.h (register_include_chains): Add extra parameter.
11217 * gcc.c (do_spec_1): Generate -imultilib option.
11218 (The Specs Language): Update %I description.
11219 (process_command): Update copyright notice.
11220 * doc/cppopts.texi (-imultilib): Document.
11221 * doc/invoke.texi (-imultilib): Include in option summary.
11222 (%I): Update specs documentation.
11223
11224 2006-01-20 Zdenek Dvorak <dvorakz@suse.cz>
11225
11226 * loop-iv.c (iv_analysis_loop_init): Use df in more conservative way.
11227
11228 2006-01-20 Richard Sandiford <richard@codesourcery.com>
11229
11230 * stmt.c (case_bit_test_cmp): Stabilize the sort using code
11231 label numbers.
11232
11233 2006-01-20 Richard Guenther <rguenther@suse.de>
11234 Steven Bosscher <stevenb.gcc@gmail.com>
11235
11236 PR rtl-optimization/24626
11237 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Don't set
11238 EDGE_TRUE_VALUE if in RTL mode.
11239
11240 Revert
11241 2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
11242 * cfgrtl.c (rtl_verify_flow_info_1): Fix.
11243
11244 2006-01-20 Dirk Mueller <dmueller@suse.com>
11245
11246 PR c++/5520
11247 * c-parser.c (c_parser_if_body): Use build_empty_stmt()
11248 instead of a special NOP marker.
11249 * c-typeck.c (c_finish_if_stmt): Remove obsoleted special
11250 NOP marker handling.
11251 * c-common.h (empty_body_warning): Add forward declaration.
11252 * c-common.c (empty_body_warning): Add (from c_finish_if_stmt).
11253 Now uses IS_EMPTY_STMT() instead of special NOP markers.
11254
11255 2006-01-20 Paul Brook <paul@codesourcery.com>
11256
11257 * Makefile.in (lang_checks): Keep going if mkdir fails.
11258
11259 2006-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
11260
11261 * df-scan.c (df_scan_free_bb_info): Added basic block parameter to
11262 be able to clean out basic block when not necessary.
11263 (df_scan_free): Fixed to properly delete information if df is
11264 unused before calling df_finish.
11265 (df_scan_alloc, df_rescan_blocks, df_reg_chain_unlink,
11266 df_insn_create_insn_record, df_bb_refs_record): Fixed formatting
11267 or comment typos.
11268 (df_bb_refs_delete): New function.
11269 (df_refs_delete): Moved per block code to df_bb_refs_delete.
11270 * df-core.c (df_set_blocks): Added code to properly clean out
11271 unused blocks if they are not part of the blocks to consider.
11272 Added additional null check.
11273 (df_compact_blocks): Added basic block parameter to free_bb_fun to
11274 be able to clean out basic block when not necessary
11275 * df.h (df_free_bb_function): Ditto.
11276 (df_bb_refs_delete): New function.
11277 * df-problems.c (df_ru_free_bb_info, df_rd_set_bb_info,
11278 df_lr_set_bb_info, df_ur_free_bb_info, df_urec_free_bb_info):Added
11279 basic block parameter to be able to clean out basic block when not
11280 necessary.
11281 (df_ru_alloc, df_rd_alloc): Fixed dyslexic overflow test.
11282 (df_ru_free, df_rd_free, df_lr_free, df_ur_free, df_urec_free):
11283 Fixed to properly delete information if df is unused before
11284 calling df_finish.
11285
11286 2006-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
11287
11288 PR rtl-optimization/25799
11289 * df-problems.c (df_ru_confluence_n, df_rd_confluence_n):
11290 Corrected confluence operator to remove bits from op2 before oring
11291 with op1 rather than removing bits from op1.
11292 (df_ru_transfer_function): Corrected test on wrong bitmap which
11293 caused infinite loop. Both of these problems were introduced in
11294 the dataflow rewrite.
11295
11296 2006-01-19 DJ Delorie <dj@redhat.com>
11297
11298 * reload1.c (find_reload_regs): Note the details of reload
11299 failures in the dump file.
11300 (spill_failure): Likewise.
11301
11302 2006-01-20 Zdenek Dvorak <dvorakz@suse.cz>
11303
11304 * loop-iv.c: Include df.h and hashtab.h.
11305 (enum iv_grd_result): New enum.
11306 (DF_REF_IV, DF_REF_IV_SET): New macros.
11307 (struct biv_entry): New.
11308 (df, bivs): New global variables.
11309 (struct insn_info, insn_info, last_def, bivs, max_insn_no, max_reg_no,
11310 assign_luids, mark_sets, kill_sets, mark_single_set, simple_set_p):
11311 Removed.
11312 (clear_iv_info, latch_dominating_def, record_iv, iv_analyze_expr,
11313 iv_analyze_result, iv_analyze_def, biv_hash, biv_eq,
11314 analyzed_for_bivness_p, record_biv): New functions.
11315 (iv_analysis_loop_init, iv_get_reaching_def, simple_reg_p,
11316 get_biv_step_1, get_biv_step, iv_analyze_biv, iv_analyze_op,
11317 iv_analyze, biv_p, iv_analysis_done): Work with df representation of
11318 UD chains.
11319 (iv_constant, iv_subreg, iv_extend, iv_mult, iv_shift): Do not set
11320 analysed.
11321 (iv_number_of_iterations): Use new interface to iv analysis.
11322 * loop-unroll.c: Do not include varray.h.
11323 (analyze_iv_to_split_insn): Use new interface to iv
11324 analysis.
11325 * loop-unswitch.c (may_unswitch_on): Ditto.
11326 * df.c (df_bitmaps_free): Only work for bbs for that structures are
11327 allocated.
11328 (df_bb_modify): Realloc tables to the new index.
11329 (df_find_use): New function.
11330 * df.h (df_find_use): Declare.
11331 * optabs.c (expand_unop): Make the mode of the REG_EQUAL node be
11332 outmode.
11333 * cfgloop.h (struct rtx_iv): Remove analysed field.
11334 (iv_get_reaching_def): Removed.
11335 (iv_analyze_result, iv_analyze_expr, iv_current_loop_df): Declare.
11336 * Makefile.in (loop-unroll.o): Remove VARRAY_H dependency.
11337 (loop-iv.o): Add df.h and hashtab.h dependency.
11338 * df-problems.c (df_ru_alloc, df_rd_alloc): Fix memory reallocation.
11339
11340 2006-01-20 Alan Modra <amodra@bigpond.net.au>
11341
11342 PR target/25668
11343 * libgcc2.c (__floatdisf, __floatdidf): Don't use IBM Extended
11344 Double TFmode.
11345 (__floatundisf, __floatundidf): Likewise.
11346 * libgcc2.h (IS_IBM_EXTENDED): Define.
11347
11348 2006-01-19 DJ Delorie <dj@redhat.com>
11349
11350 * config/m32c/m32c.h (REG_ALLOC_ORDER): Define.
11351
11352 2006-01-19 Paul Brook <paul@codesourcery.com>
11353
11354 * config/arm/arm.c (arm_compute_func_type): Treat all functions
11355 as nothrow when unwinding tables are disabled.
11356
11357 2006-01-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11358
11359 PR testsuite/25171
11360 * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
11361 of bit-field" when in system header.
11362
11363 2006-01-19 DJ Delorie <dj@redhat.com>
11364
11365 * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
11366 the 16 bit shift limit of the m16c.
11367
11368 2006-01-19 Andrew Pinski <pinskia@physics.uc.edu>
11369
11370 PR target/22099
11371 * config/i386/i386.md (builtin_setjmp_receiver): Don't emit the label.
11372 * config/i386/i386.c (output_set_got): Output the label if we have one
11373 for the TARGET_DEEP_BRANCH_PREDICTION case.
11374
11375 2006-01-19 Jan Hubicka <jh@suse.cz>
11376 H.J. Lu <hongjiu.lu@intel.com>
11377 Evandro Menezes <evandro.menezes@amd.com>
11378
11379 * invoke.texi (generic): Document
11380 (i686) Update.
11381 * config.gcc: Make x86_64-* and i686-* default to generic tunning.
11382 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64, TARGET_GENERIC,
11383 TARGET_USE_INCDEC, TARGET_PAD_RETURNS): New macros.
11384 (x86_use_incdec, x86_pad_returns): New variables
11385 (TARGET_CPU_DEFAULT_generic): New constant
11386 (TARGET_CPU_DEFAULT_NAMES): Add generic.
11387 (enum processor_type): Add generic32 and generic64.
11388 * i386.md (cpu attribute): Add generic32/generic64
11389 (movhi splitter): Behave sanely when both partial_reg_dependency and
11390 partial_reg_stall are set.
11391 (K8 splitters): Enable for generic as well.
11392 * predicates.md (incdec_operand): Use TARGET_INCDEC
11393 (aligned_operand): Avoid memory mismatch stalls.
11394 * athlon.md: Enable for generic64, new patterns for 128bit moves.
11395 * ppro.md: Enable for generic32
11396 * i386.c (generic64_cost, generic32_cost): New.
11397 (m_GENERIC32, m_GENERIC64, m_GENERIC): New macros.
11398 (x86_use_leave): Enable for generic64. (x86_use_sahf,
11399 x86_ext_80387_constants): Enable for generic32. (x86_push_memory,
11400 x86_movx, x86_unroll_strlen, x86_deep_branch, x86_use_simode_fiop,
11401 x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
11402 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
11403 x86_partial_reg_dependency, x86_memory_mismatch_stall,
11404 x86_accumulate_outgoing_args, x86_prologue_using_move,
11405 x86_epilogue_using_move, x86_arch_always_fancy_math_387,
11406 x86_sse_partial_reg_dependency, x86_four_jump_limit, x86_schedule):
11407 Enable for generic.
11408 (x86_use_incdec, x86_pad_returns): New.
11409 (override_options): Add generic32 and generic64, translate "generic"
11410 to generic32/generic64 and "i686" to "generic32", refuse
11411 "generic32"/"generic64" as arch target.
11412 (ix86_issue_rate, ix86_adjust_cost): Handle generic as athlon.
11413 (ix86_reorg): Honor PAD_RETURNS.
11414
11415 2006-01-19 Diego Novillo <dnovillo@redhat.com>
11416
11417 * tree-pretty-print.c (dump_generic_node): Handle
11418 OMP_PARALLEL_FN, OMP_PARALLEL_DATA_ARG and OMP_RETURN_EXPR.
11419 * cgraph.c (cgraph_expand_queue): Rename from
11420 cgraph_analyze_queue. Update all users.
11421 * cgraphunit.c (cgraph_assemble_pending_functions): Process
11422 cgraph_expand_queue.
11423 (cgraph_expand_all_functions): Likewise.
11424 (cgraph_finalize_pending_functions): Remove. Update callers.
11425
11426 * tree.h (OMP_DIRECTIVE_P): Define.
11427 (OMP_PARALLEL_FN): Define.
11428 (OMP_PARALLEL_DATA_ARG): Define.
11429 (OMP_SECTIONS_SECTIONS): Define.
11430 * tree-pass.h (pass_expand_omp): Declare.
11431 * omp-low.c (struct omp_region): Declare.
11432 (struct omp_context): Remove fields 'parallel_type',
11433 'parallel_start_ix' and 'parallel_start_additional_args'.
11434 Update all users.
11435 (struct omp_for_data): Rename from struct expand_omp_for_data.
11436 (omp_regions): New static variable.
11437 (root_omp_region): New static variable.
11438 (find_omp_clause): Make static.
11439 (is_in_combined_parallel_ctx): Remove.
11440 (is_combined_parallel): New.
11441 (extract_omp_for_data): Move earlier in the file.
11442 (workshare_safe_to_combine_p): New.
11443 (get_ws_args_for): New.
11444 (determine_parallel_type): Move earlier in the file.
11445 (omp_copy_decl_2): Do not set DECL_CONTEXT of new local to the
11446 child function.
11447 (omp_copy_decl): Likewise.
11448 (create_omp_child_function): Likewise.
11449 (lookup_omp_region): New.
11450 (dump_omp_region): New.
11451 (debug_omp_region): New.
11452 (debug_all_omp_regions): New.
11453 (new_omp_region): New.
11454 (scan_omp_parallel): If parallel_nesting_level > 1, the
11455 directive is nested within another parallel directive.
11456 Set OMP_PARALLEL_FN.
11457 (scan_omp_for): Do not try to handle combined parallel+for
11458 cases.
11459 Remove FIXME comment.
11460 (scan_omp_nested): Remove.
11461 (scan_omp_1): Do not call scan_omp_nested when
11462 parallel_nesting_level is > 1.
11463 Do not change the DECL_CONTEXT of local variables found.
11464 (lookup_decl_in_outer_ctx): New.
11465 (lower_rec_input_clauses): Rename from expand_rec_input_clauses.
11466 (lower_lastprivate_clauses): Rename from expand_lastprivate_clauses.
11467 (lower_reduction_clauses): Rename from expand_reduction_clauses.
11468 (lower_copyprivate_clauses): Rename from expand_copyprivate_clauses.
11469 If CTX is nested, lookup VAR in the outer context when
11470 building copy assignment.
11471 (lower_send_clauses): Rename from expand_send_clauses.
11472 If CTX is nested, lookup VAR in the outer context when
11473 building copy assignments.
11474 (lower_send_shared_vars): Rename from expand_send_shared_vars.
11475 If CTX is nested, lookup VAR in the outer context when
11476 building copy assignments.
11477 (expand_parallel_call): Rename from build_parallel_call.
11478 Handle combined parallel+workshare cases.
11479 Re-implement to emit code into the CFG.
11480 (list2chain): New.
11481 (expand_omp_parallel): Re-implement to emit code into the CFG.
11482 Call move_sese_region_to_fn to outline the sub-graph
11483 containing the parallel region.
11484 (expand_omp_for_1): Remove.
11485 (expand_omp_for_generic): Re-implement to emit code into the
11486 CFG.
11487 (expand_omp_for_static_nochunk): Likewise.
11488 (expand_omp_for_static_chunk): Likewise.
11489 (expand_omp_for): Likewise.
11490 (expand_omp_sections): Likewise.
11491 (remove_exit_barriers): New.
11492 (expand_omp_synch): New.
11493 (expand_omp): New.
11494 (build_omp_regions_1): New.
11495 (build_omp_regions): New.
11496 (execute_expand_omp): New.
11497 (gate_expand_omp): New.
11498 (pass_expand_omp): Define.
11499 (lower_omp_sections): Rename from expand_omp_sections.
11500 Set OMP_SECTIONS_SECTIONS.
11501 (lower_omp_single_simple): Rename from expand_omp_single_simple.
11502 (lower_omp_single_copy): Rename from expand_omp_single_copy.
11503 (lower_omp_single): Rename from expand_omp_simple.
11504 (lower_omp_master): Rename from expand_omp_master.
11505 (lower_omp_ordered): Rename from expand_omp_ordered.
11506 (lower_omp_critical): Rename from expand_omp_critical.
11507 (lower_omp_for_lastprivate): Rename from expand_omp_for_lastprivate.
11508 (lower_omp_for): Re-implement.
11509 (lower_omp_parallel): Re-implement.
11510 (lower_regimplify): Rename from expand_regimplify.
11511 (lower_omp_1): Rename from expand_omp_1.
11512 If there are syntax errors in the program, replace every
11513 OpenMP directive with NOP.
11514 Call lower_omp_* instead of expand_omp_*.
11515 (lower_omp): Rename from expand_omp.
11516
11517 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN_EXPR.
11518 * tree-gimple.h (enum omp_parallel_type): Remove.
11519 (gimple_boolify): Declare extern.
11520 (find_omp_clause, determine_parallel_type): Remove.
11521
11522 * gimple-low.c (lower_omp_directive): New.
11523 (lower_stmt): Call it.
11524 (record_vars_into): Move from ...
11525 (record_vars): ... here.
11526 Call record_vars_into with current_function_decl.
11527
11528 * gimplify.c (struct gimplify_ctx): Remove fields
11529 combined_pre_p and combined_ctxp. Update users.
11530 (get_formal_tmp_var): Add documentation.
11531 (gimple_boolify): Make extern.
11532 (gimplify_expr_in_ctx): Remove. Update callers.
11533 (gimplify_omp_parallel): Do not assume that OMP_PARALLEL_BODY
11534 will always be a BIND_EXPR.
11535 (gimplify_expr): Handle OMP_RETURN_EXPR.
11536 * tree.def (BLOCK): Remove documentation about BLOCK_TYPE_TAGS.
11537 (OMP_PARALLEL): Add 3 operands.
11538 (OMP_SECTIONS): Add 1 operand.
11539 (OMP_RETURN_EXPR): Define.
11540
11541 * tree-inline.c (estimate_num_insns_1): Handle OpenMP directives.
11542 (copy_tree_r): Restore TREE_CHAIN in OMP_CLAUSE_*.
11543 * tree-iterator.c (alloc_stmt_list): Assert that we are not
11544 creating a circular free list.
11545 (free_stmt_list): Assert that we are not freeing stmt_list_cache.
11546
11547 * tree-flow.h (move_sese_region_to_fn): Declare.
11548 (record_vars_into): Declare.
11549 * tree-cfg.c (make_omp_sections_edges): New.
11550 (make_exit_edges): Handle OMP_PARALLEL, OMP_FOR, OMP_SINGLE,
11551 OMP_MASTER, OMP_ORDERED, OMP_CRITICAL, OMP_RETURN_EXPR,
11552 OMP_SECTIONS and OMP_SECTION.
11553 (is_ctrl_altering_stmt): Return true for OMP_DIRECTIVE_P.
11554 (set_bb_for_stmt): Undo change to check currently_expanding_to_rtl.
11555 (verify_stmt): Do not handle OMP_DIRECTIVE_P.
11556 (gather_blocks_in_sese_region): New.
11557 (struct move_stmt_d): Declare.
11558 (move_stmt_r): New.
11559 (move_block_to_fn): New.
11560 (move_sese_region_to_fn): New.
11561
11562 * passes.c (init_optimization_passes): Schedule
11563 pass_expand_omp after pass_init_datastructures.
11564
11565 * tree-ssa-operands.c (get_expr_operands): Handle
11566 OMP_PARALLEL, OMP_SECTIONS, OMP_FOR, OMP_RETURN_EXPR,
11567 OMP_SINGLE, OMP_MASTER, OMP_ORDERED, OMP_CRITICAL.
11568
11569 2006-01-19 Jeff Law <law@redhat.com>
11570
11571 * tree-vrp.c (extract_range_from_assert): Refine the result range
11572 if the variable referenced by the ASSERT_EXPR has a range and
11573 either the tentative result range or the previous range is a
11574 VR_ANTI_RANGE.
11575
11576 2006-01-19 Richard Sandiford <richard@codesourcery.com>
11577
11578 * c-decl.c (add_flexible_array_elts_to_size): Simplify vector accesses.
11579
11580 2006-01-19 Jan Hubicka <jh@suse.cz>
11581
11582 * tree-vect-patterns.c (vect_pattern_recog_1): Prevent parse error.
11583
11584 2006-01-19 Paolo Bonzini <bonzini@gnu.org>
11585
11586 * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
11587 (expand_compound_operation, expand_field_assignment): Fail if the
11588 bit lengths of an extract operation are out of range.
11589 (make_extraction): Compute wanted_inner_mode based on the position
11590 and length of the extraction. Make it extraction_mode for non-constant
11591 positions, and do not modify offset in that case. When generating a
11592 new MEM, use a mode that can hold the extraction while keeping correct
11593 alignment. Remove code that supported MEMs wrapped by USEs.
11594 (simplify_shift_const_1, force_to_mode) <case USE>: Remove.
11595
11596 2006-01-19 Andreas Krebbel <krebbel1@de.ibm.com>
11597
11598 * config/s390/s390.md ("Y", "y"): New mode attribute.
11599 ("*cmpdi_ccs", "*cmpsi_ccs", "*adddi3_imm_cc", "*adddi3_carry1_cc",
11600 "*adddi3_carry1_cconly", "*adddi3_carry2_cc", "*adddi3_carry2_cconly",
11601 "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2", "*adddi3_64",
11602 "*addsi3_imm_cc", "*addsi3_carry1_cc",
11603 "*addsi3_carry1_cconly", "*addsi3_carry2_cc", "*addsi3_carr2_cconly",
11604 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
11605 "*subdi3_borrow_cc", "*subdi3_borrow_cconly", "*subdi3_cc",
11606 "*subdi3_cc2", "*subdi3_cconly", "*subdi3_cconly2", "*subdi3_64",
11607 "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
11608 "*subsi3_cc2", "*subsi3_cconly", "*subsi3_cconly", "*subsi3_cconly2",
11609 "addsi3", "subsi3"): Insn patterns removed.
11610 ("*add<mode>3_carry1_cc", "*add<mode>3_carry1_cconly",
11611 "*add<mode>3_carry2_cc", "*add<mode>3_carry2_cconly", "*add<mode>3_cc",
11612 "*add<mode>3_cconly", "*add<mode>3_cconly2", "*add<mode>3_imm_cc",
11613 "*sub<mode>3_borrow_cc", "*sub<mode>3_borrow_cconly",
11614 "*sub<mode>3_cc", "*sub<mode>3_cc2", "*sub<mode>3_cconly",
11615 "*sub<mode>3_cconly2"): New insn patterns.
11616 ("addsi3", "subsi3"): New expanders.
11617
11618 2006-01-19 Dorit Nuzman <dorit@il.ibm.com>
11619
11620 * Makefile.in (tree-vect-patterns.o): Add rule for new file.
11621 * tree-vect-analyze.c (vect_determine_vectorization_factor): Use
11622 existing STMT_VINFO_VECTYPE if available.
11623 (vect_mark_relevant): Add special handling for stmts that are
11624 marked as STMT_VINFO_IN_PATTERN_P.
11625 (vect_analyze_loop): Call vect_pattern_recog.
11626 * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
11627 * tree-vectorizer.h (in_pattern_p, related_stmt): New fields in
11628 stmt_info.
11629 (STMT_VINFO_IN_PATTERN_P, STMT_VINFO_RELATED_STMT): New macros.
11630 (vect_recog_func_ptr): New function-pointer type.
11631 * tree-vect-patterns.c: New file.
11632 (vect_recog_widen_sum_pattern, vect_recog_widen_mult_pattern):
11633 (vect_recog_dot_prod_pattern, vect_pattern_recog):
11634 (vect_pattern_recog_1): New functions.
11635 (vect_pattern_recog_funcs): New array of function pointers.
11636
11637 * tree-vectorizer.h (ternary_op): New enum value.
11638 * tree-vect-transform.c (vect_create_epilog_for_reduction): Added
11639 declaration. Revised documentation. Removed redundant dump prints.
11640 Removed redundant argument. Added support for reduction patterns.
11641 (vectorizable_reduction): Added support for reduction patterns.
11642 (vect_transform_stmt): Added support for patterns.
11643
11644 * expr.c (expand_expr_real_1): Added case for DOT_PROD_EXPR.
11645 * genopinit.c (udot_prod_optab, sdot_prod_optab): Initialize.
11646 * optabs.c (optab_for_tree_code): Added case for DOT_PROD_EXPR.
11647 (expand_widen_pattern_expr): New function.
11648 (init_optabs): Initialize new optabs udot_prod_optab,
11649 sdot_prod_optab.
11650 * optabs.h (OTI_sdot_prod, OTI_udot_prod): New.
11651 (sdot_prod_optab, udot_prod_optab): Define new optabs.
11652 (expand_widen_pattern_expr): New function declaration.
11653 * tree.def (DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR): New
11654 tree-codes.
11655 * tree-inline.c (estimate_num_insns_1): Added cases for new
11656 tree-codes DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
11657 * tree-pretty-print.c (dump_generic_node): Likewise.
11658 (op_prio): Likewise.
11659 (op_symbol): Added cases for WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
11660 * tree-ssa-operands.c (get_expr_operands): Added case for
11661 DOT_PROD_EXPR.
11662 * tree-vect-patterns.c (widened_name_p): New function.
11663 (vect_recog_dot_prod_pattern): Added function implementation.
11664 * tree-vect-transform.c (get_initial_def_for_reduction): Added
11665 cases for DOT_PROD_EXPR, WIDEN_SUM_EXPR.
11666 * config/rs6000/altivec.md (udot_prod<mode>, sdot_prodv8hi): New.
11667 * config/i386/sse.md (sdot_prodv8hi, udot_prodv4si): New.
11668
11669 * expr.c (expand_expr_real_1): Added case for WIDEN_SUM_EXPR.
11670 * genopinit.c (widen_ssum_optab, widen_usum_optab): Initialize.
11671 * optabs.c (optab_for_tree_code): Added case for WIDEN_SUM_EXPR.
11672 (init_optabs): Initialize new optabs widen_ssum_optab,
11673 widen_usum_optab.
11674 * optabs.h (OTI_widen_ssum, OTI_widen_usum): New.
11675 (widen_ssum_optab, widen_usum_optab): Define new optabs.
11676 * tree-vect-generic.c: (expand_vector_operations_1): Check type of
11677 use instead of type of def.
11678 * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Added
11679 function implementation.
11680 * config/rs6000/altivec.md (widen_usum<mode>, widen_ssumv16qi,
11681 widen_ssumv8hi): New.
11682
11683 * doc/tm.texi (ssum_widen, usum_widen, sdot_prod, udot_prod): New
11684 patterns.
11685
11686 2006-01-19 Richard Sandiford <richard@codesourcery.com>
11687
11688 PR c/25805
11689 * c-decl.c (add_flexible_array_elts_to_size): New function.
11690 (finish_decl): Use it.
11691
11692 2006-01-18 Andrew Pinski <pinskia@physics.uc.edu>
11693
11694 * diagnostic.h: Include options.h.
11695 * config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
11696 dependancies for diagnostic.h.
11697 * Makefile.in (DIAGNOSTIC_H): Add options.h.
11698
11699 2006-01-16 Daniel Berlin <dberlin@dberlin.org>
11700
11701 * tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
11702 (ssa_ro_call_cache_valid): Ditto.
11703 * tree-ssa-alias.c (sort_tags_by_id): New function.
11704 (init_transitive_clobber_worklist): Ditto.
11705 (add_to_worklist): Ditto.
11706 (mark_aliases_call_clobbered): Ditto.
11707 (compute_tag_properties): Ditto.
11708 (set_initial_properties): Ditto.
11709 (compute_call_clobbered): Ditto.
11710 (compute_may_aliases): Call compute_call_clobbered and grouping.
11711 (compute_flow_sensitive_aliasing): Remove clobbering related code.
11712 (compute_flow_insensitive_aliasing): Grouping now happens in our
11713 caller.
11714 (setup_pointers_and_addressables): Remove clobbering related code.
11715 (add_may_alias): Ditto.
11716 (replace_may_alias): Ditto.
11717 (get_nmt_for): Ditto.
11718 (create_global_var):
11719 (is_escape_site): Return an escape_type enumeration.
11720 * tree-flow-inline.h (is_call_clobbered): Global var does not
11721 imply call clobbered.
11722 (mark_call_clobbered): Take a reason for marking this. Remove
11723 marking of globalness, and cache invalidation.
11724 (clear_call_clobbered): Remove cache invalidation code.
11725 * tree-dfa.c (dump_variable): If details is on, dump the reason
11726 for escaping.
11727 * tree-outof-ssa.c (create_temp): Copy escape mask from original
11728 variable.
11729 * tree-flow.h (struct ptr_info_def): Add escape mask member.
11730 (struct var_ann_d): Ditto.
11731 (enum escape_type): New.
11732 (mark_call_clobbered): Adjust prototype.
11733 * tree-ssa-structalias.c (update_alias_info): Unmodifiable vars
11734 are never call clobbered.
11735 Record reasons for escaping.
11736 * tree-ssa-structalias.h (is_escape_site): Update prototype.
11737 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): Remove.
11738 (ssa_ro_call_cache_valid): Ditto.
11739 (clobbered_v_may_defs): Ditto.
11740 (clobbered_vuses): Ditto.
11741 (ro_call_vuses): Ditto.
11742 (clobber_stats): New.
11743 (init_ssa_operands): Zero out clobber stats.
11744 (fini_ssa_operands): Print out clobber stats.
11745 (get_call_expr_operands): Pass callee fndecl to
11746 add_call_read_ops).
11747 (add_call_clobber_ops): Remove use of cache.
11748 Add use of PURE_CONST information.
11749 (add_call_read_ops): Remove use of cache.
11750 Add use of static not_read information.
11751
11752 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
11753
11754 Introduce TLS descriptors for i386 and x86_64.
11755 * config/i386/i386.h (TARGET_GNU2_TLS): New macro.
11756 (TARGET_ANY_GNU_TLS): New macro.
11757 (enum tls_dialect): Added TLS_DIALECT_GNU2.
11758 (struct machine_function): Add tls_descriptor_call_expanded_p.
11759 (ix86_tls_descriptor_calls_expande_in_cfun): New macro.
11760 (ix86_current_function_calls_tls_descriptor): Likewise.
11761 * config/i386/i386.c (ix86_tls_dialect): Fix typo in comment.
11762 (override_options): Introduce gnu2 tls dialect.
11763 (ix86_frame_pointer_required): Functions containing TLSCALLs are
11764 not leaves.
11765 (ix86_select_alt_pic_regnum, ix86_compute_frame_layout):
11766 Likewise.
11767 (legitimize_tls_address): Adjust logic for GNU2 TLS.
11768 (ix86_init_machine_status): Initialize new field.
11769 (ix86_tls_get_addr): Use TARGET_ANY_GNU_TLS.
11770 (ix86_tls_module_base): New.
11771 * config/i386/i386-protos.h (ix86_tls_module_base): Declare it.
11772 * config/i386/i386.md (UNSPEC_TLSDESC): New constant.
11773 (tls_global_dynamic_32, tls_global_dynamic_64): Handle GNU2 TLS.
11774 (tls_local_dynamic_base_32, tls_local_dynamic_base_64): Likewise.
11775 (tls_dynamic_gnu2_32, *tls_dynamic_lea_32): New patterns.
11776 (*tls_dynamic_call_32, *tls_dynamic_gnu2_combine_32): Likewise.
11777 (tls_dynamic_gnu2_64, *tls_dynamic_lea_64): Likewise.
11778 (*tls_dynamic_call_64, *tls_dynamic_gnu2_combine_64): Likewise.
11779 * config/i386/predicates.md (tls_modbase_operand): New.
11780 (tp_or_register_operand): New.
11781
11782 2006-01-18 Daniel Berlin <dberlin@dberlin.org>
11783
11784 * ipa-reference.c (check_operand): Allow FUNCTION_DECL.
11785 (look_for_address_of): Ditto.
11786 (ipa_init): Walk the function decls.
11787 (static_execute): Don't set readonly on FUNCTION_DECL's.
11788
11789 2006-01-18 Roger Sayle <roger@eyesopen.com>
11790
11791 * config/i386/i386.md (shift spliter): Fix a a typo in the splitter
11792 for shifts where the source and destination registers are different.
11793
11794 2006-01-18 Paul Brook <paul@codesourcery.com>
11795
11796 Merge from csl-arm-branch.
11797 2005-03-14 Julian Brown <julian@codesourcery.com>
11798 * config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
11799 (aeabi_llsl): Likewise.
11800 (ashrdi3): Likewise.
11801 (aeabi_lasr): Likewise.
11802 (lshrdi3): Likewise.
11803 (aeabi_llsr): Likewise.
11804 2005-03-10 Julian Brown <julian@codesourcery.com>
11805 * config.gcc: Disable shared libgcc for SymbianOS.
11806 * config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
11807
11808 2006-01-18 DJ Delorie <dj@redhat.com>
11809
11810 * c-pragma.c (handle_pragma_diagnostic): New.
11811 (init_pragma): Register it.
11812 * doc/extend.texi: Document it.
11813
11814 * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
11815 * diagnostic.h (diagnostic_classify_diagnostic): Declare.
11816 (diagnostic_context): Add classify_diagnostic[].
11817 * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
11818 as errors if they're overridden to DK_WARNING.
11819 (diagnostic_initialize): Initialize classify_diagnostic[].
11820 (diagnostic_set_kind_override): New.
11821 (diagnostic_report_diagnostic): Check for kind changes.
11822 * opts.c (common_handle_option): Take lang_mask. Update callers.
11823 Handle OPT_Werror_.
11824 * common.opt (Werror=): New.
11825 * doc/invoke.texi: Document -Werror=*
11826
11827 2006-01-18 Jeff Law <law@redhat.com>
11828
11829 * tree-vrp.c (test_for_singularity): Correct test for new
11830 min limit. Use operand_equal_p rather than pointer equality
11831 for testing if new min/max values are equal.
11832
11833 * tree-ssa-propagate.c (substitute_and_fold): Delay simplifications
11834 using range information until after propagation and folding.
11835
11836 2006-01-18 Richard Henderson <rth@redhat.com>
11837 Aldy Hernandez <aldyh@redhat.com>
11838 Jakub Jelinek <jakub@redhat.com>
11839 Diego Novillo <dnovillo@redhat.com>
11840
11841 * omp-low.c: New file.
11842 * c-omp.c: New file.
11843
11844 2006-01-18 Richard Henderson <rth@redhat.com>
11845 Jakub Jelinek <jakub@redhat.com>
11846 Diego Novillo <dnovillo@redhat.com>
11847
11848 * doc/invoke.texi: Document -fopenmp.
11849 * tree-dump.h (debug_function): Declare.
11850 * hooks.c (hook_bool_tree_bool_false): New function.
11851 (hook_tree_tree_null): Remove.
11852 (hook_tree_tree_tree_null): New.
11853 * hooks.h: Update to match.
11854 * tree-pretty-print.c (debug_tree_chain): New.
11855 (print_generic_expr): Handle TDF_CHAIN.
11856 (dump_generic_node): Handle BLOCK.
11857 Do not abort with incomplete SWITCH_EXPRs.
11858 Do not dump body of an OpenMP directive if TDF_SLIM is given.
11859 <case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
11860 print space after directive name.
11861 <OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
11862 Handle OMP_MASTER and OMP_ORDERED.
11863 Handle printing of OMP_BODY just in one place, goto
11864 dump_omp_body in the rest of OMP_* nodes that have
11865 OMP_BODY.
11866 Don't handle clause nodes here. Update omp statements to
11867 use dump_omp_clauses.
11868 Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
11869 OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
11870 OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
11871 GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
11872 GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
11873 GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
11874 Adjust output for GOMP_PARALLEL.
11875 (dump_omp_clauses): New.
11876 (print_declaration): Dump DECL_VALUE_EXPR.
11877 (op_symbol_1): Split out of op_symbol.
11878 (dumping_stmts): Remove. Update all users.
11879 * cgraph.c (cgraph_analyze_queue): New.
11880 (cgraph_add_new_function): New.
11881 * cgraph.h (cgraph_analyze_queue): Declare.
11882 (cgraph_add_new_function): Declare.
11883 (cgraph_lower_function): Remove.
11884 * tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
11885 nodes. Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
11886 and TYPE_P nodes in its default clause.
11887 (empty_body_p): New.
11888 (tree_range_check_failed): New.
11889 (build5_stat): New.
11890 * tree.h (OMP_CLAUSE_REDUCTION_INIT,
11891 OMP_CLAUSE_REDUCTION_MERGE,
11892 OMP_CLAUSE_REDUCTION_PLACEHOLDER,
11893 OMP_CLAUSE_PRIVATE_DEBUG,
11894 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
11895 OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
11896 OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
11897 OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
11898 OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
11899 OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
11900 OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
11901 OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
11902 OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
11903 OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
11904 OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
11905 OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
11906 OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
11907 OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
11908 (TREE_RANGE_CHECK): New.
11909 (empty_body_p): Declare.
11910 (enum omp_clause_default_kind): New.
11911 (build_string_literal): Declare.
11912 (enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
11913 (build5_stat, build5): Declare.
11914 * tree-pass.h (TDF_CHAIN): Define.
11915 * tree-pass.h (PROP_gimple_lomp): Define.
11916 (pass_lower_omp): Declare.
11917 * diagnostic.h (debug_tree_chain): Declare.
11918 * builtins.c (get_builtin_sync_mode): Use 0 as last argument to
11919 mode_for_size.
11920 (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
11921 * builtins.c (build_string_literal): Make extern.
11922 * gcc.c (include_spec_function): New.
11923 (static_spec_functions): Add it.
11924 (main): Move load of libgomp.spec ...
11925 (LINK_COMMAND_SPEC): ... here.
11926 (link_gomp_spec): New.
11927 (static_specs): Include it.
11928 (LINK_COMMAND_SPEC): Add link_gomp.
11929 (GOMP_SELF_SPECS): New.
11930 (driver_self_specs): Include it.
11931 (switch_matches): Don't mark inline.
11932 (main): Load libgomp.spec.
11933 * tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
11934 OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
11935 and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
11936 * tree-gimple.h (enum omp_parallel): Declare.
11937 (determine_parallel_type): Declare.
11938 (omp_firstprivatize_variable): Declare.
11939 (omp_reduction_init): Declare.
11940 (diagnose_omp_structured_block_errors): Declare.
11941 (struct walk_stmt_info): Add want_return_expr.
11942 (struct walk_stmt_info): Add want_bind_expr, want_locations.
11943 (find_omp_clause): Declare.
11944 (insert_field_into_struct): Declare.
11945 (struct walk_stmt_info): Move from tree-nested.c
11946 (walk_stmts): Declare.
11947 * c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
11948 to 200505.
11949 * cgraphunit.c (cgraph_lower_function): Make static.
11950 (cgraph_finalize_pending_functions): New.
11951 (cgraph_finalize_function): Call it.
11952 (cgraph_finalize_compilation_unit): Likewise.
11953 * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
11954 BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
11955 (BT_FN_UINT_UINT): New.
11956 (DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
11957 DEF_FUNCTION_TYPE_VAR_4): Document.
11958 (BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
11959 BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
11960 BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
11961 BT_FN_VOID_OMPFN_PTR_UINT_UINT,
11962 BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
11963 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
11964 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11965 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
11966 * builtins.def: Update DEF_BUILTIN comment to include COND argument.
11967 Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
11968 into separate files.
11969 (DEF_GOMP_BUILTIN): New.
11970 (BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
11971 BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
11972 BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
11973 BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
11974 BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
11975 BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
11976 BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
11977 BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
11978 BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
11979 BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
11980 BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
11981 BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
11982 BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
11983 BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
11984 BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
11985 BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11986 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11987 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11988 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11989 BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
11990 BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
11991 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11992 BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
11993 BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
11994 BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
11995 BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
11996 * sync-builtins.def: New file, moved from builtins.def.
11997 * omp-builtins.def: New file, moved from builtins.def.
11998 * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
11999 * gimple-low.c (lower_function_body): Clear data.
12000 (lower_stmt): Do not handle COMPOUND_EXPR.
12001 Remove call to print_node_brief.
12002 * c-tree.h (c_finish_omp_clauses): New prototype.
12003 (C_DECL_THREADPRIVATE_P): Define.
12004 (lookup_name_no_remap, c_omp_remap_private): Remove
12005 (c_begin_omp_parallel, c_finish_omp_parallel): Update.
12006 (check_for_loop_decls): Update decl.
12007 (lookup_name_no_remap, c_omp_remap_private): Declare.
12008 (build_indirect_ref, build_modify_expr, pushdecl,
12009 pushdecl_top_level): Move to c-common.h.
12010 * dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
12011 before the switch, but just in the 2 places that need it.
12012 * c-decl.c (diagnose_mismatched_decls): Do not check for
12013 mismatched thread-local attributes when OLDDECL is marked
12014 threadprivate and NEWDECL has no thread-local attributes.
12015 (merge_decls): Merge C_DECL_THREADPRIVATE_P.
12016 (c_gimple_diagnostics_recursively): Rename from
12017 c_warn_unused_result_recursively. Invoke
12018 diagnose_omp_structured_block_errors.
12019 (check_for_loop_decls): Return a singular decl found.
12020 * langhooks.c (lhd_omp_predetermined_sharing): Return
12021 OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
12022 (lhd_omp_firstprivatize_type_sizes): New.
12023 (lhd_omp_assignment): New.
12024 (lhd_omp_predetermined_sharing): New.
12025 * langhooks.h (struct gimplify_omp_ctx): Forward declare.
12026 (struct lang_hooks_for_types): Add
12027 omp_firstprivatize_type_sizes, omp_privatize_by_reference,
12028 omp_predetermined_sharing, omp_disregard_value_expr,
12029 omp_private_debug_clause, omp_clause_default_ctor,
12030 omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
12031 (c_finish_omp_clauses): New.
12032 (c_finish_bc_stmt): Diagnose break within omp for.
12033 (c_begin_omp_parallel, c_finish_omp_parallel): New.
12034 (build_unary_op): Return error_mark after reporting
12035 a readonly_error.
12036 (build_modify_expr): Likewise.
12037 * gimplify.c: Include optabs.h and pointer-set.h.
12038 (enum gimplify_omp_var_data): Declare.
12039 (struct gimplify_omp_ctx): Declare.
12040 (struct gimplify_ctx): Add fields prev_context, combined_pre_p
12041 and combined_ctxp.
12042 (gimplify_ctxp, gimplify_omp_ctxp): New local variables.
12043 (push_gimplify_context, pop_gimplify_context): Allow nesting.
12044 (splay_tree_compare_decl_uid): New.
12045 (new_omp_context): New.
12046 (delete_omp_context): New.
12047 (gimple_add_tmp_var): Call omp_add_variable.
12048 (gimplify_bind_expr): Likewise.
12049 (gimplify_var_or_parm_decl): If omp_notice_variable returned
12050 true, disregard DECL_VALUE_EXPR on the decl if any.
12051 (gimplify_expr_in_ctx): New.
12052 (omp_firstprivatize_variable, omp_firstprivatize_type_sizes
12053 omp_add_variable, omp_notice_variable, omp_is_private
12054 gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
12055 gimplify_adjust_omp_clauses, gimplify_omp_parallel
12056 gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
12057 gimplify_omp_atomic_fetch_op, goa_stabilize_expr
12058 gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
12059 gimplify_omp_atomic): New.
12060 (gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
12061 OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
12062 OMP_CRITICAL and OMP_ATOMIC.
12063 (gimplify_body): Verify gimplify_ctxp is empty after gimplification.
12064 * c-pragma.h (enum pragma_kind): Add
12065 PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
12066 PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
12067 PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
12068 PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
12069 PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
12070 PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
12071 PRAGMA_OMP_THREADPRIVATE.
12072 * tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
12073 OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
12074 OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
12075 OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
12076 OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
12077 OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
12078 OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
12079 OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
12080 OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
12081 * print-tree.c (print_node): Dump DECL_VALUE_EXPR.
12082 * tree-ssa-dce.c (find_control_dependence): Do not assume that
12083 ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
12084 * tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
12085 OpenMP directives.
12086 (struct nesting_info): Add field_map,
12087 suppress_expansion, debug_var_chain.
12088 (create_nesting_tree): Initialize them.
12089 (lookup_field_for_decl): Use field_map.
12090 (get_nonlocal_debug_decl, get_local_debug_decl): New.
12091 (convert_local_omp_clauses): New.
12092 (finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
12093 (walk_body): Split out of walk_function.
12094 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
12095 (convert_nonlocal_reference): Handle omp statements.
12096 (convert_local_reference): Likewise.
12097 (unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
12098 (unnest_nesting_tree): New.
12099 (lower_nested_functions): Call it.
12100 (insert_field_into_struct): Make extern.
12101 (struct walk_stmt_info): Move to tree-gimple.h.
12102 (walk_stmts): Make extern.
12103 * omp-builtins.def: New file.
12104 * tree-iterator.c (expr_only): Clarify comment.
12105 * c-common.h (pushdecl_top_level, pushdecl,
12106 build_modify_expr, build_indirect_ref,
12107 c_finish_omp_master, c_finish_omp_critical,
12108 c_finish_omp_ordered, c_finish_omp_barrier,
12109 c_finish_omp_atomic, c_finish_omp_flush,
12110 c_finish_omp_for, c_split_parallel_clauses,
12111 omp_clause_default_kind, c_omp_sharing_predetermined,
12112 c_omp_remap_decl): Declare.
12113 * Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
12114 (OBJS-common): Add omp-low.o.
12115 (c-omp.o, omp-low.o): Add.
12116 (gimplify.o): Add dependency on $(OPTABS_H).
12117 (GTFILES): Add omp-low.c.
12118 (gt-stringpool.h): Add.
12119 * tree-cfg.c (set_bb_for_stmt): Do not update the
12120 block-to-labels map if we are currently expanding to RTL.
12121 (tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
12122 checks.
12123 Handle IDENTIFIER_NODE.
12124 (tree_verify_flow_info): Do not ICE when emitting error
12125 messages about invalid labels.
12126 (dump_function_to_file): Reset CFUN before emitting the body
12127 of the function.
12128 (debug_function): New.
12129 * passes.c (init_optimization_passes): Schedule
12130 pass_lower_omp.
12131 * langhooks-def.h (lhd_omp_predetermined_sharing,
12132 lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
12133 Declare.
12134 (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
12135 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
12136 (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
12137 LANG_HOOKS_OMP_PREDETERMINED_SHARING,
12138 LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
12139 LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
12140 LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
12141 LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
12142 LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
12143 LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
12144 (LANG_HOOK_DECLS): Use them.
12145
12146 2006-01-18 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
12147 Richard Henderson <rth@redhat.com>
12148 Jakub Jelinek <jakub@redhat.com>
12149 Diego Novillo <dnovillo@redhat.com>
12150
12151 * c-parser.c (pragma_omp_clause): Define.
12152 (c_parser_declaration_or_fndef): Document OpenMP syntax.
12153 (c_parser_compound_statement): Likewise.
12154 (c_parser_statement): Likewise.
12155 (c_parser_pragma): Handle omp pragmas.
12156 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
12157 OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
12158 (c_parser_omp_clause_name, check_no_duplicate_clause,
12159 c_parser_omp_variable_list,
12160 c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
12161 c_parser_omp_clause_copyprivate,
12162 c_parser_omp_clause_default,
12163 c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
12164 c_parser_omp_clause_lastprivate,
12165 c_parser_omp_clause_nowait,
12166 c_parser_omp_clause_num_threads,
12167 c_parser_omp_clause_ordered, c_parser_omp_clause_private,
12168 c_parser_omp_clause_reduction,
12169 c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
12170 c_parser_omp_all_clauses, c_parser_omp_structured_block,
12171 c_parser_omp_atomic, c_parser_omp_barrier,
12172 c_parser_omp_critical, c_parser_omp_flush,
12173 c_parser_omp_for_loop, c_parser_omp_for,
12174 c_parser_omp_master, c_parser_omp_ordered,
12175 c_parser_omp_sections_scope, c_parser_omp_sections,
12176 c_parser_omp_parallel, c_parser_omp_single,
12177 c_parser_omp_construct, c_parser_omp_threadprivate): New.
12178 * c-pragma.c (init_pragma): Do omp pragma registration here.
12179 * c.opt (fopenmp): New flag.
12180
12181 2006-01-18 Eric Christopher <echristo@apple.com>
12182
12183 * gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
12184 * config/darwin.h (GOMP_SELF_SPECS): Define.
12185
12186 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
12187
12188 * rtl.h: Remove the prototype for reg_alloc.
12189
12190 2006-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12191
12192 PR target/25731
12193 * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
12194 hppa[12]*-*-hpux11*): Override default shared libgcc version for both
12195 sjlj and dwarf2 exception handling.
12196 * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
12197 Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
12198 * pa/pa.c (function_value): Treat complex and vector types as
12199 aggregates.
12200 (function_arg): Likewise. Only pass scalar floats in the floating
12201 point argument registers.
12202 * pa/t-slibgcc-dwarf-ver: New file.
12203 * pa/t-slibgcc-sjlj-ver: New file.
12204 * pa/t-slibgcc-elf-ver: Delete file.
12205
12206 2006-01-19 Alan Modra <amodra@bigpond.net.au>
12207
12208 * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
12209 unlikely_test_section_p test.
12210
12211 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
12212
12213 * mode-switching.c (optimize_mode_switching): Make it static.
12214 * basic-block.h: Remove the prototype for
12215 optimize_mode_switching.
12216
12217 * modulo-sched.c (sms_schedule): Make it static.
12218 * rtl.h: Remove the prototype for sms_schedule.
12219
12220 * postreload-gcse.c (gcse_after_reload_main): Make it static.
12221 * rtl.h: Remove the prototype for gcse_after_reload_main.
12222
12223 * reg-stack.c (reg_to_stack): Make it static.
12224 * rtl.h: Remove the prototype for reg_to_stack.
12225
12226 * regrename.c (regrename_optimize, copyprop_hardreg_forward):
12227 Make them static.
12228 * rtl.h: Remove the prototypes for regrename_optimize and
12229 copyprop_hardreg_forward.
12230
12231 2006-01-18 Eric Botcazou <ebotcazou@adacore.com>
12232
12233 * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
12234 alpha_split_tmode_pair. Add 'mode' and 'fixup_overlap' arguments.
12235 Test against the appropriate null constant for the mode.
12236 If 'fixup_overlap' is true, swap the operands if they overlap.
12237 (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
12238 * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
12239 alpha_split_tmode_pair and adjust for above change.
12240 * config/alpha/alpha.md (movtf_internal): Adjust call to
12241 alpha_split_tfmode_pair and rely on it to swap the operands.
12242 (movti_internal): New insn and post-reload splitter.
12243 (movti): New expander.
12244
12245 2006-01-18 Philippe De Muyter <phdm@macqel.be>
12246
12247 * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
12248 operands.
12249
12250 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
12251
12252 * rtlanal.c (global_reg_mentioned_p_1,
12253 global_reg_mentioned_p): Remove.
12254 * rtl.h: Remove the prototype for global_reg_mentioned_p.
12255
12256 * flow.c (initialize_uninitialized_subregs): Make it static.
12257 * rtl.h: Remove the prototype for
12258 initialize_uninitialized_subregs.
12259
12260 * function.c (instantiate_virtual_regs): Make it static.
12261 * function.h: Remove the prototype for
12262 instantiate_virtual_regs.
12263
12264 * regmove.c (regmove_optimize, combine_stack_adjustments):
12265 Make them static.
12266 * rtl.h: Remove the prototypes for regmove_optimize and
12267 combine_stack_adjustments.
12268
12269 2006-01-17 Roger Sayle <roger@eyesopen.com>
12270
12271 * config/i386/i386.c (COSTS_N_BYTES): New macro.
12272 (size_cost): Encode costs in bytes so that a reg-reg addition is
12273 equivalent to COSTS_N_INSNS(1).
12274 (override_options): Use the size_cost.branch_cost as the default
12275 ix86_branch_cost when optimizing for size.
12276
12277 2006-01-18 Ben Elliston <bje@au.ibm.com>
12278
12279 * Makefile.in (D32PBIT_FUNCS): New.
12280 (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
12281 (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
12282 D64PBIT_FUNCS and D128PBIT_FUNCS.
12283 (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
12284 * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
12285 D128PBIT are set.
12286 (decnumber_dep): Define.
12287 * doc/libgcc.texi (Decimal float library routines): New node.
12288 * config/dfp-bit.h, config/dfp-bit.c: New files.
12289
12290 2006-01-18 Ben Elliston <bje@au.ibm.com>
12291
12292 * expr.c (emit_move_change_mode): Always adjust addresses, not
12293 just during reload. Copy replacements only during reload.
12294 (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
12295 emit_move_via_integer.
12296
12297 2006-01-17 Shantonu Sen <ssen@opendarwin.org>
12298
12299 * Makefile.in (check-%, check-consistency): Use $${srcdir}
12300 instead of $(srcdir) and ${srcdir}.
12301
12302 2006-01-17 Richard Earnshaw <rearnsha@arm.com>
12303
12304 PR target/592
12305 PR middle-end/11135
12306 * arm.h (struct machine_function): Add pic_reg.
12307 * arm.c (arm_pic_register): Make unsigned.
12308 (arm_override_options): Only set arm_pic_register if
12309 TARGET_SINGLE_PIC_BASE.
12310 (use_return_insn): Only test for a pic register if it is fixed.
12311 (arm_compute_save_reg0_reg12_mask): Likewise.
12312 (thumb_compute_save_reg_mask): Likewise.
12313 (legitimate_pic_operand): Factor out some known invariants.
12314 (legitimize_pic_address): If we don't have a fixed pic register,
12315 then set up a pseudo in the function entry sequence. Handle the
12316 pic base being in a pseudo.
12317 (arm_load_pic_register): Handle the pic register being in a pseudo.
12318 (arm_expand_prologue): Only set up the pic register if it is fixed.
12319 (thumb_expand_prologue): Likewise.
12320 * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
12321 (pic_load_addr_based_insn): Likewise.
12322 (builtin_setjmp_receiver): Don't restore the pic base if it isn't
12323 fixed.
12324
12325 2006-01-18 Ben Elliston <bje@au.ibm.com>
12326
12327 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
12328 decimal float modes for all floating point registers.
12329
12330 * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
12331 match_code "mem" with match_test "macho_lo_sum_memory_operand".
12332
12333 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12334
12335 PR c/25682
12336 * c-typeck.c (build_unary_op): Fold offsetof-like expressions
12337 even when the pointer is not NULL.
12338
12339 2006-01-16 Ian Lance Taylor <ian@airs.com>
12340
12341 * common.opt (ftoplevel-reorder): New option.
12342 * cgraph.c (cgraph_asm_nodes): New global variable.
12343 (cgraph_asm_last_node): New static variable.
12344 (cgraph_order): New global variable.
12345 (cgraph_create_node): Set new order field.
12346 (cgraph_varpool_node): Likewise.
12347 (decide_is_variable_needed): Return true if not
12348 flag_toplevel_reorder.
12349 (cgraph_add_asm_node): New function.
12350 * cgraph.h (struct cgraph_node): Add order field.
12351 (struct cgraph_varpool_node): Add order field.
12352 (struct cgraph_asm_node): Define.
12353 (cgraph_asm_nodes, cgraph_order): Declare.
12354 (cgraph_add_asm_node): Declare.
12355 * cgraphunit.c (cgraph_varpool_assemble_decl): New static
12356 function.
12357 (cgraph_varpool_assemble_pending_decls): Call it.
12358 (cgraph_output_pending_asms): New static function.
12359 (cgraph_finalize_compilation_unit): Call it.
12360 (struct cgraph_order_sort): Define.
12361 (cgraph_output_in_order): New static function.
12362 (cgraph_optimize): Call cgraph_output_pending_asms. Add code for
12363 !flag_toplevel_reorder case.
12364 * c-parser.c: Include "cgraph.h".
12365 (c_parser_asm_definition): Call cgraph_add_asm_node rather than
12366 assemble_asm.
12367 * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
12368 than -fno-unit-at-a-time.
12369 * doc/invoke.texi (Option Summary): Mention
12370 -fno-toplevel-reorder.
12371 (Optimize Options): Document -fno-toplevel-reorder. Mention it in
12372 -funit-at-a-time documentation.
12373
12374 2006-01-17 Hans-Peter Nilsson <hp@axis.com>
12375 Kazu Hirata <kazu@codesourcery.com>
12376
12377 * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
12378
12379 2006-01-17 Kazu Hirata <kazu@codesourcery.com>
12380
12381 * Makefile.in (FUNCTION_H): New. Use it instead of
12382 function.h throughout the file.
12383 * function.h: Include tree.h.
12384
12385 2006-01-17 Ben Elliston <bje@au.ibm.com>
12386
12387 * recog.c: Separate some functions with whitespace.
12388
12389 2006-01-16 Richard Henderson <rth@redhat.com>
12390
12391 Merge from gomp branch:
12392 * Makefile.in (TREE_INLINE_H): New. Use it as needed.
12393 * tree-inline.h (struct copy_body_data): Move from tree-inline.c
12394 and rename from struct inline_data. Rename callee* to dst*;
12395 caller* to src*; add copy_decl hook, transform_call_graph_edges,
12396 transform_new_cfg, transform_return_to_modify, and
12397 transform_lang_insert_block flags; remove cloning_p, versioning_p,
12398 update_clones_p.
12399 (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
12400 (copy_decl_for_dup): Remove.
12401 * tree-inline.c (struct inline_data): Move to header.
12402 (insert_decl_map): Export.
12403 (remap_decl): Update for member name changes. Use copy_decl hook.
12404 Allow for replacement to be a non-decl. Remove dead code.
12405 (remap_type_1): Check for existing mapping.
12406 (remap_type): Export.
12407 (remap_decls): Update for member name changes.
12408 (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
12409 (copy_body, setup_one_parameter, declare_return_variable): Likewise.
12410 (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
12411 (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
12412 (tree_function_versioning, build_duplicate_type): Likewise.
12413 (copy_body_r): Likewise. Export.
12414 (copy_decl_for_dup): Split into ...
12415 (copy_decl_for_dup_finish, copy_decl_to_var,
12416 copy_decl_no_change, copy_decl_maybe_to_var): ... these.
12417 (replace_ref_tree, inlining_p): Remove.
12418
12419 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
12420
12421 * ifcvt.c (if_convert): Make it static.
12422 * rtl.h: Remove the prototype for if_convert.
12423
12424 * local-alloc.c (local_alloc): Make it static.
12425 * rtl.h: Remove the prototype for local_alloc.
12426
12427 * loop.c (loop_optimize): Make it static.
12428 * cfgloop.h: Remove the prototype for loop_optimize.
12429 * rtl.h: Likewise.
12430
12431 2006-01-16 DJ Delorie <dj@redhat.com>
12432
12433 * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
12434 mems.
12435
12436 2006-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12437
12438 * pa.md: Disparage copies between general and floating-point registers
12439 in 32-bit move patterns.
12440
12441 2006-01-16 H.J. Lu <hongjiu.lu@intel.com>
12442
12443 PR testsuite/25741
12444 * Makefile.in (check-%): Depend on site.exp instead of
12445 $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
12446 directories.
12447
12448 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
12449
12450 * global.c (global_alloc): Make it static.
12451 * rtl.h: Remove the prototype for global_alloc.
12452
12453 2006-01-16 Richard Guenther <rguenther@suse.de>
12454
12455 * tree-ssa-alias.c (struct used_part): Add write_only field.
12456 (get_or_create_used_part_for): Initialize it to true.
12457 (create_overlap_variables_for): Don't create structure variables
12458 for structures that only are written to.
12459 (find_used_portions): Handle MODIFY_EXPR to track whether a
12460 structure is only written to.
12461
12462 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
12463
12464 * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
12465 static.
12466 * basic-block.h: Remove the prototype for
12467 partition_hot_cold_basic_blocks.
12468
12469 2006-01-16 Rafael Ãvila de EspÃ�­ndola <rafael.espindola@gmail.com>
12470
12471 * cppspec.c (lang_specific_spec_functions): Remove.
12472 * gcc.c (lookup_spec_function): Use static_spec_functions directly.
12473 * gcc.h (lang_specific_spec_functions): Remove.
12474 * gccspec.c (lang_specific_spec_functions): Remove.
12475
12476 2006-01-16 Paolo Bonzini <bonzini@gnu.org>
12477
12478 * combine.c (record_value_for_reg): Invalidate registers
12479 if INSN is null.
12480 (record_dead_and_set_regs_1): Likewise, by passing them to
12481 record_value_for_reg.
12482 (record_dead_and_set_regs): Invalidate stores made by a
12483 call. We do not combine across a call, but we still
12484 relied on equivalences.
12485
12486 2006-01-16 Eric Botcazou <ebotcazou@adacore.com>
12487
12488 * tree-vrp.c (extract_range_from_binary_expr): Cope with
12489 vrp_int_const_binop returning non-constant nodes.
12490
12491 2006-01-16 Paul Brook <paul@codesourcery.com>
12492
12493 * config/m68k/m68k.c (output_move_const_into_data_reg):
12494 Output correct mnemonic for mvz and mvs.
12495
12496 2006-01-16 Gabor Loki <loki@gcc.gnu.org>
12497
12498 * rtl-factoring.c: Add sequence abstraction algorithm.
12499 * cfgcleanup.c (outgoing_edges_match): Extra checks.
12500 (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
12501 ABNORMAL edges.
12502 (block_has_preserve_label): New function.
12503 * common.opt: Register new pass.
12504 * Makefile.in: Ditto.
12505 * passes.c: Ditto.
12506 * timevar.def: Ditto.
12507 * tree-pass.h: Ditto.
12508 * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
12509 * rtl.h (make_jump_insn_raw): Add forward decl.
12510 * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
12511
12512 2006-01-16 Eric Botcazou <ebotcazou@adacore.com>
12513 Roger Sayle <roger@eyesopen.com>
12514
12515 * fold-const.c (fold_minmax): New static function.
12516 (fold_binary) <MIN_EXPR>: Call it.
12517 <MAX_EXPR>: Likewise.
12518 * stor-layout.c (place_field): Use DECL_SIZE consistently
12519 in the computation of the new record size.
12520
12521 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
12522
12523 * cse.c (cse_condition_code_reg): Make it static.
12524 * rtl.h: Remove the prototype for cse_condition_code_reg.
12525
12526 * combine.c (combine_instructions): Make it static.
12527 * rtl.h: Remove the prototype for combine_instructions.
12528
12529 2006-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12530
12531 PR target/25168
12532 * tree.c (get_file_function_name_long): Concatenate the first global
12533 object name with a string derived from the input filename of the object
12534 for type "F".
12535
12536 2006-01-16 Ben Elliston <bje@au.ibm.com>
12537
12538 * config/i386/winnt-stubs.c: Update FSF address.
12539 * config/xtensa/ieee754-df.S: Ditto.
12540 * config/xtensa/ieee754-sf.S: Ditto.
12541
12542 2006-01-14 Ian Lance Taylor <ian@airs.com>
12543
12544 * ifcvt.c (noce_init_if_info): New static function, broken out of
12545 noce_process_if_block.
12546 (noce_process_if_block): Call noce_init_if_info.
12547 (check_cond_move_block): New static function.
12548 (cond_move_process_if_block): New static function.
12549 (process_if_block): Call cond_move_process_if_block.
12550
12551 2006-01-15 Kazu Hirata <kazu@codesourcery.com>
12552
12553 * cselib.c (hash_table): Rename to cselib_hash_table.
12554 (cselib_clear_table, discard_useless_values,
12555 remove_useless_values, cselib_lookup_mem, cselib_lookup,
12556 cselib_init, cselib_finish): Adjust uses of hash_table.
12557
12558 2006-01-14 Kazu Hirata <kazu@codesourcery.com>
12559
12560 PR tree-optimization/25485
12561 * tree-vrp.c (extract_range_from_binary_expr): Handle cases
12562 where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
12563 is known to be false and true, respectively.
12564
12565 2006-01-14 Richard Guenther <rguenther@suse.de>
12566
12567 PR tree-optimization/22548
12568 PR tree-optimization/22555
12569 PR tree-optimization/22501
12570 * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
12571 * params.def (salias-max-array-elements): New parameter.
12572 * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
12573 * doc/invoke.texi (salias-max-array-elements): Document.
12574 * tree-flow-inline.h (var_can_have_subvars): We also handle
12575 arrays now.
12576 * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
12577 COMPONENT_REF.
12578 * tree-ssa-structalias.c (params.h): Include.
12579 (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
12580 (find_func_aliases): Handle multiple constraints from ARRAY_REF.
12581 (get_constraint_for): For ADDR_EXPR operating on something
12582 containing an ARRAY_REF, add all subvars to the solution.
12583 (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
12584 * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
12585 for creating MUST_DEFs.
12586 (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
12587
12588 2006-01-14 Zdenek Dvorak <dvorakz@suse.cz>
12589
12590 * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
12591 functions.
12592 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
12593 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
12594 number_of_iterations_le): New functions.
12595 (number_of_iterations_special): Removed.
12596 (number_of_iterations_exit): Do not use number_of_iterations_special.
12597 * tree.c (unsigned_type_for): Always return integer type.
12598
12599 2006-01-14 Steven Bosscher <stevenb.gcc@gmail.com>
12600 Richard Guenther <rguenther@suse.de>
12601
12602 PR rtl-optimization/24257
12603 * gcse.c (find_moveable_store): Only consider a store movable
12604 when the SET_SRC of the insn can be assigned to a register.
12605
12606 2006-01-14 Ian Lance Taylor <ian@airs.com>
12607
12608 * tree.c (tree_not_class_check_failed): New function.
12609 * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
12610 (tree_not_class_check_failed): Declare.
12611
12612 2006-01-13 Ian Lance Taylor <ian@airs.com>
12613
12614 * reload1.c (do_output_reload): Add assertion rejecting a
12615 CALL_INSN.
12616
12617 2006-01-13 Adam Nemet <anemet@caviumnetworks.com>
12618
12619 * combine.c (struct reg_stat): Add new fields truncation_label and
12620 truncated_to_mode.
12621 (record_value_for_reg): Reset truncated_to_mode.
12622 (record_truncated_value): New function.
12623 (check_promoted_subreg): Call it. Rename to check_conversions.
12624 (combine_instructions): Rename check_promoted_subreg to
12625 check_conversions.
12626 (reg_truncated_to_mode): New function.
12627 (make_extraction): Use it. Check TRULY_NOOP_TRUNCATION.
12628 (gen_lowpart_or_truncate): New function.
12629 (force_to_mode): Use it instead of gen_lowpart.
12630
12631 2006-01-13 Diego Novillo <dnovillo@redhat.com>
12632
12633 * tree-ssa-alias.c (add_type_alias): Fix typo. Test whether
12634 VAR is a tag, not its type tag.
12635
12636 2006-01-13 Alexandre Oliva <aoliva@redhat.com>
12637
12638 * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
12639 alternatives to match style of other entries.
12640 (*vec_extractv2di_1_sse): Likewise. Fix mode attr.
12641
12642 2006-01-13 Daniel Berlin <dberlin@dberlin.org>
12643
12644 PR tree-optimization/25771
12645 * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
12646 SSA_NAMES.
12647
12648 2006-01-13 Andrew Pinski <pinskia@physics.uc.edu>
12649
12650 PR tree-opt/24365
12651 * tree-inline.c (declare_return_variable): If the return variable
12652 was marked as a non gimple complex, set the return slot variable
12653 to be a non gimple comple variable.
12654
12655 2006-01-13 Richard Guenther <rguenther@suse.de>
12656
12657 * builtins.c (expand_builtin_sincos): New function.
12658 (expand_builtin_mathfn_3): Remove dead code, sin and cos
12659 do not set errno.
12660 (expand_builtin): Expand sincos using expand_builtin_sincos.
12661
12662 2006-01-12 DJ Delorie <dj@redhat.com>
12663
12664 * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
12665 shift counts, separate SI shifts for m32c vs m16c, pass shift type
12666 so that constant shifts can be split.
12667 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
12668 (m32c_valid_pointer_mode): Make static.
12669 (shift_gen_func_for): New.
12670 (m32c_prepare_shift): Use it. Split large const shifts into
12671 multiple shifts.
12672 * config/m32c/predicates.md (shiftcount_operand): Allow more
12673 general operands.
12674 (longshiftcount_operand): New.
12675 * doc/md.texi (Machine Constraints): Document In6.
12676
12677 2006-01-13 Ben Elliston <bje@au.ibm.com>
12678
12679 * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
12680 REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
12681 documentation.
12682
12683 2006-01-12 Daniel Berlin <dberlin@dberlin.org>
12684
12685 * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
12686 to try to avoid clobbering pieces of structures when we know
12687 something about the whole structure.
12688 * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
12689
12690 2006-01-13 Ben Elliston <bje@au.ibm.com>
12691
12692 * doc/rtl.texi (Insns): Remove statement that libcalls cannot
12693 return in memory, as this is no limitation is no longer present.
12694
12695 2006-01-12 DJ Delorie <dj@redhat.com>
12696
12697 * config/m32c/addsub.md (addhi3): Add two more alternatives, for
12698 mova with fb, and for fb+0 -> An.
12699
12700 * config/m32c/mov.md (peephole2): Fix enabling logic.
12701
12702 * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
12703 DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
12704 DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
12705 FINI_ARRAY_SECTION_ASM_OP): Define.
12706
12707 * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
12708 variable.
12709 (m32c_legitimize_reload_address): New logic to reload FB to An.
12710 (m32c_output_reg_push): Add newline.
12711 (m32c_output_reg_pop): Likewise.
12712
12713 2006-01-12 Ulrich Weigand <uweigand@de.ibm.com>
12714
12715 * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
12716
12717 2006-01-11 Andrew Pinski <pinskia@physics.uc.edu>
12718
12719 * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
12720
12721 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
12722
12723 * config/sh/predicates.md (sh_rep_vec): Add parallel to
12724 match_code.
12725
12726 2006-01-11 Ben Elliston <bje@au.ibm.com>
12727
12728 * rtlanal.c (find_reg_note): Assert insn is not null.
12729
12730 2006-01-11 Kenneth Zadeck <zadeck@naturalbridge.com>
12731
12732 * df-scan.c (df_hard_reg_init): Move declaration of i outside
12733 ifdef.
12734
12735 2006-01-11 Jeff Law <law@redhat.com>
12736
12737 * tree-ssa-threadupdate.c (threaded_edges): New VEC to
12738 hold edge pairs.
12739 (mark_threaded_blocks, register_jump_thread): New functions.
12740 (thread_through_all_blocks): Remove unwanted argument. No
12741 longer rely on e->aux to communicate thread target info.
12742 Call mark_threaded_blocks. Release the threaded_blocks
12743 bitmap and threaded_edges vector when complete.
12744 * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
12745 (threaded_blocks): Remove.
12746 (tree_ssa_dominator_optimize): Remove initialization and
12747 finalization of threaded_blocks. Simplify call to
12748 thread_through_all_blocks.
12749 (thread_across_edge): Call register_jump_thread rather than
12750 storing thread information into e->aux.
12751 (free_all_edge_infos): Simplify now that e->aux is no longer
12752 used to communicate with thread_through_all_blocks.
12753 * tree-flow.h (thread_through_all_blocks): Update prototype.
12754 (register_jump_thread): Prototype.
12755
12756 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
12757
12758 * df-core.c (df_compact_blocks, df_bb_replace): Use
12759 SET_BASIC_BLOCK instead of BASIC_BLOCK.
12760
12761 2006-01-11 Richard Guenther <rguenther@suse.de>
12762
12763 PR tree-optimization/25734
12764 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
12765 stop propagation after successful propagation to the LHS.
12766
12767 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
12768
12769 * basic-block.h (control_flow_graph): Change the type of
12770 x_basic_block_info to VEC(basic_block,gc) *.
12771 (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
12772 basic_block_info.
12773 (SET_BASIC_BLOCK): New.
12774 * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
12775 instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
12776 * cfgbuild.c (find_basic_blocks): Likewise.
12777 * cfglayout.c (fixup_reorder_chain): Likewise.
12778 * cfgrtl.c (create_basic_block_structure,
12779 rtl_create_basic_block): Likewise.
12780 * ifcvt.c (find_if_case_1): Likewise.
12781 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
12782 Likewise.
12783
12784 2006-01-11 Kenneth Zadeck <zadeck@naturalbridge.com>
12785
12786 * Makefile.in: Removed rotted odf.c entry.
12787
12788 2006-01-11 Hans-Peter Nilsson <hp@axis.com>
12789
12790 PR target/25706
12791 * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
12792 ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
12793 ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
12794 output pattern modifier, not %e.
12795 * config/cris/cris.c (cris_op_str): Update comment about pattern
12796 modifier.
12797 (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
12798 before falling through into...
12799 <case 'E'>: Redefined from old 'e' case.
12800
12801 2006-01-11 Jan Hubicka <jh@suse.cz>
12802
12803 PR target/25042
12804 * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
12805
12806 2006-01-11 Jan Hubicka <jh@suse.cz>
12807
12808 * i386.h (TARGET_DECOMPOSE_LEA): Kill.
12809 * i386.c (x86_decompose_lea): Kill.
12810 (ix86_rtx_costs): Kill.
12811
12812 2006-01-11 Jan Hubicka <jh@suse.cz>
12813
12814 * cgraph.c (cgraph_insert_node_to_hashtable): New function.
12815 * cgraph.h (cgraph_node): Add inline_decl.
12816 (cgraph_insert_node_to_hashtable): Declare.
12817 (save_inline_function_body): Declare.
12818 * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
12819 clones.
12820 (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
12821 (cgraph_function_versioning): Update call of tree_function_versioning.
12822 (save_inline_function_body): New function.
12823 * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
12824 saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
12825 * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
12826 (cgraph_default_inline_p): Likewise.
12827 (cgraph_decide_inlining_incrementally): Likewise.
12828 * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
12829 (copy_bb): Kill saving; do updating of clones.
12830 (copy_cfg_body): Kill saving.
12831 (initialize_inlined-parameters): Likewise.
12832 (expand_call_inline): Likewise.
12833 (save_body): Kill.
12834 (tree_function_versioning): New parameter "update_clones".
12835 (inlining_p): Kill saving.
12836 * tree-inline.h (tree_function_versioning): Update prototype.
12837 * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
12838 saving.
12839
12840 2006-01-11 Ian Lance Taylor <ian@airs.com>
12841
12842 * combine.c (struct undo): Remove is_int. Enumify types of undos.
12843 Allow undoing set of machine mode.
12844 (do_SUBST): Use enums instead of is_int.
12845 (do_SUBST_MODE): New function.
12846 (SUBST_MODE): New macro.
12847 (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
12848 reg and trying to replace reg_regno_rtx with a new register.
12849 (undo_all): Use new enums, handle undoing a PUT_MODE change.
12850 (simplify_set): Use SUBST_MODE.
12851 (distribute_notes): Remove code that tried to update reg notes
12852 for regno_reg_rtx changes.
12853
12854 2006-01-11 Paolo Bonzini <bonzini@gnu.org>
12855
12856 PR tree-optimization/23109
12857 PR tree-optimization/23948
12858 PR tree-optimization/24123
12859
12860 * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
12861 * tree-cfg.c (single_noncomplex_succ): New.
12862 * tree-flow.h (single_noncomplex_succ): Declare it.
12863 * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
12864 * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
12865 (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
12866 insert_bb, register_division_in, insert_reciprocals,
12867 replace_reciprocal, free_bb): New.
12868 (execute_cse_reciprocals_1): Rewritten.
12869 (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
12870 Do not commit any edge insertion. Always compute dominators and
12871 create the allocation pool.
12872 * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
12873 * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
12874 * targhooks.c (default_min_divistions_for_recip_mul): New.
12875 * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
12876 * passes.c (init_optimization_passes): Run recip after tree loop
12877 optimizations.
12878 * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
12879
12880 2006-01-11 Danny Berlin <dberlin@dberlin.org>
12881 Kenneth Zadeck <zadeck@naturalbridge.com>
12882
12883 * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
12884 DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
12885 DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
12886 DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
12887 DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
12888 DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
12889 DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
12890 DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
12891 DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
12892 DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
12893 DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
12894 DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
12895 DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
12896 DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
12897 DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
12898 DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
12899 DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
12900 DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
12901 DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
12902 DF_SCAN_POST_ALLOC): New macros.
12903 (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
12904 df_free_bb_function, df_local_compute_function, df_init_function,
12905 df_dataflow_function, df_confluence_function_0,
12906 df_confluence_function_n, df_transfer_function,
12907 df_finalizer_function, df_free_function, df_dump_problem_function,
12908 df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
12909 df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
12910 df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
12911 df_urec_bb_info, ) New types.
12912 (df_invalidated_by_call, df_all_hard_regs, df_state) New public
12913 variables.
12914 (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
12915 df_analyze_simple_change_some_blocks,
12916 df_analyze_simple_change_one_block, df_compact_blocks,
12917 df_bb_replace, df_bb_regno_last_use_find,
12918 df_bb_regno_first_def_find, df_bb_regno_last_def_find,
12919 df_insn_regno_def_p, df_find_def, df_find_use,
12920 df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
12921 df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
12922 df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
12923 debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
12924 debug_df_chain, df_get_dependent_problem, df_chain_create,
12925 df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
12926 df_grow_bb_info, df_chain_dump, df_print_bb_index,
12927 df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
12928 df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
12929 df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
12930 df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
12931 df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
12932 df_rescan_blocks, df_ref_create, df_get_artificial_defs,
12933 df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
12934 df_ref_remove, df_insn_refs_delete, df_refs_delete,
12935 df_reorganize_refs, df_set_state, df_hard_reg_init,
12936 df_read_modify_subreg_p) New public functions.
12937 * df-core.c: The core dataflow solver and glue routines for rtl
12938 dataflow.
12939 (df_init, df_add_problem, df_set_blocks, df_finish,
12940 df_hybrid_search_forward, df_hybrid_search_backward,
12941 df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
12942 df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
12943 df_bb_regno_last_use_find, df_bb_regno_first_def_find,
12944 df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
12945 df_reg_defined, df_find_use, df_reg_used, df_dump,
12946 df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
12947 df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
12948 debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
12949 debug_df_useno, reset_df_after_reload): New functions.
12950 * df-scan.c: The scanning fuctions, once in df.c, completely
12951 rewritten so that they now fully model the functionality of
12952 register usage at the backend.
12953 (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
12954 df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
12955 df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
12956 df_grow_insn_info, df_rescan_blocks, df_ref_create,
12957 df_get_artificial_defs, df_get_artificial_uses,
12958 df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
12959 df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
12960 df_refs_delete, df_reorganize_refs, df_set_state,
12961 df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
12962 df_def_record_1, df_defs_record, df_uses_record,
12963 df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
12964 df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
12965 df_record_exit_block_uses, df_hard_reg_init): New functions.
12966
12967 * df-problems.c: Seven concrete dataflow problems that use the
12968 scanning in df-scan.c and are solved by the engine in df-core.c.
12969 (df_get_dependent_problem, df_chain_create, df_chain_unlink,
12970 df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
12971 df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
12972 df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
12973 df_ru_free_bb_info, df_ru_alloc,
12974 df_ru_bb_local_compute_process_def,
12975 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
12976 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
12977 df_ru_transfer_function, df_ru_free, df_ru_dump,
12978 df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
12979 df_rd_free_bb_info, df_rd_alloc,
12980 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
12981 df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
12982 df_rd_transfer_function, df_rd_free, df_rd_dump,
12983 df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
12984 df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
12985 df_lr_local_compute, df_lr_init, df_lr_confluence_0,
12986 df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
12987 df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
12988 df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
12989 df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
12990 df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
12991 df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
12992 df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
12993 df_urec_mark_reg_change, df_urec_check_earlyclobber,
12994 df_urec_mark_reg_use_for_earlyclobber,
12995 df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
12996 df_urec_local_compute, df_urec_init, df_urec_local_finalize,
12997 df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
12998 df_urec_dump, df_urec_add_problem, df_chain_alloc,
12999 df_chain_create_bb_process_use, df_chain_create_bb,
13000 df_chain_finalize, df_chain_free, df_chains_dump,
13001 df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
13002 df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
13003 df_reg_lifetime): New functions.
13004 * df.c: Deleted file.
13005 * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
13006 consistent with new df api.
13007 * modulo-sched.c (sms_schedule, rest_of_handle_sms,
13008 rest_of_handle_sms): Ditto.
13009 * web.c (unionfind_union, union_defs, entry_register, web_main):
13010 Ditto.
13011 * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
13012 invariant_expr_equal_p, find_defs, check_dependencies,
13013 find_invariant_insn, find_invariants_to_move, move_invariant_reg,
13014 free_inv_motion_data, move_loop_invariants): Ditto.
13015 * Makefile.in (df.c, df-scan.c df-problems.c df-core.c):
13016 Update dependencies.
13017 (odf.c): Added defective entry that was deleted later in day.
13018 * sched-deps.c (sched_analyze_1): Ditto.
13019
13020 2006-01-11 Zdenek Dvorak <dvorakz@suse.cz>
13021
13022 * tree-ssa-operands.c (get_expr_operands): Record addressable
13023 variables directly. Do not call add_stmt_operands for CONST_DECLs
13024 and ARRAY_DECLs.
13025 (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
13026 (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
13027
13028 2006-01-11 Ben Elliston <bje@au.ibm.com>
13029
13030 * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
13031 function returns true in the positive case.
13032
13033 2006-01-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13034
13035 PR target/20754
13036 * config/pa/pa.md: Create separate 32 and 64-bit move patterns
13037 for SI, DI, SF and DF modes. Add alternatives to copy between
13038 general and floating point registers to the 32-bit patterns.
13039 * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
13040 * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
13041 (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
13042 generating 64-bit code.
13043 * config/pa/pa.c (output_move_double): Handle copies between general
13044 and floating registers.
13045
13046 2006-01-10 Stuart Hastings <stuart@apple.com>
13047
13048 * config/i386/i386.md (set_got): Update.
13049 (set_got_labelled): New. (UNSPEC_LD_MPIC): New.
13050 (builtin_setjmp_receiver): Mach-O support.
13051 * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
13052 (GOT_SYMBOL_NAME): Define.
13053 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
13054 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
13055 * config/i386/i386.c (override_options): Revise for Darwin.
13056 (USE_HIDDEN_LINKONCE): Enable for Mach-O. (ix86_file_end): Mach-O
13057 support. (darwin_x86_file_end): New. (output_set_got): Add label
13058 parameter, revise for Mach-O. (x86_output_mi_thunk): Likewise.
13059 * config/i386/i386-protos.h (output_set_got): Likewise.
13060 * config/darwin.c (machopic_legitimize_pic_address): Update
13061 regs_ever_live[].
13062
13063 2006-01-10 Kaz Kojima <kkojima@gcc.gnu.org>
13064
13065 * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
13066 when MODE isn't BLKmode.
13067
13068 2006-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
13069
13070 PR rtl-optimization/25367
13071 * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
13072
13073 2006-01-10 Hans-Peter Nilsson <hp@axis.com>
13074
13075 PR target/25718
13076 * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
13077 for a negative bound.
13078
13079 2006-01-10 Richard Guenther <rguenther@suse.de>
13080
13081 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13082 Never override with anything constraint.
13083
13084 2006-01-10 Jan Beulich <jbeulich@novell.com>
13085
13086 * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
13087 256 bits when optimize_size.
13088
13089 2006-01-10 Jan Beulich <jbeulich@novell.com>
13090
13091 * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
13092 MASK_ALIGN_DOUBLE.
13093 * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
13094 * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
13095 arguments.
13096
13097 2006-01-10 Ben Elliston <bje@au.ibm.com>
13098
13099 * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
13100 float modes.
13101 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
13102 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13103 (USE_FP_FOR_ARG): Reject decimal float modes.
13104 (function_arg_advance): Likewise.
13105 (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
13106 (rs6000_handle_altivec_attribute): Do not permit decimal floating
13107 point types in AltiVec vectors.
13108 (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
13109 (rs6000_libcall_value): Likewise.
13110
13111 2006-01-09 Bob Wilson <bob.wilson@acm.org>
13112
13113 * config/xtensa/ieee754-df.S: New file.
13114 * config/xtensa/ieee754-sf.S: New file.
13115 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
13116 (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
13117 * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
13118
13119 2006-01-09 Kazu Hirata <kazu@codesourcery.com>
13120
13121 * config/sh/predicates.md (binary_float_operator,
13122 binary_logical_operator, commutative_float_operator,
13123 equality_comparison_operator, greater_comparison_operator,
13124 less_comparison_operator, logical_operator,
13125 noncommutative_float_operator, shift_operator,
13126 symbol_ref_operand, unary_float_operator): Remove redundant
13127 conditionals.
13128
13129 2006-01-09 Jeff Law <law@redhat.com>
13130
13131 * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
13132 code to propagate the RHS of a cast into COND_EXPR_COND. Remove
13133 now unused arguments. Callers updated.
13134 (eliminate_redundant_computations): Remove now unused arguments,
13135 callers updated.
13136 (local_fold): Remove, no longer used.
13137 (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
13138 and moved to...
13139 * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
13140 (simplify_cond): New function.
13141 (forward_propagate_into_cond): Call simplify_cond.
13142
13143 2006-01-09 Alexandre Oliva <aoliva@redhat.com>
13144
13145 * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
13146 (*vec_extractv2di_1_sse): New.
13147
13148 2006-01-09 Ben Elliston <bje@au.ibm.com>
13149
13150 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
13151
13152 2006-01-08 Richard Guenther <rguenther@suse.de>
13153
13154 * tree-ssa-structalias.c (get_constraint_for): Remove
13155 anyoffset argument.
13156 (get_constraint_for_component_ref): Likewise.
13157 (do_deref): Likewise.
13158 (get_constraint_for): Likewise.
13159 (do_structure_copy): Likewise.
13160 (handle_ptr_arith): Likewise.
13161 (find_func_aliases): Likewise. Remove unused need_anyoffset
13162 variable.
13163
13164 2006-01-08 J"orn Rennecke <joern.rennecke@st.com>
13165 Kaz Kojima <kkojima@gcc.gnu.org>
13166
13167 * config/sh/sh.h (CONST_OK_FOR_K16): Define.
13168 (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
13169 (EXTRA_CONSTRAINT_C16): Remove.
13170 (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
13171 (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
13172 EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
13173 * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
13174 constants of SHmedia. Handle nested constant expressions of
13175 SHmedia correctly.
13176 (andcosts): Fix the costs for SHmedia constants.
13177 (sh_rtx_costs): Take account of outer_code for SHmedia constants.
13178 * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
13179 (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
13180 (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
13181 (movv4hi_i, movv2si_i): Likewise.
13182 (movsi_const): Adjust the second operand of ior so to match with
13183 the Csu constraint.
13184 (movdi_const, movdi_const_32bit): Likewise.
13185 (movdi_const_16bit+1): Don't sign-extend LOW.
13186 (movdi_const_16bit+2): Likewise. Remove the zero_extend and truncate
13187 step.
13188 (*double_shori): Fix the split condition. Use GEN_INT instead
13189 of get_int_mode calls. Mask lower 16-bit of the argument of
13190 the last GEN_INT.
13191 (sym2GOTPLT): Remove.
13192 (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
13193 gen_rtx_UNSPEC.
13194 * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
13195 instead of EXTRA_CONSTRAINT_C16.
13196
13197 2006-01-07 Ian Lance Taylor <ian@airs.com>
13198 David Edelsohn <edelsohn@gnu.org>
13199
13200 PR rtl-optimization/25662
13201 * optabs.c (simplify_expand_binop): Use simplify_binary_operation
13202 for constant operands instead of simplify_gen_binary.
13203 * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
13204 after trying simplify_binary_operation
13205
13206 2006-01-06 Daniel Berlin <dberlin@dberlin.org>
13207
13208 * tree.c (iterative_hash_expr): Hash decls based on UID.
13209
13210 2006-01-06 Eric Christopher <echristo@apple.com>
13211
13212 * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
13213 (TARGET_UNWIND_EMIT): Fix spelling.
13214 * target.h (gcc_target): Add except_table_label.
13215 * except.c (output_function_exception_table): Use.
13216 * varasm.c (default_emit_except_table_label): New.
13217 * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
13218 define.
13219 (asm_out): Add here.
13220 * output.h (default_emit_except_table_label): Prototype.
13221 * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
13222 * config/darwin.c (darwin_emit_except_table_label): Define.
13223 * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
13224
13225 2006-01-06 Zdenek Dvorak <dvorakz@suse.cz>
13226
13227 PR tree-optimization/18527
13228 * tree-ssa-loop-niter.c (number_of_iterations_cond,
13229 number_of_iterations_special, number_of_iterations_exit):
13230 Move base and step of an iv to a single structure. Add
13231 no_overflow flag, and use it in # of iterations analysis.
13232 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
13233 folded_casts argument.
13234 (simple_iv): Pass base and step in a structure. Set no_overflow
13235 flag.
13236 (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
13237 Evaluate expensiveness of computing # of iterations instead of
13238 the final expression.
13239 * tree-scalar-evolution.h (affine_iv): New structure.
13240 (simple_iv): Declaration changed.
13241 * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
13242 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
13243 find_givs_in_stmt): Changed due to simple_iv change.
13244
13245 2006-01-06 Jeff Law <law@redhat.com>
13246
13247 PR ada/24994
13248 * tree-cfg.c (bsi_replace): Rename final argument from
13249 PRESERVE_EH_INFO to UPDATE_EH_INFO. Fix typo in last
13250 change (stmt -> orig_stmt).
13251 * tree-eh.c (verify_eh_throw_stmt_node): New function.
13252 (bsi_remove): Add new argument. Remove EH information
13253 if requested.
13254 (verify_eh_throw_table_statements): New function.
13255 (bsi_remove): Add new argument REMOVE_EH_INFO. All callers
13256 updated.
13257 * tree-optimize.c (execute_free_cfg_annotations): Verify
13258 the EH throw statement table after removing annotations.
13259 * except.h (verify_eh_throw_table_statements): Prototype.
13260 * tree-flow.h (bsi_remove): Update prototype.
13261 * tree-vrp.c (remove_range_assertions): Add new argument to
13262 bsi_remove call.
13263 * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
13264 * tree-complex.c (expand_complex_div_wide): Likewise.
13265 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
13266 * tree-tailcall.c (eliminate_tailcall): Likewise.
13267 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
13268 * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
13269 * tree-nrv.c (tree_nrv): Likewise.
13270 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
13271 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
13272 (combine_blocks): Likewise.
13273 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
13274 * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
13275 (cleanup_control_flow): Likewise.
13276 (remove_forwarder_block): Likewise.
13277 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
13278 * tree-sra.c (sra_replace): Likewise.
13279 * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
13280 (forward_propagate_single_use_vars): Likewise.
13281 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
13282 * tree-inline.c (expand_call_inline): Likewise.
13283 * tree-vect-transform.c (vect_transform_loop): Likewise.
13284 * tree-outof-ssa.c (rewrite_trees): Likewise.
13285 * tree-cfg.c (make_goto_expr_edges): Likewise.
13286 (cleanup_dead_labels): Likewise.
13287 (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
13288 (bsi_move_before, bsi_move_after): Likewise.
13289 (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
13290 (tree_redirect_edge_and_branch, tree_split_block): Likewise.
13291
13292 2006-01-06 Andrew Pinski <pinskia@physics.uc.edu>
13293
13294 PR tree-opt/25528
13295 * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
13296 and IMAGPART_EXPR.
13297 * tree-flow-inline.h (var_can_have_subvars): Handle complex types
13298 on non gimple variables. Also add checks at the top for decls and
13299 mtags.
13300 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
13301 complex types.
13302 * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
13303 and IMAGPART_EXPR for creating MUST_DEFs.
13304 (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
13305 and NAME_MEMORY_TAG separately from the DECLs.
13306
13307 2006-01-06 Richard Guenther <rguenther@suse.de>
13308
13309 * tree-dfa.c (mark_new_vars_to_rename): Create stmt
13310 annotation, if necessary.
13311 * tree-ssa-pre.c (create_expression_by_pieces): Remove
13312 redundant calls to update_stmt.
13313 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
13314 Likewise.
13315
13316 2006-01-05 Richard Henderson <rth@redhat.com>
13317
13318 * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
13319
13320 2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
13321
13322 * c-typeck.c: Update copyright date.
13323
13324 2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
13325
13326 * c-typeck.c (build_c_cast): Always warn when casting
13327 from a pointer to an integer of different size, even if
13328 the node was constant.
13329
13330 2006-01-05 Richard Guenther <rguenther@suse.de>
13331
13332 PR tree-optimization/22555
13333 * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
13334 if one structure field is an array.
13335 * tree-ssa-operands.c (get_expr_operands): Continue scanning
13336 operands even if we found a subvar, but ignore VOPs in this
13337 case.
13338 * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
13339 for renaming.
13340 * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
13341
13342 2006-01-05 Richard Earnshaw <rearnsha@arm.com>
13343
13344 PR middle-end/24998
13345 * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
13346
13347 2006-01-05 Richard Guenther <rguenther@suse.de>
13348 Diego Novillo <dnovillo@redhat.com>
13349
13350 * tree-pass.h (TODO_remove_unused_locals): Define.
13351 * gimple-low.c (expand_var_p, remove_useless_vars,
13352 pass_remove_useless_vars): Remove. Update all users.
13353 * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
13354 (remove_unused_locals): New function.
13355 * tree-flow.h (remove_unused_locals): Declare.
13356 * passes.c (execute_todo): Call remove_unused_locals if
13357 TODO_remove_unused_locals is set.
13358 * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
13359 * tree-ssa-dce.c (pass_dce): Likewise.
13360 * tree-outof-ssa.c (pass_del_ssa): Likewise.
13361
13362 2006-01-05 Richard Guenther <rguenther@suse.de>
13363
13364 * tree-flow.h (struct fieldoff): Decompose field to
13365 type, size and decl.
13366 * tree-ssa-alias.c (create_sft): Take type as parameter.
13367 (create_overlap_variables_for): Store type, size and decl
13368 in the fieldoff structure.
13369 * tree-ssa-structalias.c (fieldoff_compare): Adjust users
13370 of struct fieldoff.
13371 (push_fields_onto_fieldstack): Likewise.
13372 (create_variable_info_for): Likewise. Use offset for the
13373 SFT name if the decl is not available.
13374
13375 2006-01-04 Paul Brook <paul@codesourcery.com>
13376
13377 * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
13378
13379 2006-01-04 Daniel Berlin <dberlin@dberlin.org>
13380
13381 * lambda-code.c (can_put_in_inner_loop): Relax
13382 restrictions.
13383 (can_put_after_inner_loop): New function.
13384 (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
13385 (perfect_nestify): Change to make copies and modify uses.
13386
13387 2006-01-04 Richard Henderson <rth@redhat.com>
13388
13389 Merge from gomp branch:
13390 * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
13391 via integer constant.
13392 (pragma_lex): Remove.
13393 * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
13394 rather than parsing it.
13395 * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
13396 handle_pragma_extern_prefix): Add %< %> quotes.
13397 (registered_pragmas): New.
13398 (c_register_pragma_1): New.
13399 (c_register_pragma): Use it.
13400 (c_register_pragma_with_expansion): Likewise.
13401 (c_invoke_pragma_handler): New.
13402 (init_pragma): Use cpp_register_deferred_pragma directly for
13403 pch_preprocess.
13404 * c-pragma.h (enum pragma_kind): New.
13405 (pragma_handler): New.
13406 (c_invoke_pragma_handler): Declare.
13407 * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
13408 CPP_PRAGMA_EOL.
13409 * c-common.h (c_common_pch_pragma): Update decl.
13410 * Makefile.in (c-parser.o): Update dependencies.
13411 (GTFILES): Add c-pragma.h.
13412 * c-parser.c (struct c_token): Add pragma_kind.
13413 (struct c_parser): Add in_pragma.
13414 (c_lex_one_token): Always initialize keyword and pragma_kind.
13415 Extract data for CPP_PRAGMA.
13416 (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
13417 (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
13418 Don't allow CPP_PRAGMA_EOL if in_pragma.
13419 (c_parser_consume_pragma): New.
13420 (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
13421 (c_parser_skip_to_end_of_parameter): Likewise.
13422 (c_parser_skip_to_end_of_block_or_statement): Likewise.
13423 (c_parser_skip_to_pragma_eol): New.
13424 (c_parser_external_declaration): Handle CPP_PRAGMA.
13425 (c_parser_compound_statement_nostart): Likewise.
13426 (c_parser_statement_after_labels): Likewise.
13427 (c_parser_pragma): New.
13428 (pragma_lex): Likewise.
13429 (c_parser_pragma_pch_preprocess): New.
13430 (c_parser_new): Merge into ...
13431 (c_parse_file): ... here. Call c_parser_pragma_pch_preprocess.
13432
13433 2006-01-04 Jeff Law <law@redhat.com>
13434
13435 PR ada/24994
13436 * tree-cfg.c (bsi_replace): Remove the original statement
13437 from the EH throw statement table.
13438
13439 2006-01-04 Jakub Jelinek <jakub@redhat.com>
13440
13441 * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
13442 make the prototype extern "C" and add throw ().
13443
13444 PR target/25554
13445 * config/i386/i386.md (testqi_ext_3): Ensure len is positive
13446 and pos non-negative and pos + len <= 32.
13447 (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
13448 drop pos + len < HOST_BITS_PER_WIDE_INT test.
13449 (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
13450
13451 PR c/25559
13452 * c-common.c (handle_vector_size_attribute): Reject zero vector size
13453 as well as sizes not multiple of component size.
13454
13455 PR debug/25562
13456 * function.c (instantiate_expr): New function.
13457 (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
13458 walk its DECL_VALUE_EXPR with instantiate_expr.
13459
13460 * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
13461 DW_OP_deref{,_size} if address isn't going to be added.
13462
13463 2006-01-04 Ben Elliston <bje@au.ibm.com>
13464
13465 * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
13466 * config/fp-bit.c: Likewise.
13467
13468 2006-01-03 Daniel Berlin <dberlin@dberlin.org>
13469
13470 * dominance.c: Add comment about why we use DFS numbering
13471 of dominance tree.
13472
13473 2006-01-03 Jakub Jelinek <jakub@redhat.com>
13474 Richard Henderson <rth@redhat.com>
13475
13476 Merge from gomp-branch:
13477 * varasm.c (assemble_variable): Handle thread-local COMMON data.
13478 * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
13479
13480 2006-01-03 Paolo Bonzini <bonzini@gnu.org>
13481
13482 PR rtl-optimization/25578
13483 * combine.c (combine_simplify_rtx, force_to_mode): Don't
13484 pass a parameter to simplify_shift_const if changing ASHIFTRT
13485 to LSHIFTRT.
13486
13487 2006-01-03 Adrian Straetling <straetling@de.ibm.com>
13488
13489 * builtins.c (get_builtin_sync_mem): New function.
13490 (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
13491 expand_builtin_lock_test_and_set, expand_builtin_lock_release):
13492 Call get_builtin_sync_mem to generate mem rtx.
13493
13494 2006-01-03 Richard Guenther <rguenther@suse.de>
13495
13496 PR c/25183
13497 * stmt.c (add_case_node): Make sure to clear overflow flags
13498 from ranges.
13499
13500 2006-01-03 Jakub Jelinek <jakub@redhat.com>
13501
13502 Merge from gomp-branch.
13503 * config/sparc/sync.md: New file.
13504 * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
13505 UNSPECV_LDSTUB): New constants.
13506 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
13507 * config/sparc/predicates.md (memory_reg_operand): New predicate.
13508 * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
13509 prototype.
13510
13511 2006-01-03 Roger Sayle <roger@eyesopen.com>
13512
13513 * combine.c (reg_subword_p): New predicate to test whether the
13514 destination of a set refers to a subword/piece of a register.
13515 (try_combine): Generalize the code to merge the setting of a
13516 pseudo to a constant followed by a set of a subword of that
13517 register to a constant.
13518
13519 2006-01-03 Kazu Hirata <kazu@codesourcery.com>
13520
13521 * basic-block.h (control_flow_graph): Change the type of
13522 x_label_to_block_map to VEC(basic_block,gc) *.
13523 * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
13524 set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
13525
13526 * tree-ssa-propagate.c (cfg_blocks): Change the type to
13527 VEC(basic_block,heap) *.
13528 (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
13529 ssa_prop_fini): Adjust the uses of cfg_blocks.
13530
13531 2006-01-03 Steven Bosscher <stevenb.gcc@gmail.com>
13532
13533 * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
13534 COMPONENT_REFs.
13535 * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
13536 hashing trees instead of a pointer hash.
13537 (mem_attrs_htab_eq): Do a deep compare instead of a pointer
13538 compare for MEM_EXPR.
13539
13540 PR rtl-optimization/25130
13541 * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
13542 when comparing MEMs for GCSE
13543
13544 2006-01-03 Ben Elliston <bje@au.ibm.com>
13545
13546 * targhooks.h (default_decimal_float_supported_p): Declare.
13547 * targhooks.c (default_decimal_float_supported_p): Define.
13548 * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
13549 `default_decimal_float_supported_p'.
13550 * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
13551
13552 2006-01-02 Adam Nemet <anemet@caviumnetworks.com>
13553
13554 * combine.c (apply_distributive_law <SUBREG>): Check
13555 TRULY_NOOP_TRUNCATION.
13556
13557 2006-01-02 Geoffrey Keating <geoffk@apple.com>
13558
13559 * dwarf2out.c (have_switched_text_section): Delete.
13560 (have_multiple_function_sections): New.
13561 (have_location_lists): Make 'bool'.
13562 (add_AT_loc_list): Use 'true' not '1'.
13563 (dwarf2out_switch_text_section): Set have_multiple_function_sections.
13564 (output_loc_list): Use have_multiple_function_sections.
13565 (output_ranges): Likewise.
13566 (dwarf2out_begin_function): Set have_multiple_function_sections if
13567 necessary.
13568 (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
13569 Check function_section rather than DECL_SECTION_NAME.
13570 (dwarf2out_finish): Use have_multiple_function_sections.
13571 Don't clear have_location_lists.
13572
13573 2006-01-02 Eric Botcazou <ebotcazou@adacore.com>
13574 Jan Hubicka <jh@suse.cz>
13575
13576 * cfglayout.c (fixup_reorder_chain): Remove kludge for the
13577 case of conditional jump jumping to the next instruction.
13578 * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
13579 cases of conditional jump jumping to the next instruction.
13580
13581 2006-01-02 Jan Hubicka <jh@suse.cz>
13582
13583 * i386.c (*_cost): Add COSTS_N_INSNS.
13584 (ix86_rtx_costs): Do not use COSTS_N_INSNS.
13585
13586 2006-01-02 Paolo Bonzini <bonzini@gnu.org>
13587
13588 PR target/25259
13589 * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
13590
13591 2006-01-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13592
13593 * config/arm/arm.c (all_fpus): Fix comment typo.
13594 * config/darwin.c: Likewise.
13595 * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
13596 * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
13597 * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
13598
13599 2006-01-01 David Edelsohn <edelsohn@gnu.org>
13600
13601 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
13602 (rs6000_split_compare_and_swapqhi): New.
13603 * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
13604 (sync_compare_and_swapqhi_internal): New.
13605 * config/rs6000/rs6000-protos.h: Declare.