]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
re PR tree-optimization/19097 (Quadratic behavior with many sets for the same registe...
[thirdparty/gcc.git] / gcc / ChangeLog
1 2005-10-31 Andrew MacLeod <amacleod@redhat.com>
2
3 PR tree-optimization/19097
4 * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
5
6 2005-10-31 J"orn Rennecke <joern.rennecke@st.com>
7
8 * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
9
10 2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
11
12 PR middle-end/23492
13 * tree-inline.c (setup_one_parameter): If the init_stmt
14 is NULL, don't insert the statement.
15
16 2005-10-30 Jan Hubicka <jh@suse.cz>
17
18 PR tree-optimization/24172
19 * tree-inline.c (copy_body_r): Unshare the substituted value first.
20
21 2005-10-30 Hans-Peter Nilsson <hp@bitrange.com>
22
23 * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
24 constants for hosts with long != 32 bits.
25
26 2005-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
27
28 PR middle-end/24093
29 * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
30
31 2005-10-28 Aldy Hernandez <aldyh@redhat.com>
32
33 * config/ms1/ms1.h (TARGET_MS1_64_001): New.
34 (TARGET_MS1_16_002): New.
35 (TARGET_MS1_16_003): New.
36
37 * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
38 ("*decrement_and_branch_until_zero_no_clobber"): New.
39 Add corresponding splitter for decrement_and_branch_until_zero
40 instruction.
41 Key all decrement_and_branch_until_zero patterns off of
42 TARGET_MS1_16_003.
43
44 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
45
46 PR middle-end/24362
47 * tree-complex.c (extract_component): Treat RESULT_DECL
48 like the rest of the decls.
49
50 2005-10-25 Eric Botcazou <ebotcazou@adacore.com>
51
52 * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
53 indirect call to _mcount if the function needs a static chain.
54
55 2005-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
56 Caroline Tice <ctice@apple.com>
57
58 PR rtl-optimization/24460
59 * dwarf2out.c (have_switched_text_sections): New boolean variable.
60 (dwarf2out_switch_text_section): Set it to true instead of
61 incrementing separate_line_info_table_in_use.
62 (output_loc_list): Additionally test have_switched_text_sections.
63 (output_ranges): Likewise.
64 (dwarf2out_finish): Likewise.
65 * varasm.c (assemble_start_function): Do not call
66 insert_section_boundary_note.
67 (assemble_end_function): If flag_reorder_blocks_and_partition,
68 switch to the function's section before emitting the .size directive.
69 * bb-reorder.c (insert_section_boundary_note): Staticify.
70 (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
71 * output.h (insert_section_boundary_note): Delete.
72
73 2005-10-24 Andrew Pinski <pinskia@physics.uc.edu>
74
75 PR c/23103
76 * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
77 instead of pointer equality when comparing types.
78
79 2005-10-24 James E. Wilson <wilson@specifix.com>
80
81 * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
82 add_dependence_list_and_free calls.
83
84 2005-10-24 Steven Bosscher <stevenb@suse.de>
85
86 * contrib.texi: Add the names of the LLNL folks who donated
87 Cray pointer support for gfortran.
88
89 2005-10-24 Steven Bosscher <stevenb@suse.de>
90
91 PR tree-optimization/24225
92 * profile.c (branch_prob): Look from end to start through a
93 basic block when looking for a locus.
94
95 2005-10-24 Richard Henderson <rth@redhat.com>
96
97 * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
98 parallel.
99 (hppa_expand_prologue): Likewise.
100
101 2005-10-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
102
103 * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
104 (NO_DEFERRED_PROFILE_COUNTERS): Define.
105 * pa.h (NO_PROFILE_COUNTERS): Define.
106 * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
107 (funcdef_nos): New vector to hold label numbers of deferred profile
108 counters.
109 (output_deferred_profile_counters): New function.
110 (hppa_profile_hook): Push label number onto funcdef_nos.
111 (pa_hpux_file_end): Call output_deferred_profile_counters if
112 NO_DEFERRED_PROFILE_COUNTERS is false.
113
114 * pa-protos.h (get_deferred_plabel): New prototype.
115 * pa.c (get_plabel): Rename to get_deferred_plabel. Return plabel.
116 Make global.
117 (output_call): Adjust calls.
118
119 2005-10-24 Alan Modra <amodra@bigpond.net.au>
120
121 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
122 peculiarity of GOT/TOC section usage.
123
124 2005-10-23 Andrew Pinski <pinskia@physics.uc.edu>
125
126 PR objc/24435
127 * c-common.c (constant_string_class_name): Add documentation.
128
129 2005-10-23 Kaz Kojima <kkojima@gcc.gnu.org>
130
131 PR target/23832
132 * recog.c (peephole2_optimize): Increment peep2_current_count
133 only when the slot is empty.
134
135 2005-10-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
136
137 PR ada/23957
138 * except.c (output_function_exception_table): Call
139 assemble_external_libcall if we need a personality function.
140
141 2005-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
142
143 PR rtl-optimization/24460
144 * bb-reorder.c (fix_crossing_unconditional_branches): Do not
145 set the basic block for barriers.
146
147 2005-10-21 Janis Johnson <janis187@us.ibm.com>
148
149 * var-tracking.c (vt_initialize): Initialize post.
150
151 2005-10-21 Devang Patel <dpatel@apple.com>
152
153 PR/24220
154 * c-common.c (vector_types_convertible_p): Check vector element type.
155
156 2005-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
157
158 * config/sh/sh.c (prepare_move_operands): Handle the address
159 constant which is a tls symbolic address plus a constant.
160
161 2005-10-21 Andrew Pinski <pinskia@physics.uc.edu>
162
163 PR driver/24473
164 * gcc.c (main): Use the correct counter for erroring out
165 about mulitple files.
166
167 2005-10-21 Alan Modra <amodra@bigpond.net.au>
168
169 PR target/24465
170 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
171 use r2 for 64-bit tls .got access.
172
173 2005-10-21 Paolo Bonzini <bonzini@gnu.org>
174
175 * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
176 TRUTH_OR_EXPR.
177
178 2005-10-20 Steven Bosscher <stevenb@suse.de>
179
180 PR tree-optimization/24307
181 * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
182
183 2005-10-20 Alexandre Oliva <aoliva@redhat.com>
184
185 PR middle-end/24295
186 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
187 alias targets.
188 * varasm.c (find_decl_and_mark_needed): After cgraph global info
189 is ready, stop marking functions, but still mark variables.
190
191 2005-10-20 Richard Guenther <rguenther@suse.de>
192
193 PR c++/24439
194 * fold-const.c (invert_truthvalue): Handle COND_EXPR with
195 void type operands.
196
197 2005-10-20 Eric Botcazou <ebotcazou@libertysurf.fr>
198
199 PR rtl-optimization/23585
200 * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
201 (rtx_addr_can_trap_p): ... here. Invoke rtx_addr_can_trap_p_1.
202 (may_trap_p_1): New predicate extracted from...
203 (may_trap_p): ... here. Invoke may_trap_p_1.
204 (may_trap_or_fault_p): New predicate.
205 * rtl.h (may_trap_or_fault_p): Declare it.
206 * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
207 instead of may_trap_p.
208 (steal_delay_list_from_fallthrough): Likewise.
209 (fill_simple_delay_slots): Likewise.
210 (fill_slots_from_thread): Likewise.
211 * function.c (pad_to_arg_alignment): Rework comment about
212 SPARC_STACK_BOUNDARY_HACK.
213 * config/sparc/sparc.h: Likewise.
214
215 2005-10-19 Adrian Straetling <straetling@de.ibm.com>
216
217 * config/s390/s390.c (s390_expand_insv): New.
218 * config/s390/s390-protos.h (s390_expand_insv): Declare.
219 * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
220 ("icm_hi"): Remove mode attribute.
221 ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
222 Adjust all uses.
223 ("*extracthi", "*extractqi"): Remove.
224 (extv<mode>", "*extzv<mode>"): New.
225 ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
226 "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
227
228 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
229
230 * cfgexpand.c (discover_nonconstant_array_refs_r,
231 discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
232 (tree_expand_cfg): Call discover_nonconstant_array_refs.
233 * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
234 discover_nonconstant_array_refs.
235
236 2005-10-19 Steven Bosscher <stevenb@suse.de>
237
238 PR c/23228
239 * c-decl.c (pop_scope): Don't warn about an unused variable
240 if it is marked with TREE_NO_WARNING.
241 (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
242 somenow mismatch and olddecl is to be replaced.
243
244 2005-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
245
246 PR middle-end/23199
247 * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
248 whether registers live on the edge can be saved/restored.
249
250 2005-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
251
252 * config/sh/sh.c (fixup_mova): Skip notes.
253
254 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
255
256 * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
257 * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
258 (s390_can_eliminate): Handle BASE_REGNUM elimination.
259 (s390_initial_elimination_offset): Likewise.
260 (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
261 register on TARGET_ZARCH targets.
262 * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
263 (INITIAL_FRAME_POINTER_OFFSET): Remove.
264 (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
265 (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
266
267 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
268
269 * config/s390/s390.md: Comment describing output modifiers updated.
270 * config/s390/s390.c (print_operand): Likewise.
271
272 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
273
274 * config/s390/s390.c (override_options): Added check for -mstack-size
275 64k limitation.
276 * doc/invoke.texi: Mention that limit in the documenation.
277
278 2005-10-18 Paolo Bonzini <bonzini@gnu.org>
279
280 PR #19672
281 * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
282
283 2005-10-18 Daniel Berlin <dberlin@dberlin.org>
284
285 Fix PR tree-optimization/24231
286
287 * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
288 (compute_avail): Ditto.
289
290 2005-10-18 Richard Henderson <rth@redhat.com>
291
292 PR target/24428
293 * config/i386/i386.c (legitimate_constant_p): Check
294 SYMBOL_REF_TLS_MODEL directly. Don't fallthru to SYMBOL_REF
295 if LABEL_REF.
296 (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
297 (legitimate_pic_address_disp_p): Reorg CONST checking to make
298 sure SYMBOL_REF_TLS_MODEL is tested. Test SYMBOL_REF_TLS_MODEL
299 directly.
300 (print_operand_address): Likewise.
301 * config/i386/predicates.md (x86_64_immediate_operand): Test
302 SYMBOL_REF_TLS_MODEL properly inside CONST.
303 (x86_64_zext_immediate_operand): Likewise.
304 (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
305 initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
306 * config/i386/i386-protos.h: Remove predicates.md entries.
307
308 2005-10-18 Danny Smith <dannysmith@users.sourceforge.net>
309
310 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
311 Check that elements of TYPE_METHODS are FUNCTION_DECLs.
312
313 2005-10-17 Alexey Starovoytov <alexey.starovoytov@sun.com>
314 Ian Lance Taylor <ian@airs.com>
315
316 PR middle-end/23522
317 * fold-const.c (fold_widened_comparison): Do not allow range based
318 constant folding when right operand cannot be unwidened.
319
320 2005-10-17 Richard Henderson <rth@redhat.com>
321
322 * builtins.c (expand_builtin_synchronize): Build a new-style asm
323 with a memory clobber.
324
325 2005-10-17 James E Wilson <wilson@specifix.com>
326
327 PR rtl-optimization/17356
328 * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
329 checking for EDGE_EH.
330
331 2005-10-17 Eric Botcazou <ebotcazou@libertysurf.fr>
332
333 * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
334 the slot on an even boundary for any type with 16-byte alignment.
335
336 2005-10-17 Hans-Peter Nilsson <hp@axis.com>
337
338 PR target/23424
339 * md.texi (Modifiers) <%>: Clarify that % doesn't work
340 after register allocation.
341
342 2005-10-17 DJ Delorie <dj@redhat.com>
343
344 * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
345 as frame related.
346
347 2005-10-17 Nathan Sidwell <nathan@codesourcery.com>
348
349 PR c++/22551
350 * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
351 overflow flags.
352
353 2005-10-17 Kaz Kojima <kkojima@gcc.gnu.org>
354
355 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
356 to 2 if it's already non-zero.
357 (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
358 is set and warn about it if flag_schedule_insns is 1.
359
360 2005-10-17 Paul Woegerer <paul.woegerer@nsc.com>
361
362 * config/crx/crx.md: Compare-and-branch instructions need to
363 invalidate CC.
364
365 2005-10-17 Uros Bizjak <uros@kss-loka.si>
366
367 PR target/24315
368 * config/i386/i386.md (*pushdi2_rex64 splitter)
369 (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
370 (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
371 flow2 pass only when (optimize > 0 && flag_peephole2).
372
373 2005-10-16 Andrew Pinski <pinskia@physics.uc.edu>
374
375 PR driver/22544
376 * gcc.c (have_c): New static variable.
377 (have_o): Likewise.
378 (process_command): Remove declation of have_c.
379 Set have_o to 1 when handling -o.
380 (main): Add a fatel error if there are multiple
381 files specified and -o and -c/-S is passed witout
382 -combine or multiple languages.
383
384 2005-10-16 Daniel Berlin <dberlin@dberlin.org>
385
386 Fix PR tree-optimization/22444
387 * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
388 Assert that we don't hit something with subvars.
389 (setup_pointers_and_addressables): Don't add things with subvars,
390 because we'll already process the subvars for aliasing purposes.
391
392 2005-10-16 Hans-Peter Nilsson <hp@axis.com>
393
394 PR target/23424
395 * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
396 ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
397 ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
398 ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
399 ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
400 swapped, alternatives for the R constraint.
401
402 PR middle-end/24341
403 * builtins.c (get_builtin_sync_mode): Make unlimited
404 mode_for_size request.
405
406 2005-10-15 Richard Henderson <rth@redhat.com>
407
408 * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
409 (gimplify_expr): ... here.
410 (gimplify_compound_lval): Use it in initial scan loop. Allow
411 fb_lvalue in base expression.
412
413 2005-10-15 Richard Henderson <rth@redhat.com>
414
415 PR 23714
416 * builtins.c (expand_builtin_trap): Export.
417 * expr.h (expand_builtin_trap): Declare.
418 * expr.c (expand_assignment): Emit a trap for integral offsets
419 from registers that weren't reduced to bitpos.
420
421 * tree-cfg.c (mark_array_ref_addressable_1): Remove.
422 (mark_array_ref_addressable): Remove.
423 * tree-flow.h (mark_array_ref_addressable): Remove.
424 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
425
426 2005-10-15 James E Wilson <wilson@specifix.com>
427
428 PR target/24232
429 * sched-deps.c (add_dependence_list): New arg UNCOND. Fix all callers.
430 (add_dependence_list_and_free): Likewise.
431 (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
432 call.
433
434 2005-10-15 Diego Novillo <dnovillo@redhat.com>
435
436 PR 23141
437 PR 23142
438 * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
439 sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
440 anti-range.
441 (vrp_visit_phi_node): Only prevent infinite iterations when
442 the previous result and the new result are both VR_RANGEs.
443
444 2005-10-15 Ranjit Mathew <rmathew@gcc.gnu.org>
445
446 * tree-into-ssa.c (mark_def_sites): Correct minor typo in
447 function comment.
448
449 2005-10-14 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
450
451 PR c/23439
452 * c-parser.c (c_parser_for_statement): Use location of RID_FOR
453 to initialize loc.
454
455 2005-10-14 Per Bothner <per@bothner.com>
456
457 PR preprocessor/21250
458 * c-ppoutput.c (print_line): Print internal line 0 as 1.
459
460 2005-10-14 Nathan Sidwell <nathan@codesourcery.com>
461
462 PR c++/22551
463 * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
464 overflow flags. Refactor some conditionals.
465
466 2005-10-13 Andrew Pinski <pinskia@physics.uc.edu>
467
468 PR tree-opt/21304
469 * tree-dfa.c (add_referenced_var): Only look at decls which
470 have TREE_CONSTANT or TREE_READONLY set instead of if
471 !TREE_PUBLIC or !TREE_CONSTANT.
472
473 2005-10-13 James E Wilson <wilson@specifix.com>
474
475 * doc/invoke.texi: For -x, add f95-cpp-input.
476 * doc/install.texi: For --enable-languages doc, change f95 to fortran.
477
478 2005-10-12 Sebastian Pop <pop@cri.ensmp.fr>
479
480 PR tree-optimization/24262
481 * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
482 in loop all the time.
483
484 2005-10-12 Richard Henderson <rth@redhat.com>
485
486 PR c/24255
487 * tree.h (DECL_TRANSPARENT_UNION): Remove.
488 * function.c (assign_parm_find_data_types): Don't support it.
489 * print-tree.c (print_node): Likewise.
490 * c-common.c (handle_transparent_union_attribute): Likewise.
491 Use build_duplicate_type.
492 * tree-inline.c (remap_type_1): Split out of remap_type;
493 properly remap aggregate fields.
494 (build_duplicate_type): New.
495 * doc/extend.texi (Variable Attributes): Remove documentation
496 for transparent_union.
497
498 2005-10-12 Eric Botcazou <ebotcazou@libertysurf.fr>
499
500 PR target/24284
501 * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
502 (gen_stack_pointer_dec): Likewise.
503
504 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
505
506 PR middle-end/21275
507 PR middle-end/21766
508 * target.h (struct gcc_target): Add valid_dllimport_attribute_p
509 target hook.
510 (struct cxx): Add adjust_class_at_definition target hook.
511 * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
512 defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
513 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
514 hook_void_tree. Add to TARGET_CXX.
515 * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
516 dllimport_flag.
517 (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
518 * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
519 instead of attribute. Check for dllexport override. Warn if
520 inconsistent dll linkage. Don't lose old dllimport if decl has
521 had address referenced. Tweak lookup of dllimport atribute.
522 (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
523 for target specific rules. Don't add dllimport attribute if
524 DECL_DECLARED_INLINE_P. Set DECL_DLLIMPORT_P when adding
525 dllimport attribute.
526 (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
527 * varasm.c (initializer_constant_valid_p): Replace
528 DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
529
530 PR target/21801
531 PR target/23589
532 * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
533 'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
534 (i[34567]86-*-mingw32*): Likewise.
535
536 * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
537 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
538
539 * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
540 C++-specific code. Change return value to bool.
541 (i386_pe_dllimport_p): Likewise.
542 (associated_type): Simplify and make language-independent
543 (i386_pe_encode_section_info): Replace override of ambiguous
544 dllimport symbol refs with a gcc_assert.
545 (i386_pe_valid_dllimport_attribute_p): Define.
546 * config/i386/winnt-cxx.c: New file. Define C++ versions of
547 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
548 i386_pe_adjust_class_at_definition.
549 * config/i386/winnt-stubs.c: New file. Define stub versions of
550 lang-specific functions.
551 * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
552 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
553 i386_pe_adjust_class_at_definition.
554 (i386_pe_valid_dllimport_attribute_p): Declare.
555 * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
556 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
557 * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
558
559 PR target/19704
560 * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
561 dllimport attribute with test of DECL_DLLIMPORT_P.
562
563 2005-10-12 Adrian Straetling <straetling@de.ibm.com>
564
565 * combine.c (make_extraction): Correct offset computation.
566
567 2005-10-12 Hans-Peter Nilsson <hp@axis.com>
568
569 * config/cris/t-linux (LIMITS_H_TEST): Define.
570
571 2005-10-12 Richard Henderson <rth@redhat.com>
572
573 PR rtl-opt/23324
574 * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
575
576 2005-10-12 Richard Guenther <rguenther@suse.de>
577
578 * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
579
580 2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
581
582 PR c++/19964
583 * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
584 DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
585 type.
586
587 2005-10-12 Richard Guenther <rguenther@suse.de>
588
589 PR c++/23799
590 * varasm.c (output_constant): Correct typo from previous
591 patch by DJ.
592
593 2005-10-11 Ian Lance Taylor <ian@airs.com>
594
595 PR rtl-optimization/13931
596 * combine.c: Revert patch of 2003-05-14, and:
597 (try_combine): Only set elim_i1 and elim_i2 if the destination is
598 completely killed in the appropriate insn.
599 (distribute_notes): Don't skip multiple hard register test for
600 elim_i1 and elim_i2.
601
602 2005-10-11 Richard Henderson <rth@redhat.com>
603
604 PR c/24255
605 * c-typeck.c (convert_for_assignment): Use build_constructor_single
606 to initialize a transparent union instead of a nop_expr.
607
608 2005-10-11 Richard Henderson <rth@redhat.com>
609
610 * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
611 * tree-ssa-dce.c: Include tree-scalar-evolution.h.
612 (tree_ssa_dce_loop): Call scev_reset.
613
614 PR tree-opt/24300
615 * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
616 * tree-ssa-dce.c: Include cfgloop.h.
617 (tree_ssa_dce_loop, pass_dce_loop): New.
618 * tree-pass.h (pass_dce_loop): Declare it.
619 * passes.c (init_optimization_passes): Use it.
620
621 2005-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
622
623 PR middle-end/24263
624 * convert.c (convert_to_real): Revert 2005-10-05 patch.
625 Only apply the optimization for rounding builtins if the inner
626 cast is also an extension.
627
628 2005-10-11 Andrew Pinski <pinskia@physics.uc.edu>
629
630 PR tree-opt/23946
631 * tree-ssa-ccp.c (execute_fold_all_builtins): Call
632 mark_new_vars_to_rename instead of update_stmt.
633
634 2005-10-11 Bernd Schmidt <bernd.schmidt@analog.com>
635
636 * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
637
638 2005-10-11 Jakub Jelinek <jakub@redhat.com>
639
640 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
641 for setting MMX register to 0 rather than mmx.
642
643 2005-10-10 Steve Ellcey <sje@cup.hp.com>
644
645 PR target/12098
646 * configure.ac: Move gas check from mips specific case to common case.
647 Do check for GNU as for mips*-*-* and *-*-hpux* targets.
648 * configure: Regenerate
649 * doc/install.texi: Update.
650
651 2005-10-10 Eric Botcazou <ebotcazou@libertysurf.fr>
652
653 PR target/24284
654 * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
655
656 2005-10-10 Maciej W. Rozycki <macro@linux-mips.org>
657
658 * gcc.c (do_spec_1): Accept numeric characters in file name
659 suffixes.
660
661 2005-10-10 Nick Clifton <nickc@redhat.com>
662
663 * config/arm/arm.c: Remove extraneous whitespace. Remove comment
664 describing the deleted arm_gen_rotated_half_load function.
665
666 2005-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
667
668 * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
669 __fpscr_values.
670
671 2005-10-09 Daniel Jacobowitz <dan@codesourcery.com>
672
673 * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
674 gnu_ld assignments.
675 * config/arm/t-linux-eabi (LIB1ASMFUNCS)
676 (EXTRA_MULTILIB_PARTS): Define.
677 * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
678 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
679 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
680 * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
681 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
682 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
683
684 2005-10-09 Zdenek Dvorak <dvorakz@suse.cz>
685
686 PR tree-optimization/24226
687 * tree-cfg.c (remove_bb): Clean up unreachable loops.
688 * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
689 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
690 Export.
691
692 2005-10-09 Eric Botcazou <ebotcazou@libertysurf.fr>
693
694 * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
695
696 2005-10-08 Andrew Pinski <pinskia@physics.uc.edu>
697
698 PR target/24136
699 * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
700 Rewrite for no need for the early clobber.
701
702 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
703
704 Merge from csl-arm-branch:
705 2005-09-07 Paul Brook <paul@codesourcery.com>
706 * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
707 space to string.
708
709 2005-04-30 Paul Brook <paul@codesourcery.com>
710 * config/arm/bpabi.h (TARGET_DEFAULT): Define.
711 * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
712
713 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
714 * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
715 (arm_override_options): Use TARGET_AAPCS_BASED.
716 * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
717 (PTRDIFF_TYPE): Use int for AAPCS.
718 (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
719 * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
720 (DEFAULT_SHORT_ENUMS): Delete.
721 * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
722
723 2004-12-15 Daniel Jacobowitz <dan@codesourcery.com>
724 * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
725 * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
726 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
727
728 2004-12-03 Mark Mitchell <mark@codesourcery.com>
729 * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
730
731 2004-11-22 Mark Mitchell <mark@codesourcery.com>
732 * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
733
734 2004-11-19 Mark Mitchell <mark@codesourcery.com>
735 * config.gcc (arm*-*-linux-gnueabi): Add it.
736 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
737 redefining it.
738 (TARGET_OS_CPP_BUILTINS): Likeiwse.
739 * config/arm/linux-eabi.h: New file.
740 * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
741 (LINUX_TARET_LINK_SPEC): Likewise.
742 (LINK_SPEC): Use it.
743 * config/arm/t-linux-eabi: New file.
744
745 2005-10-08 Steven Bosscher <stevenb@suse.de>
746
747 PR other/22202
748 * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
749 spaces.
750 (PARAM_SMS_DFA_HISTORY): Likewise.
751
752 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
753
754 PR middle-end/23150
755 * calls.c (mem_overlaps_already_clobbered_arg_p): New.
756 (load_register_parameters): Call it.
757 (check_sibcall_argument_overlap_1): Likewise.
758 (store_one_arg): Likewise.
759
760 2005-10-07 James E. Wilson <wilson@specifix.com>
761
762 * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
763 DImode not VECINT24 for operand 2.
764
765 PR target/23644
766 * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
767 -mtune-arch.
768
769 PR target/24193
770 * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
771 fr_spill): Use destination_operand for operand 0.
772
773 2005-10-07 DJ Delorie <dj@redhat.com>
774
775 * varasm.c (output_constant): Limit error to expanding
776 conversions.
777
778 2005-10-07 Richard Guenther <rguenther@suse.de>
779
780 PR middle-end/24227
781 * fold-const.c (fold_binary): Fix operand types during folding
782 of X op (A, Y). Evaluation order of the side-effects of
783 X and A are frontend-defined, so ensure we honour that even for
784 tcc_comparison class operands; eased by removing duplicate code.
785
786 2005-10-07 Steve Ellcey <sje@cup.hp.com>
787
788 * stor-layout.c (layout_type): Do not allow alignment of array
789 elements to be greater than their size.
790
791 2005-10-07 Steve Ellcey <sje@cup.hp.com>
792
793 * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
794 host_xmake_file.
795 (hppa*-*-linux*): Ditto.
796 (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
797 * config/host-hpux.c: New.
798 * config/x-hpux: New.
799 * config/pa/x-hpux: Remove.
800 * config/pa/x-linux: Remove.
801 * config/pa/pa-host.c: Remove.
802
803 2005-10-07 Jeff Law <law@redhat.com>
804
805 * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
806 determine whether or not to try and thread outgoing edges.
807
808 2005-10-07 David Edelsohn <edelsohn@gnu.org>
809
810 * config/rs6000/rs6000.md (eqsi_power): New.
811 (neg_eq0si): Add TARGET_POWER to final condition.
812 (neg_eqsi): Same.
813
814 2005-10-06 Richard Henderson <rth@redhat.com>
815
816 * config/rs6000/rs6000.c: Revert last change.
817
818 2005-10-06 Richard Henderson <rth@redhat.com>
819
820 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
821 (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
822
823 2005-10-06 Andrew Pinski <pinskia@physics.uc.edu>
824
825 PR middle-end/22216
826 PR middle-end/23651
827 * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
828 out return_label and naked_return_label.
829
830 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
831
832 * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
833 change.
834
835 2005-10-06 Richard Henderson <rth@redhat.com>
836
837 PR tree-opt/22237
838 * tree-inline.c (declare_return_variable): Handle modify_dest not
839 being a DECL.
840
841 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
842
843 Fix PR tree-optimization/22488
844 * tree-ssa-structalias.c (check_for_overlaps): New function.
845 (create_variable_info_for): Use it.
846
847 2005-10-06 Richard Henderson <rth@redhat.com>
848
849 PR debug/24070
850 * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
851 (dwarf2out_start_source_file): Print it.
852
853 2005-10-06 Geoffrey Keating <geoffk@apple.com>
854
855 * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
856
857 2005-10-06 Richard Henderson <rth@redhat.com>
858
859 PR 23706
860 * mode-switching.c (optimize_mode_switching): Clear transp bit
861 for block with incomming abnormal edges.
862
863 * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
864 (fpscr_set_from_mem): Use them.
865 * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
866 (fpscr postinc splitters): Rewrite as peephole2+split.
867
868 2005-10-06 David Edelsohn <edelsohn@gnu.org>
869
870 * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
871 (eq<mode>_compare): Same.
872
873 2005-10-06 Richard Guenther <rguenther@suse.de>
874
875 PR tree-optimization/24238
876 * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
877
878 2005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
879
880 * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
881 here. Use AC_PATH_PROG for environment variables instead of
882 test -x.
883 * configure.ac: Update calls to gcc_AC_CHECK_TOOL. Use it for
884 objdump also.
885 * configure: Regenerated.
886
887 2005-10-06 Richard Earnshaw <richard.earnshaw@arm.com>
888
889 PR target/23783
890 * arm.md (call): If the address isn't a SYMBOL_REF or a register,
891 then force it into a register.
892 (call_value): Likewise.
893
894 2005-10-06 Richard Henderson <rth@redhat.com>
895
896 PR 24049
897 * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
898 under pass_vectorize. Clear TODO_ggc_collect from the dce pass
899 under pass_vectorize.
900
901 2005-10-05 Devang Patel <dpatel@apple.com>
902
903 PR Debug/23205
904 * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
905 handling constants. Check NAMESPACE_DECL context for constants.
906
907 2005-10-05 Eric Christopher <echristo@apple.com>
908
909 * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
910
911 2005-10-05 Richard Henderson <rth@redhat.com>
912
913 PR 23714
914 * tree-cfg.c (mark_array_ref_addressable_1): New.
915 (mark_array_ref_addressable): New.
916 * tree-flow.h (mark_array_ref_addressable): Declare.
917 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
918
919 2005-10-05 Andrew Pinski <pinskia@physics.uc.edu>
920
921 PR middle-end/20606
922 PR middle-end/24069
923 * reload.c (subst_reloads): When adding a REG_LABEL to a
924 jump instruction, also update JUMP_LABEL.
925
926 2005-10-05 David Edelsohn <edelsohn@gnu.org>
927
928 * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
929 * bb-reorder.c (copy_bb_p): Use it.
930 * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
931
932 2005-10-05 Richard Henderson <rth@redhat.com>
933
934 PR target/23602
935 * toplev.c (process_options): Warn about unsupported combinations
936 of unwind tables and omit-frame-pointer.
937 * config/i386/i386.c (override_options): Similarly. Enable
938 accumulate-outgoing-args if not explicitly disabled.
939
940 2005-10-05 Steve Ellcey <sje@cup.hp.com>
941
942 * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
943 Handle big endian vs. small endian.
944 (vec_initv2sf): Handle big endian vs. small endian.
945 (*vec_extractv2sf_1): Ditto.
946
947 2005-10-05 Dale Johannesen <dalej@apple.com>
948
949 * convert.c (convert_to_real): Don't convert
950 (float)floor(double d) to floorf((float)d).
951
952 2005-10-05 Daniel Jacobowitz <dan@codesourcery.com>
953
954 * config/arm/arm.md (insv): Use gen_int_mode in more places.
955
956 2005-10-05 Andrew MacLeod <amacleod@redhat.com>
957
958 PR tree-optimization/18587
959 * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
960 (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
961 build_vuses): Change to VEC type.
962 (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
963 opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
964 opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
965 opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
966 (get_name_decl): New. Return DECL_UID of base variable.
967 (operand_build_cmp): New. qsort comparison routine.
968 (operand_build_sort_virtual): New. Sort virtual build vector.
969 (init_ssa_operands, fini_ssa_operands): Use VEC routines.
970 (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
971 (FINALIZE_BASE): Use get_name_decl.
972 (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
973 finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
974 (start_ssa_stmt_operands, append_def, append_use, append_vuse,
975 append_v_may_def, append_v_must_def): Replace opbuild_* routines with
976 direct VEC_* manipulations.
977 (build_ssa_operands): Call operand_build_sort_virtual.
978 (copy_virtual_operand, create_ssa_artficial_load_stmt,
979 add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
980 with direct VEC_* manipulations.
981 * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
982 with direct VEC manipulations.
983
984 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
985
986 PR tree-optimization/21419
987 PR tree-optimization/24146
988 PR tree-optimization/24151
989
990 * c-typeck.c (readonly_error): Handle USE being lv_asm.
991 (build_asm_expr): Call it if outputs are read-only.
992 * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
993
994 2005-10-05 Billy Biggs <billy.biggs@gmail.com>
995 Paolo Bonzini <bonzini@gnu.org>
996
997 PR target/23809
998
999 * doc/extend.texi (x86 Built-ins): Document that -msse and friends
1000 enable the instructions and not just the built-ins.
1001 * doc/invoke.texi (x86 Options): Likewise.
1002
1003 2005-10-04 Geoffrey Keating <geoffk@apple.com>
1004
1005 * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
1006
1007 * doc/invoke.texi (Option Summary): Correct spelling
1008 of -mmacosx-version-min.
1009
1010 2005-10-04 Devang Patel <dpatel@apple.com>
1011
1012 * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
1013 real types.
1014
1015 2005-10-04 Steve Ellcey <sje@cup.hp.com>
1016
1017 * tree-vect-transform.c (vect_create_epilog_for_reduction):
1018 Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
1019
1020 2005-10-04 Adrian Straetling <straetling@de.ibm.com>
1021
1022 * config/s390/s390.md ("TDSI","DP"): New mode macros.
1023 ("TE","tg"): New mode attributes.
1024 ("sync_compare_and_swap<mode>"): Replace with a define_expand.
1025 ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
1026 ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
1027 dword_mode and one for GPRmode.
1028
1029 2005-10-04 Ian Lance Taylor <ian@airs.com>
1030
1031 PR preprocessor/13726
1032 * c-ppoutput.c (cb_include): Add comments parameter, and print out
1033 any comments passed in.
1034
1035 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
1036
1037 * tree.c (annotate_with_file_line): Fix typo.
1038
1039 2005-10-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1040
1041 PR ada/19382
1042 * builtins.c (fold_builtin_memcmp): When constructing the pointer
1043 type used to access data in the inlined length == 1 case, use
1044 build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
1045 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1046
1047 2005-10-04 Uros Bizjak <uros@kss-loka.si>
1048
1049 * config/i386/i386.h (TARGET_FISTTP): Enable also for
1050 TARGET_SSE3 and only for TARGET_80387.
1051 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
1052 (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
1053 Do not depend on TARGET_80387.
1054
1055 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
1056
1057 * tree.c (last_annotated_node): Change type to location_t*.
1058 (annotate_with_file_line): Reflect the change of
1059 last_annotated_node type.
1060
1061 2005-10-04 Richard Guenther <rguenther@suse.de>
1062
1063 PR c/23576
1064 * c-decl.c (grokdeclarator): Don't write to fields
1065 of error_mark_node.
1066
1067 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
1068
1069 PR middle-end/23125
1070 * c-decl.c (finish_decl): Use set_user_assembler_name even for
1071 register variables.
1072 * varasm.c (make_decl_rtl): If a register variable does not
1073 have a set user assmbler name, error out.
1074 Decode the asmspec is now name+1 bypassing '*'.
1075
1076 2005-10-04 Steven Bosscher <stevenb@suse.de>
1077
1078 PR tree-optimization/23049
1079 * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
1080 of a COND_EXPR is folded before calling fold on the whole rhs of a
1081 conditional assignment.
1082 * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
1083 document that a COND_EXPR may appear there.
1084
1085 2005-10-03 Diego Novillo <dnovillo@redhat.com>
1086
1087 PR 23445
1088 * tree-vrp.c (extract_range_from_assert): If the new numeric
1089 range created out of the assertion contradicts the existing
1090 numeric range of the ASSERT_EXPR variable, make the new range
1091 varying.
1092
1093 2005-10-03 Kaz Kojima <kkojima@gcc.gnu.org>
1094
1095 * config/sh/sh.c (sh_register_move_cost): Add case for moving
1096 from T_REGS to FP register class.
1097
1098 2005-10-03 Richard Henderson <rth@redhat.com>
1099
1100 PR 24135
1101 * tree-nested.c (convert_nl_goto_reference): Lookup a translation
1102 before creating a new one.
1103
1104 2005-10-03 David Edelsohn <edelsohn@gnu.org>
1105
1106 * config/rs6000/t-aix43 (LDFLAGS): New.
1107 * config/rs6000/t-aix52 (LDFLAGS): New.
1108
1109 2005-10-03 Ian Lance Taylor <ian@airs.com>
1110
1111 * gimplify.c (find_single_pointer_decl_1): New static function.
1112 (find_single_pointer_decl): New static function.
1113 (internal_get_tmp_var): For a formal variable, set restrict base
1114 information if appropriate.
1115 * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
1116 return it.
1117 * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
1118 (DECL_GET_RESTRICT_BASE): Define.
1119 (SET_DECL_RESTRICT_BASE): Define.
1120 (decl_restrict_base_lookup): Declare.
1121 (decl_restrict_base_insert): Declare.
1122 (struct tree_decl_with_vis): Add based_on_restrict_p field.
1123 * tree.c (restrict_base_for_decl): New static variable.
1124 (init_ttree): Initialize restrict_base_for_decl.
1125 (copy_node_stat): Copy restrict base information.
1126 (decl_restrict_base_lookup): New function.
1127 (decl_restrict_base_insert): New function.
1128 (print_restrict_base_statistics): New static function.
1129 (dump_tree_statistics): Call print_restrict_base_statistics.
1130
1131 2005-10-02 Diego Novillo <dnovillo@redhat.com>
1132
1133 PR 24142
1134 * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
1135 case of anti-ranges.
1136
1137 2005-10-02 Andrew Pinski <pinskia@physics.uc.edu>
1138
1139 PR c/18851
1140 * c-typeck.c (tagged_tu_seen): Rename to ...
1141 (tagged_tu_seen_cache): this and add val field.
1142 (comptypes): Move functional to comptypes_internal
1143 and free tagged_tu_seen.
1144 (comptypes_internal): New function and call comptypes_internal
1145 instead of comptypes. Speed up by sibcalling
1146 tagged_types_tu_compatible_p.
1147 (alloc_tagged_tu_seen): New function
1148 (free_all_tagged_tu_seen_up_to): New function.
1149 (tagged_types_tu_compatible_p): Return the val of the seen two
1150 types.
1151 Add that the two types are the same to tagged_tu_seen_base
1152 if they are and call comptypes_internal instead of comptypes.
1153 <case UNION_TYPE>: Speed up common type where the fields are
1154 in the same order.
1155 (function_types_compatible_p): Call comptypes_internal instead of
1156 comptypes.
1157 (type_lists_compatible_p): Likewise.
1158 (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
1159
1160 2005-10-02 Matthias Klose <doko@debian.org>
1161
1162 * doc/invoke.texi: Fix typo and speling error.
1163
1164 2005-10-01 Richard Henderson <rth@redhat.com>
1165
1166 * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
1167
1168 2005-10-01 Mark Mitchell <mark@codesourcery.com>
1169
1170 * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
1171 using --start-group and --end-group.
1172
1173 2005-10-01 Diego Novillo <dnovillo@redhat.com>
1174
1175 * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
1176 FIXME note regarding quirky semantics.
1177
1178 2005-10-01 Diego Novillo <dnovillo@redhat.com>
1179
1180 PR 24141
1181 * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
1182 non-null range as a last resort.
1183
1184 2005-10-01 James A. Morrison <phython@gcc.gnu.org>
1185 Diego Novillo <dnovillo@redhat.com>
1186
1187 PR 23604
1188 * tree-vrp.c (extract_range_from_assert): For !=
1189 assertions, only build an anti-range if LIMIT is a
1190 single-valued range.
1191
1192 2005-09-30 Richard Earnshaw <richard.earnshaw@arm.com>
1193
1194 * arm.md (movqi): On thumb when optimizing, handle loading from
1195 memory by describing this as taking a subreg of a zero-extended load
1196 into an SImode register.
1197 (movhi): Likewise.
1198
1199 2005-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1200
1201 * reload1.c (merge_assigned_reloads): Do not change any
1202 RELOAD_FOR_OUTPUT_ADDRESS reloads.
1203
1204 2005-09-30 Geoffrey Keating <geoffk@apple.com>
1205
1206 * Makefile.in (LIPO_FOR_TARGET): Define.
1207 (STRIP_FOR_TARGET): Define.
1208
1209 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
1210 before creating new ones. Do symlinks before creating the actual
1211 targets.
1212
1213 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
1214 to work out which multilibs are actually being built.
1215
1216 2005-09-30 Kazu Hirata <kazu@codesourcery.com>
1217
1218 * tree-vect-transform.c, config/ms1/ms1.md,
1219 config/s390/s390.c, config/v850/v850.md: Fix comment typos.
1220 Follow spelling conventions.
1221 * doc/invoke.texi, doc/md.texi: Fix typos.
1222
1223 2005-09-30 Andrew Macleod <amacleod@redat.com>
1224
1225 PR tree-optimization/21430
1226 * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
1227 use operands, and set stmt pointer if need be.
1228 (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
1229 tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
1230 present.
1231
1232 2005-09-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1233
1234 PR middle-end/24053
1235 * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
1236
1237 2005-09-29 Mark Mitchell <mark@codesourcery.com>
1238
1239 * optabs.c (expand_binop): Initialize first_pass_p.
1240
1241 2005-09-29 Jakub Jelinek <jakub@redhat.com>
1242
1243 PR middle-end/24109
1244 * c-decl.c (c_write_global_declarations_1): If any
1245 wrapup_global_declaration_2 call returned true, restart the loop.
1246
1247 2005-09-29 Daniel Berlin <dberlin@dberlin.org>
1248
1249 Fix PR tree-optimization/24117
1250 * tree-ssa-structalias.c (find_func_aliases): Strip nops
1251 before considering whether to use anyoffset.
1252
1253 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
1254
1255 Revert this patch:
1256
1257 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
1258
1259 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
1260 to order operands.
1261 (swap_commutative_operands_with_target): New.
1262
1263 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
1264
1265 PR c/21419
1266 * gimplify.c (gimplify_asm_expr): Raise an error if an output is
1267 read-only.
1268
1269 2005-09-29 Steven Bosscher <stevenb@suse.de>
1270
1271 PR tree-optimization/23911
1272 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
1273 and IMAGPART_EXPR too.
1274
1275 2005-09-28 Mark Mitchell <mark@codesourcery.com>
1276
1277 PR 17886
1278 * expmed.c (expand_shift): Move logic to reverse rotation
1279 direction when rotating by constants ...
1280 * optabs.c (expand_binop): ... here.
1281 * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
1282 (ix86_rotrdi3): New pattern.
1283 (rotldi3): Handle 32-bit mode.
1284 (ix86_rotldi3): New pattern.
1285
1286 2005-09-29 Alan Modra <amodra@bigpond.net.au>
1287
1288 PR target/24102
1289 * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
1290 check for numbers that need no bit twiddle.
1291
1292 2005-09-28 Geoffrey Keating <geoffk@apple.com>
1293
1294 * config/rs6000/t-darwin8: Uncomment contents, allow -m64
1295 multilib to be built.
1296
1297 * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
1298 (stage1-start): Delete old libgcc and libunwind before moving
1299 anything into the stage directory.
1300 (stage2-start): Likewise.
1301 (stage3-start): Likewise.
1302 (stage4-start): Likewise.
1303 (stageprofile-start): Likewise.
1304 (stagefeedback-start): Likewise.
1305 * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
1306 header in tm_file and CPU-specific t-darwin in tmake_file.
1307 (i[34567]86-*-darwin*): Don't change tm_file.
1308 (powerpc-*-darwin*): Don't change tm_file or tmake_file.
1309 * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
1310 shared library stub for target OS version.
1311 * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
1312 (SHLIB_LINK): Don't make SHLIB_SOLINK.
1313 (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
1314 (libgcc_s.%.dylib): New.
1315 (LIBGCC): Define.
1316 (install-darwin-libgcc-stubs): New.
1317 (INSTALL_LIBGCC): New append.
1318 * config/i386/darwin-libgcc.10.4.ver: New.
1319 * config/i386/darwin-libgcc.10.5.ver: New.
1320 * config/i386/t-darwin: New.
1321 * config/rs6000/darwin-libgcc.10.4.ver: New.
1322 * config/rs6000/darwin-libgcc.10.5.ver: New.
1323 * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
1324 * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
1325
1326 2005-09-28 Paul Brook <paul@codesourcery.com>
1327
1328 * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
1329 denormals.
1330
1331 2005-09-28 Richard Guenther <rguenther@suse.de>
1332
1333 PR tree-optimization/23853
1334 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
1335 host_integerp to verify misalignment value.
1336
1337 2005-09-28 Richard Henderson <rth@redhat.com>
1338
1339 * builtins.c (get_builtin_sync_mode): New.
1340 (expand_builtin_sync_operation): Pass in mode argument.
1341 (expand_builtin_compare_and_swap): Likewise.
1342 (expand_builtin_lock_test_and_set): Likewise.
1343 (expand_builtin_lock_release): Likewise.
1344 (expand_builtin): Update to match.
1345
1346 2005-09-28 Nick Clifton <nickc@redhat.com>
1347
1348 * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
1349 formatting. Add check to PLUS case to ensure that the offset is
1350 within an acceptable range.
1351
1352 * config/v850/v850.md (casesi): Disable the generation of the
1353 switch pattern as it is not being handled properly at the moment.
1354
1355 * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
1356 for when the high words are identical.
1357
1358 2005-09-27 Richard Henderson <rth@redhat.com>
1359
1360 * pretty-print.c (pp_base_format): Fix typo for %>.
1361
1362 2005-09-27 Daniel Berlin <dberlin@dberlin.org>
1363 Devang Patel <dpatel@apple.com>
1364
1365 PR tree-optimization/23625
1366 * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
1367 LABEL_EXPR, assertion check.
1368
1369 2005-09-27 J"orn Rennecke <joern.rennecke@st.com>
1370
1371 * optabs.c (no_conflict_move_test): Check if a result of a
1372 to-be-moved insn would be clobbered by an originally
1373 preceding insn.
1374
1375 2005-09-27 Jeff Law <law@redhat.com>
1376
1377 * passes.c (init_optimization_passes): Replace copy propagation
1378 passes immediately after DOM with phi-only copy propagation
1379 pases. Add phi-only copy propagation pass after first DOM pass.
1380 * tree-pass.h (pass_phi_only_copy_prop): Declare.
1381 * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
1382 If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
1383 (execute_copy_prop): Accept new PHI_ONLY argument. Pass it along
1384 to init_copy_prop. Callers updated.
1385 (do_phi_only_copy_prop): New function.
1386 (pass_phi_only_copy_prop): New pass descriptor.
1387
1388 2005-09-27 Nick Clifton <nickc@redhat.com>
1389
1390 * libgcc2.c (__popcount_tab): Remove redundant prototype.
1391
1392 2005-09-26 Jason Merrill <jason@redhat.com>
1393
1394 PR c++/13764
1395 * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
1396
1397 * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
1398
1399 2005-09-26 James E Wilson <wilson@specifix.com>
1400
1401 * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
1402 copyright. Add gcc copyright plus libgcc exception.
1403 * config/ia64/crtfastmath.asm: Remove glibc copyright. Add gcc
1404 copyright.
1405 * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
1406
1407 2005-09-26 Jeff Law <law@redhat.com>
1408
1409 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
1410 about when to iterate.
1411
1412 2005-09-23 Fariborz Jahanian <fjahanian@apple.com>
1413
1414 PR target/23847
1415 * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
1416 for __complex__ double in -mcpu=G5 mode.
1417
1418 2005-09-26 Sebastian Pop <pop@cri.ensmp.fr>
1419
1420 PR tree-optimization/23942
1421 * Makefile.in (SCEV_H): Depends on PARAMS_H.
1422 * tree-scalar-evolution.c: Include params.h.
1423 (t_bool): New enum.
1424 (follow_ssa_edge, follow_ssa_edge_in_rhs,
1425 follow_ssa_edge_in_condition_phi_branch,
1426 follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
1427 Change return type to t_bool. Use a parameter to limit the size of
1428 trees that are walked before stopping
1429 (analyze_evolution_in_loop): Initialize the limit to 0.
1430 (follow_ssa_edge): Give up by returning t_dont_know if the limit
1431 exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1432
1433 2005-09-26 Uros Bizjak <uros@kss-loka.si>
1434
1435 PR middle-end/23831
1436 * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
1437 simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
1438
1439 2005-09-26 Fariborz Jahanian <fjahanian@apple.com>
1440
1441 * combine.c (make_extraction): Check for valid use of subreg.
1442
1443 2005-09-26 Uros Bizjak <uros@kss-loka.si>
1444
1445 PR target/24055
1446 * config/i386/i386.md ("*fistdi2_1"): New pattern.
1447 ("*fist<mode>2_1"): Use only HImode and SImode register operands.
1448 ("fist<mode>2_with_temp"): Use only register operands.
1449
1450 2005-09-26 J"orn Rennecke <joern.rennecke@st.com>
1451
1452 * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
1453 CALL_INSN_FUNCTION_USAGE.
1454
1455 2005-09-26 Richard Guenther <rguenther@suse.de>
1456
1457 PR middle-end/15855
1458 * gcse.c: Include hashtab.h, define ldst entry hashtable.
1459 (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
1460 (ldst_entry): Use the hashtable instead of list-walking.
1461 (find_rtx_in_ldst): Likewise.
1462 (free_ldst_entry): Free the hashtable.
1463 (compute_ld_motion_mems): Create the hashtable.
1464 (trim_ld_motion_mems): Remove entry from hashtable if
1465 removing it from list.
1466 (compute_store_table): Likewise^2.
1467 (store_motion): Free hashtable in case we did not see
1468 any stores.
1469
1470 2005-09-25 Kazu Hirata <kazu@codesourcery.com>
1471
1472 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
1473 and arg1 if we are passing them to fold_build2.
1474
1475 2005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
1476
1477 PR 23828
1478 * config/i386/i386.c (ix86_function_regparm): Fix the test for
1479 a nested function.
1480
1481 2005-09-25 Richard Henderson <rth@redhat.com>
1482
1483 * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
1484 SYMBOL_REF_TLS_MODEL to be correct.
1485
1486 2005-09-24 Richard Henderson <rth@redhat.com>
1487
1488 * ipa-type-escape.c (discover_unique_type): Remove dead code at
1489 end of function. Reindent.
1490
1491 2005-09-24 Ian Lance Taylor <ian@airs.com>
1492
1493 * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
1494 NEGATE_EXPR/BIT_NOT_EXPR case.
1495
1496 2005-09-24 Richard Henderson <rth@redhat.com>
1497
1498 * c-common.c (handle_mode_attribute): When not modifying in place,
1499 create subtypes for enumerations.
1500 (sync_resolve_return): Use TYPE_MAIN_VARIANT.
1501 * gimplify.c (create_tmp_from_val): Likewise.
1502
1503 2005-09-24 Alexandre Oliva <aoliva@redhat.com>
1504
1505 * config/i386/i386.md (*tls_global_dynamic_64,
1506 *tls_local_dynamic_base_64): Add missing mode to call.
1507 (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
1508
1509 2005-09-24 Jan Hubicka <jh@suse.cz>
1510
1511 * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
1512 (cgraph_clone_node): Likewise.
1513 * cgraph.h (cgraph_clone_edge): Update prototype.
1514 (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
1515 duplicated prototypes; add updating argument.
1516 * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
1517 * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
1518 updating profile.
1519 (cgraph_mark_inline_edge): Likewise.
1520 (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
1521 (cgraph_flatten_node): Likewise.
1522 (cgraph_decide_recursive_inlining): Likewise.
1523 (cgraph_decide_inlining_of_small_function): Likewise.
1524 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1525
1526 2005-09-23 David Edelsohn <edelsohn@gnu.org>
1527 Pete Steinmetz <steinmtz@us.ibm.com>
1528
1529 * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
1530 (rldic.): Set type to "compare".
1531 (rldicr.): Same.
1532 (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR. Set type to
1533 mfjmpr for MFCTR/MFLR.
1534 (movdf_hardfloat64): Same.
1535 (movdf_softfloat64): Same. Correct order of store and move types.
1536 (movti_string): Set type to store_ux/load_ux.
1537 (load_multiple): Set type to load_ux.
1538 (store_multiple): Set type to store_ux.
1539 (movmemsi): Set type to store_ux.
1540 (output_cbranch direct_return): Set type to jmpreg.
1541 (stmw): Set type to store_ux.
1542 (lmw): Set type to load_ux.
1543 * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
1544 * config/rs6000/440.md (ppc440-store): Increase latency to 6.
1545 * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
1546 * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
1547 * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
1548 * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
1549 (rios1-fpstore): Increase latency to 3.
1550 * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
1551 * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
1552
1553 2005-09-23 David Edelsohn <edelsohn@gnu.org>
1554 Andrew Pinski <pinskia@physics.uc.edu>
1555
1556 * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
1557 operand2 constraint to "b".
1558 (sync_<fetchop_name>di_internal): Same.
1559 (sync_old_<fetchop_name>si_internal): Change operand3 constraint
1560 to "b".
1561 (sync_old_<fetchop_name>di_internal): Same.
1562 (sync_new_<fetchop_name>si_internal): Same.
1563 (sync_new_<fetchop_name>di_internal): Same.
1564
1565 2005-09-23 J"orn Rennecke <joern.rennecke@st.com>
1566
1567 PR middle-end/23991
1568 * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
1569 case, define as macros.
1570
1571 PR rtl-optimization/23837
1572 * optabs.c (no_conflict_move_test): Don't set must_stay for a
1573 clobber / clobber match between dest and p->first.
1574
1575 * optabs.c (emit_libcall_block): Use no_conflict_move_test.
1576 (no_conflict_move_test): Update comments.
1577
1578 2005-09-22 Ranjit Mathew <rmathew@gcc.gnu.org>
1579
1580 * doc/install.texi: Update URL for Jacks.
1581 * doc/sourcebuild.texi: Likewise.
1582
1583 2005-09-22 David Edelsohn <edelsohn@gnu.org>
1584
1585 PR target/24007
1586 * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
1587 registers when choosing register preferences.
1588 (movdf_hardfloat64): Same.
1589
1590 2005-09-22 Andreas Krebbel <krebbel1@de.ibm.com>
1591
1592 * expmed.c (expand_shift): Don't use the target of the rotate as
1593 target for the first expanded shift insn.
1594 * testsuite/gcc.dg/20050922-1.c: Testcase added.
1595
1596 2005-09-21 Zdenek Dvorak <dvorakz@suse.cz>
1597
1598 PR tree-optimization/22438
1599 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
1600 preserved iv rhs rewriting specially.
1601
1602 2005-09-21 Daniel Berlin <dberlin@dberlin.org>
1603
1604 * tree-data-ref.c (analyze_array_indexes): Only estimate when
1605 estimate_only is true.
1606 * tree-flow.h (ref_contains_indirect_ref): New prototype.
1607 * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
1608 tree-ssa-structalias.c
1609 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
1610 ref_contains_indirect_ref.
1611 * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
1612
1613 2005-09-21 DJ Delorie <dj@redhat.com>
1614
1615 * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
1616 MASK_PTR_A0D0.
1617 (mn10300_return_in_memory): Support variable size types also.
1618 (mn10300_pass_by_reference): Likewise.
1619 (mn10300_function_value): New.
1620 * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
1621 (FUNCTION_OUTGOING_VALUE): Likewise.
1622 * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
1623 * doc/invoke.texi: Document it.
1624
1625 2005-09-21 Uros Bizjak <uros@kss-loka.si>
1626
1627 PR target/22585
1628 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
1629 force integer op1 into register for XFmode compares.
1630
1631 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
1632
1633 PR middle-end/23971
1634 * expmed.c (alg_code): Add alg_impossible.
1635 (alg_hash_entry): Add cost.
1636 (synth_mult): Record alg_impossible in the hash table if
1637 multiplication by a given integer is impossble within the
1638 limit. Speed up using alg_impossible.
1639
1640 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
1641
1642 * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
1643 argument. Allow and set any offset if needs_anyoffset is passed
1644 in.
1645 (get_constraint_for): Add argument here too.
1646 Pass it down.
1647 (do_structure_copy): Pass NULL to get_constraint_for.
1648 (handle_ptr_arith): Ditto.
1649 (find_func_aliases): Ditto.
1650
1651 2005-09-20 J"orn Rennecke <joern.rennecke@st.com>
1652
1653 PR rtl-optimization/23898
1654 * output.h (get_attr_min_length): Declare.
1655 * final.c (get_attr_length_1): New function, broken out of:
1656 (get_attr_length).
1657 (get_attr_min_length): New function.
1658 * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
1659 (duplicate_computed_gotos): Likewise.
1660 * genattr.c (insn_min_length): Generate declaration.
1661 * genattrtab.c (min_fn, min_attr_value): New functions.
1662 (make_length_attrs): Generate insn_min_length.
1663
1664 2005-09-20 Steve Ellcey <sje@cup.hp.com>
1665
1666 * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
1667
1668 2005-09-20 Richard Henderson <rth@redhat.com>
1669
1670 PR tree-optimization/24059
1671 * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
1672 EXPAND_STACK_PARM.
1673
1674 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
1675
1676 * c.opt (fextended-identifiers): New.
1677 * c-opts.c (c_common_handle_option): Handle
1678 -fextended-identifiers.
1679 * doc/cpp.texi: Update documentation of extended identifiers.
1680 * doc/cppopts.texi (-fextended-identifiers): Document.
1681
1682 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1683
1684 PR tree-optimization/23929
1685 * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
1686 if expr is NULL.
1687
1688 PR tree-optimization/23818
1689 * tree-stdarg.c (execute_optimize_stdarg): Call
1690 calculate_dominance_info.
1691
1692 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
1693
1694 * tree-data-ref.c (get_number_of_iters_for_loop): New function.
1695 (analyze_siv_subscript_cst_affine): Add weak SIV test.
1696 (compute_overlap_steps_for_affine_1_2): Use
1697 get_number_of_iters_for_loop.
1698 (analyze_subscript_affine_affine): Check whether difference is
1699 zero first.
1700 Use get_number_of_iters_for_loop.
1701 Check whether overlap occurs outside of bounds.
1702 (analyze_miv_subscript): Use get_number_of_iters_for_loop.
1703
1704 2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
1705
1706 * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
1707 base register if possible.
1708
1709 2005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
1710
1711 PR tree-optimization/18463
1712 * tree-chrec.c (chrec_convert): Return fold_converted chrec if
1713 converting it directly is not possible.
1714 (chrec_convert_aggressive): New function.
1715 * tree-chrec.h (chrec_convert_aggressive): Declare.
1716 * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
1717 Fold chrec conversions aggressively if asked to.
1718 (instantiate_parameters): Modified because of changes in
1719 instantiate_parameters_1.
1720
1721 2005-09-19 Richard Henderson <rth@redhat.com>
1722
1723 * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
1724 (reduc_splus_v2df): New.
1725
1726 2005-09-19 Richard Sandiford <richard@codesourcery.com>
1727
1728 * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
1729 (ADDITIONAL_REGISTER_NAMES): Add missing comma. Remove final comma.
1730
1731 2005-09-19 Richard Henderson <rth@redhat.com>
1732
1733 * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
1734 vcondu<SSEMODE12>.
1735
1736 2005-09-19 Richard Henderson <rth@redhat.com>
1737
1738 * config/ia64/ia64.c (ia64_expand_widen_sum): New.
1739 (ia64_expand_dot_prod_v8qi): New.
1740 * config/ia64/ia64-protos.h: Update.
1741 * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
1742 widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
1743 sdot_prodv8qi, sdot_prodv4hi): New.
1744 (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
1745
1746 2005-09-19 Richard Henderson <rth@redhat.com>
1747
1748 PR 23941
1749 * real.c (exact_real_truncate): Return false if the format cannot
1750 represent the number as a normal.
1751
1752 * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
1753 for a memory source.
1754
1755 2005-09-19 Dorit Nuzman <dorit@il.ibm.com>
1756
1757 * tree-ssa-operands.c (swap_tree_operands): Export.
1758 * tree.h (swap_tree_operands): Declare.
1759 * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
1760 Call swap_tree_operands.
1761
1762 2005-09-19 Richard Henderson <rth@redhat.com>
1763
1764 * tree-flow.h (merge_alias_info): Declare.
1765 * tree-ssa-copy.c (merge_alias_info): Export.
1766 * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
1767 (vect_create_data_ref_ptr): Use create_iv directly.
1768 (vectorizable_load): Use correct types for integer constants.
1769 (vect_generate_tmps_on_preheader): Likewise.
1770 (vect_gen_niters_for_prolog_loop): Likewise.
1771
1772 2005-09-19 Steven Bosscher <stevenb@suse.de>
1773
1774 PR rtl-optimization/23943
1775 * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
1776
1777 2005-09-18 Jan Hubicka <jh@suse.cz>
1778
1779 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
1780
1781 2005-09-18 Eric Botcazou <ebotcazou@adacore.com>
1782
1783 * varasm.c (output_constant): Do not abort on conversions to union
1784 types between different sizes.
1785
1786 2005-09-18 Richard Guenther <rguenther@suse.de>
1787
1788 PR middle-end/23944
1789 * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
1790 fallback.
1791
1792 2005-09-18 Paul Brook <paul@codesourcery.com>
1793
1794 * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
1795
1796 2005-09-17 Richard Henderson <rth@redhat.com>
1797
1798 * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
1799 * tree-ssa-loop.c (pass_vect_dce): Remove.
1800 * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
1801 of pass_vectorize.
1802
1803 2005-09-17 Richard Henderson <rth@redhat.com>
1804
1805 * tree-pass.h (pass_vect_dce): Declare.
1806 * passes.c (init_optimization_passes): Add it.
1807 * tree-flow.h (tree_ssa_dce): Declare.
1808 * tree-ssa-dce.c (tree_ssa_dce): Export.
1809 * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
1810 (gate_tree_vectorize): ... here.
1811 (pass_vect_dce): New.
1812
1813 2005-09-17 Jan Hubicka <jh@suse.cz>
1814
1815 * except.c (struct eh_status): Turn region_array into vec.
1816 (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
1817 convert_from_eh_region_ranges, find_exception_handler_labels,
1818 current_function_has_exception_handlers, assign_filter_values,
1819 build_post_landing_pads, dw2_build_landing_pads,
1820 sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
1821 sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
1822 foreach_reachable_handler, can_throw_internal_1,
1823 convert_to_eh_region_ranges, verify_eh_tree): Update uses of
1824 region_array.
1825 (duplicate_eh_region_1): Update region_array.
1826 (duplicate_eh_regions): Resize region_array and avoid recomputing.
1827
1828 2005-09-17 David Edelsohn <edelsohn@gnu.org>
1829
1830 PR middle-end/22067
1831 * expmed.c (expand_mult): Substitute simple register for op0 when
1832 computing max_cost.
1833
1834 2005-09-17 Richard Henderson <rth@redhat.com>
1835
1836 * expr.c (emit_move_via_integer): Add force argument, pass it on
1837 to emit_move_change_mode. Update callers.
1838 (emit_move_complex): Pass true to new force argument.
1839 * function.c (expand_function_end): Move expand_eh_return call
1840 earlier. Merge sub-word complex values into a pseudo before
1841 copying to the return hard register.
1842
1843 2005-09-17 Eric Botcazou <ebotcazou@adacore.com>
1844
1845 * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
1846 between different sizes.
1847
1848 2005-09-16 Paolo Bonzini <bonzini@gnu.org>
1849
1850 PR 23903
1851
1852 * passes.c (init_optimization_passes): Register dump files for
1853 IPA passes first.
1854
1855 2005-09-16 Andreas Krebbel <krebbel1@de.ibm.com>
1856
1857 * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
1858 * config/s390/s390.c (s390_overlap_p): New function.
1859 * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
1860 peephole2, "*xc" peephole2): Added overlap check to the peephole2
1861 condition.
1862
1863 2005-09-16 Richard Guenther <rguenther@suse.de>
1864
1865 * ipa-pure-const.c (static_execute): Free auxiliar information.
1866 * ipa-type-escape.c (discover_unique_type): Free temporary key.
1867 * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
1868
1869 2005-09-15 DJ Delorie <dj@redhat.com>
1870
1871 * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
1872
1873 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
1874
1875 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
1876 to order operands.
1877 (swap_commutative_operands_with_target): New.
1878
1879 2005-09-15 Daniel Berlin <dberlin@dberlin.org>
1880
1881 * tree-data-ref.c (analyze_array_indexes): Add estimate_only
1882 parameter.
1883 Update callers.
1884 (estimate_iters_using_array): New function.
1885 * tree-data-ref.h (estimate_iters_using_array): Prototype
1886 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1887 Use estimate_iters_using_array instead of analyze_array.
1888
1889 2005-09-15 Eric Botcazou <ebotcazou@adacore.com>
1890
1891 * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
1892 as addressable.
1893
1894 2005-09-15 Michael Matz <matz@suse.de>
1895
1896 * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
1897
1898 2005-09-14 Daniel Berlin <dberlin@dberlin.org>
1899
1900 PR tree-optimization/23835
1901 * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
1902 (create_name_tags): Rewrite to be not O(num_ssa_names^2).
1903
1904 2005-09-14 Richard Henderson <rth@redhat.com>
1905
1906 * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
1907 (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
1908
1909 2005-09-14 Andrew Pinski <pinskia@physics.uc.edu>
1910
1911 * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
1912 in the ARRAY_TYPE case.
1913
1914 2005-09-14 Eric Botcazou <ebotcazou@adacore.com>
1915
1916 * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
1917
1918 2005-09-14 Uros Bizjak <uros@kss-loka.si>
1919
1920 PR middle-end/22480
1921 * tree-vect-transform.c (vectorizable_operation): Return false for
1922 scalar shift operations and for vector shift operations with
1923 non-invariant shift arguments. Use scalar tree operand op1 as
1924 a shift operand when vector shift insn pattern uses scalar shift
1925 operand.
1926 * Makefile.in (tree-vect-transform.o): Depend on recog.h.
1927
1928 2005-09-14 Olivier Hainque <hainque@adacore.com>
1929
1930 * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
1931 value if it has side-effects.
1932
1933 2005-09-14 David Edelsohn <edelsohn@gnu.org>
1934
1935 PR target/22068
1936 * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
1937
1938 2005-09-14 Alan Modra <amodra@bigpond.net.au>
1939
1940 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
1941 passed as NAME as if it were label at start of function code.
1942
1943 2005-09-13 Kaz Kojima <kkojima@gcc.gnu.org>
1944
1945 * config/sh/sh.md (*movv4sf_i): Add general register cases to
1946 the constraints.
1947
1948 2005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
1949
1950 * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
1951 as early clobber. Rewrite so the PIC register is not implicitly used.
1952
1953 2005-09-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1954
1955 * tree.c (annotate_with_file_line): Compare line numbers before
1956 file names.
1957
1958 2005-09-13 Uros Bizjak <uros@kss-loka.si>
1959
1960 PR target/23816
1961 * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
1962 (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
1963
1964 2005-09-13 Ian Lance Taylor <ian@airs.com>
1965
1966 * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
1967 than a HOST_WIDEST_INT to gen_doloop_begin.
1968
1969 2005-09-13 Diego Novillo <dnovillo@redhat.com>
1970
1971 * tree-dfa.c (dump_variable): Guard against NULL annotations.
1972
1973 2005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
1974
1975 PR tree-optimize/23817
1976 * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
1977
1978 2005-09-13 Alan Modra <amodra@bigpond.net.au>
1979
1980 PR target/23774
1981 * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
1982 word before changing the stack pointer. Use gen_frame_mem for MEMs.
1983 Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
1984 (restore_stack_nonlocal): Likewise.
1985 (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
1986
1987 2005-09-12 Ian Lance Taylor <ian@airs.com>
1988
1989 PR g++/7874
1990 * c.opt (ffriend-injection): New C++ option.
1991 * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
1992 (C++ Dialect Options): Document -ffriend-injection.
1993
1994 2005-09-12 Josh Conner <jconner@apple.com>
1995
1996 PR middle-end/23237
1997 * ipa-reference.c (static_execute): Don't mark variables in
1998 named sections TREE_READONLY.
1999
2000 2005-09-12 Alan Modra <amodra@bigpond.net.au>
2001
2002 * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
2003 stack_tie.
2004
2005 2005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
2006
2007 * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
2008 V_MUST_DEF instead of just the first_use_p.
2009 Don't mark the virtual variables for renaming on the statement which
2010 is being removed.
2011 (pass_dse): Remove TODO_update_ssa.
2012
2013 2005-09-12 J"orn Rennecke <joern.rennecke@st.com>
2014
2015 PR middle-end/23290
2016 * stor-layout.c (compute_record_mode): For records with a single
2017 field, actually check the field's mode size against the type size.
2018
2019 * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
2020 registers for TARGET_SHMEDIA.
2021 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
2022 GENERAL_FP_REGS to GENERAL_DF_REGS. Add GENERAL_FP_REGS as union
2023 of GENERAL_REGS and FP_REGS.
2024
2025 2005-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
2026
2027 * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
2028
2029 2005-09-12 Alan Modra <amodra@bigpond.net.au>
2030
2031 * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
2032 CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
2033 are omitted. Exclude stack_tie insn too.
2034
2035 2005-09-11 David Edelsohn <edelsohn@gnu.org>
2036
2037 PR rtl-optimization/23098
2038 * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
2039 0.0f is easy.
2040 * config/rs6000/rs6000.md (movdf splitter): Use
2041 const_double_operand predicate for TARGET_POWERPC64.
2042 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
2043 SYMBOL_REF method to ABI_V4.
2044
2045 * config/rs6000/altivec.md (build_vector_mask_for_load): Use
2046 replace_equiv_address.
2047 * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
2048 rs6000_sr_alias_set and MEM_NOTRAP.
2049 (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
2050
2051 2005-09-11 Eric Botcazou <ebotcazou@adacore.com>
2052
2053 * tree.c (contains_placeholder_p) <tcc_expression>: Properly
2054 handle CALL_EXPR again.
2055
2056 2005-09-11 Richard Earnshaw <richard.earnshaw@arm.com>
2057
2058 * arm/predicates.md (alignable_memory_operand): Delete.
2059
2060 2005-09-10 Richard Henderson <rth@redhat.com>
2061
2062 PR debug/23806
2063 * dbxout.c (dbxout_expand_expr): New.
2064 (dbxout_symbol): Use it.
2065
2066 2005-09-10 Richard Earnshaw <richard.earnshaw@arm.com>
2067
2068 * arm.c (arm_gen_rotated_half_load): Delete.
2069 (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
2070 (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
2071 (thumb_set_return_address): Likewise.
2072 (thumb_load_double_from_address): Use adjust_address.
2073 * arm.md (splits calling arm_gen_rotated_half_load): Delete.
2074 (extendhsisi2_mem, movhi_bytes): Use change_address.
2075 (movhi): Use widen_memory_access.
2076 (reload_out_df): Use replace_equiv_address.
2077 * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
2078
2079 2005-09-09 Richard Henderson <rth@redhat.com>
2080
2081 PR debug/20998
2082 * dbxout.c: Include expr.h.
2083 (dbxout_global_decl): Don't suppress for DECL_RTL unset.
2084 (dbxout_symbol): Handle DECL_VALUE_EXPR.
2085 * Makefile.in (dbxout.o): Add EXPR_H.
2086
2087 2005-09-09 Zdenek Dvorak <dvorakz@suse.cz>
2088
2089 PR tree-optimization/23509
2090 * tree-cfg.c (replace_uses_by): Use replace_exp.
2091 * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
2092 pointers have name_mem_tag or type_mem_tag set.
2093
2094 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
2095
2096 * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
2097 CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
2098 of wrongly accessing operands.
2099
2100 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
2101
2102 * Makefile.in (tree-chrec.o): Depends on SCEV_H.
2103 * tree-chrec.c: Include tree-scalar-evolution.h.
2104 (chrec_convert): Instantiate the base and step before calling
2105 scev_probably_wraps_p that would fail on parametric evolutions.
2106 Collect all the fails into a single section failed_to_convert,
2107 print a diagnostic, and return chrec_dont_know instead of calling
2108 fold_convert.
2109 * tree-scalar-evolution.c (loop_closed_phi_def): New.
2110 (instantiate_parameters_1): Avoid instantiation of loop closed ssa
2111 phi nodes.
2112 (scev_const_prop): Don't replace the definition of a loop closed ssa
2113 phi node by itself, or by another loop closed ssa phi node.
2114 * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
2115 that base and step are defined.
2116
2117 2005-09-09 Richard Guenther <rguenther@suse.de>
2118
2119 PR c++/23624
2120 * fold-const.c (fold_ternary): Check truth_value_p before
2121 calling invert_truthvalue.
2122
2123 2005-09-09 Nick Clifton <nickc@redhat.com>
2124
2125 * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
2126 * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
2127 dimension of these arrays.
2128 * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
2129 these arrays.
2130 * longlong.h: Only provide a prototype for the __clz_tab[] array
2131 if this header has not been included from libgcc2.h.
2132 * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
2133 defining own types.
2134 Provide prototypes for exported functions.
2135 Use the __clz_tab[] and __popcount_tab[] arrays provided by
2136 libgcc2.c.
2137
2138 2005-09-08 Josh Conner <jconner@apple.com>
2139
2140 PR c++/21135
2141 PR c++/23180
2142 * expr.c (expand_expr_addr_expr_1): Don't invoke
2143 expand_simple_binop for EXPAND_INITIALIZER.
2144
2145 2005-09-08 Richard Henderson <rth@redhat.com>
2146
2147 PR debug/23190
2148 * toplev.c (wrapup_global_declaration_1): Split out ...
2149 (wrapup_global_declaration_2): ... from ...
2150 (wrapup_global_declarations): ... here. Return bool.
2151 (check_global_declaration_1): Split out ...
2152 (check_global_declarations): from here.
2153 (emit_debug_global_declarations): New.
2154 * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
2155 check_global_declaration_1, emit_debug_global_declarations): Declare.
2156 * c-decl.c (c_write_global_declarations_1): Don't create a vector
2157 of decls. Call wrapup_global_declaration_1,
2158 wrapup_global_declaration_2, check_global_declaration_1 directly.
2159 (c_write_global_declarations_2): New.
2160 (ext_block): New.
2161 (c_write_global_declarations): Call c_write_global_declarations_2.
2162 * langhooks.c (write_global_declarations): Call
2163 emit_debug_global_declarations.
2164
2165 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
2166 remove decls that have DECL_RTL_SET_P.
2167 * passes.c (rest_of_decl_compilation): Invoke
2168 cgraph_varpool_finalize_decl for all but functions.
2169
2170 2005-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
2171
2172 * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
2173 the result of a conversion if the new min and max cannot be compared.
2174
2175 2005-09-08 Andreas Krebbel <krebbel1@de.ibm.com>
2176
2177 * config/s390/s390.c (s390_sr_alias_set): Variable removed.
2178 (override_options): Setting s390_sr_alias_set removed.
2179 (save_fpr, save_gprs): Set alias set to vararg or frame.
2180 (restore_fpr, restore_gprs, s390_emit_prologue): Replace
2181 s390_sr_alias_set with get_frame_alias_set ().
2182 (s390_gimplify_va_arg): Replace s390_sr_alias_set with
2183 get_varargs_alias_set ().
2184
2185 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
2186
2187 PR objc/20574
2188 PR objc/19324
2189 * c-parser.c (c_parser_objc_method_definition): If the next
2190 token is not "{", error out and don't start the function.
2191
2192 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
2193
2194 * tree-vrp.c (extract_range_from_expr): Move the check for non
2195 nullness after the check for gimple invariant.
2196
2197 2005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2198
2199 * tree.c (host_integerp, tree_low_cst): Correct function comment.
2200
2201 2005-09-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2202
2203 PR target/23747
2204 * config/m32r.md (movmemsi_internal): Canonicalize order of
2205 operands in PLUS component of template.
2206
2207 2005-09-07 Andreas Krebbel <krebbel1@de.ibm.com>
2208
2209 * reload1.c (fixup_eh_region_note): Remove assertion.
2210 (fixup_abnormal_edges): Reverted removal of call to
2211 find_many_sub_basic_blocks made on 2005-08-31.
2212
2213 2005-09-07 Richard Henderson <rth@redhat.com>
2214
2215 * function.c (ARG_POINTER_CFA_OFFSET): Move ...
2216 * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
2217 (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
2218 * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
2219 rearrange for better packing.
2220 (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
2221 (lookup_cfa_1): Remove inline marker.
2222 (cfa_equal_p): Split out of ...
2223 (def_cfa_1): ... here. Use INVALID_REGNUM.
2224 (build_cfa_loc): Handle !cfa->indirect.
2225 (frame_pointer_cfa_offset): New.
2226 (dbx_reg_number): Assert register elimination performed; do
2227 leaf register remapping.
2228 (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
2229 (eliminate_reg_to_offset): New.
2230 (based_loc_descr): Remove can_use_fbreg argument. Use fbreg only
2231 for verifiably local stack frame addresses; re-base to CFA.
2232 (mem_loc_descriptor): Remove can_use_fbreg argument.
2233 (concat_loc_descriptor, loc_descriptor): Likewise.
2234 (containing_function_has_frame_base): Remove.
2235 (rtl_for_decl_location): Don't do register elimination or
2236 leaf register remapping here.
2237 (secname_for_decl): Split out from ..
2238 (add_location_or_const_value_attribute): ... here.
2239 (convert_cfa_to_loc_list): New.
2240 (compute_frame_pointer_to_cfa_displacement): New.
2241 (gen_subprogram_die): Use them.
2242 * tree.h (frame_base_decl): Remove.
2243 * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
2244 (prologue_stack_adjust): Remove.
2245 (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
2246 (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
2247 (set_frame_base_location): Remove.
2248 (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
2249 (dump_attrs_list, dump_dataflow_set): Use string concatenation.
2250 (vt_add_function_parameters): Don't eliminate_regs.
2251 (vt_initialize): Don't create frame_base_decl.
2252
2253 2005-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2254
2255 * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
2256 version of GNU binutils for 4.x and later.
2257
2258 2005-09-06 Mark Mitchell <mark@codesourcery.com>
2259
2260 * ggc-page.c (ggc_push_context): Remove.
2261 (ggc_pop_context): Likewise.
2262 * ggc.h (ggc_push_context): Remove.
2263 (ggc_pop_context): Likewise.
2264
2265 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
2266
2267 PR target/8973
2268 * config/arc/arc.c (arc_output_function_epilogue): Update flags while
2269 returning from an interrupt handler.
2270
2271 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
2272
2273 PR target/8972
2274 * config/arc/arc.c (output_shift): Add check for loop count when
2275 optimizing.
2276
2277 2005-09-06 Steven Bosscher <stevenb@suse.de>
2278
2279 * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
2280 form manually.
2281 (abs_replacement): Likewise.
2282 (pass_phiopt): Remove TODO_update_ssa.
2283
2284 2005-09-06 Jakub Jelinek <jakub@redhat.com>
2285
2286 PR c/23075
2287 * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
2288 if "return with no value, in function returning non-void" warning
2289 has been issued.
2290 * tree-cfg.c (execute_warn_function_return): Don't look at
2291 RETURN_EXPRs with TREE_NO_WARNING set.
2292
2293 PR target/22362
2294 * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
2295 for internal functions doesn't use registers used by global registers
2296 variables. Use fewer register parameters if there are global register
2297 variables.
2298
2299 2005-09-06 Olivier Hainque <hainque@adacore.com>
2300 Eric Botcazou <ebotcazou@adacore.com>
2301
2302 PR middle-end/14997
2303 * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
2304 when we would be extracting outside its bit span (bitpos+bitsize
2305 larger than its mode), possible with some VIEW_CONVERT_EXPRs from
2306 Ada unchecked conversions.
2307
2308 2005-09-06 Steven Bosscher <stevenb@suse.de>
2309
2310 * tree-ssa-pre.c (try_look_through_load): New function.
2311 (compute_avail): Use it to try to look through loads for some
2312 more useful expressions.
2313
2314 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
2315
2316 * simplify-rtx.c (simplify_binary_operation_1): Correct the
2317 condition for detecting cases like (a&a) and (a^a).
2318
2319 2005-09-06 Keith Besaw <kbesaw@us.ibm.com>
2320
2321 * common.opt: Add option ftree-vect-loop-version.
2322 * params.def: Add --param vect-max-version-checks.
2323 * doc/invoke.texi: Document ftree-vect-loop-version and
2324 --param vect-max-version-checks.
2325 * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
2326 may_misalign_stmts and defines for accessors.
2327 * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
2328 LOOP_VINFO_MAY_MISALIGN_STMTS.
2329 (destroy_loop_vec_info): VEC_free for
2330 LOOP_VINFO_MAY_MISALIGN_STMTS.
2331 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
2332 Update documentation.
2333 (vect_update_misalignment_for_peel): New.
2334 (vect_enhance_data_refs_alignment): Update to choose loop
2335 peeling or loop versioning if appropriate for the (potentially)
2336 unaligned data references in the loop.
2337 (vect_analyze_data_refs_alignment): Remove call to
2338 vect_enhance_data_refs_alignment so the checks can be done
2339 earlier.
2340 (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
2341 and move up call to vect_analyze_data_refs_alignment.
2342 * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
2343 (vect_transform_loop): Add call to loop_version.
2344
2345 2005-09-06 Jakub Jelinek <jakub@redhat.com>
2346
2347 PR rtl-optimization/23098
2348 * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
2349 * simplify-rtx.c (constant_pool_reference_p): New function.
2350 * rtl.h (constant_pool_reference_p): New prototype.
2351 * config/i386/i386.md (pushf split, mov[sdx]f split): Use
2352 constant_pool_reference_p in condition and
2353 avoid_constant_pool_reference in preparation statements.
2354
2355 2005-09-06 Andreas Krebbel <krebbel1@de.ibm.com>
2356
2357 * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
2358 STRICT_LOW_PART SETs.
2359
2360 2005-09-06 Alan Modra <amodra@bigpond.net.au>
2361
2362 PR middle-end/21460
2363 * except.c (sjlj_emit_function_enter): Find the function begin
2364 note even when it's not in first basic block.
2365
2366 2005-09-06 Kelley Cook <kcook@gcc.gnu.org>
2367
2368 * acinclude.m4: Renamed from aclocal.m4. Delete AM_LANGINFO_CODESET,
2369 AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
2370 * aclocal.m4: Regenerate.
2371
2372 2005-09-05 DJ Delorie <dj@redhat.com>
2373
2374 * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
2375 of macro.
2376
2377 2005-09-06 Kazu Hirata <kazu@codesourcery.com>
2378
2379 * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
2380 config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
2381 config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
2382 Follow spelling conventions.
2383 * doc/invoke.texi: Follow spelling conventions.
2384
2385 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
2386
2387 * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
2388 * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
2389 * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
2390
2391 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
2392
2393 PR target/23683
2394 * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
2395 (output_stack_adjust): Use gen_tmp_stack_mem.
2396 (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
2397 (sh_set_return_address, sh_allocate_initial_value): Likewise.
2398 (sh_get_pr_initial_val): Likewise.
2399 (sh_builtin_saveregs): Use gen_frame_mem and change_address.
2400 (sh_initialize_trampoline): Likewise. Also use adjust_address.
2401 * sh.md (divsi_inv_m0): Use gen_const_mem.
2402 (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
2403 (movdf_i4+1): Use gen_tmp_stack_mem.
2404 (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
2405 (fpu_switch+2): Likewise.
2406 (movv4sf_i, movv16sf_i): Use adjust_address.
2407 (symGOT_load): Set MEM_NOTRAP_P bit.
2408
2409 2005-09-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2410
2411 PR target/23721
2412 * pa.c (emit_move_sequence): Fix typo in last change.
2413
2414 2005-09-03 Jakub Jelinek <jakub@redhat.com>
2415
2416 PR rtl-optimization/23454
2417 * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
2418 is true.
2419
2420 2005-09-03 Richard Henderson <rth@redhat.com>
2421 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2422
2423 PR middle-end/23671
2424 * pa.c (emit_move_sequence): Use replace_equiv_address instead of
2425 gen_rtx_MEM.
2426
2427 2005-09-02 Nicolas Pitre <nico@cam.org>
2428
2429 * config/arm/arm.c (arm_legitimize_address): Limit the value passed
2430 to bit_count to 32 bits.
2431
2432 2005-08-31 Mark Mitchell <mark@codesourcery.com>
2433
2434 PR c++/23167
2435 * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
2436 generating synthetic loads from volatile lvalues.
2437
2438 005-09-02 Nick Clifton <nickc@redhat.com>
2439
2440 * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
2441 __ctzhi2, __clzhi2): New functions.
2442
2443 2005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
2444
2445 PR middle-end/23547
2446 * tree-nested.c (struct var_map_elt): Mark with GTY.
2447 (struct nesting_info): Mark with GTY. Mark var_map's param is struct
2448 var_map_elt.
2449 (lookup_field_for_decl): Allocate new element in GC memory.
2450 (lookup_tramp_for_decl): Likewise.
2451 (convert_nl_goto_reference): Likewise
2452 (create_nesting_tree): Allocate info in GC memory. Likewise for
2453 info->var_map.
2454 (free_nesting_tree): Free with ggc_free instead of free.
2455 (root): New static variable.
2456 (lower_nested_functions): Remove root as local variable. And zero out
2457 root at the end of the function.
2458
2459 2005-09-02 J"orn Rennecke <joern.rennecke@st.com>
2460
2461 PR rtl-optimization/20365
2462 * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
2463 to short. New member ix.
2464 (simplify_plus_minus_op_data_cmp): Break ties using ix member.
2465 (simplify_plus_minus): Initialize ix members before calling qsort.
2466
2467 2005-09-02 Zdenek Dvorak <dvorakz@suse.cz>
2468
2469 PR tree-optimization/23626
2470 * tree-cfg.c (replace_uses_by): Clean up eh info.
2471
2472 2005-09-01 DJ Delorie <dj@redhat.com>
2473
2474 * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
2475 fprintf.
2476
2477 2005-09-01 David Edelsohn <edelsohn@gnu.org>
2478
2479 * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
2480 (rs6000_split_multireg_move): Use replace_equiv_address instead of
2481 gen_rtx_MEM.
2482
2483 2005-09-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
2484
2485 * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
2486 do not issue warning for a variable definition following
2487 a declaration.
2488
2489 2005-09-01 Richard Henderson <rth@redhat.com>
2490
2491 PR 23668
2492 * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
2493 conversion to CONST_VECTOR.
2494
2495 2005-09-01 Richard Henderson <rth@redhat.com>
2496
2497 PR 23676
2498 * reload1.c (reload_as_needed): Check !CALL_P before calling
2499 fixup_eh_region_note.
2500 * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
2501
2502 2005-09-01 DJ Delorie <dj@redhat.com>
2503
2504 * varasm.c (output_constant): Let the target resolve
2505 conversions of addresses to non-default pointer sizes.
2506
2507 2005-09-01 Nicolas Pitre <nico@cam.org>
2508
2509 * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
2510 to alow matching ARM pre-indexed addressing mode.
2511 (arm_override_options): Remove now irrelevant comment.
2512
2513 2005-09-01 Phil Edwards <phil@codesourcery.com>
2514
2515 * config.gcc (i*86-wrs-vxworks): Update. Split out vxworksae target.
2516 * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
2517 * config/i386/vxworks.h: Likewise.
2518 * config/i386/t-vxworksae: New file, for VxWorks AE.
2519 * config/i386/vxworksae.h: Likewise.
2520
2521 2005-09-01 Sebastian Pop <pop@cri.ensmp.fr>
2522
2523 PR tree-optimization/23410
2524 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
2525 sequence is not wrapping during the first step.
2526
2527 2005-09-01 Jakub Jelinek <jakub@redhat.com>
2528
2529 PR debug/7241
2530 * dwarf2out.c (base_type_die): Compare char_type_node with
2531 TYPE_MAIN_VARIANT (type), not type.
2532
2533 2005-09-01 Richard Guenther <rguenther@suse.de>
2534
2535 PR tree-optimization/15366
2536 * common.opt: Add -finline-functions-called-once.
2537 Put -fearly-inlining in alphabetically ordered place.
2538 * doc/invoke.texi: Document new option.
2539 * ipa-inline.c (cgraph_decide_inlining): Honour
2540 flag_inline_functions_called_once.
2541
2542 2005-09-01 Jakub Jelinek <jakub@redhat.com>
2543
2544 PR rtl-optimization/23478
2545 * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
2546 (alloc_qty): Initialize it.
2547 (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
2548 (combine_regs): Combine also n_throwing_calls_crossed fields.
2549 (find_free_reg): Don't attempt to caller-save pseudos crossing
2550 calls that might throw.
2551 * global.c (struct allocno): Add throwing_calls_crossed field.
2552 (global_alloc): Revert 2005-08-22 change. Initialize
2553 throwing_calls_crossed.
2554 (find_reg): Don't attempt to caller-save pseudos crossing calls that
2555 might throw.
2556
2557 2005-09-01 Alan Modra <amodra@bigpond.net.au>
2558
2559 PR target/23649
2560 * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
2561 (mask64_operand): Reinstate code prior to 2005-06-11 change.
2562 (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
2563 (and64_2_operand): Tweak to use predicate.
2564 (and_operand): Adjust for mask_operand changes.
2565 * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
2566 (print_operand): Likewise.
2567 (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
2568 (mask64_1or2_operand): Delete.
2569 * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
2570 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
2571 (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
2572 (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
2573 * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
2574 (rotldi3_internal4): Likewise.
2575 (rotldi3_internal5, rotldi3_internal5 split): Likewise.
2576 (rotldi3_internal6, rotldi3_internal6 split): Likewise.
2577 (ashldi3_internal7): Likewise.
2578 (ashldi3_internal8, ashldi3_internal8 split): Likewise.
2579 (ashldi3_internal, ashldi3_internal9 split): Likewise.
2580 (anddi3 split): Don't match mask64_operand.
2581 (anddi3_internal2): Add rlwinm. Modify 't' splitter predicate.
2582 (anddi3_internal3): Add rlwinm. Use and64_2_operand in non-cr0
2583 splitter and match TARGET_64BIT not TARGET_POWERPC64. Modify
2584 't' splitter predicate.
2585 (movdi_internal64 + 2): Revert 2005-06-11 change.
2586
2587 2005-08-31 DJ Delorie <dj@redhat.com>
2588
2589 * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
2590 (m32c_asm_integer): Add support for 32 bit pointers.
2591
2592 2005-08-31 Richard Henderson <rth@redhat.com>
2593
2594 * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
2595 component-like references for setting MEM_NOTRAP_P.
2596
2597 * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
2598 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
2599
2600 2005-08-31 Richard Henderson <rth@redhat.com>
2601
2602 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
2603 into a pseudo before applying gen_lowpart.
2604
2605 2005-08-31 Geoffrey Keating <geoffk@apple.com>
2606
2607 * doc/install.texi (Specific): Update cctools version required
2608 for full functionality.
2609 * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
2610 linkers as -macosx_version_min.
2611
2612 2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
2613
2614 PR target/21255
2615 * sh.c (print_operand, %R and %S): Add handling of floating point
2616 registers, memory, constants and invalid operands.
2617
2618 2005-08-31 Daniel Berlin <dberlin@dberlin.org>
2619
2620 * ipa-pure-const.c: Change dump name.
2621
2622 2005-08-31 Uros Bizjak <uros@kss-loka.si>
2623
2624 PR target/23570
2625 * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
2626 to "reg_or_0_operand".
2627 (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
2628
2629 2005-08-31 Dale Johannesen <dalej@apple.com>
2630
2631 * loop-iv.c (iv_number_of_iterations): Fix overflow check for
2632 loops that count down.
2633
2634 2005-08-31 Richard Henderson <rth@redhat.com>
2635
2636 PR rtl-opt/23601
2637 * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
2638 (fixup_eh_region_note): New.
2639 (reload_as_needed): Call it.
2640 (fixup_abnormal_edges): Allow all throwing insns to be deleted;
2641 don't call find_many_sub_basic_blocks; call verify_flow_info.
2642 * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
2643 (keep_stack_depressed): Likewise.
2644 (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
2645
2646 2005-08-31 Richard Henderson <rth@redhat.com>
2647
2648 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
2649 fp return matching.
2650
2651 2005-08-31 Fariborz Jahanian <fjahanian@apple.com>
2652
2653 * expr.c (expand_expr_real_1): Compare size of address
2654 mode to target's address mode size in deciding expansion of
2655 the constant address.
2656
2657 2005-08-31 Richard Guenther <rguenther@suse.de>
2658
2659 PR middle-end/23477
2660 * expr.c (all_zeros_p): New function.
2661 (expand_expr_real_1): Handle the case of an all-zero
2662 non-addressable constructor separately.
2663
2664 2005-08-31 Adrian Straetling <straetling@de.ibm.com>
2665
2666 * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
2667 arguments, adjust all callers.
2668 (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
2669
2670 2005-08-30 Richard Henderson <rth@redhat.com>
2671
2672 PR target/23630
2673 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
2674 whenever the mode sizes match.
2675
2676 2005-08-31 Alan Modra <amodra@bigpond.net.au>
2677
2678 * calls.c (load_register_parameters): Fix comment typo.
2679 * expr.c (emit_push_insn): Comment formatting.
2680
2681 2005-08-30 Ian Lance Taylor <ian@airs.com>
2682
2683 * config/i386/x-cygwin (host-cygwin): Change dependency from
2684 hosthooks-def.h to $(HOSTHOOKS_DEF_H).
2685
2686 2005-08-29 Geoffrey Keating <geoffk@apple.com>
2687
2688 * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
2689 parts of 'vals'.
2690
2691 2005-08-29 Andrew Pinski <pinskia@physics.uc.edu>
2692
2693 PR middle-end/23408
2694 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
2695 call to ggc_collect.
2696
2697 2005-08-29 Paolo Bonzini <bonzini@gnu.org>
2698
2699 PR bootstrap/21268
2700 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
2701 beginning. Remove $(INCLUDES) from all the rules, if following
2702 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
2703
2704 2005-08-29 Jakub Jelinek <jakub@redhat.com>
2705
2706 PR middle-end/23484
2707 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
2708 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
2709 not constant, but maxlen is, don't set len to maxlen, rather
2710 set maxlen to len if len is a constant.
2711
2712 2005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
2713
2714 PR tree-optimization/23475
2715 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
2716 and counts.
2717
2718 2005-08-28 Daniel Berlin <dberlin@dberlin.org>
2719
2720 Fix PR middle-end/22455
2721
2722 * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
2723 Checksum only the parts of the tree that exist for the tree code.
2724
2725 2005-08-28 Dale Johannesen <dalej@apple.com>
2726
2727 * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
2728
2729 2005-08-28 Andrew Pinski <pinskia@physics.uc.edu>
2730
2731 * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
2732
2733 2005-08-28 Richard Henderson <rth@redhat.com>
2734
2735 * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
2736 * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
2737 of char_type_node.
2738
2739 2005-08-28 Jakub Jelinek <jakub@redhat.com>
2740
2741 PR ada/23593
2742 * builtins.c (get_memory_rtx): Don't strip nops
2743 in between COMPONENT_REFs.
2744
2745 2005-08-27 Andrew Pinski <pinskia@physics.uc.edu>
2746
2747 PR middle-end/23463
2748 * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
2749 types.
2750 (gimplify_modify_expr): Check for zero sized types and gimplify the
2751 rhs and lhs as statements.
2752
2753 2005-08-27 John David Anglin <dave.anflin@nrc-cnrc.gc.ca>
2754
2755 PR libgcj/23508
2756 * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
2757 state for return address column of signal frames.
2758
2759 2005-08-27 David Edelsohn <edelsohn@gnu.org>
2760
2761 PR target/23539
2762 * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
2763 bytes >= 2 not bytes == 2.
2764 (expand_block_move): Same.
2765
2766 2005-08-27 Richard Guenther <rguenther@suse.de>
2767
2768 PR target/23575
2769 * config/i386/sse.md (sse2_movsd): Add missing closing
2770 braces.
2771
2772 2005-08-27 Paul Brook <paul@codesourcery.com>
2773
2774 * genrecog.c (enum decision_type): Add DT_num_insns.
2775 (struct decision_test): Add u.num_insns.
2776 (add_to_sequence): Add DT_num_insns test.
2777 (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
2778 (write_cond, debug_decision_2): Ditto.
2779 (change_state): Assume peep2_next_insn never fails.
2780 Remove "afterward" argument.
2781 (write afterward, write_tree): Update to match.
2782 * recog.c (peep2_current_count): New variable.
2783 (peep2_next_insn): Check it.
2784 (peephole2_optimize): Set peep2_current_count.
2785 * recog.h (peep2_current_count): Declare.
2786
2787 2005-08-26 Josh Conner <jconner@apple.com>
2788
2789 PR middle-end/23584
2790 * ipa-pure-const.c (check_tree): Check for volatile-ness
2791 when considering a dereference.
2792
2793 2005-08-27 Jakub Jelinek <jakub@redhat.com>
2794
2795 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
2796
2797 2005-08-26 Jakub Jelinek <jakub@redhat.com>
2798
2799 PR rtl-optimization/23561
2800 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
2801 a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
2802 at most LEN bytes long memory fits into the field.
2803 (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
2804 expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
2805 expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
2806
2807 2005-08-26 Richard Henderson <rth@redhat.com>
2808
2809 PR rtl-opt/23560
2810 * loop.c (biased_biv_may_wrap_p): New.
2811 (maybe_eliminate_biv_1): Use it to suppress non-equality
2812 comparison transformations. Delete disabled code.
2813
2814 2005-08-26 Ian Lance Taylor <ian@airs.com>
2815
2816 * combine.c (make_extraction): Avoid reference outside object.
2817
2818 2005-08-26 J"orn Rennecke <joern.rennecke@st.com>
2819
2820 * stor-layout.c (finalize_type_size): Restore behaviour for
2821 non-aggregate types to the status quo ante of the patch for
2822 pr 23467. Document why it matters.
2823
2824 2005-08-26 Jakub Jelinek <jakub@redhat.com>
2825
2826 PR c/23506
2827 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
2828 array by one element, initialize the BT_LAST element with NULL.
2829
2830 2005-08-26 David Edelsohn <edelsohn@gnu.org>
2831
2832 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
2833 optimizing for size.
2834 (plus_eqsi): Same.
2835 (compare_plus_eqsi): Same.
2836 (plus_eqsi_compare): Same.
2837 (neg_eq0<mode>): Same.
2838 (neg_eq<mode>): Same.
2839
2840 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
2841 PROCESSOR_POWER4.
2842
2843 2005-08-26 Nick Clifton <nickc@redhat.com>
2844
2845 * config/v850/v850.c (ep_memory_operand): Return FALSE if
2846 TARGET_EP is not defined.
2847 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
2848 TARGET_EP is enabled.
2849 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
2850 * config/v850/v850.md (save_all_interrupt): Only use the EP
2851 register if TARGET_EP is defined.
2852 (restore_all_interrupt): Likewise.
2853 * config/v850/lib1funcs.asm: Update functions so that the EP
2854 register is only used if __EP__ is defined.
2855
2856 2005-08-26 David Ung <davidu@mips.com>
2857
2858 * config/mips/mips.c (mips_expand_prologue): Handle case when
2859 generating for MIPS16 and the outgoing argument area is more than
2860 SMALL_OPERAND. Use the frame pointer as temporary to generate the
2861 add instruction.
2862
2863 2005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
2864
2865 * config/crx/crx.md: Make doloop_end pattern usage controllable
2866 via mloop-nesting=<max-nesting> command line switch. Make sure
2867 the combiner cannot use doloop_end_<mode> in an illegal way.
2868 * config/crx/crx.c: Use regs up to r6 for argument passing.
2869 Refine crx_address_cost (non cst4 displacements are expensive).
2870 * config/crx/crx.opt: Add switch for mloop-nesting=.
2871
2872 2005-08-26 Adrian Straetling <straetling@de.ibm.com>
2873
2874 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
2875 (UNSPEC_MVST): New constant.
2876
2877 2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
2878
2879 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
2880 Reject operands containing eliminable registers.
2881 * testsuite/gcc.dg/20050825-1.c: New testcase.
2882
2883 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
2884 Jan Hubicka <jh@suse.cz>
2885
2886 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
2887
2888 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
2889
2890 PR tree-optimization/23546
2891 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
2892 and REAL_CST nodes.
2893
2894 2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
2895
2896 * params.def (PARAM_MIN_SPEC_PROB): New.
2897 * sched-rgn.c (MIN_PROBABILITY): Delete.
2898 (compute_trg_info): Convert to PARAM_VALUE.
2899 * doc/invoke.texi (param): Document min-spec-prob.
2900
2901 2005-08-24 Fariborz Jahanian <fjahanian@apple.com>
2902
2903 * config/darwin.h: define __PIC__
2904 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
2905 TARGET_OS_CPP_BUILTINS macro.
2906
2907 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
2908
2909 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
2910 yesterday.
2911
2912 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
2913
2914 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
2915 to duplicate_block.
2916 * cfghooks.c (duplicate_block): Added position where to place
2917 new block as argument.
2918 * cfghooks.h (duplicate_block): Declaration changed.
2919 * cfglayout.c (copy_bbs): Add argument after. Pass it to
2920 duplicate_block.
2921 * cfglayout.h (copy_bbs): Declaration changed.
2922 * cfgloop.h (loop_version): Declaration changed.
2923 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
2924 position to copy_bbs.
2925 (loop_version): Pass position to duplicate_loop_to_header_edge.
2926 Add place_after argument and position new blocks according to
2927 it.
2928 * modulo-sched.c (sms_schedule): Pass place_after argument
2929 to loop_version.
2930 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
2931 * tree-cfg.c (split_edge_bb_loc): New function.
2932 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
2933 to determine position of new blocks.
2934 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
2935 to loop_version.
2936 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
2937 argument to duplicate_block.
2938 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2939 Pass position to copy_bbs.
2940
2941 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
2942
2943 * fold-const.c (ptr_difference_const): Use
2944 cst_and_fits_in_hwi instead of host_integerp.
2945
2946 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
2947
2948 * config/darwin.c (gen_pic_offset): New.
2949 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
2950 Use it.
2951
2952 2005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
2953
2954 PR tree-optimization/23486
2955 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
2956
2957 2005-08-23 Phil Edwards <phil@codesourcery.com>
2958
2959 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
2960 remove use_collect2.
2961 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
2962
2963 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
2964 configuration files to override the default value.
2965
2966 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
2967 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
2968 * config/vx-common.h: New file, split out from...
2969 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
2970 * config/vxworksae.h: New file, for VxWorks AE.
2971 * config/vxworks.opt: New file.
2972 * config/vxlib.c: Update for VxWorks 6.
2973
2974 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
2975 other MULTILIB_* variables appropriately.
2976 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
2977 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
2978 * config/rs6000/vxworks.h: Update for VxWorks 6.
2979 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
2980
2981 2005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
2982
2983 PR target/20799
2984 * config/darwin.c (machopic_select_section): Remove the hack to
2985 mark "::operator new" and "::operator delete" for coalescing
2986 even though they are not weak.
2987
2988 2005-08-24 Alan Modra <amodra@bigpond.net.au>
2989
2990 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
2991 * configure: Regenerate.
2992
2993 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
2994
2995 PR middle-end/23517
2996 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
2997 between vectors.
2998 * convert.c (convert_to_integer, convert_to_vector): Likewise.
2999 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
3000 Likewise.
3001
3002 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
3003
3004 * config/rs6000/predicates.md (equality_operator): New.
3005 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
3006 comparison with a large constant.
3007
3008 2005-08-23 Mark Mitchell <mark@codesourcery.com>
3009
3010 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
3011
3012 2005-08-23 J"orn Rennecke <joern.rennecke@st.com>
3013
3014 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
3015 registers is even, and we have a hardware double precision fp,
3016 align the buffer.
3017 (sh_gimplify_va_arg_expr): For floating point arguments, consider
3018 size of current argument when checking if argument was passed in
3019 registers.
3020
3021 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
3022
3023 PR middle-end/23467
3024 * stor-layout.c (finalize_type_size): Dont override
3025 existing alignment with a smaller alignment from the mode.
3026
3027 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
3028
3029 * lambda-code.c (lambda_vector_lexico_pos): Moved...
3030 * lambda.h (lambda_vector_lexico_pos): ... here.
3031 * tree-data-ref.c (build_classic_dist_vector): Return false when
3032 the distance vector is lexicographically negative.
3033
3034 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
3035
3036 PR tree-optimization/23511
3037 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
3038 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
3039
3040 2005-08-23 Jakub Jelinek <jakub@redhat.com>
3041
3042 PR tree-optimization/22043
3043 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
3044 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
3045 If ALLOW_FLEXARR, handle types ending with flexible array member.
3046 Pass false as second argument to recursive count_type_elements calls.
3047 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
3048 argument to count_type_elements call.
3049 * tree-sra.c (decide_block_copy): Likewise.
3050 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
3051 for a constant-sized object, set cleared as well. Pass true as
3052 second argument to count_type_elements call.
3053
3054 2005-08-23 Alan Modra <amodra@bigpond.net.au>
3055
3056 PR target/21571
3057 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
3058 from legitimate_small_data_p, and make global. Update use.
3059 Remove forward declaration.
3060 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
3061 Declare.
3062 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
3063
3064 2005-08-23 David Edelsohn <edelsohn@gnu.org>
3065
3066 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
3067 of scratch intermediates.
3068 (eq<mode>_compare): Same.
3069 (neg_eq0<mode>): New.
3070 (neg_eq<mode>): Convert to define_insn_and_split.
3071
3072 2005-08-23 Alan Modra <amodra@bigpond.net.au>
3073
3074 PR target/23070
3075 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
3076 stdarg functions, set/clear the fp marker even when no variable
3077 args are passed.
3078 * config/rs6000/sysv4.opt (mprototype): Describe.
3079
3080 2005-08-22 Jakub Jelinek <jakub@redhat.com>
3081
3082 PR rtl-optimization/23478
3083 * regs.h (reg_info): Add throw_calls_crossed.
3084 (REG_N_THROWING_CALLS_CROSSED): Define.
3085 * flow.c (allocate_reg_life_data): Initialize
3086 REG_N_THROWING_CALLS_CROSSED.
3087 (propagate_one_insn, attempt_auto_inc): Update
3088 REG_N_THROWING_CALLS_CROSSED.
3089 * global.c (global_alloc): Don't allocate pseudos across
3090 calls that may throw.
3091
3092 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
3093
3094 PR c/18715
3095 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
3096 value is inbetween the range if we did not find an exact match.
3097
3098 2005-08-22 Aldy Hernandez <aldyh@redhat.com>
3099
3100 * doc/invoke.texi (Option Summary): Add ms1 options.
3101 * doc/extend.texi: Document interrupt handler attribute for ms1.
3102 * doc/md.texi: Document ms1 constraints.
3103 * config.gcc: Add ms1-*-elf.
3104 * config/ms1/ms1.h: New.
3105 * config/ms1/ms1.c: New.
3106 * config/ms1/ms1.md: New.
3107 * config/ms1/ms1-protos.h: New.
3108 * config/ms1/ABI.txt: New.
3109 * config/ms1/crti.asm: New.
3110 * config/ms1/crtn.asm: New.
3111 * config/ms1/lib2extra-funcs.c: New.
3112 * config/ms1/t-ms1: New.
3113 * config/ms1/ms1.opt: New.
3114
3115 2005-08-22 Ira Rosen <irar@il.ibm.com>
3116
3117 * config/rs6000/altivec.md (xorv4sf3): New.
3118 (negv4sf2, neg<mode>2): Likewise.
3119
3120 2005-08-21 H.J. Lu <hongjiu.lu@intel.com>
3121
3122 PR target/23485
3123 * config/ia64/ia64.md (divsi3): Check divide by zero.
3124 (udivsi3): Likewise.
3125 (divdi3): Likewise.
3126 (udivdi3): Likewise.
3127
3128 2005-08-21 Jakub Jelinek <jakub@redhat.com>
3129
3130 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
3131 up to elem_bitsize bits, not max_bitsize.
3132
3133 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
3134
3135 PR tree-optimization/23433
3136 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
3137 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
3138
3139 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
3140
3141 PR tree-optimization/23434
3142 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
3143 the iteration bound is not an INTEGER_CST.
3144
3145 2005-08-21 Dorit Nuzman <dorit@il.ibm.com>
3146
3147 * tree-vect-transform.c (get_initial_def_for_reduction): Set
3148 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
3149 NULL if need_epilog_adjust is false.
3150 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
3151 Case 3 always peels first itration, not just for PLUS case, and no need
3152 to use scalar_initial_def here. Create an epilog adjustment only if
3153 scalar_initial_def is not NULL.
3154
3155 (vectorizable_reduction): Remove assert.
3156
3157 2005-08-20 H.J. Lu <hongjiu.lu@intel.com>
3158
3159 PR target/23485
3160 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
3161 (__moddi3): Likewise.
3162 (__udivdi3): Likewise.
3163 (__umoddi3): Likewise.
3164 (__divsi3): Likewise.
3165 (__modsi3): Likewise.
3166 (__udivsi3): Likewise.
3167 (__umodsi3): Likewise.
3168
3169 2005-08-20 Jakub Jelinek <jakub@redhat.com>
3170
3171 * tree-pass.h (TDF_GRAPH): Define.
3172 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
3173 * passes.c (finish_optimization_passes): Only call
3174 finish_graph_dump_file if TDF_GRAPH is set.
3175 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
3176 NULL. Set TDF_GRAPH bit.
3177 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
3178
3179 2005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
3180
3181 * arm.h (arm_stack_offsets): Add locals_base field.
3182 * arm.c (arm_get_frame_offsets): Compute it.
3183 (thumb_compute_initial_elimination offset): Make the Thumb frame
3184 pointer point to the base of the local variables.
3185 (thumb_expand_prologue): Update accordingly.
3186 (thumb_expand_epilogue): Likewise.
3187
3188 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
3189 mode of clobbered scratch to DImode. Handle a case that's known to
3190 need this.
3191
3192 2005-08-19 David Edelsohn <edelsohn@gnu.org>
3193
3194 * config/rs6000/rs6000.md (gt0<mode>): Delete.
3195 (gt0<mode>_compare): Delete.
3196 (neg_gt0<mode>): Delete.
3197
3198 2005-08-19 Eric Christopher <echristo@apple.com>
3199
3200 * optabs.h: Change CTI_ to COI_.
3201 * optabs.c: Ditto.
3202
3203 2005-08-19 James E Wilson <wilson@specifix.com>
3204
3205 * builtins.c (expand_builtin_return_addr): Set
3206 current_function_accesses_prior_frames when count != 0. Use
3207 frame_pointer_rtx when count == 0.
3208 * function.h (struct function): Add accesses_prior_frames field.
3209 (current_function_accesses_prior_frames): Define.
3210 * reload1.c (init_elim_table): Check
3211 current_function_accesses_prior_frames.
3212 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
3213
3214 2005-08-19 Diego Novillo <dnovillo@redhat.com>
3215
3216 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
3217 indicator. Return true if the flowgraph changed during
3218 cleanup.
3219
3220 2005-08-19 Diego Novillo <dnovillo@redhat.com>
3221
3222 PR 23476
3223 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
3224 conditional expression before testing its value.
3225
3226 2005-08-19 Diego Novillo <dnovillo@redhat.com>
3227
3228 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
3229
3230 2005-08-19 Devang Patel <dpatel@apple.com>
3231
3232 PR tree-optimization/23048
3233 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
3234 third parameter. Check whether latch is dominated by exit
3235 block or not.
3236 (if_convertible_loop_p): Supply exit block itself to
3237 if_convertible_bb_p.
3238
3239 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
3240
3241 PR target/23473
3242 * arm.md (arm_load_pic_register): Change argument to the mask of
3243 saved registers. Call thumb_find_work_register if we need a
3244 scratch register on Thumb.
3245 (arm_expand_prologue): Pass empty register set to
3246 arm_load_pic_register.
3247 (thumb_expand_prologue): Pass live_regs_mask directly to
3248 arm_load_pic_register.
3249 * arm-protos.h (arm_load_pic_register): Update prototype.
3250
3251 2005-08-19 J"orn Rennecke <joern.rennecke@st.com>
3252
3253 * sh.c (find_sole_member): New function.
3254 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
3255 if the record's alignment is larger than the size of its only member.
3256
3257 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
3258
3259 PR target/23436
3260 * arm.c (thumb_legitimize_reload_address): New function.
3261 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
3262 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
3263
3264 2005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
3265
3266 * config/crx/crx.c: Implement crx_decompose_address. Reject
3267 symbolic displacements since CRX register relative adressing
3268 mode can't handle unsigned 32-bit values as displacements.
3269 * config/crx/crx.h: Simplify definitions, remove redundant
3270 parenthesis and obsolete macros.
3271 * config/crx/crx.opt: Add new switch for debugging addresses.
3272 * config/crx/crx-protos.h: Add new declarations for above.
3273
3274 2005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
3275
3276 PR middle-end/20624
3277 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
3278 looking past it.
3279
3280 2005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3281
3282 * collect2.c (dup2): Delete.
3283 * configure.ac: Don't check for dup2.
3284
3285 * config.in, configure: Regenerate.
3286
3287 2005-08-18 J"orn Rennecke <joern.rennecke@st.com>
3288
3289 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
3290 record with the type of its only member.
3291
3292 2005-08-18 David Edelsohn <edelsohn@gnu.org>
3293
3294 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
3295 define_insn_and_split.
3296 (plus_ltu<mode>_compare): Same.
3297 (gtu<mode>_compare): Same.
3298 (plus_gtu<mode>_compare): Same.
3299
3300 2005-08-18 Dorit Nuzman <dorit@il.ibm.com>
3301
3302 PR tree-optimization/22228
3303 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
3304 todo_flags_start.
3305 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
3306 are recorded in vect_vnames_to_rename for renaming.
3307 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
3308 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
3309 in vect_vnames_to_rename.
3310 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
3311 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
3312
3313 2005-08-18 Jan Hubicka <jh@suse.cz>
3314
3315 PR c++/22034
3316 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
3317 info only for local statics, not for member variables.
3318
3319 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3320
3321 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
3322
3323 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3324
3325 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
3326
3327 2005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
3328
3329 PR middle-end/16045
3330 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
3331
3332 2005-08-17 James E Wilson <wilson@specifix.com>
3333
3334 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
3335 array size check.
3336
3337 2005-08-17 David Edelsohn <edelsohn@gnu.org>
3338
3339 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
3340 (leu<mode>_compare): Same.
3341 (plus_leu<mode>): Same.
3342 (neg_leu<mode>): Same.
3343 (and_neg_leu<mode): Same.
3344 (ltu<mode>_compare): Same.
3345 (plus_ltu<mode>): Same.
3346 (geu<mode>): Same.
3347 (geu<mode>_compare): Same.
3348 (plus_geu<mode>): Same.
3349 (neg_geu<mode>): Same.
3350 (and_neg_geu<mode>): Same.
3351 (plus_gt<mode>): Same.
3352 (gtu<mode>_compare): Same.
3353 (plus_gtu<mode>): Same.
3354
3355 2005-08-17 Erik Christiansen <erik@dd.nec.com.au>
3356
3357 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
3358 Move call_table_data to end. Delete spurious .text.
3359 (callt_save_all_interrupt): Fix comment typo.
3360
3361 2005-08-17 James E Wilson <wilson@specifix.com>
3362 Kevin Winchester <winchester@amirix.com>
3363
3364 PR target/21684
3365 * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
3366
3367 2005-08-17 Uros Bizjak <uros@kss-loka.si>
3368
3369 PR target/23268
3370 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
3371 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
3372
3373 2005-08-17 J"orn Rennecke <joern.rennecke@st.com>
3374
3375 * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
3376 record with the type of its only member if the modes don't match.
3377
3378 * varasm.c (decode_reg_name): Skip empty additional register names.
3379
3380 2005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
3381
3382 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
3383 lsm_tmp_name_length): New.
3384 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
3385 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
3386
3387 2005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3388 Andreas Krebbel <krebbel1@de.ibm.com>
3389
3390 * config.gcc: Added z9-109 switch.
3391 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
3392 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
3393 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
3394 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
3395 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
3396 for "z9_109" cpu attribute.
3397 * config/s390/s390.c (z9_109_cost): New processor cost structure.
3398 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
3399 (s390_handle_arch_option): Added z9-109 switch.
3400 (override_options): Set respective cost function for z9-109.
3401 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
3402 (legitimate_reload_constant_p): Accept extended immediates.
3403 (print_operand): Three new output modifiers added: k, m and o.
3404 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
3405 (s390_output_mi_thunk): Use extended immediate when possible.
3406 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
3407 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
3408 (CONSTRAINT_LEN): Added length of O constraint.
3409 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
3410 * config/s390/s390.md ("cpu"): New value z9_109 added.
3411 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
3412 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
3413 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
3414 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
3415 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
3416 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
3417 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
3418 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
3419 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
3420 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
3421 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
3422 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
3423 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
3424 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
3425 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
3426 immediates.
3427 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
3428 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
3429 insns for TARGET_EXTIMM.
3430
3431 2005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
3432
3433 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
3434
3435 2005-08-17 Nick Clifton <nickc@redhat.com>
3436
3437 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
3438 Call default_encode_section_info.
3439
3440 2005-08-17 Steven Bosscher <stevenb@suse.de>
3441
3442 PR tree-optimization/21574
3443 * tree-ssa-ccp.c (likely_value): If the right hand side is a
3444 constant, return CONSTANT.
3445 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
3446 (ccp_fold, visit_assignment): Likewise.
3447 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
3448
3449 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
3450
3451 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
3452 fold_buildN instead of buildN then fold_initializer or fold.
3453 (build_unary_op): Likewise.
3454 (build_binary_op): Likewise.
3455 * fold-const.c (fold_initializer): Remove.
3456 (fold_build1_initializer): New function.
3457 (fold_build2_initializer): New function.
3458 (fold_build3_initializer): New function.
3459 * tree.h (fold_initializer): Remove.
3460 (fold_build1_initializer): New function.
3461 (fold_build2_initializer): New function.
3462 (fold_build3_initializer): New function.
3463
3464 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
3465
3466 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
3467 (try_move_mult_to_index): Call fold_build2 instead of build2.
3468 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
3469 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
3470 fold_binary_to_constant.
3471 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
3472 fold (build.
3473 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
3474 check if A == gcd (A, B). Remove TYPE argument.
3475 (analyze_offset) Use fold_build2 instead of fold (build.
3476 (create_data_ref): Likewise.
3477 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
3478 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
3479 then fold.
3480
3481 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
3482
3483 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
3484 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
3485
3486 2005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
3487
3488 PR tree-opt/23402
3489 * gimplify.c (zero_sized_type): New function.
3490 (gimplify_modify_expr_rhs): If we have a zero sized type,
3491 replace the statement with an empty statement.
3492
3493 2005-08-16 H.J. Lu <hongjiu.lu@intel.com>
3494
3495 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
3496 fxsave.
3497
3498 2005-08-16 Ian Lance Taylor <ian@airs.com>
3499
3500 * doc/tm.texi (Label Output): Correct typo.
3501
3502 2005-08-16 Steven Bosscher <stevenb@suse.de>
3503
3504 PR target/23376
3505 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
3506 force_operand will work later on using have_insn_for.
3507
3508 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3509
3510 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
3511
3512 2005-08-16 Ian Lance Taylor <ian@airs.com>
3513
3514 PR c++/23337
3515 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
3516 vector type, don't try to construct it element by element. Add an
3517 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
3518
3519 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3520
3521 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
3522
3523 2005-08-16 Geoffrey Keating <geoffk@apple.com>
3524
3525 * doc/invoke.texi (Precompiled Headers): Document some more options
3526 which are known to be safe.
3527
3528 2005-08-16 James E Wilson <wilson@specifix.com>
3529
3530 PR tree-optimization/21105
3531 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
3532 TREE_OVERFLOW check.
3533
3534 2005-08-16 David Edelsohn <edelsohn@gnu.org>
3535
3536 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
3537 (neg_ltu<mode>): Same.
3538 (gtu<mode>): Same.
3539 (neg_gtu<mode>): Same.
3540
3541 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3542
3543 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
3544 (fold_builtin_isdigit): Use fold_buildN.
3545 (build_function_call_expr): Likewise.
3546 * c-typeck.c (c_finish_loop): Likewise.
3547
3548 2005-08-16 J"orn Rennecke <joern.rennecke@st.com>
3549 Richard Shann <rshann@superh.com>
3550
3551 PR middle-end/20396:
3552 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
3553
3554 2005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
3555
3556 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
3557
3558 2005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
3559
3560 PR target/23355
3561 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
3562 arm_compure_save_reg0_reg12_mask to determine when the PIC register
3563 must be saved.
3564
3565 2005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3566
3567 PR middle-end/23369
3568 * fold-const.c (build_range_check): Disable optimization for function
3569 pointer expressions on targets that require function pointer
3570 canonicalization.
3571
3572 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
3573
3574 * simplify-rtx.c (simplify_const_relational_operation): When
3575 extracting arguments of a COMPARE, recompute the mode as well.
3576
3577 2005-08-15 Ian Lance Taylor <ian@airs.com>
3578
3579 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
3580
3581 2005-08-15 DJ Delorie <dj@redhat.com>
3582
3583 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
3584 the stack.
3585 (movsi_splittable): Allow, but split, moves to the stack.
3586 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
3587 stack.
3588
3589 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3590
3591 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
3592 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
3593 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
3594
3595 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
3596 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
3597 Delete HOST_PTR_PRINTF.
3598
3599 * configure, config.in: Regenerate.
3600
3601 2005-08-15 David Edelsohn <edelsohn@gnu.org>
3602
3603 * config/rs6000/rs6000.md (QHSI): New mode macro.
3604 (wd): Extend mode attr for QImode and HImode
3605 (dbits): New mode attr.
3606 (zero_extend<mode>di2): Convert to mode macro.
3607
3608 2005-08-15 Steve Ellcey <sje@cup.hp.com>
3609
3610 PR target/21841
3611 * doc/invoke.texi (-mgnu-ld): Update description.
3612 (-mhp-ld): Ditto.
3613
3614 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
3615
3616 PR 23391
3617 * Makefile.in (tree-chrec.o): Depends on real.h.
3618 * tree-chrec.c: Include real.h.
3619 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
3620 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
3621 * tree-scalar-evolution.c (add_to_evolution_1,
3622 interpret_rhs_modify_expr): Ditto.
3623
3624 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
3625
3626 PR 23386
3627 * tree-data-ref.c (estimate_niter_from_size_of_data): When
3628 step is negative compute the estimation from init downwards to zero.
3629
3630 2005-08-14 James A. Morrison <phython@gcc.gnu.org>
3631
3632 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
3633
3634 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
3635
3636 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
3637 constraint.
3638 (legitimate_reload_constant_p): Fix handling of lliXX operands.
3639 Accept double-word constants that can be split.
3640 * config/s390/s390.md ("movti"): Use 'P' constraint.
3641 ("*movdi_31", "*movdf_31"): Likewise.
3642
3643 2005-08-14 Daniel Berlin <dberlin@dberlin.org>
3644
3645 Fix PR tree-optimization/22615
3646
3647 * tree-ssa-structalias.c (solution_set_add): Handle
3648 first_vi_for_offset returning NULL.
3649 (do_da_constraint): Ditto.
3650 (do_sd_constraint): Ditto.
3651 (do_ds_constraint): Ditto
3652 (find_func_aliases): Ditto.
3653 (build_constraint_graph): RHS is allowed be ANYTHING.
3654 (first_vi_for_offset): Return NULL if we couldn't find anything at
3655 the offset.
3656
3657 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
3658
3659 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
3660 over memory as first operand.
3661
3662 2005-08-14 H.J. Lu <hongjiu.lu@intel.com>
3663
3664 PR target/23360
3665 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
3666 available for setting it.
3667
3668 2005-08-14 Ira Rosen <irar@il.ibm.com>
3669
3670 PR tree-optimization/23320
3671 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
3672 data-refs' types instead of base object nullness. Add check for
3673 pointer type data-refs before first location comparison. Remove
3674 assert.
3675
3676 2005-08-14 Andreas Schwab <schwab@suse.de>
3677
3678 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
3679
3680 2005-08-13 James E Wilson <wilson@specifix.com>
3681
3682 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
3683 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
3684 -fstack-protector-all, --param ssp-buffer-size): Document.
3685 (-Wvariadic-macros): Alphabetize.
3686 (-fsched-stalled-insns-dep): Add missing 'f'.
3687
3688 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
3689 macros.
3690
3691 2005-08-13 David Edelsohn <edelsohn@gnu.org>
3692
3693 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
3694 or indirect address operand.
3695 (EXTRA_ADDRESS_CONSTRAINT): New.
3696 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
3697
3698 2005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
3699
3700 PR tree-optimization/22236
3701 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
3702 successors and predecessors.
3703 * tree-chrec.c (chrec_convert): Before converting, check that
3704 sequences don't wrap.
3705 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
3706 (analyze_array): Extern.
3707 (find_data_references_in_loop): Remove call to
3708 compute_estimated_nb_iterations.
3709 * tree-data-ref.h (analyze_array): Declared.
3710 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
3711 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
3712 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
3713 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
3714 condition.
3715 * tree-ssa-loop-ivcanon.c: Fix documentation.
3716 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
3717 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
3718 (infer_loop_bounds_from_undefined): New.
3719 (estimate_numbers_of_iterations_loop): Use
3720 infer_loop_bounds_from_undefined.
3721 (used_in_pointer_arithmetic_p): New.
3722 (scev_probably_wraps_p): Pass an extra parameter. Call
3723 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
3724 (convert_step): Fix documentation.
3725 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
3726 Use initial_condition_in_loop_num and evolution_part_in_loop_num
3727 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
3728 scev_probably_wraps_p.
3729
3730 2005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
3731
3732 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
3733 (s390_register_info): Ignore clobbered_regs information for fixed
3734 registers, and only fixed registers.
3735 (s390_init_frame_layout): Remove redundant call.
3736
3737 2005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
3738
3739 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
3740 description of -Wold-style-casts.
3741
3742 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3743 Jakub Jelinek <jakub@redhat.com>
3744
3745 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
3746 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
3747 * config/s390/s390.c (print_operand): New output modifier 'G' added.
3748 (get_thread_pointer): Renamed to s390_get_thread_pointer.
3749 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
3750 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
3751 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
3752 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
3753 ("stack_protect_set", "stack_protect_test"): New expanders.
3754 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
3755 "stack_protect_testdi"): New insn definitions.
3756
3757 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3758
3759 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
3760
3761 2005-08-12 Paul Brook <paul@codesourcery.com>
3762
3763 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
3764
3765 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3766
3767 * config/s390/predicates.md (setmem_operand): New predicate.
3768 (shift_count_operand): Accept ANDs with special constants as
3769 operand.
3770 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
3771 with special constants.
3772 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
3773 shift_count_operand with setmem_operand.
3774
3775 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3776
3777 * config/s390/s390.c (s390_extract_part, s390_single_part):
3778 Type cast added.
3779 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
3780 (s390_output_mi_thunk): Don't use lg on 31 bit.
3781 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
3782 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
3783
3784 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3785
3786 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
3787 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
3788 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
3789 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
3790 with one of the new macros.
3791
3792 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3793
3794 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
3795 Don't set save_return_addr_p.
3796 (s390_register_info): Make clobbered_regs not depending on
3797 save_return_addr_p.
3798
3799 2005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
3800
3801 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
3802 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
3803
3804 2005-08-11 James E. Wilson <wilson@specifix.com>
3805
3806 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
3807
3808 2005-08-11 Jakub Jelinek <jakub@redhat.com>
3809
3810 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
3811 locations gathered by var-tracking in single entry loc_list
3812 over loc_descriptor_from_tree.
3813
3814 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
3815 pass it down to loc_descriptor.
3816 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
3817 (containing_function_has_frame_base): Move earlier in the file.
3818 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
3819 instead of always assuming fbreg can't be used.
3820
3821 2005-08-11 David Edelsohn <edelsohn@gnu.org>
3822
3823 * config/rs6000/altivec.md: Change constraint "m" to "Z".
3824 * config/rs6000/predicates.md (indexed_or_indirect_operand):
3825 Accept address wrapped in AND for Altivec.
3826 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3827 Strip AND wrapping offset address for Altivec.
3828
3829 2005-08-11 Richard Henderson <rth@redhat.com>
3830
3831 PR middle-end/23312
3832 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
3833 before using TYPE_IS_SIZETYPE.
3834
3835 2005-08-11 Richard Henderson <rth@redhat.com>
3836
3837 PR target/22225
3838 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
3839 insn types not present on ev4.
3840 (alphaev5_insn_pipe): Similarly.
3841
3842 2005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
3843
3844 PR target/23250
3845 * arm.c (arm_override_options): If the user has selected callee-super-
3846 interworking, then enable normal interworking.
3847
3848 2005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3849
3850 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
3851 redefinition.
3852
3853 2005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
3854
3855 * doc/rtl.texi: Fix two typos.
3856
3857 2005-08-11 Richard Guenther <rguenther@suse.de>
3858
3859 PR target/23289
3860 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
3861 cases where we call to/from functions returning void.
3862
3863 2005-08-10 James A. Morrison <phython@gcc.gnu.org>
3864
3865 PR c++/23225
3866 * tree.c (build_pointer_type_for_mode): Robustify.
3867
3868 2005-08-10 James E Wilson <wilson@specifix.com>
3869
3870 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
3871 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
3872
3873 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
3874 "cum->".
3875
3876 2005-08-10 Eric Christopher <echristo@apple.com>
3877
3878 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
3879 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
3880 V2DFmode.
3881
3882 2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
3883
3884 PR target/21887
3885 * config/darwin.c (machopic_indirect_data_reference): Use a new register
3886 for the high part when generating dynamic-no-pic code.
3887
3888 2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
3889
3890 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
3891 (x86_64-*-linux*): Likewise.
3892
3893 * config/i386/crtfastmath.c: New file.
3894 * config/i386/t-crtfm: Likewise.
3895
3896 * config/i386/linux.h (ENDFILE_SPEC): New.
3897 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
3898
3899 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
3900 crtfastmath.o.
3901
3902 2005-08-10 Dorit Nuzman <dorit@il.ibm.com>
3903
3904 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
3905 (vec_shl, vec_shr): Document new operations.
3906 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
3907
3908 2005-08-10 David Edelsohn <edelsohn@gnu.org>
3909
3910 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
3911 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
3912 change predicate to indexed_or_indirect_address.
3913
3914 2005-08-10 Richard Sandiford <richard@codesourcery.com>
3915
3916 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
3917 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
3918 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
3919 and __aeabi_uwrite8.
3920 * config/arm/unaligned-funcs.c: New file.
3921 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
3922
3923 2005-08-09 Paolo Bonzini <bonzini@gnu.org>
3924
3925 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
3926 Add dump.
3927 * cfglayout.c (pass_insn_locators_initialize): Add dump.
3928 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
3929 Add dump.
3930 * except.c (pass_convert_to_eh_region_ranges): Add dump.
3931 * final.c (pass_shorten_branches): Add dump.
3932 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
3933 (pass_life): Rename dump.
3934 (rest_of_handle_flow2): Remove initial verify_flow_info.
3935 * function.c (pass_instantiate_virtual_regs): Add dump.
3936 * integrate.c (pass_initial_value_sets): Add dump.
3937 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
3938 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
3939 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
3940 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
3941 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
3942 gate_rtl_unrool_and_peel_loops): New.
3943 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
3944 rtl_doloop): Do not look at flags.
3945 * mode-switching.c (pass_mode_switching): Add dump.
3946 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
3947 pass_split_before_regstack): Add dump.
3948 * regmove.c (pass_stack_adjustments): Add dump.
3949 * tree-optimize.c (pass_fixup_cfg): Add dump.
3950
3951 2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3952
3953 PR 23309
3954 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
3955 deciding which instruction sequence to use.
3956
3957 2005-08-09 Dorit Nuzman <dorit@il.ibm.com>
3958
3959 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
3960 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
3961
3962 2005-08-09 Richard Guenther <rguenther@suse.de>
3963
3964 * c-common.c (builtin_function_2): Remove.
3965 (def_builtin_1): New function.
3966 (c_common_nodes_and_builtins): Use def_builtin_1 to
3967 build builtin functions.
3968
3969 2005-08-09 Jie Zhang <jie.zhang@analog.com>
3970
3971 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
3972 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
3973 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
3974 Visual DSP.
3975
3976 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
3977
3978 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
3979 fold_binary instead of fold_build2 since we don't care about the
3980 resulting tree.
3981 (loop_niter_by_eval): Likewise.
3982 (compare_trees): Likewise.
3983 (proved_non_wrapping_p): Likewise.
3984
3985 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
3986
3987 PR c/23161
3988 PR c/23165
3989 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
3990 if the if is really empty.
3991
3992 2005-08-09 Steven Bosscher <stevenb@suse.de>
3993
3994 PR tree-optimization/23234
3995 * tree-ssa-math-opts.c (place_reciprocal): New enum.
3996 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
3997 argument of the new enum.
3998 (execute_cse_reciprocals): Add reciprocals for function arguments
3999 on the unique successor edge of the entry block. Update other calls
4000 to execute_cse_reciprocals_1.
4001
4002 2005-08-08 Richard Henderson <rth@redhat.com>
4003
4004 PR 22439
4005 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
4006
4007 2005-08-08 Bob Wilson <bob.wilson@acm.org>
4008
4009 * expr.c (write_complex_part): Return after handling MEM.
4010
4011 2005-08-08 Josh Conner <jconner@apple.com>
4012
4013 PR rtl-optimization/23241
4014 * combine.c (simplify_comparison): Fix error in determining
4015 whether to lift a subreg from comparison.
4016
4017 2005-08-08 David Edelsohn <edelsohn@gnu.org>
4018
4019 PR target/18506
4020 * config/rs6000/altivec.md (vec_init<mode>): New.
4021 (vec_set<mode>): New.
4022 (vec_extract<mode>): New.
4023 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
4024 (rs6000_expand_vector_set): New.
4025 (rs6000_expand_vector_extract): New.
4026 (rs6000_legitimate_offset_address_p): Offset addresses are valid
4027 for Altivec modes before reload.
4028 (altivec_expand_vec_init_builtin): New.
4029 (get_element_number): New.
4030 (altivec_expand_vec_set_builtin): New.
4031 (altivec_expand_vec_ext_builtin): New.
4032 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
4033 builtins.
4034 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
4035 builtins.
4036 * config/rs6000/rs6000.h (rs6000_builtins): Add
4037 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
4038 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
4039 * config/rs6000/rs6000-protos.h: Declare new functions.
4040
4041 2005-08-08 Jan Hubicka <jh@suse.cz>
4042
4043 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
4044 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
4045 * i386.md (movdi*): Use pic_32bit_operand.
4046 * predicates.md (pic_32bit_operand): New.
4047
4048 2005-08-08 Nathan Sidwell <nathan@codesourcery.com>
4049
4050 PR c++/21166
4051 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
4052
4053 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
4054
4055 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
4056 (test_for_singularity): Use fold_build2.
4057
4058 2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4059
4060 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
4061
4062 2005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
4063
4064 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
4065 (COMMON_ASM_OP) Define.
4066 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
4067 (ix86_encode_section_info): Likewise.
4068 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
4069 SUBTARGET_ENCODE_SECTION_INFO.
4070
4071 2005-08-06 Richard Henderson <rth@redhat.com>
4072
4073 PR 21894
4074 * tree-nested.c (convert_local_reference): Save and restore val_only
4075 around component_ref and friends. Clear walk_subtrees by default.
4076
4077 2005-08-06 Peter O'Gorman <peter@pogma.com>
4078
4079 PR 21366
4080 * gcc.c (process_command): Check the argument to -b has a dash.
4081 * doc/invoke.texi: Update -b and -V docs.
4082
4083 2005-08-06 James E Wilson <wilson@specifix.com>
4084
4085 * config/mips/cross64.h, config/mips/t-cross64: Delete.
4086
4087 2005-08-06 Michael Matz <matz@suse.de>
4088
4089 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
4090 member only if only one insn is associated with the value.
4091
4092 2005-08-06 Nick Clifton <nickc@redhat.com>
4093
4094 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
4095 New define.
4096 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
4097 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
4098 Check symbol flags instead of symbol name mangling.
4099 (xstormy16_asm_output_aligned_common): Likewise. Also
4100 simplify code since the bss100_section cass is the only case
4101 where the below100 code will be triggered.
4102 (xstormy16_encode_section_info): Encode below100 attribute
4103 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
4104 the name.
4105 (xstormy16_strip_name_encoding): Delete - this function is no
4106 longer needed.
4107 (TARGET_STRIP_NAME_ENCODING): Undefine.
4108 * config/stormy16/stormy16-protos.h: Delete prototype for
4109 xstormy16_strip_name_encoding.
4110
4111 2005-08-06 Kazu Hirata <kazu@codesourcery.com>
4112
4113 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
4114 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
4115 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
4116 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
4117 config/alpha/predicates.md, config/arc/arc.h,
4118 config/arm/arm.h, config/arm/ieee754-df.S,
4119 config/arm/ieee754-sf.S, config/bfin/bfin.c,
4120 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
4121 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
4122 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
4123 config/m68hc11/m68hc11.h, config/mips/mips.c,
4124 config/mips/mips.h, config/mips/openbsd.h,
4125 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
4126 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
4127 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
4128 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
4129 config/sparc/linux.h, config/sparc/linux64.h,
4130 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
4131 doc/extend.texi, doc/gcov.texi, doc/install.texi,
4132 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
4133 typos. Follow spelling conventions.
4134
4135 2005-08-06 Joseph S. Myers <joseph@codesourcery.com>
4136
4137 PR c/23113
4138 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
4139 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
4140 specially. Check for side effects only for COND_EXPR.
4141 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
4142 return with TREE_NO_WARNING.
4143
4144 2005-08-06 Richard Sandiford <richard@codesourcery.com>
4145
4146 PR rtl-optimization/23233
4147 * loop.c (combine_movables): Require the modes to be the same.
4148 (move_movables): Remove handling of cases where the replacement
4149 had a different mode to the original.
4150
4151 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
4152
4153 PR tree-optimization/23128
4154 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
4155 subtraction wrap, and set TREE_OVERFLOW if they do.
4156
4157 2005-08-05 Richard Henderson <rth@redhat.com>
4158
4159 PR 21728
4160 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
4161 FORCED_LABEL labels.
4162
4163 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
4164
4165 PR middle-end/23135
4166 * reload.c (find_reloads_subreg_address): Pass down TYPE
4167 unchanged. Change all callers except find_reloads_toplev.
4168
4169 2005-08-05 Michael Matz <matz@suse.de>
4170
4171 * genattrtab.c (current_alternative_string): Remove.
4172 (SIMPLIFY_ALTERNATIVE): Ditto.
4173 (attr_alt_bit_p): Ditto.
4174 (alternative_name): Make const char *.
4175 (evaluate_eq_attr): Remove use of above things.
4176 (simplify_test_exp): Ditto.
4177 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
4178 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
4179
4180 2005-08-04 James E Wilson <wilson@specifix.com>
4181
4182 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
4183 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
4184 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
4185 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
4186 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
4187
4188 2005-08-04 Richard Henderson <rth@redhat.com>
4189
4190 PR 21529
4191 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
4192 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
4193 * tree-sra.c (decide_block_copy): Use it. Disable element copy
4194 if we'd have to instantiate too many members.
4195
4196 2005-08-04 Richard Henderson <rth@redhat.com>
4197
4198 PR 21291
4199 * tree-outof-ssa.c (coalesce_asm_operands): New.
4200 (coalesce_ssa_name): Use it. Split out ...
4201 (coalesce_phi_operands, coalesce_result_decls): ... these.
4202
4203 2005-08-04 Paul Brook <paul@codesourcery.com>
4204
4205 * read-rtl.c (read_quoted_string): Break if EOF.
4206
4207 2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
4208
4209 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
4210 (fold_build2): Likewise.
4211 (fold_build3): Likewise.
4212 (fold_build1_stat): New function prototype.
4213 (fold_build2_stat): Likewise.
4214 (fold_build3_stat): Likewise.
4215 * fold-const.c (fold_build1): Rename to ..
4216 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
4217 through to build1_stat.
4218 (fold_build2): Rename to ..
4219 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
4220 through to build2_stat.
4221 (fold_build3): Rename to ..
4222 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
4223 through to build3_stat.
4224
4225 2005-08-04 David Edelsohn <edelsohn@gnu.org>
4226 Ian Lance Taylor <ian@airs.com>
4227
4228 * function.c (assign_stack_local_1): Do not correct stack slot
4229 address if allocation size is smaller than mode size.
4230
4231 2005-08-04 Diego Novillo <dnovillo@redhat.com>
4232
4233 PR 22037
4234 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
4235 (tree_merge_blocks): Propagate anything allowed by
4236 may_propagate_copy.
4237 Clarify documentation.
4238 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
4239 SSA form, schedule an update if necessary.
4240
4241 2005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
4242
4243 * doc/install.texi (Binaries): Remove broken link to
4244 Sinix/Reliant Unix binaries.
4245
4246 2005-08-03 Richard Henderson <rth@redhat.com>
4247
4248 PR 23221
4249 * function.c (stack_protect_epilogue): Export.
4250 * tree.h (stack_protect_epilogue): Declare.
4251 * calls.c (expand_call): Call it.
4252
4253 2005-08-03 Eric Christopher <echristo@apple.com>
4254
4255 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
4256 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
4257 spec.
4258
4259 2005-08-04 Jan Hubicka <jh@suse.cz>
4260
4261 * profile.c (branch_prob): Split edges with goto locus on them
4262 to get proper line counts.
4263 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
4264
4265 2005-08-03 Paul Brook <paul@codesourcery.com>
4266
4267 * function.c (assign_parms): Round current_function_args_size
4268 to PARM_BOUNDARY, not STACK_BOUNDARY.
4269
4270 2005-08-03 Geoffrey Keating <geoffk@apple.com>
4271
4272 * config/i386/i386.c (x86_elf_aligned_common)
4273 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
4274
4275 2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
4276
4277 PR tree-optimization/23157
4278 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
4279 before emitting them.
4280
4281 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4282
4283 PR tree-optimization/19899
4284 * Makefile.in (tree-scalar-evolution.o): Add real.h.
4285 * tree-scalar-evolution.c: Include real.h.
4286 (add_to_evolution): Build constant -1 of correct type.
4287
4288 2005-08-03 Jan Hubicka <jh@suse.cz>
4289
4290 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
4291 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
4292 profile updating for complette unrolling.
4293 * loop-unroll.c (peel_loop_completely): Use it.
4294 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4295 (tree_unroll_loops_completely): Disable code growing unrolling of cold
4296 loops.
4297
4298 2005-08-03 Paul Brook <paul@codesourcery.com>
4299
4300 * combine.c (can_change_dest_mode): New function.
4301 (try_combine, simplify_set): Use it.
4302
4303 2005-08-03 Eric Botcazou <ebotcazou@adacore.com>
4304
4305 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
4306 TFmode to BLKmode.
4307
4308 2005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
4309
4310 * doc/install.texi (Specific): Adjust link to openavr.org.
4311 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
4312 (Binaries): Adjust HP-UX Porting Center link.
4313 (Binaries): Adjust Free Software Foundation ordering link.
4314
4315 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
4316
4317 * convert.c (convert_to_integer): Use fold_build1 instead of
4318 build1 when converting an integer to an integer.
4319
4320 2005-08-02 Richard Henderson <rth@redhat.com>
4321
4322 * combine.c (combine_instructions): Don't use reg_equal/equiv
4323 results if the mode doesn't match.
4324
4325 2005-08-02 Mark Mitchell <mark@codesourcery.com>
4326
4327 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
4328 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
4329
4330 2005-08-02 Richard Henderson <rth@redhat.com>
4331
4332 PR 23196
4333 * explow.c (memory_address): Remove special-case for
4334 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
4335
4336 2005-08-02 Diego Novillo <dnovillo@redhat.com>
4337
4338 PR 23164
4339 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
4340 number of calls to cleanup_tree_cfg_1.
4341
4342 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
4343
4344 * doc/invoke.texi: document file extensions .F90 and .F95
4345
4346 2005-08-02 Richard Guenther <rguenther@suse.de>
4347
4348 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
4349 positive if its first argument is positive.
4350
4351 2005-08-02 Richard Guenther <rguenther@suse.de>
4352
4353 PR tree-optimization/23177
4354 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
4355 on TMR_TAG.
4356
4357 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
4358
4359 PR tree-optimization/23129
4360 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
4361 varying for divisions with anti-ranges.
4362
4363 2005-08-02 Jan Hubicka <jh@suse.cz>
4364
4365 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
4366 * tree-ssa-threadupdate.c (thread_block): Add it here.
4367
4368 2005-08-01 James E Wilson <wilson@specifix.com>
4369
4370 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
4371 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
4372 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
4373 New.
4374 * config/mips/predicates.md (const_call_insn_operand): Add check for
4375 SYMBOL_REF_LONG_CALL_P.
4376 * doc/extend.texi (long_call): Document the new attribute.
4377
4378 2005-08-01 Ian Lance Taylor <ian@airs.com>
4379 Richard Henderson <rth@redhat.com>
4380
4381 * Makefile.in (RTL_BASE_H): Add real.h.
4382 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
4383 instead of memcpy.
4384 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
4385 directly.
4386 * rtl.c (rtl_check_failed_code_mode): New.
4387 * rtl.h (struct rtx_def): Add u.rv.
4388 (XCMWINT, XCNMPRV): New.
4389 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
4390 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
4391
4392 2005-08-01 Richard Henderson <rth@redhat.com>
4393
4394 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
4395 with auto-inc codes.
4396
4397 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
4398
4399 2005-08-01 Jan Hubicka <jh@suse.cz>
4400
4401 * i386-protos.h (asm_preferred_eh_data_format): Declare.
4402 * i386.c: Include dwarf2.h
4403 (asm_preferred_eh_data_format): New.
4404 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
4405
4406 2005-08-01 Ian Lance Taylor <ian@airs.com>
4407
4408 * config/host-linux.c (linux_gt_pch_get_address): Add new name
4409 randomize_va_space for virtual address randomization control.
4410
4411 2005-08-01 Steven Bosscher <stevenb@suse.de>
4412
4413 * common.opt (flag_ipa_cp): Put in right place to maintain
4414 alphabetic sort.
4415
4416 2005-08-01 Jan Hubicka <jh@suse.cz>
4417
4418 * profile.c (compute_value_histograms): Fix thinko.
4419 * value-prof.c: Include toplev.h
4420 (check_counter): New function.
4421 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4422 tree_mod_subtract_transform): Add sanity check.
4423
4424 2005-08-01 Richard Guenther <rguenther@suse.de>
4425
4426 PR tree-optimization/23133
4427 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
4428 current functions parameter decls to find defs to cse
4429 reciprocals of.
4430
4431 2005-08-01 Richard Guenther <rguenther@suse.de>
4432
4433 PR tree-optimization/23109
4434 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
4435 If trapping math is in effect, use post-dominator information
4436 to check if we'd in any case reach a trapping point before
4437 doing the reciprocal insertion.
4438 (execute_cse_reciprocals): Compute post-dominators, if necessary.
4439 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
4440 expressions are invariant only if trapping math is not in effect.
4441
4442 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
4443
4444 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
4445 cgraph_function_versioning): New declarations.
4446 * cgraphunit.c: Add include to ipa-prop.h.
4447 (update_call_expr, cgraph_copy_node_for_versioning,
4448 cgraph_function_versioning): New functions.
4449 * integrate.c (copy_decl_for_inlining): Remove.
4450 * ipa-prop.h (ipa_replace_map): New struct.
4451 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
4452 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
4453 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
4454 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
4455 ipcp_iterate_stage, ipcp_method_scale_print,
4456 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
4457 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
4458 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
4459 ipcp_update_bb_counts, ipcp_update_profiling,
4460 ipcp_update_edges_counts): New functions.
4461 (ipcp_method_cval_init): Remove restriction regarding local methods.
4462 (ipcp_init_stage): Add ipcp_method_compute_scale.
4463 (ipcp_insert_stage): Add versioning.
4464 (ipcp_structures_print): Add ipcp_method_scale_print.
4465 (ipcp_driver): Dump profiling info.
4466 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
4467 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
4468 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
4469 (struct inline_data): Add versioning_p, ipa_info, new fields.
4470 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
4471 declare_return_variable): Replace calls to copy_decl_for_inlining with
4472 copy_decl_for_dup.
4473 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
4474 versioning support.
4475 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
4476 Add argument VERSIONING.
4477 (copy_arguments_for_versioning, copy_static_chain,
4478 function_versionable_p, tree_versionable_function_p,
4479 tree_function_versioning, replace_ref_tree): New functions.
4480 * tree-inline.h: Include varray.h.
4481 (tree_versionable_function_p, tree_function_versioning,
4482 tree copy_decl_for_dup): New declarations.
4483
4484 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
4485
4486 * ipa-cp.c: New file. Contains IPCP specific functionality.
4487 * ipa-prop.h: New file. Contains structures/definitions that can be
4488 used by several interprocedural data flow optimizations (and also IPCP).
4489 * ipa-prop.c: New file.
4490 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
4491 * common.opt: Add ipa-cp flag.
4492 * timevar.def: Add IPCP optimization.
4493 * tree-optimize.c (init_tree_optimization_passes): Schedule
4494 pass_ipa_cp.
4495 * tree-pass.h (pass_ipa_cp): Declare.
4496
4497 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
4498
4499 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
4500 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
4501 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
4502 config/i386/i386.c, config/mips/mips.h,
4503 config/rs6000/rs6000.h, config/sh/sh.c,
4504 config/stormy16/stormy16.c: Fix comment typos.
4505
4506 2005-08-01 Joseph S. Myers <joseph@codesourcery.com>
4507
4508 PR c/22311
4509 * c-typeck.c (build_binary_op): Use common_type wrapper on
4510 shortened types.
4511 (common_type): Update comment.
4512
4513 2005-07-31 Steven Bosscher <stevenb@suse.de>
4514
4515 PR target/23095
4516 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
4517 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
4518 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
4519
4520 2005-07-31 Jan Hubicka <jh@suse.cz>
4521
4522 * pretty-print.h (pp_widest_integer): New macro.
4523 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
4524 counts.
4525
4526 2005-07-31 Jan Hubicka <jh@suse.cz>
4527
4528 * output.h (enum section_category): Export from varasm.c
4529 (categorize_decl_for_section): Likewise.
4530 * varasm.c (enum section_category): Kill.
4531 (categorize_decl_for_section): Make global.
4532 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
4533 Declare.
4534 * i386.c (ix86_section_threshold): New static variable.
4535 (ix86_in_large_data_p, ix86_encode_section_info,
4536 x86_64_elf_unique_section,
4537 x86_64_elf_select_section): New functions.
4538 (TARGET_ENCODE_SECTION_INFO): Define
4539 (override_options): Enable medium model for PIC.
4540 (ix86_expand_prologue): Expand gen_set_got_rex64.
4541 (legitimate_constant_p): Handle new UNSPECs.
4542 (legitimate_pic_address_disp_p): Likewise.
4543 (legitimize_pic_address): Lower MEDIUM model addressing.
4544 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
4545 (enum cmodel): Add MEDIUM_PIC.
4546 (SYMBOL_REF_FAR_ADDR_P): New macro.
4547 (SYMBOL_FLAG_FAR_ADDR): New flag.
4548 * i386.md (movdi): Support medium model.
4549 (set_got_rex64): New pattern.
4550 * i386.opt (mlarge-data-threshold): New flag.
4551 * predicates.md (zext_operand/sext_operand): Deal with medium model.
4552 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
4553 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
4554 TARGET_ASM_UNIQUE_SECTION): New.
4555
4556 * invoke.texi (-mlarge_data_threshold): Document
4557
4558 2005-07-31 Jan Hubicka <jh@suse.cz>
4559
4560 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
4561 (coalesce_vars): Likewise.
4562 * tree-ssa-live.c (coalesce_cost): New.
4563 (build_tree_conflict_graph): Use coalesce_cost.
4564 * tree-ssa-live.h (coalesce_cost): Declare.
4565
4566 2005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
4567
4568 * arm.md (all peepholes for post-increment operations): Delete.
4569 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
4570 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
4571 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
4572 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
4573 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
4574
4575 2005-07-30 James A. Morrison <phython@gcc.gnu.org>
4576
4577 * fold-const.c (tree_expr_nonnegative_p): Always return true for
4578 non-integral types.
4579
4580 2005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
4581
4582 PR target/22582
4583 * doc/invoke.texi: Document -rdynamic.
4584
4585 2005-07-30 Joseph S. Myers <joseph@codesourcery.com>
4586
4587 PR c/23143
4588 * c-parser.c (c_parser_parms_list_declarator): Call
4589 mark_forward_parm_decls.
4590 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
4591 decls with visibility structure.
4592
4593 2005-07-30 Paul Brook <paul@codesourcery.com>
4594
4595 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
4596
4597 2005-07-30 Paul Brook <paul@codesourcery.com>
4598
4599 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
4600 prototype.
4601 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
4602 value for mode.
4603 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
4604
4605 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
4606
4607 PR c/529
4608 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
4609 nested function declarators.
4610 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
4611 (grokparms): Call warn_if_shadowing for parameters used within the
4612 parameter list.
4613 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
4614 not used within the parameter list.
4615 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
4616
4617 2005-07-30 Jan Hubicka <jh@suse.cz>
4618
4619 * expr.c (expand_expr_real_1): Do not load mem targets into register.
4620 * i386.c (ix86_fixup_binary_operands): Likewise.
4621 (ix86_expand_unary_operator): Likewise.
4622 (ix86_expand_fp_absneg_operator): Likewise.
4623 * optabs.c (expand_vec_cond_expr): Validate dest.
4624
4625 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
4626
4627 PR c/21720
4628 * real.c (real_from_string): Also set last bit if there is a
4629 nonzero hex digit beyond GCC's internal precision after ".".
4630
4631 2005-07-29 David Edelsohn <edelsohn@gnu.org>
4632
4633 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
4634 define_constants. Change duplicate values to unassigned numbers.
4635 Change UNSPEC_SUBS to UNSPEC_VSUBS.
4636 (*altivec_vspltsf): New.
4637 (altivec_vperm_v4sf): Delete.
4638 (altivec_vperm_<mode>): Use mode macro V.
4639 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
4640 (altivec_predicate_v4sf): Delete.
4641 (altivec_predicate_<mode>): Use mode macro V.
4642 (*altivec_lvesfx): New.
4643 (*altivec_stvesfx): New.
4644 (vec_realign_load_v4sf): Delete.
4645 (vec_realign_load_<mode>): Use mode macro V.
4646 * config/rs6000/rs6000.c (generate_set_vrsave): Use
4647 UNSPECV_SET_VRSAVE.
4648
4649 2005-07-29 Mark Mitchell <mark@codesourcery.com>
4650
4651 PR bootstrap/23131
4652 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
4653 string.
4654 * configure: Regenerated.
4655
4656 2005-07-29 Paul Brook <paul@codesourcery.com>
4657
4658 * doc/install.texi: Add link to GFortran binaries wiki page.
4659
4660 2005-07-29 David Ung <davidu@mips.com>
4661
4662 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
4663 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
4664 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
4665 * config/mips/mips.md (cpu): Add 5kf name.
4666 (includes): Includes 5k.md.
4667 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
4668 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
4669 -march flag.
4670
4671 2005-07-29 Diego Novillo <dnovillo@redhat.com>
4672
4673 PR 22550
4674 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
4675 (cleanup_tree_cfg): ... here.
4676 Call cleanup_tree_cfg_1 until there are no more cleanups to
4677 do.
4678
4679 2005-07-29 James A. Morrison <phython@gcc.gnu.org>
4680
4681 * tree-vrp.c (compare_range_with_value): Return true or false
4682 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
4683 EQ_EXPR respectively.
4684
4685 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
4686
4687 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
4688 Fix comment typos.
4689
4690 2005-07-29 Diego Novillo <dnovillo@redhat.com>
4691
4692 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
4693 (tree_ssa_dominator_optimize): Increment it.
4694 (dump_dominator_optimization_stats): Print it.
4695
4696 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
4697 Steven Bosscher <stevenb@suse.de>
4698
4699 PR rtl-optimization/23117
4700 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
4701 when head == tail. Tidy comment.
4702
4703 2005-07-28 Richard Henderson <rth@redhat.com>
4704
4705 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
4706 * cselib.c (rtx_equal_for_cselib_p): Likewise.
4707 * jump.c (rtx_renumbered_equal_p): Likewise.
4708 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
4709 CONST_INT and CONST_DOUBLE.
4710 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
4711 * reload.c (operands_match_p): Special case CONST_INT and
4712 CONST_DOUBLE; check mode earlier.
4713
4714 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
4715
4716 PR c/22240
4717 * c-typeck.c (convert_for_assignment): Do not check
4718 DECL_IN_SYSTEM_HEADER on NULL fundecl.
4719
4720 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
4721
4722 PR c/22192
4723 * c-typeck.c (composite_type): Prefer constant size arrays to
4724 VLAs.
4725
4726 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
4727
4728 PR c/21720
4729 * real.c (real_from_string): Set last bit if there is a nonzero
4730 hex digit beyond GCC's internal precision.
4731
4732 2005-07-28 Richard Henderson <rth@redhat.com>
4733
4734 PR rtl-opt/22619
4735 * cfgcleanup.c (try_forward_edges): Watch out for end of
4736 insn chain.
4737
4738 2005-07-28 James E Wilson <wilson@specifixinc.com>
4739
4740 PR c/23106
4741 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
4742
4743 2005-07-28 Jan Hubicka <jh@suse.cz>
4744
4745 * Makefile.in (rtl-profile.o): Kill all traces of it.
4746 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
4747 * coverage.h (rtl_coverage_counter_ref): Kill.
4748 * opts.c (flag_speculative_prefetching_set): Kill.
4749 (flag_loop_optimize_set): New.
4750 (common_handle_option): Disable loop optimizer when profiling;
4751 do not handle speculative prefetching.
4752 * passes.c (init_optimization_passes): Replace pass_profiling combo
4753 by branch_prob pass.
4754 * profile.c (compute_value_histograms): Update for simplified value
4755 profiles.
4756 (rtl_register_profile_hooks): Kill.
4757 (pass_profiling): Kill.
4758 (rest_of_handle_branch_prob): Do not profile.
4759 * toplev.c (process_options): Remove speculative prefetching.
4760 * toplev.h (flag_tree_based_profiling): Kill.
4761 * tree-profile.c (prepare_instrumented_value,
4762 tree_gen_interval_profiler, tree_gen_pow2_profiler,
4763 tree_gen_one_value_profiler, do_tree_profiling): Update for
4764 simplified datastructures.
4765 * value-prof.c: Add comment that speculative prefetching was dropped;
4766 update rest of file for simplified datastructures.
4767 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
4768 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
4769 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
4770 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
4771 rtl_mod_subtract, gen_speculative_prefetch,
4772 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
4773 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
4774 (gate_handle_value_profile_transformations,
4775 rest_of_handle_value_profile_transformations,
4776 pass_value_profile_transformations): Kill.
4777 * value-prof.h (histogram_value_t): Remove IL based unions.
4778 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
4779 rtl_profile_hooks): Remove hooks.
4780
4781 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
4782
4783 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
4784 (cgraph_clone_node): Likewise.
4785 * cgraph.h (cgraph_clone_edge): Update prototype.
4786 (cgraph_clone_node): Likewise.
4787 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
4788 cgraph_clone_node.
4789 (lookup_recursive_calls): Consider profile.
4790 (cgraph_decide_recursive_inlining): Fix updating; use new
4791 probability argument; use profile.
4792 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
4793 * tree-inline.c (copy_bb): Update clal of clone_edge.
4794 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
4795
4796 * invoke.texi (min-inline-recursive-probability): Document.
4797
4798 2005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
4799
4800 * doc/install.texi (Configuration): Update Valgrind homepage.
4801
4802 2005-07-28 Richard Henderson <rth@redhat.com>
4803
4804 PR middle-end/21362
4805 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
4806 labels we want to delete.
4807 (cfg_layout_merge_blocks): Likewise.
4808
4809 2005-07-28 Richard Henderson <rth@redhat.com>
4810
4811 PR target/17692
4812 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
4813 when expanding to nothing.
4814
4815 2005-07-28 Josh Conner <jconner@apple.com>
4816
4817 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
4818 (cgraph_decide_inlining_of_small_functions): Likewise.
4819
4820 2005-07-28 Josh Conner <jconner@apple.com>
4821
4822 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
4823 direction of badness if negative.
4824 (cgraph_default_inline_p): Add reason to parameters, and assign it
4825 a value.
4826 (cgraph_decide_inlining_of_small_functions): New parameter in call
4827 to cgraph_default_inline_p.
4828 (cgraph_decide_inlining_incrementally): Likewise.
4829 * cgraphunit.c (decide_is_function_needed): Likewise.
4830 * cgraph.h (cgraph_default_inline_p): Likewise.
4831
4832 2005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4833
4834 * builtins.c: Fix comment typo(s).
4835 * genautomata.c: Likewise.
4836 * gimplify.c: Likewise.
4837 * tree-dfa.c: Likewise.
4838 * tree-flow-inline.h: Likewise.
4839 * tree-into-ssa.c: Likewise.
4840 * tree-ssa-alias.c: Likewise.
4841 * tree-ssa-ccp.c: Likewise.
4842 * tree-ssa-copy.c: Likewise.
4843 * tree-ssa-dce.c: Likewise.
4844 * tree-ssa-dom.c: Likewise.
4845 * tree-ssa-operands.c: Likewise.
4846 * tree-tailcall.c: Likewise.
4847 * tree-vectorizer.c: Likewise.
4848 * tree-vrp.c: Likewise.
4849 * tree.c: Likewise.
4850
4851 2005-07-28 Jeff Law <law@redhat.com>
4852
4853 * tree-vrp.c (test_for_singularity): Extracted from ...
4854 (simplify_cond_using_ranges): Attempt to simplify a relational
4855 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
4856
4857 2005-07-28 Dorit Nuzman <dorit@il.ibm.com>
4858
4859 PR tree-optimization/22506
4860 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
4861 phis whose argument is constant.
4862
4863 2005-07-28 J"orn Rennecke <joern.rennecke@st.com>
4864
4865 PR rtl-optimization/18992
4866 Back out this patch:
4867 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4868 PR optimization/12142
4869 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
4870 uses of the register in the SET_SRC. Remove unnecessary argument.
4871
4872 Replace it with this:
4873 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
4874 if flag_non_call_exceptions is set and the insn may trap, pass
4875 pc_rtx as dest for recursion.
4876 In SET_SRC part of SET case, if dest is already set, pass it down
4877 unchanged.
4878
4879 2005-07-28 Jan Hubicka <jh@suse.cz>
4880
4881 * cfg.c (update_bb_profile_for_threading): Use RDIV.
4882 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
4883 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
4884 roundoff errors.
4885 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
4886 profile when available.
4887
4888 2005-07-28 Jan Beulich <jbeulich@novell.com>
4889
4890 * config/ia64/ia64.c (ia64_load_pair_ok): New.
4891 (ia64_print_operand): Describe and handle 'X'.
4892 (ia64_register_move_cost): Also handle FP_REGS.
4893 (ia64_preferred_reload_class): Likewise.
4894 (ia64_secondary_reload_class): Likewise.
4895 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
4896 it. Also check for ITANIUM_CLASS_FLDP.
4897 * config/ia64/ia64.h (FP_REGNO_P): New.
4898 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
4899 (reg_class): Add FP_REGS.
4900 (REG_CLASS_NAMES): Adjust for it.
4901 (REG_CLASS_CONTENTS): Likewise.
4902 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
4903 (REG_CLASS_FROM_LETTER): Handle 'x'.
4904 (CLASS_MAX_NREGS): Handle FP_REGS.
4905 (MEMORY_MOVE_COST): Likewise.
4906 * config/ia64/ia64.md (itanium_class): Add fldp.
4907 (type): Handle fldp.
4908 (movti_internal): More allowable operand combinations. Use ldfp8 when
4909 splitting unnecessary. Remove predicable attribute. Adjust
4910 itanium_class attribute.
4911 (smuldi3_highpart): Remove outdated comment.
4912 (mulditi3, umulditi3, rotlti3): New expanders.
4913 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
4914 (absti2): Disabled new insn for future reference.
4915 Respective new splitters.
4916 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
4917 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
4918 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
4919
4920 2005-07-25 James A. Morrison <phython@gcc.gnu.org>
4921
4922 PR rtl-optimization/23047
4923 * simplify-rtx.c (simplify_const_relational_operation): Respect
4924 flag_wrapv for comparisons with ABS.
4925
4926 2005-07-27 James A. Morrison <phython@gcc.gnu.org>
4927
4928 PR tree-optimization/22493
4929 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
4930 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
4931
4932 2005-07-27 Aldy Hernandez <aldyh@redhat.com>
4933
4934 * config/frv/frv.opt (moptimize-membar): New.
4935
4936 * doc/invoke.texi: Document -moptimize-membar and its inverse.
4937
4938 * config/frv/frv.h: Remove machine_function definition.
4939
4940 * config/frv/frv.c (struct frv_io): New.
4941 (struct machine_function): Moved from frv.h. Add has_membar_p.
4942 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
4943 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
4944 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
4945 (frv_optimize_membar_global, frv_optimize_membar): New functions.
4946 (frv_reorg): Call frv_optimize_membar when appropriate.
4947 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
4948 (frv_expand_builtin): Adjust calls accordingly.
4949 (frv_io_address_cookie): New function.
4950 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
4951 load or store rather than a special insn. Add ccnstant address and
4952 io-type operands to the membar.
4953 (frv_ifcvt_modify_tests): Unsign regno.
4954 (frv_ifcvt_modify_tests): Same.
4955
4956 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
4957 UNSPEC_OPTIONAL_MEMBAR constant.
4958 (builtin_read_<mode>): Delete.
4959 (builtin_write_<mode>): Delete.
4960 ("optional_membar_<mode>"): Add operand.
4961
4962 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
4963 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
4964 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
4965 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
4966 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
4967 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
4968 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
4969 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
4970 * testsuite/gcc.target/frv/all-read-write-1.c: New.
4971
4972 2005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
4973
4974 * df.c (df_uses_record): Handle SCRATCH.
4975
4976 2005-07-28 Steven Bosscher <stevenb@suse.de>
4977
4978 PR debug/20161
4979 * passes.c (rest_of_decl_compilation): If decl is a type and
4980 we have encountered errors, don't emit debug information.
4981
4982 2005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
4983
4984 * params.def: Fixed comment.
4985
4986 2005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
4987
4988 PR target/19885
4989 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
4990 (TARGET_ASM_UNALIGNED_HI_OP): Add.
4991 (TARGET_ASM_UNALIGNED_SI_OP): Add.
4992
4993 2005-07-27 Steven Bosscher <stevenb@suse.de>
4994
4995 PR c++/22003
4996 * varasm.c (assemble_start_function): Don't do anything that may
4997 require a CFG if the current function is a thunk.
4998
4999 2005-07-25 Geoffrey Keating <geoffk@apple.com>
5000
5001 * doc/install.texi (Prerequisites): Mention that perl is needed
5002 to do export control in libstdc++ targetting Darwin.
5003
5004 2005-07-27 Steven Bosscher <stevenb@suse.de>
5005
5006 PR rtl-optimization/17808
5007 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
5008 (sched_insns_conditions_mutex_p): Split out from...
5009 (add_dependence): ...here. But don't call it from here.
5010 (add_dependence_list): Check sched_insns_conditions_mutex_p
5011 before calling add_dependence.
5012 (add_dependence_list_and_free): Likewise.
5013 (fixup_sched_groups): Likewise.
5014 (sched_analyze_1): Likewise.
5015 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
5016 (sched_analyze): Likewise.
5017 (sched_analyze_insn): Likewise.
5018 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
5019 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
5020 dependencies on all COND_EXEC insns to jumps ending basic blocks
5021 when doing intrablock scheduling.
5022 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
5023
5024 2005-07-27 Jeff Law <law@redhat.com>
5025
5026 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
5027 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
5028 equivalency sets, correctly handle the case were vr0 has an
5029 equivalency set, but vr1 does not.
5030
5031 2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
5032
5033 PR tree-optimization/23073
5034 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
5035 vect_print_dump_info before fprintf.
5036
5037 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
5038
5039 PR tree-optimize/22348
5040 * tree-ssa-loop-niter.c (number_of_iterations_cond):
5041 Fold the partial computation.
5042
5043 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
5044
5045 PR tree-optimization/22325
5046 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
5047 Declare.
5048 * tree-scalar-evolution.c (scev_const_prop): Add generic final
5049 value replacement.
5050 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
5051 (force_var_cost): ... this function.
5052 (compute_phi_arg_on_exit): Export.
5053
5054 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
5055
5056 PR tree-optimization/20773
5057 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
5058 edge.
5059
5060 2005-07-27 Richard Guenther <rguenther@suse.de>
5061
5062 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
5063 Avoid pushing again if current struct contains only
5064 fields we decomposed.
5065
5066 2005-07-27 Jan Hubicka <jh@suse.cz>
5067
5068 PR tree-optimization/22574
5069 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
5070 not available.
5071
5072 * tree-tailcall.c (decrease_profile): New function.
5073 (eliminate_tail_call): Use it.
5074
5075 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
5076 visibility flags correctly in whole program mode.
5077
5078 2005-07-26 Steve Ellcey <sje@cup.hp.com>
5079
5080 PR rtl-optimization/22472
5081 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
5082
5083 2005-07-26 Steven Bosscher <stevenb@suse.de>
5084
5085 PR tree-optimization/22504
5086 * tree-complex.c (expand_complex_addition): Use 'code' instead
5087 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
5088
5089 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
5090
5091 * config.gcc (cpu_type): Add frv case.
5092 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
5093 (supported_defaults): Add fr550 case.
5094
5095 2005-07-26 Diego Novillo <dnovillo@redhat.com>
5096
5097 PR 22591
5098 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
5099 whether a pointer of type T * may point to objects of type T *.
5100
5101 2005-07-26 DJ Delorie <dj@redhat.com>
5102
5103 * configure: Regenerate.
5104
5105 2005-07-26 Dale Johannesen <dalej@apple.com>
5106
5107 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
5108
5109 2005-07-26 Mark Mitchell <mark@codesourcery.com>
5110
5111 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
5112 Clarify use of "build" in name.
5113
5114 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
5115
5116 * doc/extend.texi (Raw read/write Functions): New section.
5117 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
5118 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
5119 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
5120 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
5121 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
5122 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
5123 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
5124 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
5125 * config/frv/frv.c: Add bdesc_loads global.
5126 Add bdesc_stores global.
5127 (frv_init_builtins): Add support for __builtin_{read/write}*.
5128 (frv_volatile_memref): New.
5129 (frv_expand_load_builtin): New.
5130 (frv_expand_store_builtin): New.
5131 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
5132 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
5133 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
5134 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
5135 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
5136 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
5137 (builtin_read_<mode>): New.
5138 (builtin_write_<mode>): New.
5139 (builtin_write64): New.
5140 (optional_membar_<mode>): New.
5141
5142 2005-07-26 J"orn Rennecke <joern.rennecke@st.com>
5143
5144 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
5145 (rather than units) against HOST_BITS_PER_WIDE_INT.
5146
5147 2005-07-26 Kazu Hirata <kazu@codesourcery.com>
5148
5149 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
5150 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
5151 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
5152 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
5153 FSF address.
5154
5155 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
5156 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
5157 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
5158 comment typos.
5159 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
5160
5161 2005-07-26 Richard Guenther <rguenther@suse.de>
5162
5163 PR tree-optimization/22486
5164 * fold-const.c (fold_unary): Fold away useless component
5165 references of the form (T *)&T.x, if the address
5166 doesn't change.
5167
5168 2005-07-25 James E Wilson <wilson@specifixinc.com>
5169
5170 * dwarf2out.c (add_call_src_coords_attributes): New.
5171 (gen_inlined_subroutine_die): Call it.
5172 (maybe_emit_file, init_file_table): Add comments.
5173 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
5174 maybe_emit_file.
5175 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
5176 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
5177 * tree.h (BLOCK_SOURCE_LOCATION): New.
5178 (struct tree_block): New field locus.
5179
5180 2005-07-26 Andreas Schwab <schwab@suse.de>
5181
5182 PR rtl-optimization/23043
5183 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
5184 when allocating a struct unoccr.
5185
5186 2005-07-25 Richard Henderson <rth@redhat.com>
5187
5188 PR 22626
5189 * tree-complex.c (gate_no_optimization): True if errors.
5190 * Makefile.in (tree-complex.o): Update dependencies.
5191
5192 2005-07-25 Aldy Hernandez <aldyh@redhat.com>
5193
5194 * config/frv/predicates.md (integer_register_operand): Use
5195 GPR_AP_OR_PSEUDO_P.
5196
5197 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
5198
5199 PR tree-opt/22484
5200 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
5201 after fold.
5202 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
5203
5204 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
5205
5206 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
5207 types when flag_unsafe_math_optimizations is true.
5208
5209 2005-07-25 Mark Mitchell <mark@codesourcery.com>
5210
5211 * gcc.c (option_map): Add --sysroot.
5212 (process_command): Handle --sysroot.
5213 (display_help): Document it.
5214 * doc/cppopts.tex (-isysroot): Document.
5215 * doc/invoke.texi (--sysroot): Document.
5216 * doc/install.texi (--with-build-sysroot): Document.
5217
5218 * Makefile.in (inhibit_libc): New variable.
5219 (INHIBIT_LIBC_CFLAGS): Likewise.
5220 (LIBGCC2_CFLAGS): Include
5221 $(INHIBIT_LIBC_CFLAGS).
5222 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
5223 ($(T)crtbegin.o): Do not use @inhibit_libc@.
5224 ($(T)crtend.o): Likewise.
5225 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
5226 ($(T)crtendS.o): Likewise.
5227 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
5228 ($(T)crtendT.o): Likewise.
5229 (stmp-fixinc): Do not complain about missing headers if
5230 inhibit_libc.
5231 * configure.ac (inhibit_libc): Set it to true/false.
5232 (--with-build-sysroot): New option. Use it to set
5233 SYSTEM_HEADER_DIR.
5234 * configure: Regenerated.
5235
5236 2005-07-25 Manfred Hollstein <mh@suse.com>
5237
5238 * calls.c (store_one_arg): Fix unsigned comparison warning.
5239
5240 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
5241
5242 PR other/22337
5243 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
5244 (ggc_print_statistics): Initialize variable before use.
5245
5246 2005-07-25 Richard Guenther <rguenther@suse.de>
5247
5248 * tree-dfa.c (mark_new_vars_to_rename): Protect against
5249 calling with a PHI_NODE argument.
5250
5251 * tree-flow-inline.h (overlap_subvar): Protect against
5252 possible overflow.
5253
5254 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
5255
5256 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
5257 * configure: Regenerate.
5258
5259 2005-07-25 Ira Rosen <irar@il.ibm.com>
5260
5261 * expr.c (highest_pow2_factor): Make extern.
5262 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
5263 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
5264 record_array_differ_p, array_ptr_differ_p): Likewise.
5265 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
5266 additional cases. Call the above functions.
5267 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
5268 base_object_differ_p when there are two base objects. Otherwise, compare
5269 base address and offset. Call may_alias_p.
5270 (dump_data_reference): Use a correct field name.
5271 (analyze_array): Make static. Initialize new data-ref fields.
5272 (analyze_indirect_ref): New function.
5273 (init_data_ref): Initialize new data-ref fields.
5274 (strip_conversion): Moved from tree-vect-analyze.c.
5275 (analyze_offset_expr, get_ptr_offset, address_analysis,
5276 object_analysis): Likewise.
5277 (analyze_offset): New function.
5278 (create_data_ref): Likewise.
5279 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
5280 dimensions for ARRAY_REFs only.
5281 (build_classic_dist_vector): Make static.
5282 (access_functions_are_affine_or_constant_p): Call macro to get the
5283 address of access functions.
5284 (compute_all_dependences): Add new parameter
5285 compute_self_and_read_read_dependences. Compute self and read-read
5286 dependences if it is true.
5287 (find_data_references_in_loop): Call create_data_ref. Initialize new
5288 data-ref fields.
5289 (compute_data_dependences_for_loop): Add new parameter
5290 compute_self_and_read_read_dependences. Remove parameter nb_loops,
5291 compute nb_loops. Call compute_all_dependences,
5292 build_classic_dist_vector and build_classic_dir_vector with correct
5293 parameters.
5294 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
5295 with correct parameters. Compare dimensions for ARRAY_REFs only.
5296 (free_data_refs): Call macro to free access functions.
5297 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
5298 fields from stmt_vinfo.
5299 (struct base_object_info): New structure.
5300 (struct data_reference): Move fields to base_object_info. Add fields
5301 first_location and object_info for above structures. Move fields from
5302 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
5303 aligned_to. Add macros to access the new fields.
5304 Update functions declarations.
5305 * tree-flow.h (is_aliased_with): Declare.
5306 * tree-loop-linear.c (linear_transform_loops): Call
5307 compute_data_dependences_for_loop with correct parameters.
5308 * tree-ssa-alias.c (is_aliased_with): New function.
5309 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
5310 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
5311 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
5312 vect_base_addr_differ_p, compute_subscript_distance and
5313 build_classic_dist_vector. Add printings. Check absolute value of
5314 distance.
5315 (vect_analyze_data_ref_dependences): Go through ddrs instead of
5316 data-refs.
5317 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
5318 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
5319 to bytes. Add printing.
5320 (vect_compute_data_refs_alignment): Go through loads and stores in one
5321 loop.
5322 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
5323 vect_analyze_data_ref_access): Likewise.
5324 (vect_analyze_pointer_ref_access): Remove.
5325 (vect_address_analysis, vect_object_analysis): Likewise.
5326 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
5327 and analyze data-refs in the loop.
5328 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
5329 fields of data-ref instead of stmt. Add init to the offset from the
5330 base.
5331 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
5332 (vect_update_init_of_dr): Likewise.
5333 (vect_update_inits_of_drs): Go through loads and stores in one loop.
5334 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
5335 removed fields.
5336 (new_loop_vec_info): Initialize new fields.
5337 (destroy_loop_vec_info): Free new fields.
5338 (vect_strip_conversion): Remove.
5339 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
5340 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
5341 datarefs. Add new field ddrs.
5342 Add macros for the new fields access.
5343 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
5344 base_aligned_p, misalignment, memtag, ptr_info and subvars.
5345 Remove their macros.
5346 * tree.h (highest_pow2_factor): Declare.
5347
5348 2005-07-25 Jakub Jelinek <jakub@redhat.com>
5349
5350 * calls.c (store_one_arg): Check for sibling call MEM arguments
5351 from already clobbered incoming argument area.
5352
5353 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5354
5355 * c-common.c (check_missing_format_attribute): New.
5356 * c-common.h (check_missing_format_attribute): Likewise.
5357 * c-typeck.c (convert_for_assignment): Use it.
5358
5359 2005-07-24 Andreas Schwab <schwab@suse.de>
5360
5361 * config/m68k/m68k.md ("extendqidi2"): When source is an address
5362 register use a word move. Correct operand of ext.w in 68000 code.
5363
5364 2005-07-23 Mark Mitchell <mark@codesourcery.com>
5365
5366 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
5367 variables as declarations, rather than definitions.
5368
5369 2005-07-24 Ira Rosen <irar@il.ibm.com>
5370
5371 PR tree-optimization/22526
5372 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
5373 of the zero node.
5374
5375 2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5376
5377 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
5378 that C99 reserve for future use. Use it to define clog10,
5379 clog10f and clog10l.
5380
5381 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5382
5383 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
5384 * configure.ac: Check for -Wmissing-format-attribute.
5385
5386 * configure: Regenerate.
5387
5388 2005-07-23 Richard Henderson <rth@redhat.com>
5389
5390 PR tree-optimization/22623
5391 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
5392
5393 2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
5394
5395 PR target/22577
5396 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
5397
5398 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5399
5400 * Makefile.in (C_TREE_H): Update dependencies.
5401 * c-tree.h: Include toplev.h.
5402 * diagnostic.h (diagnostic_set_info): Add format attribute.
5403 * rtl-error.c (diagnostic_for_asm): Likewise.
5404
5405 2005-07-23 Chao-ying Fu <fu@mips.com>
5406
5407 * config/mips/mips-dsp.md: New file.
5408 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
5409 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
5410 functions.
5411 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
5412 MIPS_BUILTIN_BPOSGE32.
5413 (mips_expand_builtin_direct): Add one parameter to indicate that
5414 builtin functions need to return a value.
5415 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
5416 functions.
5417 (mips_regno_to_class): Add classes for 12 new DSP registers.
5418 (mips_subword): Change to check four HI registers.
5419 (mips_output_move): Output move to and from 6 new DSP accumulators.
5420 (override_options): Make sure -mdsp and -mips16 are not used together.
5421 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
5422 for machine modes.
5423 (mips_conditional_register_usage): Disable 6 new DSP accumulators
5424 when !TARGET_DSP.
5425 (print_operand): Add 'q' for printing DSP accumulators.
5426 (mips_cannot_change_mode_class): Check ACC_REGS.
5427 (mips_secondary_reload_class): Check ACC_REGS.
5428 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
5429 (mips_register_move_cost): Check ACC_REGS.
5430 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
5431 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
5432 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
5433 (dsp_bdesc): New array.
5434 (bdesc_arrays): Add DSP builtin function table.
5435 (mips_prepare_builtin_arg): Check predicate again after
5436 copy_to_mode_reg.
5437 (mips_expand_builtin): Add one more parameter to
5438 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
5439 MIPS_BUILTIN_BPOSGE32.
5440 (mips_init_builtins): Initialize new function types.
5441 (mips_expand_builtin_direct): Check if builtin functions need to
5442 return a value and pass operands properly.
5443 (mips_expand_builtin_bposge): New function.
5444 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
5445 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
5446 (FIRST_PSEUDO_REGISTER): Increase to 188.
5447 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5448 Update for 12 new DSP registers.
5449 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
5450 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
5451 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
5452 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
5453 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
5454 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
5455 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
5456 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
5457 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
5458 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
5459 (REGISTER_NAMES): Add names for 12 new DSP registers.
5460 * config/mips/mips.md: Include mips-dsp.md.
5461 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5462 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5463 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5464 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5465 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5466 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5467 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5468 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5469 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5470 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5471 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5472 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5473 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5474 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5475 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5476 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5477 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5478 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5479 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5480 (UNSPEC_RDDSP): New constants.
5481 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
5482 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
5483 A<-d alternative.
5484 * config/mips/mips.opt (-mdsp): New option.
5485 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
5486 (reg_imm10_operand): New predicates.
5487 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
5488 * doc/invoke.texi (-mdsp): Document new option.
5489
5490 2005-07-22 DJ Delorie <dj@redhat.com>
5491
5492 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
5493 to warning calls.
5494 * tree-inline.c (inlinable_function_p): Likewise.
5495
5496 2005-07-22 Mark Mitchell <mark@codesourcery.com>
5497
5498 PR debug/21828
5499 * toplev.c (check_global_declarations): Do not mark undefined
5500 variables as DECL_IGNORED_P.
5501 * varasm.c (first_global_object_name): GTY it.
5502 (weak_global_object_name): Likewise.
5503 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
5504 a string to go into {weak,first}_global_object_name.
5505
5506 2005-07-22 DJ Delorie <dj@redhat.com>
5507
5508 * c-format.c (check_function_format): Change warning control
5509 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
5510
5511 2005-07-22 Diego Novillo <dnovillo@redhat.com>
5512
5513 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
5514 &PTR->FLD a dereference of PTR.
5515 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
5516 a potential dereference of PTR.
5517
5518 2005-07-22 J"orn Rennecke <joern.rennecke@st.com>
5519
5520 PR rtl-optimization/20370
5521 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
5522 call allocate_reg_info if necessary.
5523
5524 PR rtl-optimization/21848
5525 * calls.c (emit_library_call_value_1): For const functions, add
5526 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
5527
5528 PR rtl-optimization/22445
5529 * cselib.c (target.h): Include.
5530 (rtx_equal_for_cselib_p): Allow commutative matches.
5531 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
5532 Remove MODE parameter. Changed all callers.
5533
5534 PR rtl-optimization/22258
5535 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
5536 New functions.
5537 (try_combine): Use likely_spilled_retval_p.
5538
5539 2005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
5540
5541 * config.gcc: Add crx-elf support.
5542
5543 * doc/contrib.texi: Mention crx.
5544 * doc/extend.texi: Document crx extensions.
5545 * doc/install.texi: Document crx install.
5546 * doc/invoke.texi: Document crx options.
5547 * doc/md.texi: Document crx constraints.
5548
5549 * config/crx/crx-protos.h: New file.
5550 * config/crx/crx.c: New file.
5551 * config/crx/crx.h: New file.
5552 * config/crx/crx.md: New file.
5553 * config/crx/crx.opt: New file.
5554 * config/crx/t-crx: New file.
5555
5556 2005-07-22 Manfred Hollstein <mh@suse.com>
5557
5558 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
5559 warnings.
5560 (int_add_graph_edge): Likewise.
5561 (collapse_nodes): Likewise.
5562 (process_unification_queue): Likewise.
5563
5564 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5565 Laurent GUERBY <laurent@guerby.net>
5566
5567 PR tree-optimization/22336
5568 * function.c (record_block_change): Check for
5569 cfun->ib_boundaries_block.
5570
5571 2005-07-21 James A. Morrison <phython@gcc.gnu.org>
5572
5573 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
5574 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
5575
5576 2005-07-21 DJ Delorie <dj@redhat.com>
5577
5578 * toplev.c (warn_deprecated_use): Add warning control to warning
5579 call.
5580 * c-typeck.c (parser_build_binary_op): Likewise.
5581 (c_finish_if_stmt): Likewise.
5582 * c-common.c (check_function_sentinel): Likewise.
5583 (check_nonnull_arg): Likewise.
5584
5585 2005-07-21 Richard Henderson <rth@redhat.com>
5586
5587 PR tree-opt/22504
5588 * tree-complex.c (complex_ssa_name_components): New.
5589 (cvc_lookup): Allow entry not found.
5590 (create_components): Remove.
5591 (create_one_component_var, get_component_var): New.
5592 (get_component_ssa_name, set_component_ssa_name): New.
5593 (extract_component): Use get_component_ssa_name.
5594 (update_complex_components): Use set_component_ssa_name.
5595 (update_complex_components_on_edge): Likewise.
5596 (update_phi_components): Create new PHI nodes directly, instead
5597 of adding insns to edges.
5598 (tree_lower_complex): Allocate and free complex_variable_components
5599 and complex_ssa_name_components here.
5600
5601 2005-07-20 Daniel Berlin <dberlin@dberlin.org>
5602
5603 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
5604 revert to returning false.
5605
5606 2005-07-21 Uros Bizjak <uros@kss-loka.si>
5607
5608 PR target/21149
5609 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
5610
5611 2005-07-21 Uros Bizjak <uros@kss-loka.si>
5612
5613 PR target/22576
5614 * config/i386/i386.md (cmpxf): Change operand constraints
5615 to "nonmemory_operand".
5616
5617 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
5618
5619 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
5620
5621 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
5622
5623 PR middle-end/21180
5624 * fold-const.c (fold_build1): Add checksum for the operands.
5625 (fold_build2): Likewise.
5626 (fold_build3): Likewise.
5627
5628 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
5629
5630 PR middle-end/19055
5631 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
5632
5633 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
5634
5635 * common.opt (-fforward-propagate): Committed by mistake,
5636 removed.
5637
5638 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5639
5640 * reg-stack.c: Fix comment typo(s).
5641 * tree-ssa-operands.c: Likewise.
5642 * tree-vectorizer: Likewise.
5643
5644 2005-07-21 Nick Clifton <nickc@redhat.com>
5645
5646 * config/sh/symbian.c: Replace C++ style line comments with C
5647 style line comments.
5648 (symbian_add_attribute): Do not use a ? operator on the LHS of
5649 an assignment.
5650 (sh_symbian_handle_dll_attribute): Change the type of the
5651 method vector to "VEC(tree,gc)*" and use vector accessor
5652 macros to walk over the elements.
5653 (symbian_export_vtable_and_rtti_p): Likewise.
5654 (symbian_class_needs_attribute_p): Likewise.
5655
5656 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
5657
5658 PR target/22085
5659 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
5660 initialize targetm.resolve_overloaded_builtin here.
5661 (altivec_expand_overloaded_builtin): Make it non-static.
5662 * config/rs6000/rs6000-protos.h
5663 (altivec_expand_overloaded_builtin): New prototype.
5664 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
5665 targetm.resolve_overloaded_builtin here.
5666 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
5667
5668 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
5669 Zdenek Dvorak <dvorakz@suse.cz>
5670
5671 PR tree-optimization/19210
5672 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
5673 New.
5674 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
5675 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
5676 rely on unproven assumptions.
5677 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
5678 * tree-flow.h (number_of_iterations_exit): Add final parameter.
5679 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
5680 to number_of_iterations_exit.
5681 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
5682 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
5683 * tree-ssa-loop-niter.c (find_loop_niter,
5684 estimate_numbers_of_iterations_loop): Likewise.
5685 (number_of_iterations_exit): Honor the new options.
5686 * doc/invoke.texi (Wunsafe-loop-optimizations,
5687 funsafe-loop-optimizations): Document them.
5688
5689 2005-07-21 Richard Sandiford <richard@codesourcery.com>
5690
5691 PR rtl-optimization/22167
5692 * gcse.c (hoist_code): Fix hoist_exprs[] check.
5693
5694 2005-07-20 Adam Nemet <anemet@lnxw.com>
5695
5696 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
5697 __do_global_dtors_aux longcall.
5698
5699 2005-07-20 Kazu Hirata <kazu@cs.umass.edu>
5700
5701 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
5702 (old_special_pred_table): Don't reference
5703 SPECIAL_MODE_PREDICATES.
5704 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
5705 * config/arc/arc.h: Don't mention PREDICATE_CODES.
5706 * config/sh/predicates.h: Don't mention
5707 SPECIAL_MODE_PREDICATES.
5708 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
5709 Remove.
5710
5711 2005-07-20 DJ Delorie <dj@redhat.com>
5712
5713 * config.gcc: Add m32c-elf support.
5714
5715 * doc/contrib.texi: Mention m32c.
5716 * doc/extend.texi: Document m32c extensions.
5717 * doc/install.texi: Mention m32c.
5718 * doc/invoke.texi: Document m32c options.
5719 * doc/md.texi: Document m32c constraints.
5720
5721 * config/m32c/addsub.md: New file.
5722 * config/m32c/bitops.md: New file.
5723 * config/m32c/cond.md: New file.
5724 * config/m32c/jump.md: New file.
5725 * config/m32c/m32c-lib1.S: New file.
5726 * config/m32c/m32c-lib2.c: New file.
5727 * config/m32c/m32c-modes.def: New file.
5728 * config/m32c/m32c-pragma.c: New file.
5729 * config/m32c/m32c-protos.h: New file.
5730 * config/m32c/m32c.abi: New file.
5731 * config/m32c/m32c.c: New file.
5732 * config/m32c/m32c.h: New file.
5733 * config/m32c/m32c.md: New file.
5734 * config/m32c/m32c.opt: New file.
5735 * config/m32c/minmax.md: New file.
5736 * config/m32c/mov.md: New file.
5737 * config/m32c/muldiv.md: New file.
5738 * config/m32c/predicates.md: New file.
5739 * config/m32c/prologue.md: New file.
5740 * config/m32c/shift.md: New file.
5741 * config/m32c/t-m32c: New file.
5742
5743 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
5744
5745 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
5746 (stack_protect_set, stack_protect_test): New expanders.
5747 (stack_protect_set_si, stack_protect_set_si_media,
5748 stack_protect_set_di_media, stack_protect_test_si,
5749 stack_protect_test_si_media, stack_protect_test_di_media):
5750 New insns.
5751
5752 2005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
5753
5754 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
5755
5756 2005-07-20 James A. Morrison <phython@gcc.gnu.org>
5757
5758 * tree.h (tree_expr_nonzero_p): Export.
5759 * fold-const.c (tree_expr_nonzero_p): Likewise.
5760 Return true for CALL_EXPRs that are alloca calls.
5761 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
5762 against zero.
5763 * tree-flow.h (expr_computes_nonzero): Remove.
5764 * tree-vrp.c (expr_computes_nonzero): Remove.
5765 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
5766 (extract_range_from_unary_expr): Likewise.
5767 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
5768 tree_expr_nonzero_p.
5769
5770 2005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
5771
5772 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
5773 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
5774 extra arg "picreg" and use it instead of pic_offset_table_rtx.
5775 All callers changed.
5776 (frame_related_constant_load): New arg "related" which controls
5777 setting of RTX_FRAME_RELATED_P. All callers changed.
5778 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
5779 (bfin_expand_prologue): Add stack limit checking.
5780 * config/bfin/bfin.md (trapifcc): New pattern.
5781
5782 * config/bfin/bfin.c: Include "langhooks.h".
5783 (def_builtin): Go through lang_hooks to call builtin_function.
5784
5785 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
5786 * config/bfin/predicates.md (symbol_ref_operand): New.
5787 (call_insn_operand): Delete. All callers changed to use
5788 register_no_elim_operand.
5789 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
5790 call_cookie field.
5791 (function_arg): Use it to generate the call's operand 2.
5792 (bfin_longcall_p): New function.
5793 (bfin_expand_call): Extra arg "cookie". All callers and declaration
5794 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
5795 determine if the address needs to be in a REG.
5796 (bfin_handle_longcall_attribute): New function.
5797 (bfin_attribute_table): Add "longcall" and "shortcall".
5798 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
5799 (CUMULATIVE_ARGS): New member call_cookie.
5800 (PREDICATE_CODES): Add symbol_ref_operand.
5801 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
5802 extra USE to the pattern.
5803 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
5804 New patterns, split off call_insn, sibcall_insn, call_value_insn and
5805 sibcall_value_insn; now the new patterns handle direct calls and the
5806 old ones indirect calls.
5807 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
5808
5809 2005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
5810
5811 * doc/trouble.texi: Update section on handling of empty loops.
5812
5813 2005-07-20 Kazu Hirata <kazu@codesourcery.com>
5814
5815 * config.gcc: Remove support for sparc-*-openbsd*,
5816 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
5817 ns32k-*-netbsd*.
5818 * config.host: Remove support for i860-*-sysv4* as a host.
5819 * config/i860/*, config/ip2k/*, config/ns32k/*,
5820 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
5821 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
5822 mention obsolete ports.
5823
5824 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
5825
5826 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
5827 soft frame pointer.
5828 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
5829 of frame_pointer_rtx.
5830 (sh_expand_epilogue): Likewise.
5831 (sh_set_return_address): Likewise.
5832 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
5833 instead of FRAME_POINTER_REGNUM if needed. Add elimination
5834 offsets from FRAME_POINTER_REGNUM.
5835 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
5836 (sh_register_names): Add initializer for sfp.
5837 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
5838 (VALID_REGISTER_P): Likewise.
5839 (FIRST_PSEUDO_REGISTER): Update.
5840 (DWARF_FRAME_REGISTERS): Define.
5841 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
5842 (HARD_FRAME_POINTER_REGNUM): Define.
5843 (FRAME_POINTER_REGNUM): Redefine.
5844 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
5845 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
5846 from FRAME_POINTER_REGNUM.
5847 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
5848 FRAME_POINTER_REGNUM.
5849 (REG_CLASS_CONTENTS): Add sfp.
5850 (REG_ALLOC_ORDER): Likewise.
5851 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
5852 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
5853 of frame_pointer_rtx.
5854 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5855
5856 2005-07-19 James A. Morrison <phython@gcc.gnu.org>
5857
5858 * fold-const.c (tree_expr_nonnegative_p): Only return true for
5859 ABS_EXPR when flag_wrapv is false because of INT_MIN.
5860 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
5861 of an ABS_EXPR.
5862 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
5863 ABS_EXPR<x>.
5864
5865 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
5866
5867 Make CONSTRUCTOR use VEC to store initializers.
5868 * c-common.c (complete_array_type): Update to cope with VEC in
5869 CONSTRUCTOR_ELTS.
5870 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
5871 (pp_c_constructor_elts): New function.
5872 * c-pretty-print.h (pp_c_constructor_elts): Declare.
5873 * c-typeck.c (build_function_call, build_c_cast, digest_init,
5874 struct constructor_stack, struct initializer_stack,
5875 constructor_elements, push_init_level, pop_init_level,
5876 add_pending_init, find_init_member, output_init_element): Update to
5877 cope with VEC in CONSTRUCTOR_ELTS.
5878 * coverage.c (build_fn_info_value, build_ctr_info_value,
5879 build_gcov_info): Likewise.
5880 * expr.c (categorize_ctor_elements_1, store_constructor,
5881 expand_expr_real_1): Likewise.
5882 * fold-const.c (fold_ternary): Likewise.
5883 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
5884 gimplify_init_constructor, gimplify_expr): Likewise.
5885 * tree-dump.c (dequeue_and_dump): Likewise.
5886 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
5887 node.
5888 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
5889 CONSTRUCTOR_ELTS.
5890 * tree-sra.c (generate_element_init_1): Likewise.
5891 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
5892 * tree-ssa-operands.c (get_expr_operands): Likewise.
5893 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5894 * tree-vect-transform.c (vect_get_vec_def_for_operand):
5895 (get_initial_def_for_reduction): Likewise.
5896 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
5897 value handle in annotations.
5898 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
5899 tree_node_structure): Add support for constr_kind.
5900 (build_vector_from_ctor, build_constructor_single,
5901 build_constructor_from_list): New functions.
5902 (build_constructor): Update to take a VEC instead of a TREE_LIST.
5903 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
5904 Update to cope with VEC in CONSTRUCTOR_ELTS.
5905 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
5906 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
5907 CONSTRUCTOR_APPEND_ELT): New macros.
5908 (struct constructor_elt, struct tree_constructor): New data types.
5909 (union tree_node): Add tree_constructor field.
5910 * treestruct.def: Define TS_CONSTRUCTOR.
5911 * varasm.c (const_hash_1, compare_constant, copy_constant,
5912 compute_reloc_for_constant, output_addressed_constants,
5913 initializer_constant_valid_p, output_constant,
5914 array_size_for_constructor, output_constructor): Update to cope with
5915 VEC in CONSTRUCTOR_ELTS.
5916 * vec.h (VEC_empty, VEC_copy): New macros.
5917
5918 2005-07-19 Devang Patel <dpatel@apple.com>
5919
5920 * dbxout.c (dbxout_type): Check Objective-C++ lang.
5921
5922 2005-07-19 Richard Henderson <rth@redhat.com>
5923
5924 PR tree-opt/22278
5925 * gimplify.c (gimplify_expr): Use main variant type for the temp
5926 destination for a discarded volatile read.
5927 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
5928 casts between non-void types that change volatility.
5929
5930 2005-07-15 DJ Delorie <dj@redhat.com>
5931
5932 * toplev.h: Add comment about the first parameter for warning().
5933 * errors.h: Likewise.
5934
5935 * c.opt (Wpragmas): New.
5936 * doc/invoke.texi: Document it.
5937
5938 * function.c (do_warn_unused_parameter): Add warning control to
5939 warning call.
5940 * c-decl.c (warn_if_shadowing): Likewise.
5941 * c-lex.c (cb_def_pragma): Likewise.
5942 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
5943 (pop_alignment): Likewise.
5944 (handle_pragma_pack): Likewise.
5945 (apply_pragma_weak): Likewise.
5946 (handle_pragma_weak): Likewise.
5947 (handle_pragma_redefine_extname): Likewise.
5948 (add_to_renaming_pragma_list): Likewise.
5949 (handle_pragma_extern_prefix): Likewise.
5950 (maybe_apply_renaming_pragma): Likewise.
5951 (handle_pragma_visibility): Likewise.
5952
5953 * config/c4x/c4x-c.c (BAD): Likewise.
5954 (c4x_parse_pragma): Likewise.
5955 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
5956 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
5957 (rs6000_pragma_longcall): Likewise.
5958 * config/v850/v850-c.c (pop_data_area): Likewise.
5959 (ghs_pragma_section): Likewise.
5960 (ghs_pragma_section): Likewise.
5961 (ghs_pragma_interrupt): Likewise.
5962 (ghs_pragma_starttda): Likewise.
5963 (ghs_pragma_startsda): Likewise.
5964 (ghs_pragma_startzda): Likewise.
5965 (ghs_pragma_endtda): Likewise.
5966 (ghs_pragma_endsda): Likewise.
5967 (ghs_pragma_endzda): Likewise.
5968
5969 2005-07-19 Danny Berlin <dberlin@dberlin.org>
5970 Kenneth Zadeck <zadeck@naturalbridge.com>
5971
5972 * Makefile.in: Removed tree-promote-statics.c
5973 * tree-promote-statics.c: Removed.
5974 * common.opt: Removed flag-promote-statics.
5975 * opts.c: Ditto.
5976 * passes.c: Removed tree-promote-statics pass.
5977 * tree-pass.h: Ditto.
5978 * timevar.def: Removed TV_PROMOTE_STATICS.
5979
5980
5981 2005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
5982
5983 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
5984 and *-*-freebsd9.
5985 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
5986
5987 2005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5988
5989 PR c/22476
5990 * c-common.c (check_function_arguments): Call
5991 'check_function_format' if either -Wformat or
5992 -Wmissing-format-attribute are specified.
5993 * c-format.c (check_function_format): Check -Wformat before
5994 calling 'check_format_info'.
5995 * c-opts.c (c_common_post_options): Don't warn for
5996 -Wmissing-format-attribute without -Wformat.
5997 * c-typeck.c (convert_for_assignment): Detect additional cases for
5998 -Wmissing-format-attribute.
5999 * doc/invoke.texi (-Wmissing-format-attribute): Document new
6000 behavior.
6001
6002 2005-07-19 Richard Guenther <rguenther@suse.de>
6003
6004 * config/i386/i386.md (lrint<mode>2): Use temporary
6005 instead of clobbering non-existent memory.
6006
6007 2005-07-19 Nick Clifton <nickc@redhat.com>
6008
6009 * config/avr/avr.c (legitimate_address_p): Fix debugging print
6010 statement to avoid displaying ASCII control characters.
6011
6012 2005-07-19 Ben Elliston <bje@au.ibm.com>
6013
6014 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
6015 * cfganal.c (find_edge_index): Ditto.
6016 * combine.c (combine_instructions): Ditto.
6017 * ddg.c (create_scc): Ditto.
6018 (find_successors): Ditto.
6019 (find_predecessors): Ditto.
6020 (find_nodes_on_paths): Ditto.
6021 (longest_simple_path): Ditto.
6022 * flow.c (update_life_info): Ditto.
6023 (count_or_remove_death_notes): Ditto.
6024 (clear_log_links): Ditto.
6025 * modulo-sched.c (generate_reg_moves): Ditto.
6026 (find_max_asap): Ditto.
6027 (find_max_hv_min_mob): Ditto.
6028 (find_max_dv_min_mob): Ditto.
6029 * sbitmap.c (sbitmap_first_set_bit): Ditto.
6030 * sched-rgn.c (extract_edgelst): Ditto.
6031 * tree-into-ssa.c (prepare_names_to_update): Ditto.
6032 (dump_update_ssa): Ditto.
6033 (ssa_names_to_replace) Ditto.
6034 (switch_virtuals_to_full_rewrite): Ditto.
6035 (update_ssa): Ditto.
6036 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
6037
6038 2005-07-18 Daniel Berlin <dberlin@dberlin.org>
6039
6040 Fix PR tree-optimization/22483
6041
6042 * tree-complex.c (create_components): Use
6043 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
6044 * tree-flow-inline.h (fill_referenced_var_vec): New function.
6045 * tree-flow.h (safe_referenced_var_iterator): New structure.
6046 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
6047 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
6048 safe_referenced_var iterator.
6049 (add_type_alias): Ditto.
6050
6051 2005-07-19 Steven Bosscher <stevenb@suse.de>
6052
6053 * loop-init.c (rest_of_handle_loop2): Remove.
6054 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
6055 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
6056 (pass_rtl_loop_init, pass_rtl_loop_done,
6057 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
6058 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
6059 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
6060 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
6061 pass_tree_loop_done, and pass_tree_unswitch.
6062 (gate_loop): Rename to gate_tree_loop.
6063 * passes.c (init_optimization_passes): Update for renamed tree
6064 loop passes. Add the new loop2 passes as subpasses of loop2.
6065 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
6066 Update for the renamed tree loop passes.
6067
6068 2005-07-18 Ian Lance Taylor <ian@airs.com>
6069
6070 PR middle-end/22057
6071 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
6072 blocks when optimizing.
6073
6074 2005-07-18 Steve Ellcey <sje@cup.hp.com>
6075
6076 * common.opt (frename-registers): Initialize to 2.
6077 (fweb): Ditto.
6078 (fgcse-after-reload): Ditto.
6079 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
6080 (process_options): Only change flag_web, flag_rename_registers,
6081 and flag_rerun_cse_after_loop if not explicitly set by user.
6082
6083 2005-07-18 Jan Beulich <jbeulich@novell.com>
6084
6085 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
6086 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
6087 in 64-bit mode the same as DImode in 32-bit mode.
6088 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
6089 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
6090 mode. Add new mode parameter.
6091 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
6092 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
6093 x86_64_shift_adj): New expanders.
6094 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
6095 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
6096 insns.
6097 Respective new splitters. Use renamed shift splitter helpers in 32-bit
6098 DImode shift splitters.
6099 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
6100 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
6101 mode parameter.
6102
6103 2005-07-18 Jan Beulich <jbeulich@novell.com>
6104
6105 * i386.md (movdi_extzv_1): New.
6106 (zero_extendhidi2): Combine alternatives and never force use of
6107 REX64 prefix.
6108 (zero_extendqidi2): Likewise. Don't restrict input selection.
6109
6110 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
6111
6112 Fix PR tree-optimization/22531
6113 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
6114 moment.
6115
6116 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
6117
6118 * tree-promote-statics.c (pass_promote_statics): Change dump file
6119 name.
6120
6121 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
6122
6123 * tree-optimize.c (init_tree_optimization_passes): Add
6124 pass_eliminate_useless_stores pass.
6125 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
6126 * tree-ssa-pre.c (is_copy_stmt): New function.
6127 (follow_copies_till_vuse): Ditto.
6128 (do_eustores): Ditto.
6129 (gate_eustores): Ditto.
6130
6131 2005-07-16 Richard Henderson <rth@redhat.com>
6132
6133 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
6134
6135 2005-07-16 Danny Berlin <dberlin@dberlin.org>
6136 Kenneth Zadeck <zadeck@naturalbridge.com>
6137
6138 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
6139 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
6140 ipa-type-escape.h, tree-promote-statics.c
6141 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
6142 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
6143 tree-promote-statics.c: new files.
6144 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
6145 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
6146 int nonlocal_set_p, mark_constant_function): Deleted.
6147 (rest_of_handle_cfg): Removed call to mark_constant_function.
6148 (nonoverlapping_component_refs_p): Added calls to support
6149 type based aliasing.
6150 * tree-ssa-alias.c (may_alias_p,
6151 compute_flow_insensitive_aliasing): Ditto.
6152 * calls.c (flags_from_decl_or_type): Removed reference to
6153 cgraph_rtl_info.
6154 * c-typeck.c (convert_arguments): Make builtins tolerant of having
6155 too many arguments. This is necessary for Spec 2000.
6156 * cgraph.h (const_function, pure_function): Removed.
6157 * common.opt: Added "fipa-pure-const", "fipa-reference",
6158 "fipa-type-escape", and "ftree-promote-static".
6159 * opts.c: Ditto.
6160 * passes.c: Added ipa and tree-promote-statics passes.
6161 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
6162 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
6163 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
6164 * tree-flow.h: Added exposed sra calls and addition of
6165 reference_vars_info field for FUNCTION_DECLS.
6166 * tree-pass.h: Added passes.
6167 * tree-sra.c: (sra_init_cache): New function.
6168 (sra_insert_before, sra_insert_after) Made public.
6169 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
6170 and made public.
6171 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
6172 aliasing. (may_alias_p): Added code to use type escape analysis to
6173 improve alias sets.
6174 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
6175 code to prune clobbers of static variables based on information
6176 produced in ipa-reference pass. Changed call clobbering so that
6177 statics are not marked as clobbered if the call does not clobber
6178 them.
6179
6180 2005-07-16 Daniel Berlin <dberlin@dberlin.org>
6181
6182 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
6183 too.
6184
6185 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
6186
6187 * doc/install.texi (*-*-solaris2*): Document recommended version
6188 of GNU binutils and mention GNU linker problem on Solaris 10.
6189
6190 2005-07-16 Joseph S. Myers <joseph@codesourcery.com>
6191
6192 PR c/22421
6193 * c-decl.c (c_build_bitfield_integer_type): New function.
6194 (finish_struct): Call it.
6195 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
6196
6197 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6198
6199 * c-typeck.c (digest_init): Call 'convert_for_assignment'
6200 before returning.
6201
6202 2005-07-16 Jan Hubicka <jh@suse.cz>
6203
6204 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
6205 (scale_bbs_frequencies_int): Watch roundoff errors.
6206 * predict.c (return_prediction): Initialize return_stmt.
6207
6208 2005-07-16 Jan Hubicka <jh@suse.cz>
6209
6210 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
6211 after RTL profiling.
6212
6213 2005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
6214
6215 PR middle-end/22398
6216 * fold-const.c (build_range_check): Convert high/low to etype
6217 if we are only comparing against exp.
6218
6219 2005-07-13 Daniel Berlin <dberlin@dberlin.org>
6220
6221 Fix PR tree-optimization/22376
6222 * tree-ssa-structalias.c (build_constraint_graph): We really meant
6223 special var here.
6224 (need_to_solve): New function.
6225 (compute_points_to_sets): Use it.
6226
6227 2005-07-15 Jan Hubicka <jh@suse.cz>
6228
6229 * cfg.c (update_bb_profile_for_threading): More diagnostic.
6230 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
6231
6232 2005-07-15 Richard Guenther <rguenther@suse.de>
6233
6234 * c-common.c (handle_flatten_attribute): New function.
6235 Add flatten function attribute.
6236 * doc/extend.texi: Document flatten function attribute.
6237 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
6238 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
6239 New functions.
6240 (cgraph_decide_inlining): Handle functions with flatten
6241 attribute.
6242
6243 2005-07-14 David Edelsohn <edelsohn@gnu.org>
6244
6245 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
6246 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
6247 UNSPEC_XCHG, UNSPEC_AND): New.
6248 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
6249 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
6250 * config/rs6000/sync.md (FETCHOP): New code macro.
6251 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
6252 New code attrs.
6253 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
6254 (sync_compare_and_swap<mode>): Same.
6255 (sync_lock_test_and_set<mode>): Same.
6256 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
6257 for QImode and HImode, and not PPC405.
6258 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
6259 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
6260 (sync_<fetchop>{si,di}_internal): New.
6261 (sync_nand{si,di}_internal): New.
6262 (sync_old_<fetchop>{si,di}_internal): New.
6263 (sync_old_nand{si,di}_internal): New
6264 (sync_new_<fetchop>{si,di}_internal): New.
6265 (sync_new_nand{si,di}_internal): New.
6266 (atomic_and{si,di}): New.
6267 (sync_new_nand{si,di}_internal): New.
6268 (atomic_and{si,di}): New.
6269 (sync_add<mode>_internal): Delete.
6270 (sync_addshort_internal): Use unspec instead of unspec_volatile.
6271 (sync_sub<mode>_internal): Delte.
6272 (sync_subshort_internal): New.
6273 (sync_andsi_internal): Use unspec instead of unspec_volatile.
6274 (sync_anddi_internal): Delete.
6275 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
6276 (sync_booldi_internal): Delete.
6277 (sync_boolc<mode>_internal): Delete.
6278 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
6279 (sync_boolc<mode>_internal2): Delete.
6280 (sync_boolcc<mode>_internal): Delete.
6281 (isync, lwsync): Use unspec instead of unspec_volatile.
6282 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
6283 Revert UNSPEC_VOLATILE.
6284 (rs6000_split_atomic_op): New.
6285 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
6286
6287 2005-07-14 Eric Christopher <echristo@redhat.com>
6288
6289 * config/mips/mips.c (mips_canonicalize_comparison): Cast
6290 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
6291
6292 2005-07-14 Eric Christopher <echristo@redhat.com>
6293
6294 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
6295
6296 2005-07-14 Steven Bosscher <stevenb@suse.de>
6297
6298 PR tree-optimization/22230
6299 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
6300 the computation of the four cross productions for "range op range".
6301
6302 2005-07-14 Alexandre Oliva <aoliva@redhat.com>
6303 Ulrich Weigand <uweigand@de.ibm.com>
6304
6305 PR target/20126
6306 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
6307 in some insn.
6308
6309 2005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
6310
6311 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
6312
6313 2005-07-14 Steve Ellcey <sje@cup.hp.com>
6314
6315 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
6316
6317 2005-07-14 Richard Guenther <rguenther@suse.de>
6318
6319 PR middle-end/22347
6320 * config/i386/i386-protos.h (ix86_function_value): Change
6321 prototype to match new target hook.
6322 * config/i386/i386.c (ix86_value_regno): Change prototype
6323 to take extra type argument.
6324 (TARGET_FUNCTION_VALUE): Define.
6325 (ix86_function_ok_for_sibcall): Pass extra argument to
6326 ix86_value_regno, check return slot rtx for exact match.
6327 (ix86_function_value): Take extra parameter. Dispatch to
6328 ix86_value_regno with fndecl/fntype as provided.
6329 (ix86_value_regno): Handle extra type argument.
6330 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
6331
6332 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
6333 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
6334 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
6335 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
6336 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
6337
6338 2005-07-14 Richard Guenther <rguenther@suse.de>
6339
6340 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
6341 * calls.c (expand_call): Pass fntype to hard_function_value.
6342 (emit_library_call_value_1): Likewise.
6343 * explow.c: Include target.h.
6344 (hard_function_value): Take extra argument, the fntype.
6345 Use new target hook for function_value.
6346 * expr.h (hard_function_value): Change prototype.
6347 * function.c (aggregate_value_p): Pass 0 as fntype to
6348 hard_function_value.
6349 (assign_parms): Use new target hook for function_value.
6350 Pass 0 as fntype to hard_function_value.
6351 (expand_function_end): Likewise.
6352 * reg-stack.c: Include target.h.
6353 (stack_result): Use new target hook for function_value.
6354 * target-def.h: New target hook function_value.
6355 * target.h: Likewise.
6356 * targhooks.c (default_function_value): New function.
6357 * targhooks.h (default_function_value): Declare.
6358
6359 2005-07-13 Ian Lance Taylor <ian@airs.com>
6360
6361 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
6362
6363 2005-07-14 Jan Hubicka <jh@suse.cz>
6364
6365 * tree-dfa.c (dump_variable): Use default_def function.
6366 * tree-ssa-alias.c (dump_points_to_info): Likewise.
6367 * tree-ssa.c (verify_use): Likewise.
6368 * tree-ssanames.c (release_ssa_name): Likewise.
6369 * tree-tailcall.c (eliminate_tail_call): Likewise.
6370 (tree_optimize_tail_calls_1): Likewise.
6371 * tree-vrp.c (get_value_range): Likewise.
6372
6373 2005-07-14 Ben Elliston <bje@au.ibm.com>
6374
6375 * gcc.c (main): Compare language[0] with '*' when iterating over
6376 the infiles.
6377
6378 2005-07-13 Adrian Strae½tling <straetling@de.ibm.com>
6379
6380 * config/s390/s390.c: (s390_cc_modes_compatible): Move before
6381 "s390_emit_compare". Add handling of CCZ1mode.
6382 (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
6383 (390_emit_compare): Use "s390_cc_modes_compatible" for mode
6384 checking.
6385 (s390_branch_condition_mask): Add CCZ1mode handling.
6386 * config/s390/s390.md: ("seq", "*seq"): New pattern.
6387 ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
6388 Use CCZ1mode instead of CCZmode.
6389 * config/s390/s390-modes.def: Add CCZ1mode. Comment new mode.
6390
6391 2006-07-13 Adrian Strae½tling <straetling@de.ibm.com>
6392
6393 * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
6394 pattern.
6395 ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
6396
6397 2005-07-13 Eric Christopher <echristo@redhat.com>
6398
6399 * config/mips/mips.c (mips_canonicalize_comparison): New.
6400 (mips_emit_int_relational): Use.
6401
6402 2005-07-13 Eric Christopher <echristo@redhat.com>
6403
6404 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
6405 static extra parts.
6406 * config/s390/s390.md: Include tpf.md. Move tpf specific
6407 patterns...
6408 * config/s390/tpf.md: To here.
6409 * config/s390/s390.opt: Move tpf specific options...
6410 * config/s390/tpf.opt: to here. Add mmain option.
6411 * config/s390/tpf-unwind.h: Remove unnecessary defines.
6412 * config/s390/tpf.h: Rewrite.
6413
6414 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
6415
6416 * doc/tm.texi: Remove @xref{Cross-profiling}.
6417
6418 2005-07-13 Jeff Law <law@redhat.com>
6419
6420 * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
6421 expressions, test their _DECL operands for pointer equality rather
6422 than using operand_equal_p.
6423
6424 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
6425
6426 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
6427 (TARGET_POSIX_IO): This.
6428 * config/darwin.h: Likewise.
6429 * config/freebsd.h: Likewise.
6430 * config/linux.h: Likewise.
6431 * config/lynx.h: Likewise.
6432 * config/netbsd.h: Likewise.
6433 * config/rs6000/linux64.h: Likewise.
6434 * config/rs6000/linux.h: Likewise.
6435 * config/s390/tpf.h: Likewise.
6436 * config/sh/embed-elf.h: Likewise.
6437 * config/sparc/linux64.h: Likewise.
6438 * config/sparc/linux.h: Likewise.
6439 * config/svr4.h: Likewise.
6440 * gcov-io.h: Likewise.
6441
6442 * doc/tm.texi: Updated.
6443
6444 * libgcov.c (create_file_directory): Defined only if
6445 TARGET_POSIX_IO is defined.
6446 (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
6447 is defined.
6448
6449 2005-07-13 Jan Hubicka <jh@suse.cz>
6450
6451 * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
6452
6453 2005-07-13 David Edelsohn <edelsohn@gnu.org>
6454
6455 * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
6456 structure as argument.
6457
6458 2005-07-13 Paolo Bonzini <bonzini@gnu.org>
6459
6460 PR tree-optimization/21921
6461 * tree-iterator.c (tsi_link_before): Support the case when
6462 tsi_end_p (tsi) == true.
6463
6464 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
6465
6466 PR tree-optimization/22442
6467 * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
6468 correctly.
6469
6470 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
6471
6472 PR rtl-optimization/20376
6473 * toplev.c (process_options): Enable -fweb and -frename-registers when
6474 unrolling.
6475 * doc/invoke.texi: Update the information about when -fweb and
6476 -frename-registers are enabled.
6477
6478 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
6479
6480 PR tree-opt/21840
6481 * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
6482 if *rhs_p is not a SSA_NAME.
6483
6484 2005-07-12 Daniel Berlin <dberlin@dberlin.org>
6485
6486 Fix PR tree-optimization/22422
6487 * tree-ssa-structalias.c (struct variable_info): Add flag for
6488 special vars.
6489 (get_varinfo): Now a static function.
6490 (new_varinfo): init has_union and is_special_var to false.
6491 (solution_set_add): Check has_union.
6492 (do_da_constraint): Move temporary variable so it gets reset
6493 properly.
6494 Also check for special variable.
6495 (do_ds_constraint): Ditto.
6496 (do_sd_constraint): Ditto.
6497 (do_structure_copy): Check for special variable.
6498 (find_func_aliases): Ditto.
6499 (init_base_vars): Set special vars properly.
6500
6501 2005-07-13 Jan Hubicka <jh@suse.cz>
6502
6503 * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
6504 do unit-at-a-time.
6505
6506 * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
6507 (get_expr_operands): Fix thinko wrt flags and subvars.
6508
6509 PR tree-optimize/22379
6510 * tree-inline.c (expand_call_inline): Do not output sorry in early
6511 inlining.
6512
6513 2005-07-12 Dale Johannesen <dalej@apple.com>
6514
6515 * config/rs6000.c (rs6000_rtx_cost): Move FLOAT_EXTEND.
6516
6517 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
6518
6519 PR bootstrap/21704
6520 * host-linux.h: Include limits.h.
6521
6522 2005-07-12 Dale Johannesen <dalej@apple.com>
6523
6524 * expr.c (compress_float_constant): Add cost check.
6525 * config/rs6000.c (rs6000_rtx_cost): Adjust FLOAT_EXTEND cost.
6526
6527 2005-07-12 Dale Johannesen <dalej@apple.com>
6528
6529 * gcc.target/i386/compress-float-sse.c: New.
6530 * gcc.target/i386/compress-float-sse-pic.c: New.
6531 * gcc.target/i386/compress-float-387.c: New.
6532 * gcc.target/i386/compress-float-387-pic.c: New.
6533 * gcc.dg/compress-float-ppc.c: New.
6534 * gcc.dg/compress-float-ppc-pic.c: New.
6535
6536 2005-07-12 Eric Christopher <echristo@redhat.com>
6537
6538 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
6539 static extra parts.
6540 * config/s390/s390.md: Include tpf.md. Move tpf specific
6541 patterns...
6542 * config/s390/tpf.md: To here.
6543 * config/s390/s390.opt: Move tpf specific options...
6544 * config/s390/tpf.opt: to here. Add mmain option.
6545 * config/s390/tpf-unwind.h: Remove unnecessary defines.
6546 * config/s390/tpf.h: Rewrite.
6547
6548 2005-07-12 Eric Christopher <echristo@redhat.com>
6549
6550 * gcc.c (struct infile): Update comment for language.
6551 (main): Rewrite input file resetting code.
6552
6553 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
6554
6555 PR tree-opt/22335
6556 * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
6557 requiring a cast in a non RHS of modify_expr. Add a cast when required.
6558 (lookup_avail_expr): Use constant_boolean_node instead
6559 of boolean_false_node/boolean_true_node.
6560
6561 2005-07-12 Ben Elliston <bje@au.ibm.com>
6562
6563 * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
6564 and use it when printing num_edges.
6565
6566 2005-07-12 Bernd Schmidt <bernd.schmidt@analog.com>
6567
6568 * doc/extend.texi (Blackfin Built-in Functions): New section.
6569 * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
6570 @opindex.
6571
6572 2005-07-12 Adrian Straetling <straetling@de.ibm.com>
6573
6574 * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
6575 s/cmpstrsi/cmpstrnsi
6576 (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
6577 'cmpstrnsi'.
6578 * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
6579 (init_optabs): Initialize cmpstrn_optab.
6580 * optabs.h: (enum insn_code cmpstrn_optab): Declare.
6581 * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
6582 * expr.c: (enum insn_code cmpstrn_optab): Declare.
6583 * config/i386/i386.md: s/cmpstr/cmpstrn
6584 * config/c4x/c4x.md: s/cmpstr/cmpstrn
6585 * doc/md.texi: Update documentation.
6586
6587 2005-07-11 Richard Henderson <rth@redhat.com>
6588
6589 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
6590 build_va_arg_indirect_ref.
6591 (alpha_gimplify_va_arg): Likewise.
6592 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
6593 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
6594 * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
6595 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6596 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6597 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
6598 Likewise.
6599 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6600
6601 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
6602
6603 * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
6604 * passes.c (init_optimization_passes): Add pass_empty_loop.
6605 * tree-pass.h (pass_empty_loop): Declare.
6606 * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
6607 try_remove_empty_loop, remove_empty_loops): New functions.
6608 * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
6609 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
6610
6611 2005-07-12 Peter Barada <peter@the-baradas.com>
6612
6613 PR middle-end/16719
6614 PR middle-end/18421
6615 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
6616 in address registers.
6617 * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
6618 * config/m68k/m68k.md: Replace 's' with 'i' in 4th
6619 alternative of addsi3_5200.
6620
6621 2005-07-11 Ian Lance Taylor <ian@airs.com>
6622
6623 * config/mips/mips.md (ffs<mode>2): Remove.
6624
6625 2005-07-11 Ian Lance Taylor <ian@airs.com>
6626
6627 * doc/tree-ssa.texi (Cleanups): Improve description of
6628 TRY_FINALLY_EXPR.
6629 (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
6630
6631 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
6632
6633 * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
6634 * tree.h (DECL_ARGUMENT_FLD): New macro.
6635
6636 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
6637
6638 Fix PR tree-optimization/22404
6639
6640 * tree-ssa-structalias.c (create_variable_info_for): Use
6641 correct offset.
6642
6643 2005-07-11 Bernd Schmidt <bernd.schmidt@analog.com>
6644
6645 * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
6646 compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
6647 for second comparison operand.
6648 * config/bfin/predicates.md (reg_or_const_int_operand): New.
6649
6650 * config/bfin/bfin.md (define_attr "type"): Add "sync".
6651 (define_insn_reservation "alu"): Likewise.
6652 (csync, ssync): Now of type sync.
6653 * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
6654 -mcsync-anomaly -mspecld-anomaly.
6655 * config/bfin/bfin.opt (mcsync): Remove.
6656 (mcsync-anomaly, mspecld-anomaly): Add.
6657 * config/bfin/bfin.c: Include "insn-codes.h".
6658 (bfin_reorg): Extend to handle the CSYNC anomaly as well.
6659 (TARGET_DEFAULT_TARGET_FLAGS): New.
6660 * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
6661
6662 2005-07-11 Steven Bosscher <stevenb@suse.de>
6663
6664 * basic-block.h: Give the BB flags enum a name, bb_flags.
6665 Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
6666 * cfgcleanup.c (enum bb_flags): Remove here.
6667 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
6668 (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
6669 (update_forwarder_flag): Likewise.
6670 (thread_jump): Likewise.
6671 (try_forward_edges): Likewise.
6672 (try_optimize_cfg): Likewise. Clear bb->flags before updating the
6673 forwarder flags. Don't clear bb->aux for all basic blocks. Only
6674 reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
6675
6676 2005-07-11 Richard Guenther <rguenther@suse.de>
6677
6678 * config/i386/i386.opt: New target option -msseregparm.
6679 * config/i386/i386.c (override_options): Error out for
6680 -msseregparm but no SSE support.
6681 (ix86_function_sseregparm): Check for global sseregparm.
6682 * doc/invoke.texi: Document -msseregparm.
6683
6684 2005-07-11 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6685
6686 * config.gcc (m32r-*-linux*): Use the default extra_parts.
6687 (m32rle-*-linux*): Ditto.
6688
6689 2005-07-11 Jakub Jelinek <jakub@redhat.com>
6690
6691 * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
6692 instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
6693 bytes.
6694
6695 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6696
6697 PR middle-end/22239
6698 PR target/20126
6699 * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
6700 gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
6701
6702 2005-07-07 Daniel Berlin <dberlin@dberlin.org>
6703
6704 * tree-ssa-structalias.c (struct variable_info): Heapify complex.
6705 (varmap): Heapify varmap.
6706 (constraints): Heapify constraints.
6707 (struct constraint_graph): Heapify succs and preds.
6708 (constraint_vec_find): Update for heapification.
6709 (constraint_set_union): Ditto.
6710 (insert_into_complex): Ditto.
6711 (constraint_edge_vec_find): Ditto.
6712 (erase_graph_self_edge): Ditto.
6713 (add_graph_edge): Ditto.
6714 (get_graph_weights): Ditto.
6715 (merge_graph_nodes): Ditto.
6716 (build_constraint_graph): Ditto.
6717 (topo_visit): Ditto.
6718 (solve_graph): Ditto.
6719 (create_variable_info_for): Ditto.
6720 (init_base_vars): Ditto.
6721 (delete_points_to_sets): Free graph, varmap, and complex constraints.
6722 (condese_varmap_nodes): Free complex vector.
6723 (clear_edges_for_node): Clear succs and preds vector.
6724
6725 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
6726
6727 * tree-ssa-structalias.c (update_alias_info): Change counting of
6728 references to not include vdefs.
6729
6730 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
6731
6732 * tree-ssa-alias.c (free_used_part_map): Add missing free.
6733 (up_insert): Ditto.
6734
6735 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6736
6737 * pa.c (pa_commutative_p): Make PLUS commutative when
6738 TARGET_NO_SPACE_REGS is true.
6739
6740 2005-07-09 Diego Novillo <dnovillo@redhat.com>
6741
6742 * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
6743 * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
6744 * tree-dfa.c (dump_subvars_for): New.
6745 (debug_subvars_for): New.
6746 (dump_variable): Show subvariables if VAR has them.
6747 * tree-flow-inline.h (get_subvar_at): New.
6748 (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
6749 * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
6750 Update all users.
6751 (struct subvar): Change fields offset and size to unsigned
6752 HOST_WIDE_INT.
6753 (dump_subvars_for): Declare.
6754 (debug_subvars_for): Declare.
6755 (get_subvar_at): Declare.
6756 (okay_component_ref_for_subvars): Change 2nd and 3rd argument
6757 to unsigned HOST_WIDE_INT *.
6758 (overlap_subvar): Likewise.
6759 * tree-gimple.c (is_gimple_reg): Always return false for
6760 SFTs and memory tags.
6761 * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
6762 Update all callers.
6763 * tree-ssa-alias.c: Include tree-ssa-structalias.h.
6764 (compute_may_aliases): Call compute_points_to_sets.
6765 (collect_points_to_info_for): Remove.
6766 (compute_points_to_and_addr_escape): Remove.
6767 (delete_alias_info): Call delete_points_to_sets.
6768 (compute_flow_sensitive_aliasing): If the call to
6769 find_what_p_points_to returns false, call set_pt_anything.
6770 (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
6771 (set_pt_anything): Clear pi->pt_vars.
6772 (set_pt_malloc): Remove.
6773 (merge_pointed_to_info): Remove.
6774 (add_pointed_to_expr): Remove.
6775 (add_pointed_to_var): Remove.
6776 (collect_points_to_info_r): Remove.
6777 (is_escape_site): Make extern.
6778 (create_sft): New.
6779 (create_overlap_variables_for): Call it.
6780 * tree-ssa-copy.c (merge_alias_info): Never merge
6781 flow-sensitive alias information.
6782 * tree-ssa-operands.c (get_expr_operands): Adjust variables
6783 offset and size to be unsigned HOST_WIDE_INT.
6784 (add_to_addressable_set): Rename from note_addressable.
6785 Set TREE_ADDRESSABLE as the variables are added to the set.
6786 Update all users.
6787 (add_stmt_operand): Do not try to micro-optimize unmodifiable
6788 operands into VUSEs when adding V_MAY_DEFs for members in an
6789 alias set.
6790 * tree-ssa-operands.h (add_to_addressable_set): Declare.
6791 * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
6792 (struct variable_info): Add bitfield is_heap_var.
6793 (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
6794 (new_var_info): Initialize is_heap_var.
6795 (get_constraint_for): Add HEAP variables to the symbol table.
6796 Mark them with is_heap_var.
6797 (update_alias_info): New. Taken mostly from the old
6798 compute_points_to_and_addr_escape.
6799 (handle_ptr_arith): New.
6800 (find_func_aliases): Call update_alias_info.
6801 Call handle_ptr_info for tcc_binary expressions.
6802 Call mark_stmt_modified.
6803 (create_variable_info_for): If DECL has subvars, do not create
6804 variables for its subvars. Always add all the fields.
6805 (set_uids_in_ptset): If the solution includes ANYOFFSET and
6806 SFTs, then add all the SFTs of the structure.
6807 If VI->DECL is an aggregate with subvariables, add the SFT at
6808 VI->OFFSET.
6809 (find_what_p_points_to): If VI is an artificial variable,
6810 translate to bitfields in SSA_NAME_PTR_INFO.
6811 If the solution is empty, set pi->pt_vars to NULL
6812 (init_base_vars): Create ANYOFFSET.
6813 (compute_points_to_sets): Rename from create_alias_vars.
6814 Make extern.
6815 (pass_build_pta): Remove.
6816 (delete_points_to_sets): Rename from delete_alias_vars.
6817 (pass_del_pta): Remove.
6818 * tree-ssa-structalias.h (struct alias_info): Move from
6819 tree-ssa-alias.h.
6820 (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
6821 NUM_REFERENCES_SET): Likewise.
6822 (compute_points_to_sets, delete_points_to_sets): Declare.
6823
6824 2005-07-09 Richard Henderson <rth@redhat.com>
6825
6826 * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
6827 alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
6828 alpha_split_lock_test_and_set_12): New functions.
6829 * config/alpha/alpha-protos.h: Update.
6830 * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
6831 UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
6832 * config/alpha/sync.md (I12MODE): New.
6833 (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
6834 (sync_<fetchop_name><I48MODE>): Likewise.
6835 (sync_nand<I48MODE>): Likewise.
6836 (sync_old_<fetchop_name><I48MODE>): Likewise.
6837 (sync_new_<fetchop_name><I48MODE>): Likewise.
6838 (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
6839 (sync_compare_and_swap<I48MODE>): Likewise.
6840 (sync_lock_test_and_set<I48MODE>): Likewise.
6841 (sync_compare_and_swap<I12MODE>): New.
6842 (sync_compare_and_swap<I12MODE>_1): New.
6843 (sync_lock_test_and_set<I12MODE>): New.
6844 (sync_lock_test_and_set<I12MODE>_1): New.
6845
6846 2005-07-09 Diego Novillo <dnovillo@redhat.com>
6847
6848 PR 21356
6849 PR 22332
6850 * passes.c (execute_todo): Cleanup the CFG before updating SSA.
6851
6852 2005-07-09 Jakub Jelinek <jakub@redhat.com>
6853
6854 * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
6855 in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
6856
6857 2005-07-09 Richard SAndiford <richard@codesourcery.com>
6858
6859 PR target/21656
6860 * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
6861
6862 2005-07-08 David Edelsohn <edelsohn@gnu.org>
6863
6864 * config/rs6000/sync.md (load_locked_<mode>): Use Z for
6865 memory_operand constraint.
6866 (store_conditional_<mode>): Same.
6867 (sync_compare_and_swap<mode>): Same.
6868 (sync_lock_test_and_set<mode>): Same.
6869
6870 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
6871
6872 Rewrite PIC support to more closely model actual instructions.
6873 * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
6874 (cris_symbol): Remove prototypes for removed functions.
6875 (cris_pic_symbol_type_of, cris_valid_pic_const)
6876 (cris_expand_pic_call_address): Prototypes for new functions.
6877 * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
6878 variable.
6879 (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
6880 modifiers.
6881 <case ':'>: Add case for new punctuation character.
6882 <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
6883 emitting (extra) PIC modifier.
6884 <case UNSPEC>: Do not assert for PLT.
6885 (cris_initial_frame_pointer_offset, cris_simple_epilogue)
6886 (cris_expand_prologue, cris_expand_epilogue): Check
6887 for pic_offset_table_rtx usage instead of taking
6888 current_function_uses_pic_offset_table as the final word.
6889 (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
6890 Remove flag_pic difference.
6891 (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
6892 the moral equivalents of...
6893 (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
6894 functions.
6895 (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
6896 (cris_handle_option): Mark ARG as unused.
6897 (cris_expand_pic_call_address): New worker function for "call",
6898 "call_value".
6899 (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
6900 output PIC constructs here.
6901 (cris_output_addr_const_extra): Changes for emitting PIC modifiers
6902 as symbol-specific modifers, not whole or part of operands.
6903 * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
6904 (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
6905 constants and flag_pic.
6906 (CONSTANT_INDEX_P): Adjust for new functions.
6907 (enum cris_pic_symbol_type): New helper type.
6908 (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
6909 * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
6910 (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
6911 define_constants.
6912 ("movsi"): Emit actual instructions for GOT and relative access.
6913 ("*movsi_got_load"): New pattern to set up the register holding
6914 the GOT pointer.
6915 ("*movsi_internal"): Operand 1 is not a plain general_operand.
6916 Adjust FIXME for 'S'.
6917 <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
6918 Use "movs" for -fpic cases.
6919 ("addsi3"): Add alternative for 'S'; use adds.w when possible.
6920 ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
6921 ("call", "call_value"): Just call cris_expand_pic_call_address for
6922 PIC addresses.
6923 ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
6924 Remove special pattern.
6925 ("*expanded_call_side", "*expanded_call_value_side"): New
6926 patterns.
6927 (gotplt-to-plt, gotplt-to-plt-side-call)
6928 (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
6929 peephole2:s.
6930 * config/cris/cris/predicates.md
6931 ("cris_general_operand_or_gotless_symbol"): Remove unused
6932 predicate.
6933 ("cris_general_operand_or_symbol"): Adjust for new functions.
6934
6935 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
6936
6937 * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
6938
6939 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
6940
6941 * Makefile.in (TREE_H): Add treestruct.def.
6942 (c-decl.o): Add pointer-set.h
6943 * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
6944 visibility on regular DECL's.
6945 (merge_decls): Fix the copying of decl nodes of various types for
6946 the new structures. Don't update RTL, section name, weak status,
6947 etc, on DECL's without RTL.
6948 (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
6949 Don't check volatile on non-variable types.
6950 (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
6951 to check whether we have seen arguments.
6952 * c-objc-common.c (c_tree_printer): Reverse order of tests so that
6953 flag is checked before field (flag is common, field is not).
6954 * dwarf2out.c (decl_ultimate_origin): Only DECL's with
6955 TS_DECL_COMMON could have an origin.
6956 (add_location_or_const_value_attribute): Don't check section name
6957 on non-var/function decls.
6958 (dwarf2out_var_location): Reverse order of tests.
6959 * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
6960 with DECL_WRTL_CHECK.
6961 * expmed.c (make_tree): rtl is now in decl_with_rtl.
6962 * fold-const.c (fold_binary): Don't check weakness on
6963 non-var/function decls.
6964 (tree_expr_nonzero_p): Ditto.
6965 (fold_checksum_tree): Use tree_decl_extra as sizeof
6966 buffer.
6967 * ggc-page.c (extra_order_size_table): Add sizes for
6968 tree_decl_non_common, tree_parm_decl, tree_var_decl, and
6969 tree_field_decl.
6970 * gimplify.c (gimplify_bind_expr): Only set
6971 DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
6972 * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
6973 without RTL.
6974 * langhooks-def.h (LANG_HOOK_INIT_TS): New.
6975 * langhooks.h (init_ts). New langhook.
6976 * passes.c (rest_of_decl_compilation): Reverse order of tests.
6977 * print-tree.c (print_node): Update to only print fields that
6978 exist in the structures the passed decl has.
6979 * toplev.c (wrapup_global_declarations): Don't reset
6980 DECL_DEFER_OUTPUT on DECL's that don't contain it.
6981 * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
6982 * tree-inline.c (remap_decl): Ditto.
6983 * tree-outof-ssa.c (create_temp): Reverse order of tests.
6984 * tree-pretty-print.c (print_declaration): Don't print
6985 DECL_REGISTER on things that don't contain it.
6986 * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
6987 non-var/function decls.
6988 * tree.c (tree_contains_struct): New structure.
6989 (init_priority_for_decl): New hashtable.
6990 (tree_int_map): New structure.
6991 (tree_int_map_eq): New function.
6992 (tree_int_map_marked_p): Ditto.
6993 (tree_int_map_hash): Ditto.
6994 (tree_map): Move to tree.h.
6995 (tree_map_eq): Externalize.
6996 (tree_map_hash): Ditto.
6997 (tree_map_marked_p): Ditto.
6998 (init_ttree): Set up tree_contains_struct and call langhook.
6999 (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
7000 (tree_code_size): Update for new structures.
7001 (tree_node_structure): Update for new structures.
7002 (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
7003 without the field.
7004 (copy_node_stat): Copy init priority.
7005 (build_decl_stat): Ditto for visibility.
7006 (ts_enum_names): New.
7007 (tree_contains_struct_check_failed): New function.
7008 (decl_init_priority_lookup): Ditto.
7009 (decl_init_priority_insert): Ditto.
7010 * treestruct.def: New file.
7011 * tree.h (CODE_CONTAINS_STRUCT): New macro.
7012 (CONTAINS_STRUCT_CHECK): Ditto.
7013 (tree_contains_struct_check_failed): New prototype.
7014 (DECL_CHECK): Removed.
7015 (DECL_MINIMAL_CHECK): New.
7016 (DECL_COMMON_CHECK): Ditto.
7017 (DECL_WRTL_CHECK): Ditto.
7018 (DECL_NON_COMMON_CHECK): Ditto.
7019 (DECL_WITH_VIS_CHECK): Ditto.
7020 (VAR_OR_FUNCTION_DECL_P): Ditto
7021 (struct tree_decl_minimal): New structure.
7022 (struct tree_decl_common): Ditto.
7023 (struct tree_decl_with_rtl): Ditto.
7024 (struct tree_decl_with_vis): Ditto.
7025 (struct tree_decl_non_common): Ditto.
7026 (struct tree_field_decl): Ditto.
7027 (struct tree_parm_decl): Ditto.
7028 (struct tree_var_decl): Ditto.
7029 (struct tree_function_decl): Ditto.
7030 (struct tree_const_decl): Ditto.
7031 (struct tree_result_decl): Ditto.
7032 (union tree_node): Add new structures.
7033 * var-tracking.c (track_expr_p): Reverse order of tests.
7034
7035 * doc/c-tree.texi: Add documentation on DECL node internal structure.
7036
7037 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
7038
7039 * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
7040 * system.h: Poison FINALIZE_PIC.
7041 * doc/tm.texi (FINALIZE_PIC): Remove.
7042
7043 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
7044
7045 PR tree-opt/22329
7046 * tree-ssa-propagate.c (fold_predicate_in): Convert the value
7047 to the correct type if we have a MODIFY_EXPR.
7048
7049 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
7050
7051 PR tree-optimization/22360
7052 * tree.c (upper_bound_in_type): Fix calculations for casting
7053 to a non-wider signed type and casting a signed value to a
7054 wider unsigned type.
7055 (lower_bound_in_type): Fix calculations for casting to a
7056 non-wider signed type.
7057
7058 PR tree-optimization/20139
7059 * tree-cfg.c (remove_bb): Check in_ssa_p before calling
7060 release_defs.
7061 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
7062 fold_cond_expr_cond.
7063 * tree-ssanames.c (release_defs): Assert in_ssa_p.
7064 * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
7065
7066 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
7067
7068 PR tree-opt/22356
7069 * tree-complex.c (expand_complex_libcall): Produce
7070 REALPART_EXPR/IMAGPART_EXPR with the correct type.
7071
7072 2005-07-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7073
7074 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
7075 bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
7076 b" assert and inserted fastpath code for this case.
7077 (bitmap_ior): Removed "a != b" assert.
7078
7079 2005-07-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7080
7081 * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
7082 (ENDFILE_SPEC): Likewise.
7083 * config/m32r/m32r.h (ASM_SPEC): Likewise.
7084
7085 * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
7086 a large stack frame at epilogue.
7087
7088 2005-07-08 David Billinghurst <David.Billinghurst@riotinto.com>
7089
7090 * final.c: Include sdbout.h when required.
7091
7092 2005-07-07 Geoffrey Keating <geoffk@apple.com>
7093
7094 * config.gcc (*-*-darwin*): Only one target-specific header file
7095 for generic darwin.
7096 (powerpc-*-darwin*): Add version-specific header files.
7097 * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
7098 * config.in: Regenerate.
7099 * configure: Regenerate.
7100 * gcc.c: Include xregex.h.
7101 (version_compare_spec_function): New.
7102 (spec_function): Add version-compare.
7103 (replace_outfile_spec_function): Reformat comment.
7104 (compare_version_strings): New.
7105 * config/darwin-c.c (version_as_macro): New.
7106 (builtin_define): New.
7107 (darwin_cpp_builtins): New.
7108 * config/darwin-protos.h (darwin_cpp_builtins): New.
7109 * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
7110 (LIB_SPEC): Make unconditional, update comment.
7111 (TARGET_C99_FUNCTIONS): Define.
7112 * config/darwin.opt: Sort.
7113 (mmacosx-version-min=): New.
7114 * config/darwin7.h: Delete.
7115 * config/darwin8.h: Delete.
7116 * config/i386/darwin.h (): Call darwin_cpp_builtins.
7117 * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
7118 (TARGET_C99_FUNCTIONS): Define.
7119 * config/rs6000/darwin7.h: New.
7120 * config/rs6000/darwin8.h: New.
7121 * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
7122 (-mmacosx-version-min): Document.
7123
7124 2005-07-07 Ian Lance Taylor <ian@airs.com>
7125
7126 * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
7127
7128 2005-07-07 John David Anglin <dave.anglin@nrc-crc.gc.ca>
7129
7130 PR middle-end/22239
7131 * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
7132
7133 2005-07-07 Khem Raj <kraj@mvista.com>
7134
7135 * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
7136 in bytes, not words.
7137
7138 2005-07-07 Paul Brook <paul@codesourcery.com>
7139
7140 * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
7141 DEFAULT_FUNCTION_ARG_PADDING to upward.
7142
7143 2005-07-07 Richard Henderson <rth@redhat.com>
7144
7145 * function.c (locate_and_pad_parm): Record parameter alignment in
7146 stack_alignment_needed.
7147
7148 2005-07-07 David Edelsohn <edelsohn@gnu.org>
7149
7150 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
7151 UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
7152 (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
7153 UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
7154 (define_attr "type"): Add isync, sync, load_l, store_c.
7155 * config/rs6000/sync.md (memory_barrier): Change to define_expand.
7156 Create scratch volatile MEM.
7157 (sync_internal): New. POWER mnemonic is dcs, not ics. Attribute
7158 sync.
7159 (load_locked_<mode>): New.
7160 (store_conditional_<mode>): New.
7161 (sync_compare_and_swap<mode>): Replace with splitter.
7162 (sync_lock_test_and_set<mode>): Replace with splitter.
7163 (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
7164 and UNSPECV_ISYNC.
7165 (isync): Change to unspec_volatile UNSPECV_ISYNC. POWER mnemonic
7166 is ics. Attribute isync.
7167 (lwsync): Change to unspec_volatile UNSPECV_LWSYNC. Attribute
7168 lwsync.
7169 * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
7170 and UNSPECV_SYNC_OP.
7171 (emit_unlikely_jump): New.
7172 (emit_load_locked): New.
7173 (emit_store_conditional): New.
7174 (rs6000_split_compare_and_swap): New.
7175 (rs6000_split_lock_test_and_set): New.
7176 (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
7177 TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
7178 * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
7179 rs6000_split_lock_test_and_set): Declare.
7180 * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
7181 mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
7182 store_c, isync, sync.
7183
7184 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
7185
7186 * Makefile.in (echo_quoted_to_gtyp): New template for outputing
7187 filenames to gtyp-gen.h.
7188 (s-typ-gen): Use it in place of for loops.
7189
7190 2005-07-07 J"orn Rennecke <joern.rennecke@st.com>
7191
7192 * hooks.c (hook_bool_rtx_int_false): New function.
7193 * hooks.h (hook_bool_rtx_int_false): Declare.
7194 * target-def.h (TARGET_COMMUTATIVE_P): Define.
7195 (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
7196 * target.h (struct gcc_target): Add commutative_p member.
7197 * targhooks.c (hook_bool_rtx_commutative_p): New function.
7198 * targhooks.h (hook_bool_rtx_commutative_p): Declare.
7199 * pa.c (TARGET_COMMUTATIVE_P): Redefine.
7200 (pa_commutative_p): New function.
7201 * jump.c (target.h): Include.
7202 (rtx_renumbered_equal_p): Use targetm.commutative_p.
7203 * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
7204
7205 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
7206
7207 * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
7208 (s390_expand_setmem): New.
7209 * config/s390/s390.c: Likewise.
7210 (print_shift_count_operand): Truncate to 12 bits instead of 6.
7211 Adapt comments.
7212 * config/s390/s390.md: ("setmem<mode>"): Accept character as
7213 general_operand. Call new function "s390_expand_setmem".
7214 ("clrmem_long", "*clrmem_long"): Rewrite to ...
7215 ("setmem_long", "*setmem_long"): ... this.
7216
7217 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
7218
7219 * config/s390/s390.c: (optimization_options): Enable
7220 TARGET_MVCLE at -Os.
7221 * doc/invoke.texi: Document changes in default behaviour.
7222 * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
7223
7224 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
7225
7226 * expr.c: (set_storage_via_setmem): Convert opchar to mode
7227 defined by back-end.
7228
7229 2005-07-07 Jakub Jelinek <jakub@redhat.com>
7230
7231 * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
7232 all sets in the pattern.
7233 * config/rs6000/rs6000.md (stack_protect_testsi,
7234 stack_protect_testdi): Likewise.
7235
7236 2005-07-06 Jeff Law <law@redhat.com>
7237
7238 * tree-vrp.c (simplify_using_ranges): Kill.
7239 (vrp_finalize): Remove call to simplify_using_ranges.
7240 (simplify_stmt_using_ranges): New function extracted from
7241 simplify_using_ranges.
7242 (simplify_div_or_mod_using_ranges): Likewise.
7243 (simplify_abs_using_ranges): Likewise.
7244 (simplify_cond_using_ranges): New function.
7245 * tree-flow.h (simplify_stmt_using_ranges): Prototype.
7246 * tree-ssa-propagate.c (substitute_and_fold): Call
7247 simplify_stmt_using_ranges if we have range information.
7248
7249 2005-07-06 James E. Wilson <wilson@specifixinc.com>
7250
7251 * config/ia64/ia64.c (ia64_reorg): Check optimize before
7252 ia64_flag_schedule_isns2.
7253
7254 * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
7255 reading/writing general registers.
7256 (ia64_function_arg): Revert 2005-06-18 change.
7257
7258 2005-07-06 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
7259
7260 * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
7261 (legitimize_tls_address): Use gcc_unreachable instead of abort.
7262
7263 2005-07-06 Kaz Kojima <kkojima@gcc.gnu.org>
7264
7265 * function.c (expand_function_end): Revert part of 2005-06-27
7266 patch. Do sjlj_emit_function_exit_after after return_label.
7267
7268 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
7269
7270 * doc/install.texi (--disable-libssp): New.
7271
7272 2005-07-06 Fariborz Jahanian <fjahanian@apple.com>
7273
7274 * doc/invoke.texi: Update -fforce-mem documentation.
7275 * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
7276 code for -fforce-mem.
7277 * expmed.c: (store_bit_field,store_fixed_bit_field,
7278 extract_bit_field): Ditto.
7279 * expr.c: (convert_move): Ditto.
7280 * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
7281 expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
7282 emit_conditional_add,expand_float,expand_fix): Ditto.
7283 * opts.c: (decode_options): Remove setting of flag_force_mem flag.
7284 (common_handle_option): Issue warning when -fforce-mem specified.
7285
7286 2005-07-06 Paul Brook <paul@codesourcery.com>
7287
7288 * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
7289 argument is empty.
7290 * configure: Regenerate.
7291
7292 2005-07-06 J"orn Rennecke <joern.rennecke@st.com>
7293
7294 * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
7295
7296 2005-07-06 Daniel Berlin <dberlin@dberlin.org>
7297
7298 Fix PR tree-optimization/22319
7299 Fix PR tree-optimization/22140
7300 Fix PR tree-optimization/22310
7301
7302 * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
7303 variable sized types.
7304 Use correct type for intermediate structure on *a = *b structure
7305 copies.
7306
7307 2005-07-06 Jakub Jelinek <jakub@redhat.com>
7308
7309 * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
7310 Remove.
7311 (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
7312 (machine_function): Move typedef to...
7313 * config/rs6000/rs6000.c (machine_function): ... here. Add
7314 varargs_save_offset field.
7315 (rs6000_stack_t): Remove varargs_size field.
7316 (setup_incoming_varargs): Allocate varargs save area using
7317 assign_stack_local, try to make it as small as possible.
7318 Save offset from virtual_stack_vars_rtx to the save area
7319 in cfun->machine->varargs_save_offset. Use UNITS_PER_FP_WORD
7320 instead of magic 8 when fp word byte size is used.
7321 (rs6000_va_start): Use cfun->machine->varargs_save_offset
7322 instead of -RS6000_VARARGS_SIZE.
7323 (rs6000_stack_info, debug_stack_info,
7324 rs6000_initial_elimination_offset): Remove all traces of
7325 varargs_size.
7326 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
7327 * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
7328 RS6000_VARARGS_AREA.
7329
7330 2005-07-06 Zdenek Dvorak <dvorakz@suse.cz>
7331
7332 PR tree-optimization/21963
7333 * tree-ssa-loop-ivopts.c (get_computation_aff): Use
7334 constant_multiple_of in the same way get_computation_cost_at does.
7335
7336 2005-07-06 Jakub Jelinek <jakub@redhat.com>
7337
7338 * config/sparc/sparc.h (sparc_compare_emitted): New extern.
7339 * config/sparc/sparc.c (sparc_compare_emitted): New variable.
7340 (gen_compare_reg): If sparc_compare_emitted is set, clear it
7341 and return its previous value.
7342 (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
7343 * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
7344 constants.
7345 (stack_protect_set, stack_protect_test): New expanders.
7346 (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
7347 stack_protect_testdi): New insns.
7348 * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
7349 * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
7350
7351 2005-07-06 Jeff Law <law@redhat.com>
7352
7353 * tree-ssa-dce.c (cfg_altered): New global.
7354 (tree_dce_init): Initialize cfg_altered.
7355 (remove_dead_stmt): If we remove an edge in the CFG, then set
7356 CFG_ALTERED.
7357 (perform_tree_ssa_dce): If we altered the CFG, then invalidate
7358 the dominators.
7359
7360 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
7361
7362 * Makefile.in (stamp-collect-ld): Use
7363 $(ORIGINAL_LD_FOR_TARGET) instead of $<. Don't remove
7364 ./collect-ld if it already exists.
7365 (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
7366 Don't remove ./nm if it already exists.
7367
7368 2005-07-05 Devang Patel <dpatel@apple.com>
7369
7370 * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
7371 (LOOP_VINFO_LOC, LOOP_LOC): Remove.
7372 * tree-vectorizer.c (vect_loop_location): New.
7373 (vect_print_dump_info): Use vect_loop_location.
7374 (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
7375 (vectorize_loops): Set vect_loop_location.
7376 * tree-vect-analyze.c (vect_analyze_offset_expr,
7377 vect_determin_vectorization_factor, vect_analyze_operations,
7378 vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
7379 vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
7380 vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
7381 vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
7382 vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
7383 vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
7384 vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
7385 vect_analyze_loop): Adjust vect_print_dump_info API.
7386 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
7387 vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
7388 vect_finish_stmt_generation, vectorizable_assignment,
7389 vectorizable_operation, vectorizable_store, vectorizable_load,
7390 vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
7391 vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
7392 vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
7393 vect_transform_loop): Same.
7394 * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
7395 vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
7396 Same.
7397
7398 2005-07-05 Randolph Chung <tausq@debian.org>
7399
7400 * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
7401 * configure: Regenerate.
7402 * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
7403 (pa_tls_referenced_p): Declare.
7404 * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
7405 (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
7406 (legitimize_tls_address): New.
7407 (hppa_legitimize_address): Handle TLS addresses.
7408 (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
7409 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7410 (emit_move_sequence): Handle TLS addresses.
7411 (pa_encode_section_info): Call default handler to handle common
7412 sections.
7413 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
7414 (CONSTANT_ADDRESS_P): Reject TLS operands.
7415 (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
7416 * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
7417 (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
7418 (UNSPEC_TLSLE): Define new constants.
7419 (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
7420 * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
7421 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
7422 (tie_symbolic_operand, tle_symbolic_operand): New
7423
7424 2005-07-06 Kelley Cook <kcook@gcc.gnu.org>
7425
7426 * aclocal.m4: Update macros for autoconf 2.59 style.
7427 * configure.ac: Likewise.
7428
7429 2005-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7430
7431 * pa.c (function_value): Handle small aggregates on 32-bit targets.
7432 (function_arg): Pass small aggregates in general registers on 32-bit
7433 targets.
7434 * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
7435
7436 2005-07-05 Andrew Pinski <pinskia@physics.uc.edu>
7437
7438 * Makefile.in (final.o): Fix dependencies.
7439
7440 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
7441
7442 PR c/22013
7443 PR c/22098
7444 * langhooks.h (struct lang_hooks): Add expr_to_decl.
7445 * langhooks.c (lhd_expr_to_decl): New.
7446 * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
7447 New.
7448 (LANG_HOOKS_INITIALIZER): Update.
7449 * tree.c (recompute_tree_invarant_for_addr_expr): Call
7450 expr_to_decl langhook.
7451 * c-tree.h (c_expr_to_decl): Declare.
7452 * c-typeck.c (c_expr_to_decl): New.
7453 (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
7454 specially.
7455 * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
7456
7457 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
7458
7459 PR c/22308
7460 * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
7461 C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
7462
7463 2005-07-05 Paolo Bonzini <bonzini@gnu.org>
7464
7465 * Makefile.in: Adjust dependencies.
7466 * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
7467 * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
7468 * alias.c (rest_of_handle_cfg, pass_cfg): New.
7469 * bb-reorder.c (duplicate_computed_gotos): Make it static.
7470 * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
7471 rest_of_compilation.
7472
7473 * bb-reorder.c (gate_duplicate_computed_gotos,
7474 pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
7475 rest_of_handle_reorder_blocks, pass_reorder_blocks,
7476 gate_handle_partition_blocks, rest_of_handle_partition_blocks,
7477 pass_partition_blocks): New.
7478 * bt-load.c (gate_handle_branch_target_load_optimize,
7479 rest_of_handle_branch_target_load_optimize,
7480 pass_branch_target_load_optimize): New.
7481 * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
7482 pass_jump2): New.
7483 * cfglayout.c (pass_insn_locators_initialize): New.
7484 * cfgrtl.c (pass_free_cfg): New.
7485 * combine.c (gate_handle_combine, rest_of_handle_combine,
7486 pass_combine): New.
7487 * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
7488 gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
7489 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
7490 * except.c (pass_set_nothrow_function_flags,
7491 pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
7492 pass_rtl_eh): New.
7493 * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
7494 rest_of_handle_shorten_branches, pass_shorten_branches,
7495 rest_of_clean_state, pass_clean_state): New.
7496 * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
7497 rest_of_handle_remove_death_notes, pass_remove_death_notes,
7498 rest_of_handle_life, pass_life, rest_of_handle_flow2,
7499 pass_flow2): New.
7500 * function.c (pass_instantiate_virtual_regs, pass_init_function,
7501 rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
7502 * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
7503 pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
7504 pass_gcse): New.
7505 * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
7506 * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
7507 pass_rtl_ifcvt, gate_handle_if_after_combine,
7508 rest_of_handle_if_after_combine, pass_if_after_combine,
7509 gate_handle_if_after_reload, rest_of_handle_if_after_reload,
7510 pass_if_after_reload): New.
7511 * integrate.c (pass_initial_value_sets): New.
7512 * jump.c (pass_cleanup_barriers, purge_line_number_notes,
7513 pass_purge_lineno_notes): New.
7514 * mode-switching.c (rest_of_handle_mode_switching,
7515 pass_mode_switching): New.
7516 * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
7517 * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
7518 pass_loop2): New.
7519 * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
7520 pass_loop_optimize): New.
7521 * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
7522 pass_sms): New.
7523 * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
7524 pass_gcse2): New.
7525 * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
7526 pass_postreload_cse): New.
7527 * profile.c (gate_handle_profiling, pass_profiling,
7528 rest_of_handle_branch_prob, pass_branch_prob): New.
7529 * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
7530 pass_split_before_regstack, gate_handle_split_before_regstack,
7531 gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
7532 rest_of_handle_split_all_insns, pass_split_all_insns): New.
7533 * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
7534 pass_stack_regs): New.
7535 * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
7536 gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
7537 pass_stack_adjustments): New.
7538 * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
7539 pass_regrename): New.
7540 * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
7541 pass_delay_slots, gate_handle_machine_reorg,
7542 rest_of_handle_machine_reorg, pass_machine_reorg): New.
7543 * rtl.h (extern void purge_line_number_notes): New.
7544 * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
7545 gate_handle_sched2, rest_of_handle_sched2, pass_sched,
7546 pass_sched2): New.
7547 * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
7548 pass_tracer): New.
7549 * value-prof.c (gate_handle_value_profile_transformations,
7550 rest_of_handle_value_profile_transformations,
7551 pass_value_profile_transformations): New.
7552 * var-tracking.c (gate_handle_var_tracking,
7553 pass_variable_tracking): New.
7554 * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
7555
7556 * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
7557 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
7558 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
7559 rest_of_handle_old_regalloc, rest_of_handle_regrename,
7560 rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
7561 rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
7562 rest_of_handle_gcse2, rest_of_handle_regmove,
7563 rest_of_handle_tracer, rest_of_handle_if_conversion,
7564 rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
7565 rest_of_handle_web, rest_of_handle_branch_prob,
7566 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
7567 rest_of_handle_jump_bypass, rest_of_handle_combine,
7568 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
7569 rest_of_handle_gcse, rest_of_handle_loop_optimize,
7570 rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
7571 rest_of_handle_mode_switching, rest_of_handle_jump,
7572 rest_of_handle_eh, rest_of_handle_stack_adjustments,
7573 rest_of_handle_flow2, rest_of_handle_jump2,
7574 rest_of_handle_peephole2, rest_of_handle_postreload,
7575 rest_of_handle_shorten_branches, rest_of_clean_state,
7576 rest_of_compilation): Remove.
7577
7578 * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
7579 * passes.c (dump_flags, in_gimple_form, all_passes,
7580 all_ipa_passes, all_lowering_passes, register_one_dump_file,
7581 register_dump_files, next_pass_1, last_verified, execute_todo,
7582 execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
7583 from tree-optimize.c.
7584 (init_optimization_passes): Moved from tree-optimize.c,
7585 adding the RTL optimizations.
7586 * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
7587 * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
7588 all_ipa_passes, all_lowering_passes, register_one_dump_file,
7589 register_dump_files, next_pass_1, last_verified, execute_todo,
7590 execute_one_pass, execute_pass_list, execute_ipa_pass_list,
7591 init_tree_optimization_passes, ipa_passes): Delete.
7592 * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
7593 the RTL dumps.
7594 (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
7595 dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
7596 from tree.h.
7597 (ipa_passes): Remove.
7598 (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
7599 * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
7600 dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
7601 dump_switch_p, dump_flag_name): Moved to tree-pass.h.
7602 (dump_info_p, dump_flag): Moved to tree-dump.h.
7603
7604 * Makefile.in: Adjust dependencies for tree-pretty-print.c,
7605 cgraph.c, opts.c.
7606 * passes.c (finish_optimization_passes): Use dump_begin
7607 and dump_end, TDI_end.
7608 (gate_rest_of_compilation): New.
7609 (pass_rest_of_compilation): Use it.
7610 (gate_postreload, pass_postreload): New.
7611 * toplev.c (general_init): Rename init_tree_optimization_passes.
7612 * toplev.h (init_tree_optimization_passes): Rename to
7613 init_optimizations_passes.
7614 * tree-dump.c (dump_flag): Make static.
7615 (dump_files): Remove RTL dumps.
7616 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
7617 pass_cleanup_cfg, pass_free_cfg_annotations,
7618 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
7619 pass_init_datastructures, pass_fixup_cfg): Make non-static.
7620 * tree-pretty-print.c: Include tree-pass.h.
7621 * cgraph.c: Include tree-dump.h.
7622
7623 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
7624
7625 * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
7626 Only fall back to saying it points to readonly memory if
7627 we can't do better.
7628
7629 2005-07-05 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7630
7631 * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
7632 * config/m32r/m32r.c (m32r_compute_frame_size,
7633 m32r_expand_prologue): Take current_function_profile into
7634 account whenever we reference
7635 current_function_uses_pic_offset_table.
7636 (m32r_finalize_pic): Remove.
7637 * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
7638
7639 2005-07-05 Kazu Hirata <kazu@codesourcery.com>
7640
7641 * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
7642 instead of $<. Don't remove ./as if it already exists.
7643
7644 2005-07-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7645
7646 PR target/21723
7647 * pa.md: Remove fcpy alternative from movhi and movqi patterns.
7648 * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
7649 for complex modes when generating code for PA 1.0.
7650 (VALID_FP_MODE_P): New macro.
7651 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
7652 sets for all general and floating point modes. Align wide floating
7653 point modes to even register boundaries to comply with architectural
7654 requirements.
7655 (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
7656 * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
7657 (VALID_FP_MODE_P): New macro.
7658 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
7659 sets for all general and floating point modes. Align wide floating
7660 point modes to even register boundaries to comply with architectural
7661 requirements.
7662
7663 2005-07-04 Diego Novillo <dnovillo@redhat.com>
7664
7665 * tree-dump.c (dump_files): Initialize dump number for .cgraph
7666 to 0.
7667
7668 2005-07-04 Diego Novillo <dnovillo@redhat.com>
7669
7670 * tree-ssa-structalias.c: Don't include expr.h.
7671
7672 2005-07-04 Diego Novillo <dnovillo@redhat.com>
7673
7674 * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
7675 comments.
7676
7677 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
7678
7679 Fix PR tree-optimization/22279
7680
7681 * tree-ssa-structalias.c (offset_overlaps_with_access): Use
7682 correct operator.
7683
7684 2005-07-04 J"orn Rennecke <joern.rennecke@st.com>
7685
7686 * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
7687
7688 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
7689
7690 * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
7691 cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
7692 config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
7693 config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
7694 config/stormy16/stormy16.c, config/v850/v850.c,
7695 config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
7696 except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
7697 Avoid "." or "\n" at end of diagnostics and capital letters at
7698 start of diagnostics.
7699 * combine.c, cse.c: Don't translate dump file output.
7700 * toplev.c (print_version): Only translate output if going to
7701 stderr.
7702
7703 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
7704
7705 * c-decl.c, tree-object-size.c, tree-vectorizer.c,
7706 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
7707 typos.
7708
7709 2005-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7710
7711 * pa.c (fix_range): Fix typo in comment.
7712
7713 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
7714
7715 * tree-vrp.c (extract_range_from_assert): Replace
7716 fold (build (...)) with fold_build2.
7717
7718 2005-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7719
7720 * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
7721 gcc_gfc_char_table, init_dynamic_gfc_info): New.
7722 (format_types_orig, handle_format_attribute): Add support for
7723 format "gcc_gfc".
7724
7725 2005-07-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7726
7727 * varasm.c (assemble_variable): Fix format specifier thinko.
7728
7729 2005-07-03 Ira Rosen <irar@il.ibm.com>
7730
7731 PR tree-optimization/22029 (and 22135)
7732 * tree-pretty-print.c (dump_generic_node): Check that the node is not
7733 a phi node before calling dump_vops.
7734
7735 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
7736
7737 * tree-dump.h (dump_string_field): Declare.
7738 * tree-dump.c: Use it instead of dump_string.
7739 (dump_string_field): Make non-static.
7740
7741 2005-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
7742
7743 * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
7744 up the minimal CFG stuff always when optimize > 0. Call
7745 split_all_insns_noflow in PIC case if needed.
7746
7747 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
7748 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
7749
7750 PR c++/18279
7751 * c-decl.c (c_write_global_declarations): Dump contents of
7752 external scope to.
7753 * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
7754 <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
7755 <GOTO_EXPR>, <SWITCH_EXPR>: Add.
7756 (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
7757 is enabled.
7758
7759 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
7760
7761 * c-common.h (GCC_DIAG_STYLE): Define.
7762 * c-tree.h (GCC_DIAG_STYLE): Do not define. Change minimum GCC
7763 version for format checking to 4.1.
7764 * c-format.c: Include toplev.h after c-common.h.
7765 (enum format_type): Add gcc_tdiag_format_type.
7766 (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
7767 gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
7768 (format_types_orig): Add gcc_tdiag.
7769 (init_dynamic_diag_info): Support gcc_tdiag formats.
7770 (handle_format_attribute): Likewise.
7771 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
7772 (GCC_DIAG_STYLE): Default to __gcc_tdiag__. Change minimum GCC
7773 version for format checking to 4.1.
7774 (warning0, warning, error, pedwarn, sorry): Use
7775 ATTRIBUTE_GCC_DIAG.
7776 * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
7777 (finish_aliases_1): Do not use %qE.
7778 * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
7779 config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
7780 Correct format bugs.
7781 * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
7782 parameter to unsigned HOST_WIDE_INT.
7783 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
7784
7785 2005-07-02 David Edelsohn <edelsohn@gnu.org>
7786
7787 PR middle-end/21742
7788 * expr.c (write_complex_part): Use adjust_address for MEM.
7789 (read_complex_part): Same.
7790
7791 2005-07-02 Daniel Berlin <dberlin@dberlin.org>
7792
7793 Fix PR tree-optimization/22280
7794
7795 * tree-sra.c (generate_element_init): Remove useless loop.
7796
7797 2005-07-02 Richard Henderson <rth@redhat.com>
7798
7799 * config/alpha/alpha.c (alpha_legitimize_address): Check for
7800 TLS_MODEL_NONE.
7801 (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
7802
7803 2005-07-02 Andrew Pinski <pinskia@physics.uc.edu>
7804
7805 PR middle-end/14490
7806 * fold-const.c (fold_binary): Handle the return value of
7807 fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
7808 Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
7809
7810 2005-07-02 Jeff Law <law@redhat.com>
7811
7812 * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
7813 a eliminate type conversion which feeds an equality comparison
7814 if the original type or either operand in the comparison is a
7815 function pointer.
7816
7817 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
7818
7819 * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
7820 config/rs6000/rs6000.opt, params.def: Remove "." from end of help
7821 texts.
7822 * config/avr/avr.c: Do not use '`' as left quote.
7823 * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
7824 Remove "." from end of diagnostics. Make diagnostics start with
7825 lowercase letter.
7826
7827 2005-07-02 Zack Weinberg <zack@codesourcery.com>
7828 Joseph S. Myers <joseph@codesourcery.com>
7829
7830 * toplev.c (default_tree_printer): Handle setting location with
7831 '+' flag.
7832 * c-objc.common.c (c_tree_printer): Likewise.
7833 * c-format.c (gcc_diag_flag_specs): Add '+'.
7834 (gcc_cdiag_char_table): Allow '+' flag for tree formats.
7835 (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
7836 formats.
7837 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
7838 config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
7839 config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
7840 config/v850/v850.c, function.c, stor-layout.c, toplev.c,
7841 tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
7842 instead of %J or %H. Use 'q' flag for quoting. Avoid '.' at end
7843 of diagnostics. Use %q+D not %s for a decl. Do not pass excess
7844 format arguments where %J is used without %D.
7845
7846 2005-07-02 Jakub Jelinek <jakub@redhat.com>
7847
7848 * gcc.c (LINK_SSP_SPEC): Define.
7849 (link_ssp_spec): New variable.
7850 (LINK_COMMAND_SPEC): Add %(link_ssp).
7851 (static_specs): Add link_ssp_spec.
7852 * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
7853 * configure: Rebuilt.
7854 * config.in: Rebuilt.
7855
7856 * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
7857 * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
7858 * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
7859 * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
7860 * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
7861 If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
7862 -0x7008(2) instead of reading __stack_chk_guard variable.
7863 * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
7864 number.
7865 (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
7866 (stack_protect_set, stack_protect_test): Use *_tls* patterns
7867 if TARGET_THREAD_SSP_OFFSET is defined.
7868 (stack_tls_protect_set_si, stack_tls_protect_set_di,
7869 stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
7870
7871 Revert:
7872 2005-06-27 Richard Henderson <rth@redhat.com>
7873 * libgcc-std.ver (GCC_4.1.0): New.
7874 * libgcc.h (__stack_chk_guard): Declare.
7875 (__stack_chk_fail, __stack_chk_fail_local): Declare.
7876 * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
7877 * mklibgcc.in (lib2funcs): Add them.
7878
7879 2005-07-01 Richard Henderson <rth@redhat.com>
7880
7881 * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
7882 void * before struct sigcontext *.
7883 (x86_fallback_frame_state): Likewise.
7884
7885 2005-07-01 James E. Wilson <wilson@specifixinc.com>
7886
7887 * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
7888
7889 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
7890
7891 PR tree-opt/22269
7892 * tree-ssa-reassoc.c (should_transpose): Fix which operand
7893 we check for SSA_NAME for.
7894
7895 2005-07-01 Daniel Berlin <dberlin@dberlin.org>
7896
7897 Fix PR tree-optimization/22071
7898
7899 * tree-ssa-structalias.c (offset_overlaps_with_access): New
7900 function.
7901 (get_constraint_for_component_ref): Use it.
7902
7903 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
7904
7905 PR other/22264
7906 * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
7907 print out the last new line.
7908
7909 2005-07-01 Hans-Peter Nilsson <hp@axis.se>
7910
7911 * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
7912 Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
7913 * config/cris/cris.c (cris_conditional_register_usage): Adjust
7914 reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
7915 (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
7916 (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
7917 * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
7918 (enum reg_class): New member CC0_REGS.
7919 (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
7920 (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
7921 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
7922 (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
7923 (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
7924 Adjust for register now described.
7925
7926 2005-07-01 Jakub Jelinek <jakub@redhat.com>
7927
7928 PR target/22262
7929 * config/i386/i386.md (stack_protect_test_si,
7930 stack_protect_test_di): Add earlyclobber for scratch 3.
7931 * config/rs6000/rs6000.md (stack_protect_testsi,
7932 stack_protect_testdi): Add earlyclobber for scratch 3,
7933 remove earlyclobber from scratch 4.
7934
7935 Older entries for 2005 can be found in ChangeLog-2005.