17310974d2a81cdb71b1c6a413d2e4138ae4cd92
[gcc.git] / gcc / ChangeLog
1 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2
3 * conflict.c (mark_reg, conflict_graph_compute): Remove.
4 * basic-block.h: Remove the prototype for
5 conflict_graph_compute.
6
7 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
8
9 * tree-if-conv.c (add_to_dst_predicate_list): Change the
10 second argument to basic_block.
11 (tree_if_convert_cond_expr): Update call sites.
12
13 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
14
15 * fold-const.c (pedantic_non_lvalue): Make it static.
16 * tree.h: Remove the corresponding prototype.
17
18 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
19
20 * optabs.c (prepare_operand): Make it static.
21 * optabs.h: Remove the corresponding prototype.
22
23 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
24
25 * reload1.c (reloads_conflict, gen_reload): Make them static.
26 * reload.h: Remove the corresponding prototypes.
27
28 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
29
30 * reload.c (refers_to_mem_for_reload_p,
31 refers_to_regno_for_reload_p): Make them static.
32 * reload.h: Remove the corresponding prototypes.
33
34 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
35 Eric Botcazou <ebotcazou@libertysurf.fr>
36
37 PR target/18230
38 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
39 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
40 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
41 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
42 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
43 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
44 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
45 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
46 MODE_VECTOR_INT modes.
47 (sparc_extra_constraint_check): Add new constraint 'Y'.
48 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
49 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
50 (V64): New mode macro for 64-bit modes.
51 (movsf): Use V32 for mode instead of SF.
52 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
53 alongside 'G' constraint.
54 (movdf): Use V64 for mode instead of DF.
55 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
56 of DF. Add 'Y' constraint alongside 'G' constraint.
57 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
58 instead of DF.
59
60 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
61
62 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
63 integer NEG and ABS.
64 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
65 ("*negdi2_31"): Reimplement using a splitter.
66 ("*negdi2_cc", "*negdi2_cconly"): New insns.
67 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
68 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
69 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
70 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
71 ("*absdi2_cc", "*absdi2_cconly"): New insns.
72 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
73 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
74 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
75 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
76 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
77 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
78 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
79 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
80 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
81
82 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
83
84 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
85 when eliminating an UNSPEC_CMPINT.
86 (s390_secondary_input_reload_class): Fix test for CC register reload.
87 (s390_secondary_output_reload_class): Likewise.
88 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
89 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
90 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
91 insn patterns with splitters.
92
93 2004-11-09 David Edelsohn <edelsohn@gnu.org>
94
95 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
96 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
97
98 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
99
100 * tree-phinodes.c (phi_reverse): New.
101 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
102 Use it.
103 * tree-flow.h: Add a prototype for phi_reverse.
104
105 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
106
107 * tree-ssa-loop-ivopts.c: Fix a comment typo.
108
109 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
110
111 PR pch/14940
112 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
113 definitions.
114
115 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
116
117 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
118 instead of "arg" in diagnostics.
119
120 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
121
122 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
123 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
124 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
125 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
126 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
127 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
128 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
129 config/iq2000/iq2000.c, config/m32r/m32r.c,
130 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
131 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
132 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
133 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
134 config/sh/symbian.c, config/stormy16/stormy16.c,
135 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
136 and %> as appropriate. Use %' as apostrophe in diagnostics where
137 applicable. Use %< and %> in place of '' quotes where applicable.
138 Use %qs in place of %<%s%>. Consistently quote __builtin function
139 names.
140
141 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
142
143 * gdbinit.in (pbb, pbm): New macros.
144
145 2004-11-08 Jeff Law <law@redhat.com>
146
147 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
148 implementing it inline.
149
150 * cfganal.c (find_edge): Search pred->succs or succ->preds,
151 whichever is shorter.
152
153 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
154
155 * passes.c (rest_of_handle_jump): Remove dead code.
156
157 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
158
159 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
160 the last used element in the worklist.
161
162 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
163
164 * tree-inline.c (remap_save_expr): Make it static.
165 * tree-inline.h: Remove the corresponding prototype.
166
167 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
168
169 * tree-ssa-loop-niter.c (upper_bound_in_type,
170 lower_bound_in_type): Make them static.
171 * tree.h: Remove the corresponding prototypes.
172
173 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
174
175 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
176 static.
177 * tree-ssa-live.h: Remove the corresponding prototypes.
178
179 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
180
181 * tree-if-conv.c (tree_if_conversion): Make it static.
182 * tree-flow.h: Remove the corresponding prototype.
183
184 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
185
186 * tree-ssa-operands.c (build_ssa_operands): Make it static.
187 * tree-flow.h: Remove the corresponding prototype.
188
189 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
190
191 PR tree-opt/18299
192 * tree-inline.c (copy_body_r): Change "t = t" to empty
193 statement instead of "t".
194
195 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
196
197 * modulo-sched.c (create_partial_schedule,
198 free_partial_schedule, reset_partial_schedule,
199 ps_add_node_check_conflicts, rotate_partial_schedule): Make
200 them static.
201
202 2004-11-08 Richard Henderson <rth@redhat.com>
203
204 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
205 the end of a page.
206
207 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
208
209 * sched-deps.c (add_insn_mem_dependence): Make it static.
210 * sched-int.h: Remove the corresponding prototypes.
211
212 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
213
214 * flow.c (allocate_bb_life_data): Make it static.
215 * basic-block.h: Remove the corresponding prototype.
216
217 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
218
219 * calls.c (split_complex_values, split_complex_types): Make
220 them static.
221 * expr.h: Remove the corresponding prototypes.
222
223 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
224
225 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
226 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
227
228 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
229
230 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
231 statements that always trigger.
232
233 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
234
235 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
236 tree-scalar-evolution.c, tree-ssa-loop-im.c,
237 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
238 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
239 appropriate.
240
241 2004-11-08 Ben Elliston <bje@au.ibm.com>
242
243 * cgraph.h (cgraph_calls_p): Remove.
244 * cgraph.c (cgraph_calls_p): Likewise.
245
246 * varray.h (varray_copy): Remove.
247 * varray.c (varray_copy): Likewise.
248
249 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
250
251 PR target/18269
252 * config/darwin.c (machopic_indirect_data_reference):
253 Call gen_macho_high and gen_macho_low instead of
254 checking the mode and calling gen_macho_high_di directly.
255 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
256 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
257 to darwin.md.
258 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
259 load_macho_picbase, macho_low, macho_high): Removed.
260 (builtin_setjmp_receiver): Call gen_macho_high and
261 gen_macho_low instead of checking the mode and calling
262 gen_macho_high_di directly.
263 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
264 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
265 Moved from rs6000.md.
266 (macho_high): New expander.
267 (macho_high_si): Renamed version of macho_high from rs6000.md.
268 (macho_low): New expander.
269 (macho_low_si): Renamed version of macho_low from rs6000.md.
270 (load_macho_picbase): New expander.
271 (load_macho_picbase_si): Renamed version of load_macho_picbase
272 from rs6000.md.
273 (macho_correct_pic): New expander.
274 (macho_correct_pic_si): Renamed version of macho_correct_pic
275 from rs6000.md.
276
277 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
278
279 * c-decl.c (finish_struct): Use complete sentences for diagnostic
280 for structures or unions with no members or named members.
281
282 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
283
284 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
285 taking address of bit-field by assertion.
286
287 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
288
289 * config/s390/s390.md (attribute "op_type"): Default to "NN".
290 (attribute "atype"): Default to "agen".
291 (attribute "length"): Default to 6.
292 (define_asm_attibutes): Remove.
293 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
294 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
295 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
296 Do not set type attribute to "cs" where already default.
297 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
298 "*negdi2_31"):
299 Do not set type attribute to "other" where already default.
300 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
301 "*strlendi", "*strlensi",
302 "*movmem_long_64", "*movmem_long_31",
303 "*clrmem_long_64", "*clrmem_long_31",
304 "*cmpmem_long_64", "*cmpmem_long_31",
305 "*cmpint_si", "*cmpint_di",
306 "addti3", "*adddi3_31z", "*adddi3_31",
307 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
308 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
309 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
310 "*pool_entry", "pool_align", "pool_section_start",
311 "pool_section_end", "main_pool", "reload_base_31", "pool"):
312 Do not set op_type attribute to "NN" where already default.
313 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
314 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
315 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
316 Do not set atype attribute to "agen" where already default.
317 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
318
319 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
320
321 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
322
323 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
324
325 PR target/16830
326 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
327 R3000 and R4000 macros on IRIX.
328
329 2004-11-06 Andreas Schwab <schwab@suse.de>
330
331 PR target/16286
332 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
333 __pixel.
334
335 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
336
337 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
338
339 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
340
341 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
342 matches no insns already matched by other reservations.
343 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
344 matches no insns already matched by other reservations.
345 ("x_ss"): Remove, replace by ...
346 ("x_cs"): ... this new reservation. Check type instead of op_type.
347 Update bypasses to use x_cs instead of x_ss.
348 ("x_nn"): Remove, replace by ...
349 ("x_other"): ... this new reservation. Check type instead of op_type.
350 Add x_other and x_branch to bypasses.
351 ("x_vs"): New reservation.
352 * config/s390/s390.md (attribute "type"): Default according to op_type.
353 ("*execute"): Set type to "cs".
354
355 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
356
357 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
358 if we are in GIMPLE.
359
360 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
361
362 PR rtl-optimization/17933
363 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
364 (covers_regno_p): New function. Handle SETs of PARALLEL,
365 and defer the rest to...
366 (covers_regno_no_parallel_p): New function.
367
368 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
369
370 * config/sparc/sparc.c (function_arg_record_value_1): Skip
371 fields with zero length.
372 (function_arg_record_value_2): Likewise.
373 (function_arg_record_value_3): Use smallest_mode_for_size
374 instead of mode_for_size.
375 (function_arg_union_value): Return naked register for unions
376 with zero length.
377
378 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
379
380 * config/sparc/sparc.c (scan_record_type): Handle vector types.
381 (function_arg_slotno): Handle vector types specially.
382 (function_arg_record_value_1): Split fields with vector type and
383 BLKmode into their subparts.
384 (function_arg_record_value_2): Likewise. Be prepared to handle
385 more than 2 registers per field.
386 (function_arg_union_value): Increment regno inside the loop.
387 (function_arg_vector_value): New function.
388 (function_arg): Use it to split fields with vector type and
389 BLKmode into their subparts and build a PARALLEL. Treat
390 other vector types like floats.
391 (function_value): Likewise.
392 (sparc_pass_by_reference): Handle vector types.
393 (sparc_return_in_memory): Likewise.
394
395 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
396
397 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
398 statement that never triggers.
399
400 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
401
402 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
403 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
404 ("x_fdivd"): Use also for fsqrtd type.
405 ("x_fdivs"): Use also for fsqrts type.
406 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
407 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
408 ("fix_truncdfsi2_ibm"): Set type to "other".
409 ("floatdidf2", "floatdisf2"): Do not clobber CC.
410 ("floatsidf2", "floatsidf2_ieee"): Likewise.
411 ("floatsisf2", "floatsisf2_ieee"): Likewise.
412 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
413 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
414 instead of LRER.
415 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
416 ("sqrtdf2"): Set type to "fsqrtd".
417 ("sqrtsf2"): Set type to "fsqrts".
418
419 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
420
421 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
422 pointer to the last PHI node in the new PHI chain.
423
424 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
425
426 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
427 for non-PIC TLS_MODEL_INITIAL_EXEC case.
428
429 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
430
431 * expmed.c: Fix a comment typo.
432
433 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
434
435 PR target/18106
436 * config/i386/cygming.h
437 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
438
439 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
440
441 * config/sh/sh4a.md: Fix copyright.
442
443 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
444
445 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
446 with GCC.
447
448 2004-11-05 David Edelsohn <edelsohn@gnu.org>
449
450 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
451 when carry not used. Suggested by Torbjorn Granlund.
452
453 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
454 operand[1] unnecessarily. Suggested by Eric Christopher.
455 (rs6000_adjust_cost): Increase latency of store to wider load.
456 (rs6000_rtx_costs): mulli only allows 16-bit constants.
457
458 2004-11-05 Stan Shebs <shebs@apple.com>
459
460 * config/rs6000/rs6000.c (machopic_output_stub): Output
461 ldu instead of lwzu for 64-bit stubs.
462
463 2004-11-05 Richard Henderson <rth@redhat.com>
464
465 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
466 size 2 with BWX.
467 (alpha_expand_unaligned_store): Likewise.
468
469 2004-11-05 Richard Henderson <rth@redhat.com>
470
471 * expmed.c (extract_force_align_mem_bit_field): New.
472 (extract_split_bit_field): Call it.
473
474 2004-11-05 Richard Henderson <rth@redhat.com>
475
476 * ia64.md (UNSPEC_SHRP): New.
477 (dshift_count_operand): New.
478 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
479 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
480
481 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
482
483 * c-typeck.c (output_init_element): Return early if value is
484 error_mark_node.
485
486 2004-11-05 James E Wilson <wilson@specifixinc.com>
487
488 * invoke.texi (-fno-guess-branch-probability): Rewrite.
489
490 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
491 1 to UNSPEC_GR_SPILL.
492
493 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
494
495 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
496 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
497
498 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
499
500 * bitmap.h (enum bitmap_bits): Remove.
501 (bitmap_operation): Remove.
502 (bitmap_and, bitmap_and_into, bitmap_and_compl,
503 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
504 bitmap_xor_into): Prototype.
505 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
506 (bitmap_operation): Remove.
507 (bitmap_and, bitmap_and_into, bitmap_and_compl,
508 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
509 bitmap_xor_into): New.
510 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
511
512 PR tree-optimization/18307
513 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
514 and ORIG being the same node.
515
516 2004-11-04 Geoffrey Keating <geoffk@apple.com>
517
518 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
519 (install-mkheaders): Install the version built for the
520 host, not for the build machine.
521 * configure.ac: Always run fixincludes.
522 (all_outputs): Remove mkheaders.
523 * configure: Regenerate.
524 * fixinc.in: Move to fixincludes/.
525 * mkfixinc.sh: Likewise.
526 * mkheaders.in: Likewise.
527 * README-fixinc: Likewise.
528
529 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
530
531 PR target/18263
532 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
533 equivalent on the A4.
534
535 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
536
537 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
538 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
539 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
540 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
541 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
542 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
543 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
544 doc/trouble.texi: Correct end-of-sentence markup and markup of
545 "etc.", "e.g." and "i.e.". Use @code in various places where
546 appropriate.
547
548 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
549
550 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
551 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
552 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
553 whitespace.
554
555 2004-11-04 Mark Mitchell <mark@codesourcery.com>
556
557 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
558 * doc/extend.texi: Document "notshared" attribute.
559
560 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
561
562 * tree-phinodes.c (make_phi_node): Make it static.
563 * tree.h: Remove the prototypes for make_phi_node.
564
565 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
566
567 * stmt.c (expand_asm, expand_asm_operands): Make them static.
568 * tree.h: Remove the prototypes for expand_asm and
569 expand_asm_operands.
570
571 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
572
573 * passes.c (rest_of_compilation): Make it static.
574 * toplev.h: Remove the prototype for rest_of_compilation.
575
576 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
577
578 * jump.c (cleanup_barriers): Use delete_insn instead of
579 delete_barrier.
580 (delete_barrier): Remove.
581 * rtl.h: Remove the corresponding prototype.
582
583 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
584
585 * expr.c (mostly_zero_p): Make it static.
586 * tree.h: Remove the prototype for mostly_zeros_p.
587
588 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
589
590 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
591
592 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
593
594 * builtins.c (expand_builtin_return_addr,
595 expand_builtin_longjmp, expand_builtin_trap): Make them static.
596 * expr.h: Remove the prototypes for expand_builtin_longjmp and
597 expand_builtin_trap.
598 * tree.h: Remove the prototype for expand_builtin_return_addr.
599
600 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
601
602 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
603 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
604 with VAL being NULL.
605
606 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
607
608 * cfghooks.c (delete_basic_block): Remove code to truncate
609 edge vectors.
610
611 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
612
613 * flow.c (init_propagate_block_info): Change the type of i to
614 unsigned.
615
616 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
617
618 PR tree-optimization/18184
619 * c-typeck.c (comptypes): Do not treat pointers of different
620 modes or alias-all flags as equivalent.
621 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
622
623 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
624
625 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
626 reference specific C parser files in examples.
627
628 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
629
630 PR target/15342
631 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
632 as OP_INOUT if the instruction is predicated.
633
634 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
635
636 * bitmap.h: Fix a comment typo. Follow spelling conventions.
637 * tree-vectorizer.c: Fix a comment typo.
638
639 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
640
641 * sdbout.c (SDB_GENERATE_FAKE): Remove.
642 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
643 * system.h: Poison SDB_GENERATE_FAKE.
644 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
645
646 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
647
648 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
649
650 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
651
652 PR other/18277
653 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
654 2004-10-29 patch
655
656 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
657
658 * predict.c (propagate_freq): Make bitno unsigned. Move
659 npredecessors update out of loop.
660
661 * bitmap.h (bitmap_iterator): Remove word_bit and bit
662 fields. Rename others.
663 (bmp_iter_common_next_1, bmp_iter_single_next_1,
664 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
665 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
666 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
667 bmp_iter_and_next): Remove.
668 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
669 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
670 New.
671 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
672 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
673
674 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
675 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
676 bitmap_and_into, bitmap_ior_into as appropriate.
677 * except.c (remove_eh_handler): Likewise.
678 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
679 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
680 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
681 * tree-ssa-live.h (live_merge_and_clear): Likewise.
682 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
683 Likewise.
684
685 * bitmap.c (bitmap_print): Make bitno unsigned.
686 * bt-load.c (clear_btr_from_live_range,
687 btr_def_live_range): Likewise.
688 * caller-save.c (save_call_clobbered_regs): Likewise.
689 * cfganal.c (compute_dominance_frontiers_1): Likewise.
690 * cfgcleanup.c (thread_jump): Likewise.
691 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
692 * conflict.c (conflict_graph_compute): Likewise.
693 * ddg.c (add_deps_for_use): Likewise.
694 * df.c (df_refs_update): Likewise.
695 * except.c (remove_eh_handler): Likewise.
696 * flow.c (verify_local_live_at_start, update_life_info,
697 initialize_uninitialized_subregs, propagate_one_insn,
698 free_propagate_block_info, propagate_block, find_use_as_address,
699 reg_set_to_hard_reg_set): Likewise.
700 * gcse.c (clear_modify_mem_tables): Likewise.
701 * global.c (global_conflicts, build_insn_chain): Likewise.
702 * ifcvt.c (dead_or_predicable): Likewise.
703 * local-alloc.c (update_equiv_regs): Likewise.
704 * loop.c (load_mems): Likewise.
705 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
706 Likewise.
707 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
708 Likewise.
709 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
710 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
711 * sched-rgn.c (propagate_deps
712 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
713 * tree-dfa.c (dump_dfa_stats
714 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
715 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
716 Likewise.
717 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
718 free_temp_expr_table, find_replaceable_exprs): Likewise.
719 * tree-sra.c (scan_function, scalarize_parms): Likewise.
720 * tree-ssa-alias.c (init_alias_info,
721 compute_points_to_and_addr_escape,
722 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
723 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
724 * tree-ssa-live.c (new_tree_live_info, live_worklist,
725 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
726 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
727 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
728 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
729 add_call_read_ops): Likewise.
730 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
731 * tree-ssa-live.h (num_var_partitions): Return unsigned.
732
733 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
734
735 PR tree-optimization/18009
736 * tree-vectorizer.h (enum dr_alignment_support): New type.
737 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
738 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
739 single data_reference (instead of a varray of references).
740 * tree-vectorizer.c (new_loop_vec_info): Likewise.
741 (vect_gen_niters_for_prolog_loop): Likewise.
742 (vect_update_inits_of_drs): Likewise.
743
744 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
745 vect_enhance_data_refs_alignment.
746 (vect_do_peeling_for_alignment): Likewise.
747 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
748 this functionality used to be in vect_analyze_data_refs_alignment.
749 Also update DR_MISALIGNMENT due to peeling; this functionality used to
750 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
751 (vect_analyze_data_refs_alignment): Decision on whether and by how much
752 to peel moved to vect_enhance_data_refs_alignment. Call
753 vect_supportable_dr_alignment.
754
755 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
756 (vect_compute_data_refs_alignment): Return bool. Consider return value
757 of vect_compute_data_ref_alignment and return true/false accordingly.
758 (vect_enhance_data_refs_alignment): Consider return value of
759 vect_compute_data_refs_alignment and return true/false accordingly.
760
761 (vect_supportable_dr_alignment): New function.
762 (vectorizable_store): Call vect_supportable_dr_alignment.
763 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
764 support checks moved from here to vect_supportable_dr_alignment.
765
766 (vect_transform_loop): Avoid 80 columns overflow.
767
768 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
769
770 * timevar.c (timevar_enable): Change from
771 static.
772 (timevar_push): Rename to ...
773 (timevar_push_1): this and remove the
774 enabled check.
775 (timevar_pop): Rename to ...
776 (timevar_pop_1): this and remove the
777 enabled check.
778 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
779 (timevar_pop): New macro.
780 (timevar_push): New macro.
781 (timevar_enable): Declare.
782
783 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
784
785 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
786 libgcc for shared libraries.
787
788 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
789
790 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
791 * config/s390/s390.c (s390_split_access_reg): New function.
792 (regclass_map): Add access registers.
793 (get_thread_pointer): Use access register instead of UNSPEC_TP.
794 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
795 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
796 (TP_REGNUM): New define.
797 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
798 REG_ALLOC_ORDER): Add access registers.
799 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
800 CANNOT_CHANGE_MODE_CLASS): Support access registers.
801 (enum reg_class): Add ACCESS_REGS.
802 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
803 (REG_CLASS_FROM_LETTER): Add 't' constraint.
804 (REGISTER_NAMES): Add access registers.
805 * config/s390/s390.md (UNSPEC_TP): Remove.
806 ("*movdi_64"): Add access register alternatives. Provide splitters
807 to split DImode access register <-> GPR moves into SImode moves.
808 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
809 ("movstrictsi"): Likewise.
810 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
811 ("set_tp_64", "set_tp_31"): Likewise.
812 ("*set_tp"): New insn.
813
814 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
815
816 * tree-phinodes.c (resize_phi_node): Copy only a portion of
817 the PHI node currently in use.
818
819 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
820
821 PR tree-opt/18231
822 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
823 also.
824
825 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
826
827 PR tree-optimization/18270
828 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
829 abnormal edges, commit all pending stmts on incoming edges.
830
831 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
832
833 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
834 cause extra costs. Generate canonical RTL.
835
836 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
837
838 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
839 (lambda_compute_target_space). Ditto.
840 * lambda.h (lambda_trans_matrix): Ditto.
841 (lambda_linear_expression): Ditto.
842 (lambda_body_vector): Ditto.
843 (lambda_loopnest): Ditto.
844 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
845 update comments, and remove pointless addition of 0.
846 (linear_transform_loops): Update comments.
847
848 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
849
850 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
851 CEIL_MOD_EXPR.
852
853 2004-11-03 Jeff Law <law@redhat.com>
854
855 * predict.c (struct block_info_def): Kill "tovisit" field.
856 (propagate_freq): Accept new "tovisit" parameter. Change
857 read/write access methods for "tovisit" to check the "tovisit"
858 bitmap instead of a bit in block_info_def.
859 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
860 it to propagate_freq.
861
862 * stmt.c (expand_case): Speed up code to detect duplicate case
863 label targets and count unique case label targets.
864
865 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
866
867 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
868
869 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
870
871 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
872
873 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
874
875 * tree-cfg.c (find_taken_edge): Abort if we are given a
876 statement that is neither COND_EXPR nor SWITCH_EXPR.
877
878 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
879
880 * fold-const.c (fold): Reassociate also (x - mult) + mult and
881 (mult - x) + mult. Cast operands of expression after applying
882 distributive law to the correct types. Apply distributive law
883 to a * c - b * c for all non-float types.
884
885 2004-11-02 Geoffrey Keating <geoffk@apple.com>
886
887 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
888 because we don't want to run them now; instead, set them to
889 stmp-install-fixproto or stmp-install-fixinc.
890 * Makefile.in (stmp-install-fixproto): New.
891 (stmp-install-fixinc): New.
892 * configure: Regenerate.
893
894 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
895
896 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
897 of bitmap_xor.
898
899 2004-11-02 Ziemowit Laski <zlaski@apple.com>
900
901 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
902 (c_types_compatible_p): Move function definition...
903 * c-objc-common.c (c_types_compatible_p): ...here.
904 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
905 c-lang.c.
906
907 2004-11-02 Steven Bosscher <stevenb@suse.de>
908
909 * cfgloop.h (struct loop): Update comment.
910 * cse.c (cse_main): Remove obsolete comment.
911
912 * expr.h (gen_cond_trap): Move prototype under functions provided
913 by optabs.c.
914 (canonicalize_condition, get_condition): Move to...
915 * rtl.h (canonicalize_condition, get_condition): ...here.
916 (branch_target_load_optimize): Add comment that this function is
917 in bt-load.c.
918 * loop.c (canonicalize_condition, get_condition): Move to...
919 * rtlanal.c (canonicalize_condition, get_condition): ...here.
920 * sched-deps.c (get_condition): Rename to sched_get_condition.
921 (add_dependence): Update this caller.
922
923 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
924
925 PR tree-opt/16808
926 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
927 that the vops get marked for renaming.
928
929 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
930
931 * config/s390/s390.md ("movcc"): Set type attribute.
932
933 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
934
935 * tree-phinodes.c (add_phi_arg): Add an assertion that the
936 edge already exists.
937
938 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
939
940 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
941 element that's being removed.
942
943 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
944
945 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
946 arguments using PENDING_STMT.
947 (thread_block): Call copy_phis_to_block after redirecting an
948 edge.
949
950 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
951
952 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
953 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
954 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
955 (bitmap_ior_and_compl_into): Produce bool.
956 (bitmap_union_of_diff): Rename to ...
957 (bitmap_ior_and_compl): ... here. Produce bool.
958 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
959 bitmap_operation directly.
960 (bitmap_union_of_diff): Rename to ...
961 (bitmap_ior_and_compl): ... here. Return bool, use
962 bitmap_operation directly.
963 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
964 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
965 * global.c (modify_bb_reg_pav): Likewise.
966
967 * bitmap.h (bitmap_equal_p): Return bool.
968 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
969 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
970 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
971 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
972 bitmap_intersect_compl_p.
973 * ifcvt (dead_or_predicable): Likewise.
974
975 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
976
977 PR rtl-optimization/17104
978 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
979 loads in zero_extend.
980
981 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
982
983 PR debug/18242
984 * toplev.c (debug_type_names): Remove "dwarf-1".
985
986 2004-11-02 Ben Elliston <bje@au.ibm.com>
987
988 * timevar.h (timevar_get): Remove.
989 * timevar.c (timevar_get): Remove unused function.
990
991 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
992
993 * doc/include/texinfo.tex: Update from Texinfo CVS.
994
995 2004-11-02 Ben Elliston <bje@au.ibm.com>
996
997 * cppdefault.h (cpp_SYSROOT): Remove.
998 * cppdefault.c (cpp_SYSROOT): Likewise.
999
1000 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
1001
1002 PR tree-optimization/16447
1003 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
1004 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
1005 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
1006 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
1007 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
1008 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
1009 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
1010 (identical_copies_p): New. Return true is two copies are the same.
1011 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
1012 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
1013 for a basic block.
1014 (perform_edge_inserts): New. Determine what to do with all stmts that
1015 have been inserted on edges.
1016 (remove_ssa_form): Analyze and commit edges from here.
1017
1018 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
1019
1020 PR bootstrap/18232
1021 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
1022 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
1023 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
1024 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
1025
1026 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1027
1028 PR c/18239
1029 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
1030 parameter declarations.
1031
1032 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
1033
1034 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
1035 (s390_secondary_input_reload_class)
1036 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
1037 register.
1038 (s390_expand_cmpmem): Enable cmpmem implementation.
1039 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
1040 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
1041 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
1042 * config/s390/s390.md ("movcc"): New insn pattern.
1043 * doc/md.texi: Document 'c' constraint for s390.
1044
1045 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
1046
1047 PR c++/18064
1048 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
1049 extension.
1050
1051 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
1052
1053 Fix PR tree-optimization/17672
1054 Fix PR tree-optimization/18168
1055
1056 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
1057 assert test.
1058 (gcc_tree_to_linear_expression): Add extra to existing constant.
1059 (depth_of_nest): Factor out function used in various places.
1060 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
1061 functional changes.
1062 (find_induction_var_from_exit_cond): Stop guessing, and just
1063 get the right answer :).
1064 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
1065 Print out message about result of attempt to create perfect nest.
1066 (lbv_to_gcc_expression): Add type argument, use it to do math
1067 and induction variable creation.
1068 (lle_to_gcc_expression): Ditto.
1069 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
1070 oldiv. Pass type argument to lle_to_gcc_expression and
1071 lbv_to_gcc_expression.
1072 Reset number of iterations after transformation.
1073 (perfect_nestify): Remove useless pre-allocation, and cleanup
1074 a small amount.
1075
1076 * tree-data-ref.c (build_classic_dist_vector): Return false for
1077 dependences completely outside of the loop nest we asked about.
1078 (build_classic_dir_vector): Ditto.
1079 (compute_data_dependences_for_loop): Only add dependence relations
1080 inside the loop we asked about.
1081
1082 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
1083 Compute immediate uses.
1084
1085 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
1086
1087 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
1088
1089 * tree-cfg.c (thread_jumps): Fix a comment typo.
1090
1091 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
1092
1093 * tree-cfg.c (thread_jumps): Fix a comment typo.
1094
1095 2004-10-31 Nicolas Pitre <nico@cam.org>
1096
1097 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
1098 values smaller than 2^32.
1099
1100 2004-10-31 Jeff Law <law@redhat.com>
1101
1102 * cfgloop.h (struct loop): Remove unused "nodes" field.
1103 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
1104 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
1105 instead of calling flow_bb_inside_loop_p for every basic block
1106 in the function.
1107 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
1108
1109 2004-10-31 Graham Stott <graham.stott@btinternet.com>
1110
1111 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
1112 INT_5_BITS instead of VAL_5_BITS_P.
1113
1114 2004-10-31 Roger Sayle <roger@eyesopen.com>
1115
1116 PR middle-end/14521
1117 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
1118 for consistent quoting in diagnostic messages.
1119 (expand_call_inline): Likewise.
1120 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1121 * tree-ssa.c (warn_uninitialized_var): Likewise.
1122 (warn_uninitialized_phi): Likewise.
1123
1124 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
1125
1126 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
1127 mode check.
1128
1129 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
1130
1131 * c-common.c: Fix a comment typo.
1132
1133 2004-10-31 Jason Merrill <jason@redhat.com>
1134
1135 PR middle-end/17526
1136 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
1137 aggregate types that are not BLKmode.
1138
1139 2004-10-30 Ziemowit Laski <zlaski@apple.com>
1140
1141 * c-common.h (objc_lookup_ivar): Add second parameter to
1142 prototype.
1143 * c-typeck.c (build_external_ref): After looking up symbol,
1144 pass it to objc_lookup_ivar() to decide whether it or the
1145 ivar should be used, rather than deciding the issue locally.
1146 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
1147 which is simply returned in the non-ObjC case.
1148
1149 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
1150
1151 * sdbout.c (sdbout_symbol): Do not output type .def statements
1152 for builtin types.
1153
1154 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1155
1156 * c-common.c (catenate_strings): New.
1157 (c_parse_error): Use it. Don't over-escape.
1158
1159 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
1160
1161 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
1162 modify the for loop expressions for it. Remove unnecessary casts.
1163 (sh_expand_prologue): Declare reg as unsigned.
1164 (sh_gimplify_va_arg_expr): Initinalize lab_over.
1165 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
1166
1167 2004-10-30 Geoffrey Keating <geoffk@apple.com>
1168
1169 * doc/invoke.texi (Darwin Options): Improve description of
1170 how the subtype is chosen.
1171
1172 2004-10-30 Roger Sayle <roger@eyesopen.com>
1173
1174 PR middle-end/18096
1175 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
1176 the stack adjustment, "size", is valid for Pmode. If the stack
1177 frame is too large, generate a trap insn and issue a warning.
1178
1179 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
1180
1181 * tree-ssa-dom.c: Fix comment typos.
1182
1183 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
1184
1185 * config/sh/sh.c (prepare_move_operands): Use operands[0]
1186 for the output rtl if no_new_pseudos is set. Remove redundant
1187 line.
1188
1189 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
1190
1191 PR c/16666
1192 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
1193 determining whether to copy parameter types from a previous
1194 prototype declaration.
1195
1196 2004-10-29 Roger Sayle <roger@eyesopen.com>
1197
1198 PR rtl-optimization/17581
1199 * cselib.c (cselib_process_insn): The last instruction of a libcall
1200 block, with the REG_RETVAL note, should be considered in the libcall.
1201 * gcse.c (do_local_cprop): Allow constants to be propagated outside
1202 of libcall blocks.
1203 (adjust_libcall_notes): Use simplify_replace_rtx instead of
1204 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
1205
1206 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
1207
1208 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
1209
1210 2004-10-29 Jeff Law <law@redhat.com>
1211
1212 * tree-ssa-dom.c (struct edge_info): New structure holding
1213 edge equivalences and edge redirection information.
1214 (get_eq_expr_value, record_dominating_conditions): Kill.
1215 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
1216 Call record_edge_info.
1217 (allocate_edge_info, free_edge_info): New.
1218 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
1219 rather than cprop_into_phis. Free all edge infos before threading
1220 jumps.
1221 (thread_across_edge): Allocate new edge info structures as needed
1222 and store the redirection target into the edge info structure
1223 instead of the edge's AUX field.
1224 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
1225 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
1226 Revamp code which finds and records equivalences associated with
1227 edges to use saved data in the edge_info structure.
1228 (record_equivalencs_from_phis): Similarly.
1229 (dom_opt_finalize_block): Revamp code which finds and records
1230 equivalences associated with edges to use saved data in the
1231 edge_info structure.
1232 (build_and_record_new_cond): New function.
1233 (record_conditions): Use build_and_record_new_cond to record
1234 dominating conditions.
1235 (record_edge_info): New function.
1236 (record_range): Tighten test for conditions which create
1237 useful range records.
1238
1239 2004-10-29 Geoffrey Keating <geoffk@apple.com>
1240
1241 * config/i386/darwin.h (ASM_SPEC): Simplify.
1242 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
1243 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
1244 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
1245 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
1246 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
1247 in all cases. Pass the right -arch or -arch_only based on -mcpu.
1248 (ASM_SPEC): Handle -force_cpusubtype_ALL.
1249 * doc/invoke.texi (Darwin Options): Improve documentation for
1250 Darwin linker (and libtool) switches.
1251
1252 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
1253
1254 2004-10-29 Stan Shebs <shebs@apple.com>
1255
1256 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
1257
1258 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
1259
1260 * tree-phinodes.c (allocate_phi_node): New.
1261 (make_phi_node, resize_phi_node): Use it.
1262
1263 2004-10-29 David Edelsohn <edelsohn@gnu.org>
1264
1265 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
1266 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
1267
1268 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
1269
1270 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
1271 the whole PHI node.
1272 * tree.h (tree_phi_node): Tell the garbage collector to chase
1273 num_args arguments.
1274
1275 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
1276
1277 * opts.c (decode_options): Lower the crossjump threshold for -Os.
1278
1279 2004-10-29 Diego Novillo <dnovillo@redhat.com>
1280
1281 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
1282
1283 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
1284
1285 * bitmap.h (bitmap_empty_p): New.
1286 (bitmap_and, bitmap_and_into, bitmap_and_compl,
1287 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
1288 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
1289 operation macros.
1290 (bitmap_ior_and_compl): Rename to ...
1291 (bitmap_ior_and_compl_into): ... here.
1292 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
1293 (bitmap_ior_and_compl): Rename to ...
1294 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
1295 flag.
1296 (bitmap_union_of_diff): Use renamed bitmap functions.
1297 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
1298 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
1299 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
1300 * df.c (df_bb_rd_local_compute)
1301 * flow.c (calculate_global_regs_live,
1302 init_propagate_block_info): Likewise.
1303 * ifcvt.c (find_if_case_1, find_if_case_2,
1304 dead_or_predicable): Likewise.
1305 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
1306 reset_conflicts, conflicts_between_webs): Likewise.
1307 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
1308 detect_web_parts_to_rebuild): Likewise.
1309 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
1310 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
1311 * tree-sra.c (decide_instantiations): Likewise.
1312 * tree-ssa-alias.c (create_name_tags,
1313 merge_pointed_to_info): Likewise.
1314 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1315 * tree-ssa-loop-im.c (move_computations): Likewise.
1316 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
1317 * tree-ssa-pre.c (fini_pre): Likewise.
1318 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
1319 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
1320 * tree-vectorizer.c (vectorize_loops): Likewise.
1321
1322 2004-10-29 Nick Clifton <nickc@redhat.com>
1323
1324 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
1325 adding the PIC register to the fixed_regs array, also add it
1326 to the call_used_regs array.
1327
1328 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
1329
1330 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
1331 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
1332
1333 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
1334
1335 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
1336 (rewrite_blocks): Modify argument, and use it to decide which
1337 function to call.
1338 (rewrite_def_def_chains): Call rewrite_blocks with true here.
1339 (rewrite_into_ssa): and call it with false here.
1340
1341 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
1342
1343 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
1344 triggers into gcc_assert.
1345
1346 2004-10-28 Diego Novillo <dnovillo@redhat.com>
1347
1348 PR tree-optimization/16728
1349 * tree-flow.h (get_ptr_info): Declare.
1350 * tree-ssa-alias.c (get_ptr_info): Make extern.
1351 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
1352 alias information.
1353
1354 2004-10-28 Stan Shebs <shebs@apple.com>
1355
1356 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
1357 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
1358 case.
1359
1360 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
1361
1362 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
1363 prevent their later unnecessary registration.
1364 (mf_build_check_statement_for): Remove "addr" argument, and
1365 related "__mf_value" generated code. Update callers.
1366 (mf_decl_eligible_p): New function, factored from mx_register_decls.
1367 (mx_register_decls): Call it.
1368 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
1369 to restore support for complex nested expressions.
1370 (mudflap_enqueue_decl): Simplify. Move registration call emission
1371 out ...
1372 (mudflap_finish_file): ... to here.
1373 (mudflap_enqueue_constant): Remove dump code.
1374
1375 2004-10-28 Zack Weinberg <zack@codesourcery.com>
1376
1377 PR 18199
1378 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
1379 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
1380 (dbxout_finish_complex_stabs): Update to match.
1381 (dbxout_symbol_location): Call emit_pending_bincls_if_required
1382 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
1383 dbxout_begin_complex_stabs_noforcetext.
1384 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
1385 N_GSYM, using new SYM parameter. Correct logic for special
1386 cases for N_FUN.
1387
1388 * varasm.c (function_section): If DECL is NULL_TREE, don't try
1389 to do anything else. Do not call get_insns if cfun or
1390 cfun->emit are NULL.
1391
1392 2004-10-28 Adam Nemet <anemet@lnxw.com>
1393
1394 PR middle-end/18160
1395 * c-typeck.c (c_mark_addressable): Issue error if address of a
1396 register variable is taken. Use "%qD" to print DECL_NAME.
1397
1398 2004-10-28 Diego Novillo <dnovillo@redhat.com>
1399
1400 * opts.c (decode_options): Don't run PRE at -Os.
1401
1402 2004-10-28 Richard Henderson <rth@redhat.com>
1403
1404 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
1405 zero in the conditional.
1406 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
1407
1408 2004-10-28 Richard Henderson <rth@redhat.com>
1409
1410 * cse.c (memory_extend_rtx): Remove.
1411 (cse_main): Don't set it.
1412 (cse_insn): Use a local buffer instead.
1413
1414 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
1415
1416 * profile.c (branch_prob): Call to init_edge_profiler added.
1417 * rtl-profile.c (rtl_init_edge_profiler): New function.
1418 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
1419 call to safe_insert_insn_on_edge.
1420 (rtl_profile_hooks): rtl_init_edge_profiler added.
1421 * tree-profile.c (tree_init_edge_profiler): New function.
1422 (tree_profile_hooks): tree_init_edge_profiler added.
1423 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
1424
1425 2004-10-28 Nick Clifton <nickc@redhat.com>
1426
1427 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
1428 emit_jump_insn() to generate the return instruction.
1429
1430 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
1431
1432 * tree-phinodes.c: Remove trailing whitespace.
1433
1434 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
1435
1436 * tree-ssa-loop-ivopts.c: Fix a comment typo.
1437 * doc/invoke.texi: Fix a typo.
1438
1439 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
1440
1441 * Makefile.in (OBJS-common): Remove duplicates.
1442
1443 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
1444
1445 * lambda-code.c (nestify_update_pending_stmts): Remove.
1446 (perfect_nestify): Use flush_pending_stmts instead of
1447 nestify_update_pending_stmts.
1448 * tree-cfg.c (tree_make_forwarder_block): Use
1449 flush_pending_stmts.
1450 * tree-flow.h: Add a prototype for flush_pending_stmts.
1451 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
1452 Use flush_pending_stmts.
1453 (lv_update_pending_stmts): Remove.
1454 (tree_ssa_loop_version): Use flush_pending_stmts instead of
1455 lv_update_pending_stmts.
1456 * tree-ssa.c (flush_pending_stmts): New.
1457
1458 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
1459
1460 PR target/15286
1461 * final.c (alter_subreg): Compute correct offset to use with
1462 paradoxical SUBREGs of memory operands.
1463 * recog.c (general_operand): Allow paradoxical SUBREGs of
1464 memory operands after reload.
1465 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
1466 has failed when passed a hard register.
1467
1468 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
1469
1470 * function.c (assign_parm_setup_block): Handle parallels correctly.
1471
1472 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
1473
1474 * final.c (shorten_branches): Initialize flags structure.
1475
1476 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
1477
1478 * tree.c (int_cst_node, int_cst_hash_table): New variables.
1479 (init_ttree): Initialize them.
1480 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
1481 (build_int_cst_wide): Use hash table for oversized integers.
1482
1483 2004-10-28 Nick Clifton <nickc@redhat.com>
1484
1485 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
1486 begin_label.
1487
1488 2004-10-27 Richard Henderson <rth@redhat.com>
1489
1490 PR middle-end/18163
1491 * expr.c (emit_group_load): Don't go force temporary for memory
1492 or concat source.
1493 (emit_group_store): Similarly.
1494
1495 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
1496
1497 PR other/18186
1498 * common.opt (--param): Fix spelling of parameter.
1499
1500 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
1501
1502 PR tree-opt/17529
1503 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
1504 Don't fold statement.
1505 <case ASM_EXPR>: Fold the statement.
1506
1507 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
1508
1509 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1510 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
1511
1512 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
1513
1514 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
1515 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
1516 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
1517 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
1518
1519 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
1520
1521 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
1522 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
1523 punctuation outside quotes.
1524
1525 2004-10-27 David Mosberger <davidm@hpl.hp.com>
1526 James E Wilson <wilson@specifixinc.com>
1527
1528 PR target/13158
1529 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
1530 sibcall alloc instruction.
1531 (process_set): Handle sibcall alloc instruction.
1532
1533 2004-10-27 Geoffrey Keating <geoffk@apple.com>
1534
1535 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
1536 SUBTARGET_ATTRIBUTE_TABLE.
1537 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
1538 (SUBTARGET_ATTRIBUTE_TABLE): Define.
1539 * config/darwin.c (darwin_handle_weak_import_attribute): New.
1540 (HAVE_DEAD_STRIP): Delete.
1541 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
1542 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
1543 Prototype.
1544
1545 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
1546
1547 * config/darwin.h (GTHREAD_USE_WEAK): Define.
1548
1549 2004-10-28 Ben Elliston <bje@au.ibm.com>
1550
1551 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
1552 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
1553 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
1554 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
1555 * tree-sra.c: Include "params.h".
1556 (decide_block_copy): Use new parameters.
1557 * doc/invoke.texi (Optimize Options): Document new SRA pass
1558 parameters sra-max-structure-size and sra-field-structure-ratio.
1559
1560 2004-10-27 Nicolas Pitre <nico@cam.org>
1561
1562 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
1563
1564 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
1565
1566 PR tree-optimization/18048
1567 * fold-const.c (try_move_mult_to_index): New function.
1568 (fold): Use try_move_mult_to_index.
1569 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
1570 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
1571 an all-ones unsigned constant without extra bits.
1572 * tree.c (build_low_bits_mask): New function.
1573 * tree.h (build_low_bits_mask): Declare.
1574
1575 2004-10-27 David Edelsohn <edelsohn@gnu.org>
1576
1577 PR target/17956
1578 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
1579 final condition.
1580 (minsf3): Same.
1581 (maxdf3): Same.
1582 (mindf3): Same.
1583
1584 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
1585
1586 * tree-cfg.c (thread_jumps): Speed up by reordering the two
1587 conditions for entering basic blocks into worklist.
1588
1589 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
1590
1591 * tree-cfg.c (thread_jumps): Speed up by pretending to have
1592 ENTRY_BLOCK_PTR in worklist.
1593
1594 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
1595
1596 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1597 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
1598
1599 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
1600
1601 Fix PR tree-optimization/17133
1602
1603 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
1604 def kill operand.
1605
1606 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
1607 (get_v_must_def_result_ptr): Modify for new structure of
1608 v_must_defs array.
1609 (get_v_must_def_kill_ptr): New.
1610 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
1611 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
1612 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
1613 (op_iter_init): Initialize new mustu members.
1614 (op_iter_next_mustdef): New function.
1615 (op_iter_init_mustdef): Ditto.
1616
1617 * tree-flow.h (rewrite_def_def_chains): New function.
1618
1619 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
1620 (ssa_mark_def_sites): Ditto.
1621 (rewrite_stmt): Ditto.
1622 (ssa_rewrite_stmt): Ditto.
1623 (rewrite_blocks): Factor out from rewrite_into_ssa.
1624 (mark_def_block_sites): Ditto.
1625 (rewrite_def_def_chains): New function, just rewrites def-def
1626 chains without phi node insertion.
1627
1628 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
1629
1630 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
1631
1632 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
1633 they include the rhs now.
1634
1635 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
1636 V_MUST_DEF_RESULT.
1637
1638 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
1639 Update callers.
1640 (mark_really_necessary_kill_operand_phis): New function.
1641 (perform_tree_ssa_dce): Call it.
1642 (pass_dce): Add TODO_fix_def_def_chains.
1643 (pass_cd_dce): Ditto.
1644
1645 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
1646 well.
1647 (rewrite_mem_refs): Ditto.
1648
1649 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
1650 as well.
1651
1652 * tree-ssa-operands.c (allocate_v_may_def_optype):
1653 v_may_def_operand_type_t became v_def_use_operand_type_t.
1654 (allocate_v_must_def_optype) Ditto.
1655 (finalize_ssa_v_must_defs): Update for new operand type, as well
1656 as setting the use portion as well.
1657 (copy_virtual_operands): Copy the kill operand as well.
1658 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
1659 V_MUST_DEF_RESULT.
1660
1661 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
1662 v_def_use_operand_type.
1663 (v_must_def_optype_d): Use v_def_use_operand_type.
1664 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
1665 (V_MUST_DEF_KILL_*): New macros.
1666 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
1667 members.
1668 Rename existing must_i and num_v_must members to mustd_i and
1669 num_v_mustd.
1670 (SSA_OP_VMUSTDEFKILL): New flag.
1671 (SSA_OP_VIRTUAL_KILLS): New flag.
1672 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
1673 (SSA_OP_ALL_KILLS): New flag.
1674 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
1675
1676 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
1677
1678 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
1679 became V_MUST_DEF_RESULT.
1680 (rename_variables_in_bb): Rename kill pointer as well.
1681
1682 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
1683 immediate uses.
1684
1685 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
1686
1687 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
1688 the block that needs it.
1689
1690 2004-10-27 Zack Weinberg <zack@codesourcery.com>
1691
1692 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
1693 ATTRIBUTE_UNUSED.
1694
1695 2004-10-27 Zack Weinberg <zack@codesourcery.com>
1696
1697 * c-lex.c (cb_def_pragma): Clean up code for making location
1698 palatable to diagnostic.c.
1699
1700 2004-10-27 Steven Bosscher <stevenb@suse.de>
1701
1702 PR tree-optimization/17757
1703 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
1704 without any PHI arguments left. Make sure the argument that
1705 we're supposed to remove exists at all.
1706
1707 2004-10-27 Paul Brook <paul@codesourcery.com>
1708
1709 * configure.ac: Don't test for [build] __cxa_atexit when building a
1710 cross compiler.
1711 * configure: Regenerate.
1712
1713 2004-10-27 Paul Brook <paul@codeosurcery.com>
1714
1715 * configure.ac: Use build_exeext not host_exeext when lookin for
1716 target tools.
1717 * configure: Regenerate.
1718
1719 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
1720
1721 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
1722
1723 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
1724 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
1725
1726 PR middle-end/14684
1727 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
1728 to match -fprofile-use.
1729
1730 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
1731
1732 * config/rs6000/rs6000.c: Fix a comment typo.
1733
1734 2004-10-27 Zack Weinberg <zack@codesourcery.com>
1735
1736 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
1737 counter.
1738
1739 2004-10-27 Andreas Schwab <schwab@suse.de>
1740
1741 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
1742 unused.
1743 (default_stabs_asm_out_constructor): Likewise.
1744
1745 2004-10-26 Geoffrey Keating <geoffk@apple.com>
1746
1747 * builtins.c (fold_builtin_unordered_cmp): Always bring both
1748 operands to the same type.
1749
1750 2004-10-26 James E Wilson <wilson@specifixinc.com>
1751
1752 PR target/18010
1753 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
1754
1755 2004-10-26 Zack Weinberg <zack@codesourcery.com>
1756
1757 * dbxout.c: Include obstack.h.
1758 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
1759 default definition.
1760 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
1761 Default-define here.
1762 (DBX_CONTIN_LENGTH): Move definition with others.
1763 (DBX_FINISH_STABS): New target macro.
1764 (current_sym_code, current_sym_value, current_sym_addr)
1765 (current_sym_nchars, CHARS, dbxout_continue)
1766 (print_int_cst_octal, print_octal, print_wide_int)
1767 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
1768 (stabstr_ob, stabstr_last_contin_point): New variables.
1769 (NUMBER_FMT_LOOP): New improper macro.
1770 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
1771 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
1772 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
1773 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
1774 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
1775 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
1776 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
1777 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
1778 New functions and/or proper function-like macros.
1779 (CONTIN): Use stabstr_continue, unconditionally.
1780 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
1781 (dbxout_init): Initialize stabstr_ob. Check
1782 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
1783 if it was used. Use the new interfaces.
1784 (dbxout_source_file): Remove file argument; always write to
1785 asm_out_file. Use the new interfaces.
1786 (dbxout_type_method_1): Remove second argument which is always
1787 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
1788 (dbxout_type_methods): Remove write-only variables. Use the
1789 new interfaces.
1790 (dbxout_parms): Refactor to remove code duplicated in each of
1791 several successive if-else-if blocks. Use the new interfaces.
1792 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
1793 (dbxout_source_line, dbxout_finish, dbxout_type_index)
1794 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
1795 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
1796 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
1797 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
1798 Use the new interfaces.
1799 * Makefile.in (dbxout.o): Update dependencies.
1800
1801 * defaults.h: Don't define ASM_STABD_OP.
1802 * output.h: Prototype new dbxout_* interfaces.
1803 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
1804 * varasm.c: Don't define ASM_STABS_OP.
1805 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
1806 Use the new dbxout.c interfaces. Call sorry if neither
1807 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
1808
1809 * xcoffout.h: Don't define ASM_STABS_OP.
1810 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
1811 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
1812 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
1813 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
1814 do { ... } while (0) idiom.
1815
1816 * config/alpha/alpha.c (num_source_filenames): Export.
1817 * config/alpha/alpha.h (num_source_filenames): Declare.
1818 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
1819 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
1820 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
1821 Always use .debugsym. Update commentary.
1822 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
1823 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
1824 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
1825 Use new interfaces.
1826 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
1827 (macho_branch_islands): Use new interfaces.
1828
1829 * doc/tm.texi: Update.
1830
1831 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
1832
1833 * expr.c (emit_group_store): Do not treat floats as BLKmode.
1834 (emit_group_load): Same.
1835
1836 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
1837
1838 * c-parse.in (datadef): Use pedwarn rather than error and warning
1839 for diagnostic in case of no declaration specifiers.
1840
1841 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
1842
1843 PR bootstrap/15747
1844 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
1845 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
1846 can be used to work around this.
1847
1848 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
1849
1850 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
1851 doubles.
1852
1853 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
1854
1855 * stmt.c (expand_case): Update a comment.
1856
1857 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
1858
1859 * stmt.c (expand_case): Put an assertion that index_expr is
1860 never INTEGER_CST. Don't special case for constant
1861 index_expr.
1862
1863 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
1864
1865 PR 18162
1866 * c-parse.in (designator): Finish with a semi-colon.
1867
1868 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
1869
1870 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
1871 into rotlsi3.
1872
1873 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
1874
1875 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
1876 a default case only.
1877
1878 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
1879
1880 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
1881 e500 doubles.
1882 (spe_build_register_parallel): New.
1883 (rs6000_spe_function_arg): Handle e500 doubles.
1884 (function_arg): Same.
1885 (spe_func_has_64bit_regs_p): Same.
1886 (rs6000_function_value): Same.
1887 (rs6000_libcall_value): Same.
1888 (legitimate_lo_sum_address_p): Return false for e500 doubles.
1889
1890 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
1891 doubles.
1892 (DATA_ALIGNMENT): Same.
1893 (CANNOT_CHANGE_MODE_CLASS): Same.
1894
1895 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
1896
1897 * expr.c (emit_group_load): Handle floats.
1898 (emit_group_store): Same.
1899
1900 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
1901
1902 * c-lex.c (get_nonpadding_token): Remove.
1903 (c_lex_with_flags): Push timevar and eat padding here. Improve
1904 stray token diagnostic.
1905 (lex_string): Replace logic with switch statement, eat padding
1906 token here.
1907
1908 2004-10-26 Geoffrey Keating <geoffk@apple.com>
1909
1910 PR 18149
1911 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
1912
1913 2004-10-25 Geoffrey Keating <geoffk@apple.com>
1914
1915 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
1916 to 'non-weak'.
1917 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
1918 (ASM_MAKE_LABEL_LINKONCE): Delete.
1919 (ASM_WEAKEN_DECL): New.
1920 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
1921 (ASM_DECLARE_FUNCTION_NAME): Likewise.
1922 (TEXT_SECTION_ASM_OP): Add a tab.
1923 (DATA_SECTION_ASM_OP): Likewise.
1924 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
1925 data_section on every section change.
1926 (EXTRA_SECTIONS): Add a bunch of new extra sections.
1927 (EXTRA_SECTION_FUNCTIONS): Likewise.
1928 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
1929 (JCR_SECTION_NAME): Define.
1930 (TARGET_SECTION_TYPE_FLAGS): Don't define.
1931 * config/darwin.c (darwin_encode_section_info): A symbol is defined
1932 in this file if it is not weak.
1933 (textcoal_section): Delete.
1934 (datacoal_section): Delete.
1935 (darwin_make_decl_one_only): Delete.
1936 (machopic_select_section): Handle functions.
1937 (darwin_asm_named_section): Add a tab.
1938 (darwin_section_type_flags): Delete.
1939 (darwin_unique_section): Delete contents.
1940 (darwin_emit_unwind_label): Add a tab. Make decls weak if
1941 DECL_WEAK is set.
1942 * config/darwin-protos.h (darwin_section_type_flags): Delete.
1943 (darwin_make_decl_one_only): Delete.
1944 (text_coal_section): New.
1945 (text_unlikely_section): New.
1946 (text_unlikely_coal_section): New.
1947 (const_coal_section): New.
1948 (data_coal_section): New.
1949 (const_data_coal_section): New.
1950 * varasm.c (function_section): Honour
1951 USE_SELECT_SECTION_FOR_FUNCTIONS.
1952 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
1953 TARGET_USES_WEAK_UNWIND_INFO is in effect.
1954 * dbxout.c (dbxout_source_file): Don't change sections while
1955 a function is being output.
1956
1957 2004-10-25 David Ayers <d.ayers@inode.at>
1958
1959 * c-common.h: Remove RID_ID.
1960 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
1961 (typespec_reserved_attr): Add rule for TYPENAME
1962 non_empty_protocolrefs.
1963 (yylexname): Remove special handling of RID_ID.
1964
1965 2004-10-25 James E Wilson <wilson@specifixinc.com>
1966
1967 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
1968
1969 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
1970
1971 PR c/16667
1972 * c-parse.in (array_designator): New.
1973 (designator): Use it.
1974 (initelt): Only permit array_designator without '=', not ".foo".
1975
1976 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
1977 * gcc/Makefile.in: removed ggc for cgraphunit.
1978 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
1979 * gcc/cgraph.h: removed static var analysis data structures and calls.
1980 * gcc/cgraphunit.c:
1981 cgraph_mark_local_and_external_functions:changed name to
1982 cgraph_mark_local_functions
1983 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
1984 cgraph_reset_static_var_maps,get_global_static_vars_info,
1985 get_global_statics_not_read,get_global_statics_not_written,searchc,
1986 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
1987 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
1988 scan_for_static_refs,cgraph_characterize_statics_local,
1989 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
1990 removed.
1991 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
1992 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
1993 analysis
1994 * gcc/tree-flow.h static_vars_info: removed
1995 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
1996 removed calls to static vars analysis.
1997 get_call_expr_operands: removed callee variable.
1998
1999 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
2000
2001 * cfg.c (unchecked_make_edge, redirect_edge_succ,
2002 redirect_edge_pred): Use VEC_safe_push instead of
2003 VEC_safe_insert.
2004 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2005
2006 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
2007
2008 * cfgloopmanip.c (loopify): Take two more arguments true_edge
2009 and false_edge.
2010 * cfgloop.h: Adjust the corresponding prototype.
2011 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
2012 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
2013
2014 2004-10-25 Jakub Jelinek <jakub@redhat.com>
2015
2016 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
2017 DECL_INCOMING_RTL is NULL.
2018
2019 2004-10-25 Steven Bosscher <stevenb@suse.de>
2020
2021 * timevar.def (TV_FIND_REFERENCED_VARS): New.
2022 * tree-dfa.c (pass_referenced_var): Use it.
2023
2024 2004-10-25 Roger Sayle <roger@eyesopen.com>
2025 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2026
2027 * cse.c: Change encoding of quantity numbers to avoid undefined
2028 pointer arithmetic on qty_table.
2029 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
2030 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
2031 (new_basic_block): Assign "real" quantity numbers from zero.
2032 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
2033 REG_QTY to its unique negative value.
2034 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
2035 (cse_main): Don't include max_reg when determining max_qty.
2036 (cse_basic_block): Avoid subtracting a large offset from qty_table,
2037 which causes undefined C99 behaviour. Only allocate needed memory.
2038
2039 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
2040
2041 * stmt.c (expand_case): Remove an obsolete comment.
2042
2043 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
2044
2045 PR middle-end/17407
2046 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
2047 layout_type as it is already done by build_array_type.
2048 * tree.c (build_array_type): Layout the type even
2049
2050 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
2051
2052 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
2053
2054 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
2055
2056 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
2057 with wider-than-32-bit HOST_WIDE_INTs.
2058
2059 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
2060
2061 * config/mips/mips.c(mips_output_filename): Remove unused
2062 array ltext_label_name
2063
2064 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
2065
2066 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
2067
2068 2004-10-25 Ben Elliston <bje@au.ibm.com>
2069
2070 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
2071
2072 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
2073
2074 * predict.c (predict_loops): Call scev_finalize instead of
2075 scev_reset.
2076
2077 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
2078
2079 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
2080 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
2081 config/sh/ushmedia.h, config/sparc/elf.h,
2082 config/sparc/sp64-elf.h: Update copyright.
2083
2084 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
2085
2086 * stmt.c (expand_case): Handle the default label outside of
2087 the for loop. Remove code to handle a missing default label.
2088
2089 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
2090
2091 * dbxout.c (dbxout_function_decl): Don't use
2092 DBX_OUTPUT_FUNCTION_END.
2093 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
2094 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
2095
2096 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
2097
2098 PR middle-end/17967
2099 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
2100
2101 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
2102
2103 * tree-ssa-dom.c (record_equality): Use loop depth to determine
2104 which way to record the equality as well.
2105 (loop_depth_of_name): New function.
2106
2107 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2108
2109 PR middle-end/17793
2110 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
2111 through the operand if it is a useless type conversion.
2112
2113 2004-10-23 Ben Elliston <bje@au.ibm.com>
2114
2115 * cfg.c (remove_edge): Use VEC_unordered_remove.
2116 (redirect_edge_succ): Likewise.
2117 (redirect_edge_pred): Likewise.
2118 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2119
2120 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
2121
2122 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
2123 beyond its end.
2124
2125 2004-10-22 Eric Christopher <echristo@redhat.com>
2126
2127 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
2128 saves.
2129
2130 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
2131
2132 * config/rs6000/spe.md (spe_extendsfdf2): New.
2133 (movdf_e500_double): New.
2134 (spe_truncdfsf2): New.
2135 (spe_absdf2): New.
2136 (spe_nabsdf2): New.
2137 (spe_negdf2): New.
2138 (sub_adddf3): New.
2139 (spe_subdf3): New.
2140 (spe_muldf3): New.
2141 (spe_floatsidf2): New.
2142 (spe_floatunssidf2): New.
2143 (fix_truncdfsi2): New.
2144 (spe_fixuns_truncdfsi2): New.
2145
2146 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
2147 (fpr_truncdfsf2): New.
2148 (negdf2): Change to expander.
2149 (fpr_negdf2): New.
2150 (fpr_nabsdf2): Name pattern.
2151 (adddf3): Change to expander.
2152 (fpr_adddf3): Nem.
2153 (subdf3): Change to expander.
2154 (fpr_subdf3): New.
2155 (muldf3): Change to expander.
2156 (fpr_muldf3): New.
2157 (divdf3): Change to expander.
2158 (fpr_divdf3): New.
2159 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
2160 (cmpdf): Allow for TARGET_E500_DOUBLE.
2161
2162 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
2163
2164 * c-semantics.c (re_push_stmt_list): Remove.
2165 * c-common.h: Remove the corresponding prototype.
2166
2167 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
2168
2169 * stmt.c (asm_op_is_mem_input): Remove.
2170 * tree.h: Remove the corresponding prototype.
2171
2172 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
2173
2174 * tree-gimple.c (is_gimple_constructor_elt): Remove.
2175 * tree-gimple.h: Remove the corresponding prototype.
2176
2177 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
2178
2179 * varasm.c (get_pool_mode_for_function, get_pool_offset):
2180 Remove.
2181 * rtl.h: Remove the corresponding prototypes.
2182
2183 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
2184
2185 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
2186 edge information when we commit ourselves to threading a
2187 particular jump.
2188
2189 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
2190
2191 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
2192 into worklist instead of their indexes.
2193
2194 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
2195
2196 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
2197 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
2198 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
2199 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
2200 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
2201 tree-scalar-evolution.c, tree-ssa-dom.c,
2202 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2203 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
2204 tree-vectorizer.c, vec.h: Fix comment formatting.
2205
2206 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
2207
2208 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
2209 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
2210
2211 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
2212
2213 * config/ptx4.h, config/mcore/mcore-pe.h,
2214 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
2215
2216 2004-10-22 Peter Barada <peter@the-baradas.com>
2217
2218 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
2219 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
2220 renaming of non-live registers in interrupt functions.
2221 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
2222
2223 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
2224
2225 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
2226 Use integer for loop counter.
2227 (num_ending_zeros): New function.
2228 (number_of_iterations_cond): Use num_ending_zeros.
2229
2230 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
2231
2232 * config.gcc: Add support for --enable-e500_double.
2233
2234 * config/rs6000/e500-double.h: New file.
2235
2236 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
2237 TARGET_E500_DOUBLE.
2238
2239 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
2240 TARGET_E500_DOUBLE.
2241
2242 * config/rs6000/linuxspe.h: Same.
2243
2244 * doc/invoke.texi (Option Summary): Document new options for
2245 mfloat-gprs.
2246 (RS/6000 and PowerPC Options): Same.
2247
2248 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
2249 function.
2250 (rs6000_override_options): Use it. Use
2251 SUB3TARGET_OVERRIDE_OPTIONS.
2252 Add 8548 to processor_target_table.
2253 (rs6000_legitimate_address): Handle e500 doubles.
2254 (rs6000_legitimize_address): Same.
2255 (rs6000_legitimize_reload_address): Same.
2256 (rs6000_hard_regno_nregs): Same.
2257 (spe_func_has_64bit_regs_p): Same.
2258 (emit_frame_save): Same.
2259 (gen_frame_mem_offset): Same.
2260 (rs6000_dwarf_register_span): Same.
2261 (rs6000_generate_compare): Same.
2262 (easy_fp_constant): Same.
2263 (legitimate_offset_address_p): Same.
2264
2265 * config/rs6000/spe.md: (cmdfeq_gpr): New.
2266 (tstdfeq_gpr): New.
2267 (cmpdfgt_gpr): New.
2268 (tstdfgt_gpr): New.
2269 (tstdfgt_gpr): New.
2270 (cmpdflt_gpr): New.
2271 (tstdflt_gpr): New.
2272 Add new constants.
2273
2274 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2275
2276 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
2277
2278 2004-10-21 Zack Weinberg <zack@codesourcery.com>
2279
2280 * dbxout.c: Remove unnecessary #undefs.
2281 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
2282 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
2283 definition into use sites.
2284 (cwd): Make local to dbxout_init.
2285 (dbxout_init): Restructure cwd-using logic for clarity. Use
2286 IS_DIR_SEPARATOR.
2287 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
2288 STABS_GCC_MARKER folded in here.
2289 * system.h: Poison now-unused macros.
2290 * doc/tm.texi: Remove documentation of now-unused macros.
2291
2292 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
2293
2294 PR c/17538
2295 * c-opts.c (push_command_line_include): Use the current file
2296 name instead of the main one.
2297
2298 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
2299
2300 PR objc/17923
2301 * tree.c (staticp): A CONST_DECL has static storage if either
2302 TREE_STATIC or DECL_EXTERNAL is set.
2303 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
2304 have null names.
2305
2306 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
2307
2308 * expr.c (store_expr): Remove dont_store_target.
2309
2310 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
2311
2312 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
2313
2314 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
2315
2316 * tree-cfg.c (thread_jumps): Move a part of it to ...
2317 (thread_jumps_from_bb): ... here.
2318
2319 2004-10-21 David Edelsohn <edelsohn@gnu.org>
2320
2321 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
2322 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
2323
2324 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
2325
2326 * expr.c (store_expr): Clean up by renaming want_value to
2327 call_param_p.
2328
2329 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
2330
2331 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
2332 fixup pc here.
2333
2334 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
2335
2336 PR 18004.
2337 * expmed.c (store_bit_field): Pass original 'value' before
2338 recursing.
2339
2340 2004-10-21 Nicolas Pitre <nico@cam.org>
2341
2342 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
2343 * config/arm/ieee754-df.S: Ditto.
2344
2345 2004-10-20 Zack Weinberg <zack@codesourcery.com>
2346
2347 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
2348 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
2349 Default to 0.
2350 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
2351 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
2352 an internal label and an N_SLINE .stabn whose value is the
2353 difference between that label and the function entry label.
2354 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
2355 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
2356 label and an N_SO stab with an empty string referring to it.
2357 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
2358 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
2359 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
2360 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
2361 macro is never defined.
2362 * sdbout.c (sdbout_source_line_counter): Delete.
2363 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
2364 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
2365 only two arguments.
2366 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
2367
2368 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
2369 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
2370 definitions (identical to default).
2371 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
2372 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
2373 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
2374 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
2375 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
2376 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
2377 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
2378 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
2379 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
2380 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
2381 (sym_lineno): Delete.
2382 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
2383 now-unused variable.
2384 (alpha_output_lineno): Delete.
2385 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
2386 * config/mips/mips.c (mips_output_filename): Don't use
2387 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
2388 (mips_output_lineno): Delete.
2389 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
2390 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
2391 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
2392 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
2393 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
2394 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
2395 * config/mmix/mmix.h: Likewise.
2396 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
2397 * config/mmix/mmix-protos.h: Don't prototype it.
2398 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
2399 no need to #undef ASM_OUTPUT_SOURCE_LINE.
2400 * config/arm/aout.h: Remove RISCiX-specific definition of
2401 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
2402 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
2403 ASM_OUTPUT_SOURCE_LINE.
2404 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
2405 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
2406 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
2407
2408 * doc/tm.texi: Update.
2409
2410 2004-10-20 Richard Henderson <rth@redhat.com>
2411
2412 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
2413
2414 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
2415
2416 * configure.ac: Revert my previous patch.
2417 * configure: Regenerate.
2418
2419 2004-10-20 Ben Elliston <bje@au.ibm.com>
2420
2421 * config/rs6000/rs6000.c
2422 (rs6000_va_start): Use build_va_arg_indirect_ref.
2423 (rs6000_gimplify_va_arg): Likewise.
2424
2425 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
2426
2427 PR java/15575
2428 * configure.ac: Declare AM_LANGINFO_CODESET.
2429 * aclocal.m4: Define AM_LANGINFO_CODESET.
2430 * configure, config.in: Rebuilt.
2431
2432 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
2433
2434 * expr.c (store_expr): Remove code that is run when
2435 want_value & 1 is nonzero.
2436
2437 2004-10-20 Mark Mitchell <mark@codesourcery.com>
2438
2439 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
2440 from function pointer to void *.
2441
2442 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
2443
2444 PR target/18032
2445 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
2446 the frame pointer adjustment when exception handling is enabled.
2447
2448 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
2449
2450 * stor-layout.c: Fix a comment typo.
2451
2452 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
2453
2454 * expr.c (store_field): Remove two arguments value_mode and
2455 unsignedp.
2456 (expand_assignment, store_constructor_field,
2457 expand_expr_real_1): Adjust calls to store_field.
2458
2459 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2460
2461 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
2462
2463 PR target/17317
2464 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
2465 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
2466 base and index register for loads.
2467
2468 * config/arc/t-arc: Fix multilib handling.
2469
2470 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
2471
2472 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
2473 don't inspect BLOCK_FOR_INSN for barriers.
2474 * emit-rtl.c (emit_barrier_before): Revert last change.
2475 (emit_barrier_after, emit_barrier): Ditto.
2476
2477 * doc/extend.texi (Extended Asm): Warn and provide example
2478 solution for using a call-clobbered asm register.
2479 (Local Reg Vars): Similar. Cross-reference example.
2480
2481 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
2482
2483 * tree-cfg.c (group_case_labels): Look at the second to last
2484 case statement for combing with the default case.
2485
2486 2004-10-19 Richard Hendeson <rth@redhat.com>
2487
2488 PR 17962
2489 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
2490
2491 2004-10-19 Richard Hendeson <rth@redhat.com>
2492
2493 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
2494 succeeds, only expand the result.
2495
2496 2004-10-19 Richard Hendeson <rth@redhat.com>
2497
2498 PR middle-end/17885
2499 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
2500 of INDIRECT_REF.
2501
2502 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
2503
2504 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
2505 loop with goto.
2506
2507 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
2508
2509 * expr.c (expand_assignment): Remove the last argument.
2510 Change the return type to void.
2511 * expr.h: Update the prototype of expand_assignment.
2512 * function.c (assign_parm_setup_reg): Update a call to
2513 expand_assignment.
2514 * stmt.c (expand_asm_expr): Likewise.
2515
2516 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
2517
2518 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
2519 unnecessary assignments to temp. Return const0_rtx.
2520
2521 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
2522
2523 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
2524
2525 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
2526
2527 * configure.ac (powerpc-*-darwin*): Require assembler to support
2528 .machine directive.
2529 * configure: Regenerate.
2530
2531 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
2532
2533 * reload1.c (ior_hard_reg_set): Remove.
2534 (finish_spills): Use IOR_HARD_REG_SET instead of
2535 ior_hard_reg_set.
2536
2537 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
2538
2539 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
2540 the currently visited word to right.
2541
2542 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2543
2544 PR middle-end/18045
2545 * expmed.c (expand_smod_pow2): Handle modes whose size
2546 is greater than that of HOST_WIDE_INT.
2547
2548 2004-10-18 Ziemowit Laski <zlaski@apple.com>
2549
2550 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
2551
2552 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2553 Roger Sayle <roger@eyesopen.com>
2554
2555 PR middle-end/17813
2556 * dojump.c (discard_pending_stack_adjust): New function.
2557 (clear_pending_stack_adjust): Call it.
2558 * expr.h (discard_pending_stack_adjust): Declare it.
2559 * explow.c (emit_stack_save): Emit pending stack adjustments
2560 before saving the stack pointer.
2561 (emit_stack_restore): Discard pending stack adjustments before
2562 restoring the stack pointer.
2563
2564 2004-10-18 Richard Henderson <rth@redhat.com>
2565
2566 * c-common.c (handle_mode_attribute): Allow scalar->vector
2567 type changes yet.
2568
2569 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
2570
2571 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
2572 value to expand_assignment.
2573
2574 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
2575
2576 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
2577 thread_jumps.
2578 (thread_jumps): Iterate until no new forwarder block arises.
2579
2580 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
2581
2582 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
2583 (thread_jumps): Use forwardable as cache of
2584 tree_forwarder_block_p throughout the function.
2585
2586 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
2587
2588 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
2589
2590 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
2591
2592 PR middle-end/15014
2593 PR middle-end/16973
2594 * tree-cfg.c (remove_bb): If we have a label expression in the
2595 basic block and the label we have taken the address, move the
2596 label expression to the basic block which is previous in the
2597 linked list.
2598 (tree_verify_flow_info): Fix printing out the label name of the
2599 problematic label expression.
2600
2601 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
2602
2603 PR rtl-optimization/18002
2604 * simplify-rtx.c (mode_signbit_p): Externalize function...
2605 * rtl.h (mode_signbit_p): ... to here.
2606 * combine.c (simplify_shift_const): Recognize PLUS signbit as
2607 canonical form of XOR signbit and move to outer op.
2608
2609 2004-10-18 Diego Novillo <dnovillo@redhat.com>
2610
2611 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
2612 Update all callers.
2613 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
2614 Don't call fold_stmt more than once, use bsi_replace.
2615
2616 2004-10-18 Diego Novillo <dnovillo@redhat.com>
2617
2618 PR tree-optimization/17656
2619 * tree-ssa.c (replace_immediate_uses): When replacing a
2620 constant, if the call to fold_stmt produced a different
2621 statement, get an appropriate statement pointer by scanning
2622 STMT's basic block.
2623
2624 2004-10-18 Richard Henderson <rth@redhat.com>
2625
2626 * pointer-set.c (hash1): Don't use libm functions in fallback case.
2627
2628 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
2629
2630 PR bootstrap/17684
2631 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
2632 (stage1-start): Remove and copy libunwind.a and
2633 libunwind*$(SHLIB_EXT) instead of libunwind*.
2634 (stage2-start): Likewise.
2635 (stage3-start): Likewise.
2636 (stage4-start): Likewise.
2637 (stageprofile-start): Likewise.
2638 (stagefeedback-start): Likewise.
2639
2640 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
2641 the shared library to be created and don't remove the existing
2642 shared library.
2643 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
2644 * config/i386/t-nwld (SHLIB_LINK): Likewise.
2645 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
2646 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
2647 * config/sh/t-linux (SHLIB_LINK): Likewise.
2648 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
2649 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
2650 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
2651 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
2652
2653 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
2654 files.
2655
2656 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
2657
2658 * basic-block.h (reg_set_iterator): New.
2659 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
2660 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
2661 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
2662 * caller-save.c (save_call_clobbered_regs): Adjust to the new
2663 style.
2664 * cfgcleanup.c (thread_jump): Likewise.
2665 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2666 * conflict.c (conflict_graph_compute): Likewise.
2667 * flow.c (verify_local_live_at_start, update_life_info,
2668 initialize_uninitialized_subregs, propagate_one_insn,
2669 init_propagate_block_info, free_propagate_block_info,
2670 propagate_block, dump_regset): Likewise.
2671 * global.c (global_conflicts): Likewise.
2672 * graph.c (start_bb): Likewise.
2673 * local-alloc.c (update_equiv_regs): Likewise.
2674 * loop.c (load_mems): Likewise.
2675 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
2676 find_reg, finish_spills): Likewise.
2677 * resource.c (mark_target_live_regs): Likewise.
2678 * sched-deps.c (sched_analyze_insn): Likewise.
2679 * sched-rgn.c (sched-rgn.c): Likewise.
2680 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2681
2682 2004-10-18 Jakub Jelinek <jakub@redhat.com>
2683
2684 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
2685 operand 1 instead of 2
2686
2687 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
2688
2689 * loop-unroll.c: Fix comment typos.
2690
2691 2004-10-18 Revital Eres <eres@il.ibm.com>
2692
2693 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
2694 * loop-unroll.c: Include varray.h.
2695 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
2696 opt_info and expand it to support variable expansion.
2697 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
2698 expand it to support variable expansion.
2699 (pt_info_start_duplication): Rename si_info_start_duplication.
2700 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
2701 to the variable expansion optimization.
2702 (free_opt_info): Rename free_si_info.
2703 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
2704 expand_var_during_unrolling, insert_var_expansion_initialization,
2705 combine_var_copies_in_loop_exit, release_var_copies,
2706 get_expansion): New functions.
2707 (peel_loop_completely, unroll_loop_constant_iterations,
2708 unroll_loop_runtime_iterations, peel_loop_simple,
2709 unroll_loop_stupid): Change uses of struct si_info
2710 to struct opt_info
2711 and add uses of fvariable-expansion-in-unroller flag.
2712 * params.def: Add parameter to restrict the number of expansions.
2713 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
2714 the number of expansions.
2715 * common.opt: (fvariable-expansion-in-unroller): New flag.
2716 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
2717
2718 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
2719
2720 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
2721 __GXX_MERGED_TYPEINFO_NAMES to 0.
2722
2723 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
2724
2725 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
2726 handle barriers in a bb by checking that it points to a NULL bb.
2727 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
2728 (emit_barrier_after, emit_barrier): Ditto.
2729
2730 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
2731
2732 * doc/extend.texi (Attribute Syntax): Clarify details of
2733 attributes on parameters.
2734
2735 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
2736
2737 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
2738 loop.
2739
2740 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
2741
2742 Revert:
2743 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
2744
2745 * c-typeck.c (default_function_array_conversion): Always create
2746 &a[0] for array types.
2747 (build_unary_op): Do not fold &a[x] into a + x.
2748
2749 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
2750
2751 PR middle-end/17925
2752 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
2753 block if there is a goto with a locus.
2754
2755 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
2756
2757 * config/elfos.h, config/gofast.h, config/interix.h,
2758 config/netbsd.h, config/svr3.h, config/vxworks.h,
2759 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
2760 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
2761 config/alpha/netbsd.h, config/arm/arm-modes.def,
2762 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
2763 config/cris/aout.h, config/frv/frv-modes.def,
2764 config/i386/beos-elf.h, config/i386/gas.h,
2765 config/i386/i386-coff.h, config/i386/i386-modes.def,
2766 config/i386/linux.h, config/i386/linux64.h,
2767 config/i386/mingw32.h, config/i386/netbsd-elf.h,
2768 config/i386/netbsd64.h, config/i386/sco5.h,
2769 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
2770 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
2771 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
2772 config/mips/mips-modes.def, config/mips/sdb.h,
2773 config/mips/vr.h, config/mips/vxworks.h,
2774 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
2775 config/pa/pa32-linux.h, config/rs6000/40x.md,
2776 config/rs6000/7450.md, config/rs6000/8540.md,
2777 config/rs6000/linuxspe.h, config/rs6000/power4.md,
2778 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
2779 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
2780 config/s390/s390-modes.def, config/sh/elf.h,
2781 config/sh/sh-modes.def, config/sh/sh64.h,
2782 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
2783 config/stormy16/stormy16.md, config/v850/v850-protos.h,
2784 config/vax/vax.md: Update copyright.
2785
2786 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
2787
2788 * expr.c (expand_expr_real_1): Remove an obsolete comment.
2789
2790 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
2791
2792 * c-typeck.c (default_function_array_conversion): Always create
2793 &a[0] for array types.
2794 (build_unary_op): Do not fold &a[x] into a + x.
2795
2796 2004-10-17 Jakub Jelinek <jakub@redhat.com>
2797
2798 * pointer-set.c (hash1): Use integer part of 2^64 / phi
2799 instead 2^32 / phi if long is 64-bit.
2800
2801 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
2802
2803 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
2804 RID_PTRVALUE.
2805 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
2806 declarations.
2807 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
2808 __ptrextent__, __ptrvalue and __ptrvalue__.
2809 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
2810 entries.
2811
2812 2004-10-16 Dale Johannesen <dalej@apple.com>
2813
2814 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
2815
2816 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
2817
2818 PR tree-optimization/17766
2819 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
2820 (dom_info_available_p): Declare.
2821 * cfghooks.c (split_block, make_forwarder_block): Use
2822 dom_info_available_p.
2823 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
2824 free_dominance_info, verify_dominators): Ditto.
2825 (dom_info_available_p): New function.
2826 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
2827 (thread_jumps): Use dom_info_available_p.
2828 * tree-complex.c (expand_complex_div_wide): Ditto.
2829 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
2830
2831 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
2832
2833 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
2834 (find_best_candidate): Take also important candidates into account.
2835 (find_optimal_iv_set): Initialize important_candidates bitmap.
2836
2837 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
2838
2839 PR tree-optimization/17560
2840 * predict.c (tree_estimate_probability): Mark irreducible
2841 loops.
2842
2843 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
2844
2845 PR rtl-optimization/17723
2846 * cfgcleanup.c (merge_memattrs): Handle case when
2847 MEM_SIZE == NULL_RTX.
2848
2849 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
2850
2851 * toplev.c (dump_file_name): Change type to be const.
2852
2853 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
2854
2855 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
2856 non_lvalue to stop something being a null pointer constant.
2857
2858 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
2859
2860 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
2861 available for TARGET_FPRS.
2862 (FUNCTION_VALUE_REGNO_P): Same.
2863
2864 2004-10-15 Geoffrey Keating <geoffk@apple.com>
2865
2866 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2867 -maltivec in same style as other ISA options.
2868
2869 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
2870
2871 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
2872 definition.
2873
2874 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
2875
2876 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
2877 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
2878 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
2879 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
2880 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
2881 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
2882 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
2883 predict.def, predict.h, protoize.c, reload.h, resource.h,
2884 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
2885 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
2886 unwind-sjlj.c, value-prof.h: Update copyright.
2887
2888 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
2889
2890 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
2891
2892 2004-10-15 Diego Novillo <dnovillo@redhat.com>
2893
2894 * tree-optimize.c (execute_one_pass): Stop timer right after
2895 executing the pass.
2896
2897 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
2898
2899 Revert:
2900 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
2901 PR middle-end/17967
2902 Revert:
2903 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
2904 (remove_useless_stmts_1): Fold trees we know how to fold.
2905
2906 2004-10-14 David Edelsohn <edelsohn@gnu.org>
2907
2908 * configure.ac: Add .machine power4 directive when testing for
2909 mfcr field.
2910 * configure: Regenerate.
2911
2912 2004-10-14 Geoffrey Keating <geoffk@apple.com>
2913
2914 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
2915
2916 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
2917
2918 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
2919 always.
2920
2921 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
2922
2923 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
2924 for 'f' if !TARGET_FPRS.
2925
2926 2004-10-14 Richard Henderson <rth@redhat.com>
2927
2928 PR debug/14492
2929 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
2930
2931 2004-10-14 Richard Henderson <rth@redhat.com>
2932
2933 PR c/17023
2934 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
2935 as error_mark_node.
2936 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
2937 instaed of current_function_decl non-null.
2938
2939 2004-10-14 Matt Austern <austern@apple.com>
2940
2941 * pointer-set.c: New file, special-purpose hash table.
2942 * pointer-set.h: New file.
2943 * tree.h (struct pointer_set_t): Declare as opaque type.
2944 (tree_walk): Last argument is pointer_set_t* now.
2945 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
2946 (walk_type_fields):
2947 (walk_tree): Convert from htab_t to pointer_set_t for keeping
2948 track of which nodes have already been visited.
2949 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
2950 * cgraphunit.c (cgraph_create_edges): Likewise.
2951 (cgraph_characterize_statics_local): Likewise.
2952 * tree-dfa.c (collect_dfa_stats): Likewise.
2953 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
2954 pointer_set_t* now.
2955 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
2956 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
2957 of walk_subtrees is pointer_set_t* now.
2958 * Makefile.in (OBJS-common): add pointer-set.o
2959 (tree-inline.o): Depends on pointer-set.h
2960 (tree-dfa.o): Likewise
2961 (cgraphunit.o): Likewise
2962
2963 2004-10-14 Geoffrey Keating <geoffk@apple.com>
2964
2965 * config/rs6000/darwin.h (ASM_SPEC): Delete.
2966 (TARGET_ASM_FILE_START): Define.
2967 * config/darwin.h (ASM_SPEC): Define.
2968 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
2969 -mlong-double-128, it's the default. Update comment about reason
2970 for force_cpusubtype_ALL.
2971 * config/rs6000/darwin-vecsave.asm: Supply .machine.
2972 * config/rs6000/darwin-world.asm: Likewise.
2973 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
2974 (symbolic_operand): Delete #if 0ed code.
2975
2976 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
2977
2978 * stmt.c (add_case_node): Make sure that we have integer
2979 constant before calling tree_int_cst_compare.
2980
2981 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
2982
2983 PR middle-end/17967
2984 Revert:
2985 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
2986 (remove_useless_stmts_1): Fold trees we know how to fold.
2987
2988 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
2989
2990 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
2991 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
2992 -m64.
2993
2994 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
2995
2996 * reload.c (find_reloads): When reloading a PLUS with constant
2997 operand, make sure the constant is pushed to the constant pool
2998 if required.
2999 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
3000 reload bug workaround.
3001 (s390_expand_plus_operand): Likewise.
3002
3003 2004-10-14 David Edelsohn <edelsohn@gnu.org>
3004
3005 * opts.c (common_handle_option): Do not enable
3006 flag_speculative_prefetching for -fprofile-generate/use.
3007
3008 2004-10-14 Devang Patel <dpatel@apple.com>
3009
3010 PR 17635
3011 * tree-if-conv.c (process_phi_nodes): Process latch block.
3012 (combine_blocks): Process latch block and update loop structure.
3013
3014 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
3015
3016 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
3017 (vect_update_ivs_after_vectorizer):
3018 (vect_transform_for_unknown_loop_bound):
3019 (tree_duplicate_loop_to_edge):
3020 (allocate_new_names):
3021 (rename_use_op):
3022 (rename_def_op):
3023 (rename_variables_in_bb):
3024 (free_new_names):
3025 (rename_variables_in_loop):
3026 (copy_phi_nodes):
3027 (update_phis_for_duplicate_loop):
3028 (update_phi_nodes_for_guard):
3029 (make_loop_iterate_ntimes):
3030 (tree_duplicate_loop_to_edge_cfg):
3031 (add_loop_guard):
3032 (vect_analyze_loop_with_symbolic_num_of_iters):
3033 (verify_loop_for_duplication):
3034 (vect_gen_niters_for_prolog_loop):
3035 (vect_update_niters_after_peeling):
3036 (vect_update_inits_of_dr):
3037 (vect_update_inits_of_drs):
3038 (vect_build_loop_niters):
3039 (vect_do_peeling_for_alignment): New functions.
3040 (vect_transform_loop): Add unknown and known but indivisible loop
3041 bound support; add peeling for unalignment support.
3042 (vect_analyze_loop_form): Support symbolic number of iterations.
3043 (vect_transform_loop_bound): New input parameter.
3044 (vect_get_loop_niters): Change input parameter type.
3045 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
3046 (vectorizable_store): Allow unaligned access.
3047 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
3048 (vect_analyze_data_refs_alignment): Allowed one unaligned
3049 store.
3050 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
3051 to use tree.
3052 (LOOP_VINFO_INT_NITERS): New macro.
3053 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
3054 (do_peeling_for_alignment):
3055 (unaligned_drs): New members of _loop_vec_info.
3056 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
3057
3058 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
3059
3060 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
3061 (struct tree_string): Remove "const" qualifier for "str".
3062
3063 2004-10-14 Ira Rosen <irar@il.ibm.com>
3064
3065 * tree-vectorizer.c (vect_analyze_data_refs): Call
3066 vect_get_base_and_bit_offset to get memory tag for array ref.
3067 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
3068
3069 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
3070
3071 * configure.ac: Use $LN_S for creating symlinks (not $LN).
3072 * configure: Regenerate.
3073
3074 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3075
3076 * doc/install.texi (*-*-solaris2*): Update with info about kernel
3077 patches to solve spurious testsuite failures.
3078
3079 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
3080
3081 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
3082 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
3083 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
3084 gcc_assert under ENABLE_CHECKING.
3085 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
3086 get_vectype_for_scalar_type).
3087
3088 (vect_get_vec_def_for_operand): Remove redundant variables.
3089 (vect_transform_loop): Likewise.
3090
3091 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
3092
3093 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
3094 global for -mcaller-super-interworking.
3095 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
3096 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
3097 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
3098 not need a frame pointer.
3099 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
3100 the soft frame pointer offset.
3101 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
3102 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
3103 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
3104 the stack. Use frame_pointer_needed to choose between them.
3105 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
3106 (interwork_with_frame): New macro.
3107 (interwork): Add _interwork_{r7,r11}_call_via_rN().
3108
3109 2004-10-14 Ben Elliston <bje@au.ibm.com>
3110
3111 PR other/17900
3112 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
3113 up the filename looking for a previous directory separator.
3114
3115 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
3116
3117 * c-tree.h (enum c_typespec_kind, struct c_typespec,
3118 parser_xref_tag): New.
3119 (struct c_declspecs): Add tag_defined_p. Adjust definition of
3120 typedef_p.
3121 (declspecs_add_type): Adjust prototypes.
3122 * c-parse.in (%union): Add tstype.
3123 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
3124 typespec_reserved_attr, typespec_nonreserved_nonattr,
3125 structsp_attr, structsp_nonattr): Change to tstype. Update
3126 actions.
3127 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
3128 (declspecs_add_type): Update to take struct c_typespec argument.
3129 Set tag_defined_p and typedef_p as appropriate.
3130 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
3131 Update to return struct c_typespec.
3132 (shadow_tag_warned): Don't let empty declarations with qualifiers
3133 or storage class specifiers redeclare a tag if a previous
3134 declaration is visible.
3135
3136 2004-10-13 Richard Henderson <rth@redhat.com>
3137
3138 PR debug/15860
3139 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
3140 for DECL_INCOMING_RTL.
3141
3142 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
3143
3144 PR target/17984
3145 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
3146 trunc_int_for_mode for constants used in shortened mode.
3147
3148 2004-10-13 Richard Henderson <rth@redhat.com>
3149
3150 PR c/17384
3151 * c-common.c (handle_mode_attribute): Disallow mode changes that
3152 alter the CODE of the top-level type.
3153
3154 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
3155 integer from internal limits macros.
3156 * config/i386/mm3dnow.h (__v2sf): Fix base type.
3157
3158 2004-10-13 Richard Henderson <rth@redhat.com>
3159
3160 PR debug/13841
3161 * function.c (instantiate_decl): Recurse for CONCAT.
3162
3163 2004-10-13 David Edelsohn <edelsohn@gnu.org>
3164
3165 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
3166 andi./andis.
3167 (anddi3): Same.
3168 (extzvdi_internal1): Add attribute "compare".
3169 (extzvdi_internal2): Same.
3170
3171 2004-10-12 Tom Tromey <tromey@redhat.com>
3172
3173 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
3174
3175 2004-10-13 Dale Johannesen <dalej@apple.com>
3176
3177 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
3178
3179 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
3180
3181 * toplev.c (compile_file): Call mudflap_finish_file from here ...
3182 * c-decl.c (c_write_global_declarations): ... instead of here ...
3183 * cp/decl.c (cp_finish_file): ... and here.
3184 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
3185
3186 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
3187
3188 * tree-ssa-dom.c (record_range): Free the element if we are not
3189 going to use it.
3190
3191 2004-10-13 Tom Tromey <tromey@redhat.com>
3192
3193 PR java/15578:
3194 * gcc.c (option_map): Added --extdirs and --encoding.
3195
3196 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3197
3198 PR target/14454
3199 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
3200 sparc_can_output_mi_thunk.
3201 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
3202 handling of vcall offset.
3203 (sparc_can_output_mi_thunk): New predicate.
3204 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
3205 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
3206 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
3207
3208 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
3209
3210 * config/sparc/sparc.md (movdi): Remove redundant test.
3211
3212 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
3213
3214 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
3215 TDF_IPA from -fdump-tree-*-all.
3216
3217 2004-10-13 Paul Brook <paul@codesourcery.com>
3218
3219 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
3220 * config/arm/arm.c (thumb_find_work_register): Update comments.
3221 (arm_load_pic_register): Add argument for scratch register.
3222 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
3223 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
3224
3225 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
3226
3227 * tree-data-ref.c: Fix comment typos.
3228
3229 2004-10-13 Jakub Jelinek <jakub@redhat.com>
3230 Zdenek Dvorak <dvorakz@suse.cz>
3231
3232 PR tree-optimization/17724
3233 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
3234
3235 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
3236
3237 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
3238 (altivec_builtin_mask_for_store): Likewise.
3239 (altivec_init_builtins): Use lang_hooks.builtin_function to
3240 create the decls for builtin_altivec_mask_for_load/store.
3241
3242 2004-10-13 Nick Clifton <nickc@redhat.com>
3243
3244 * config/c4x/c4x.c: Remove inclusion of loop.h.
3245
3246 2004-10-12 Ben Elliston <bje@au.ibm.com>
3247
3248 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
3249 (ei_container): New; renamed.
3250 (ei_start, ei_last): New macros.
3251 (ei_start_1, ei_last_1): Renamed from ei_start.
3252 (ei_last_1, ei_end_p): Use ei_container() where applicable.
3253 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
3254 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
3255
3256 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
3257
3258 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
3259 * cfgloop.c (initialize_loops_parallel_p): New.
3260 (flow_loops_find): Initialize the parallel_p field to true for all
3261 the loops.
3262 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
3263 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
3264 the size of the data accessed in the loop.
3265 (struct nb_iter_bound): Moved...
3266 * cfgloop.h (struct nb_iter_bound): ... here.
3267 (estimated_nb_iterations, parallel_p): New fields in struct loop.
3268 (record_estimate): Declare extern here.
3269 * tree-chrec.c: Fix comments.
3270 (nb_vars_in_chrec): New function.
3271 * tree-chrec.h (nb_vars_in_chrec): Declared here.
3272 * tree-data-ref.c: Don't include lambda.h, that is already included
3273 in tree-data-ref.h.
3274 (tree_fold_divides_p): Don't check for integer_onep.
3275 (tree_fold_bezout): Removed.
3276 (gcd): New static duplicated function.
3277 (int_divides_p, dump_subscript): New.
3278 (dump_data_dependence_relation): Use dump_subscript.
3279 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
3280 estimate_niter_from_size_of_data): New.
3281 (analyze_array_indexes, analyze_array): Call
3282 estimate_niter_from_size_of_data during the detection of array
3283 references. Pass in a pointer to the statement that contains the
3284 array reference.
3285 (all_chrecs_equal_p): New.
3286 (compute_distance_vector): Renamed compute_subscript_distance.
3287 Deal with multivariate conflict functions.
3288 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
3289 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
3290 (non_affine_dependence_relation): New.
3291 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
3292 analyze_siv_subscript, analyze_miv_subscript,
3293 analyze_overlapping_iterations, subscript_dependence_tester):
3294 Initialize and return last_conflicts function.
3295 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
3296 compute_overlap_steps_for_affine_1_2): New.
3297 (analyze_siv_subscript_affine_cst): Removed.
3298 (analyze_subscript_affine_affine): Disprove dependences based on the
3299 iteration domains. Solve the univariate dependence case as before,
3300 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
3301 Implement the multivariate case of 2 versus 1 variables.
3302 (build_classic_dist_vector, build_classic_dir_vector): Implement some
3303 unhandled cases.
3304 (find_data_references_in_loop): Compute and initialize
3305 loop->estimated_nb_iterations and loop->parallel_p.
3306 (analyze_all_data_dependences): Modify the debug dump order.
3307 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
3308 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
3309 (SUB_LAST_CONFLICT, subscript->last_conflict,
3310 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
3311 DDR_AFFINE_P, DDR_SIZE_VECT): New.
3312 (find_data_references_in_loop, initialize_data_dependence_relation,
3313 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
3314
3315 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
3316
3317 * configure: Regenerate.
3318
3319 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
3320
3321 PR 17892
3322 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
3323 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
3324 and constant folding of floating point MULT_EXPR/PLUS_EXPR
3325 expressions.
3326
3327 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
3328
3329 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
3330 (s390_gimplify_va_arg): Likewise.
3331
3332 2004-10-12 Daniel Jacobowitz <dan@debian.org>
3333
3334 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
3335 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
3336 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
3337 * regclass.c (record_address_regs): Remove ifdef. Use
3338 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
3339 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
3340 definition.
3341 (scan_rtx_address, replace_oldest_value_addr): Use
3342 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
3343 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
3344 unnecessary definitions.
3345 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
3346 and MODE_BASE_REG_REG_CLASS.
3347 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
3348 (MODE_BASE_REG_REG_CLASS): Define.
3349 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
3350 (REG_MODE_OK_FOR_REG_BASE_P): Define.
3351 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
3352 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
3353
3354 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
3355
3356 * tree-ssa-alias.c (verify_name_tags): New function.
3357 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
3358 (verify_alias_info): Call verify_name_tags.
3359
3360 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
3361
3362 PR rtl-optimization/17931
3363 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
3364 ZERO_EXTRACT in it.
3365
3366 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
3367
3368 * arm.c (arm_print_operand): Use output_operand_lossage where possible
3369 rather than aborting.
3370
3371 2004-10-12 Paul Brook <paul@coudesourcery.com>
3372
3373 * config.gcc: Add armv6{k,z,zk}
3374 * config/arm/arm-cores.def: Add arm1176 and mpcore.
3375 * config/arm/tune.md: Regenerate.
3376 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
3377 Define.
3378 (all_architectures): Add armv6k, armv6z, armv6zk.
3379 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
3380 * doc/invoke.texi: Document new arch and cpu values.
3381
3382 2004-10-12 Paul Brook <paul@coodesourcery.com>
3383
3384 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
3385 meabi=4.
3386
3387 2004-10-12 Paul Brook <paul@codesourcery.com>
3388
3389 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
3390 Handle negative constants.
3391
3392 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
3393
3394 PR c/17301
3395 * c-typeck.c (convert_arguments): Return error_mark_node if there
3396 are too few arguments.
3397 (build_function_call): Handle error_mark_node return from
3398 convert_arguments.
3399
3400 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
3401
3402 * configure.ac (symbolic_link): Replace with $LN_S.
3403 (Assembler/Linker): Hard link from gas and binutils trees.
3404 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
3405 * configure: Regenerate.
3406
3407 2004-10-12 Paul Brook <paul@codesourcery.com>
3408
3409 * configure.ac: Don't look for host assembler when building a canadian
3410 cross.
3411 * configure: Regenerate.
3412
3413 2004-10-11 Roger Sayle <roger@eyesopen.com>
3414
3415 PR other/17361
3416 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
3417 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
3418 line options for "-lang-asm" and if found allow any of the C-family
3419 front-end options.
3420 (c_common_handle_option): Remove last use of permit_fortran_options.
3421
3422 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
3423
3424 * config/s390/s390.c (print_operand): Support 'S' format flag.
3425 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
3426 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
3427 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
3428 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
3429 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
3430 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
3431 ("*movstricthi"): Likewise.
3432 ("*load_multiple_di", "*load_multiple_si"): Likewise.
3433 ("*store_multiple_di", "*store_multiple_si"): Likewise.
3434 ("*sethiqisi", "*sethihisi"): Likewise.
3435 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
3436 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
3437 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
3438 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
3439 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
3440
3441 ("*tmhi_full"): Fix incorrect op_type attribute.
3442
3443 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
3444 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
3445 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
3446 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
3447
3448 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
3449
3450 PR middle-end/16266
3451 * function.c (temp_slots_at_level): Fix typo which creates too
3452 many temp stack slots levels.
3453
3454 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
3455
3456 * config/s390/s390.c (s390_trampoline_template): Generate shorter
3457 trampoline code.
3458 (s390_trampoline_instantiate): Adapt.
3459 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
3460
3461 2004-10-11 Roger Sayle <roger@eyesopen.com>
3462
3463 PR middle-end/17657
3464 * stmt.c (add_case_node): Add additional type argument. Declare
3465 as static to match prototype. Convert the upper and lower bounds
3466 to the specified index type. Optimize away case ranges/values
3467 that are outside the index type's bounds. Truncate case ranges
3468 that span the index type's bounds.
3469 (expand_case): Avoid unnessary computation and memory allocation
3470 when index type is error_mark_node. Pass index_type as required
3471 by change to add_case_node API. No need to convert case range
3472 bounds to index_type, this is now done by add_case_node.
3473
3474 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
3475
3476 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
3477 * config/s390/s390.c (s390_offset_p): New function.
3478 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
3479 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
3480 transform Q->Q alternatives to *clc pattern.
3481 ("*clc"): Move.
3482 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
3483 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
3484 to transform Q->Q alternatives to *mvc pattern.
3485 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
3486 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
3487 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
3488 transform Q->Q alternatives to *nc pattern.
3489 ("*nc"): New insn. New peephole to merge adjacent NCs.
3490 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
3491 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
3492 transform Q->Q alternatives to *oc pattern.
3493 ("*oc"): New insn. New peephole to merge adjacent OCs.
3494 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
3495 transform Q->Q alternatives to *xc pattern.
3496 ("*xc"): New insn. New peephole to merge adjacent XCs.
3497 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
3498
3499 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
3500
3501 * gimplify.c (gimple_push_condition): Make sure that we don't
3502 have any saved condition cleanup if we were at the top level.
3503
3504 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
3505
3506 * config/frv/frv.md (*adddi3_internal): Change name to...
3507 (adddi3): ...replacing the exisiting define_expand. Combine
3508 alternatives. Fix the range of the constant constraints ('J' instead
3509 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
3510 to extract the lower and upper halves of the DImode operands.
3511 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
3512 (adddi3_lower): Fix the range of the constant constraints and
3513 remove the bogus operands[2] check.
3514 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
3515 operand 2. Use addxi to handle constant operands.
3516 (subdi3_lower, subdi3_upper): Don't handle constant operands.
3517
3518 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
3519
3520 * gengtype-lex.l: Add commented } & ) characters to unconfuse
3521 editor's paren matching. Allow #define inside a struct.
3522
3523 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
3524
3525 PR middle-end/17703
3526 part of PR c++/17657
3527 * fold-const.c (fold_build_cleanup_point_expr): New function.
3528 * tree.h (fold_build_cleanup_point_expr): Prototype.
3529
3530 2004-10-10 Eric Christopher <echristo@redhat.com>
3531
3532 * dwarf2out.c: Move attribute to subprogram declaration
3533 instead of subroutine type.
3534
3535 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
3536
3537 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
3538 hoist_insn_after, and hoist_insn_to_edge.
3539 * rtl.h: Remove the prototypes for reg_referenced_between_p,
3540 no_jumps_between_p, and insn_dependent_p.
3541 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
3542 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
3543 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
3544 hoist_insn_to_edge): Remove.
3545
3546 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
3547
3548 PR c/17881
3549 * c-decl.c (grokparms): Don't warn for parameters of incomplete
3550 type in declarations that are not definitions except for the case
3551 of parameters of void type.
3552
3553 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
3554
3555 * tree-cfg.c: Fix comment typos.
3556
3557 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
3558
3559 PR c/17301
3560 * builtins.c (expand_builtin_va_start): Check for too few
3561 arguments to va_start.
3562
3563 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
3564
3565 PR c/17189
3566 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
3567 fields a pedwarn. Pedwarn here for unnamed structs/unions if
3568 pedantic.
3569 * c-parse.in (component_decl): Don't pedwarn here for unnamed
3570 fields.
3571
3572 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
3573
3574 PR tree-optimization/17906
3575 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
3576 copy non-gimple reg arguments.
3577
3578 2004-10-09 Roger Sayle <roger@eyesopen.com>
3579
3580 PR rtl-optimization/17853
3581 * simplify-rtx.c (simplify_relational_operation): Correct comment.
3582 Reorganize handling of comparison operations with floating point
3583 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
3584 Likewise, introduce support for comparison operations with vector
3585 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
3586
3587 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
3588 * doc/tm.texi: Likewise.
3589
3590 2004-10-09 Steven Bosscher <stevenb@suse.de>
3591
3592 * regs.h (struct reg_info_def): Remove the last_node_uid and
3593 changes_mode fields.
3594 (REGNO_LAST_NOTE_UID): Don't define.
3595 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
3596 * regmove.c (copy_src_to_dest): Likewise.
3597
3598 2004-10-09 Roger Sayle <roger@eyesopen.com>
3599
3600 PR middle-end/17894
3601 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
3602 relational comparison operator op needs to be swapped/reversed when
3603 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
3604
3605 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
3606
3607 PR tree-opt/17902
3608 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
3609 instead of bsi_start.
3610 (value_replacement): Likewise.
3611 (abs_replacement): Likewise
3612
3613 2004-10-09 Steven Bosscher <stevenb@suse.de>
3614
3615 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
3616 (expand_gimple_cond_expr, expand_gimple_tailcall,
3617 expand_gimple_basic_block): Use it to dump RTL for each stmt.
3618 (tree_expand_cfg): Announce full RTL function dump.
3619 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
3620 not the graph version.
3621 * tree-pretty-print.c (dump_generic_node): Allow empty statements
3622 in the arms of a COND_EXPR for lowered nodes.
3623
3624 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
3625
3626 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
3627 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
3628 strtoufix16, strtoufix32, strtoufix64): Declare.
3629
3630 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
3631
3632 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
3633 for an out-of-range floating point constant.
3634 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
3635 warning if the target format does not support infinities.
3636
3637 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
3638
3639 * emit-rtl.c (last_label_num, base_label_num): Remove.
3640 (max_label_num): Always return label_num.
3641 (set_new_last_label_num, restore_emit_status): Remove.
3642 (init_emit): Don't initialize last_label_num.
3643 * function.c (pop_function_context_from): Don't call
3644 restore_emit_status.
3645 * function.h: Remove the prototype for restore_emit_status.
3646 * rtl.h: Remove the prototype for set_new_last_label_num.
3647
3648 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
3649
3650 * stmt.c (expand_decl_init): Remove.
3651 * tree.h: Remove the corresponding prototype.
3652
3653 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
3654
3655 * integrate.c (try_constants, subst_constants, mark_stores):
3656 Remove.
3657 * integrate.h: Remove the prototype for try_constants.
3658
3659 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
3660
3661 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
3662 (convert_for_assignment): Handle ic_argpass_nonproto. Add
3663 comments about its relevance to errors.
3664 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
3665
3666 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
3667
3668 PR c/16999
3669 * c-ppoutput.c (cb_ident): Don't quote string as it is already
3670 quoted.
3671
3672 2004-10-08 Diego Novillo <dnovillo@redhat.com>
3673
3674 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
3675 reference_node_pool.
3676
3677 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
3678
3679 * tree-cfg.c: Fix a comment typo.
3680
3681 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
3682
3683 * config/s390/s390.c (s390_register_info): Don't save fprs for
3684 -msoft-float.
3685 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
3686
3687 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
3688
3689 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
3690 (TARGET_DEFAULT): Use symbolic values.
3691 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
3692 (TARGET_DEFAULT): Use symbolic values.
3693 * config/s390/s390.c (s390_backchain_string): Initialize to
3694 TARGET_DEFAULT_BACKCHAIN.
3695
3696 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3697
3698 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
3699 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
3700 code.
3701 (expand_builtin_strcat): Accept a type parameter.
3702 (fold_builtin_mempcpy): Accept a type and endp parameter.
3703
3704 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
3705 Accept an `exp' instead of an `arglist'.
3706
3707 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
3708
3709 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
3710 reverting my 2004-09-07 patch to use build_int_cst.
3711
3712 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
3713
3714 PR target/17245
3715 * config/sparc/sparc.c (input_operand): Remove redundant code
3716 for handling LO_SUM.
3717 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
3718 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
3719 Otherwise only accept it for TFmode if quad move insns are available.
3720
3721 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
3722
3723 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
3724 common cases will be caught earlier than others.
3725
3726 2004-10-08 Michael Matz <matz@suse.de>
3727
3728 * loop-doloop.c (doloop_optimize): Extend count.
3729
3730 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
3731
3732 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
3733 (prefetch): Convert to expander.
3734
3735 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
3736
3737 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
3738 first argument of CALL.
3739 (tls_local_dynamic): Likewise.
3740
3741 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
3742
3743 * c-typeck.c (enum impl_conv): New.
3744 (convert_for_assignment): Use it. Take tree for function called
3745 instead of its name. Handle ObjC selectors for diagnostics at
3746 start of function. Select diagnostic text within the function
3747 using full sentences for diagnsotics. Use %qE to name functions
3748 in diagnostics.
3749 (convert_arguments, build_modify_expr,
3750 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
3751 callers to convert_for_assignment.
3752 (warn_for_assignment): Remove.
3753
3754 2004-10-08 Nick Clifton <nickc@redhat.com>
3755
3756 * config/sh/symbian.c (symbian_possibly_export_base_class):
3757 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
3758 TYPE_CONTAINS_VPTR_P.
3759
3760 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3761
3762 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
3763 fixed registers form all_used_regs. Update call_really_used_regs.
3764 (CALL_REALLY_USED_REGISTERS): Define.
3765 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
3766 with call_really_used_regs.
3767
3768 2004-10-08 Alan Modra <amodra@bigpond.net.au>
3769
3770 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
3771 for -profile as well as -p and -pg.
3772
3773 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
3774
3775 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
3776
3777 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
3778
3779 * tree-cfg.c (tree_block_forwards_to): Remove.
3780 * tree-flow.h: Remove the corresponding prototype.
3781
3782 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
3783
3784 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
3785 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
3786
3787 2004-10-07 Geoffrey Keating <geoffk@apple.com>
3788
3789 Radar 3813796
3790 * config/rs6000/rs6000.c (rs6000_generate_compare): When
3791 flag_trapping_math is in effect, don't generate subtract
3792 instructions.
3793
3794 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
3795
3796 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
3797 * config/s390/s390.c (s390_narrow_logical_operator): New function.
3798 (s390_extra_constraint_str): Add 'A' constraints.
3799 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
3800 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
3801 (CONSTRAINT_LEN): Likewise.
3802 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
3803 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
3804 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
3805 ("*iordi3"): Add OI alternative and splitter.
3806 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
3807 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
3808 ("*xordi3"): Add XI alternative and splitter.
3809 ("*xorsi3", "*xorhi3"): Likewise.
3810
3811 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
3812
3813 * config/mips/mips.c (mips_function_rodata_section): New function.
3814 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
3815
3816 2004-10-07 Devang Patel <dpatel@apple.com>
3817
3818 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
3819 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
3820 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
3821 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
3822 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
3823 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
3824 UNSPEC_VCONDU_V16QI): New constant defines.
3825 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
3826 vconduv16qi): New patterns.
3827 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
3828 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
3829 (get_vec_cmp_insn): Same.
3830 (get_vsel_insn): Same.
3831 (rs6000_emit_vector_compare): Same.
3832 (rs6000_emit_vector_select): Same.
3833 (INSN_NOT_AVAILABLE): New.
3834
3835 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
3836
3837 PR tree-optimization/17749
3838 * tree-tailcall.c (find_tail_calls): Check that parameter is
3839 a gimple_reg.
3840
3841 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
3842
3843 * config/ia64/ia64.c: Fix a comment typo.
3844
3845 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3846
3847 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
3848
3849 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3850
3851 PR c++/17115
3852 * tree-inline.c (expand_call_inline): Do not warn for functions
3853 marked with attribute noinline.
3854
3855 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3856
3857 PR target/17862
3858 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
3859 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
3860
3861 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
3862 of 0 as 4th argument to pass_by_reference.
3863 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
3864
3865 2004-10-06 Eric Christopher <echristo@redhat.com>
3866
3867 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
3868 attribute.
3869
3870 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
3871
3872 PR target/17770
3873 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
3874
3875 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
3876
3877 PR rtl-optimization/17791
3878 * loop-doloop.c (doloop_modify): Take number of iterations as
3879 argument.
3880 (doloop_optimize): Extend or shorten the number of iterations
3881 when changing mode of counter register.
3882 * loop-iv.c (lowpart_subreg): Export.
3883 * rtl.h (lowpart_subreg): Declare.
3884
3885 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
3886
3887 PR tree-optimization/17806
3888 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
3889 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
3890 flags moved to split_edge.
3891
3892 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3893
3894 PR middle-end/17835
3895 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
3896 before tentatively building the conditional move sequence.
3897
3898 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
3899
3900 PR target/16815
3901 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
3902 check.
3903 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
3904 function_arg_padding.
3905
3906 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
3907
3908 PR bootstrap/17857
3909 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
3910
3911 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
3912
3913 * hooks.c (hook_int_void_1, hook_void_int): Remove.
3914 * hooks.h: Remove the corresponding prototypes.
3915
3916 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
3917
3918 PR middle-end/17849
3919 * tree-nested.c (walk_stmt_info): Add changed field.
3920 (convert_nonlocal_reference): Set changed to when we
3921 change a decl to unnested decl.
3922 <case ADDR_EXPR>: Instead of checking if the immediate part
3923 of the ADDR_EXPR changed, check the field changed.
3924 Use recompute_tree_invarant_for_addr_expr instead of unsetting
3925 TREE_INVARIANT.
3926 (convert_local_reference): Set changed to when we
3927 change a decl to unnested decl.
3928 <case ADDR_EXPR>: Instead of checking if the immediate part
3929 of the ADDR_EXPR changed, check the field changed.
3930 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
3931
3932 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
3933
3934 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
3935 * dwarf2out.c (dwarf2out_init): Remove references to
3936 DWARF2_GENERATE_TEXT_SECTION_LABEL.
3937 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
3938 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
3939
3940 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
3941
3942 * c-typeck.c (convert_arguments): Take expression for called
3943 function rather than its name. Handle ObjC selectors directly
3944 rather than relying on warn_for_assignment to do so. Call warning
3945 directly rather than warn_for_assignment. Use %qE in diagnostics.
3946 Say "argument" rather than "arg" in diagnostics.
3947 (build_function_call): Update call to convert_arguments.
3948
3949 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
3950
3951 PR debug/17787
3952 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
3953 ENUMs specially instead of just saying we do.
3954
3955 2004-10-06 Eric Christopher <echristo@redhat.com>
3956
3957 * dwarf2.h: Sync with include/elf/dwarf2.h
3958
3959 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
3960
3961 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
3962 and TREE_VEC nodes.
3963
3964 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
3965
3966 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
3967 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
3968
3969 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
3970
3971 * lambda-code.c (compute_nest_using_fourier_motzkin): New
3972 function.
3973 (lambda_compute_auxillary_space): Split from here.
3974
3975 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
3976
3977 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
3978 * tree-flow.h: Add prototype.
3979 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
3980 expr_invariant_in_loop.
3981
3982 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
3983
3984 * tree-cfg.c (thread_jumps): Remove a duplicate check for
3985 EXIT_BLOCK_PTR.
3986
3987 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
3988
3989 * config/s390/s390-protos.h (s_imm_operand): Remove.
3990 (s390_pool_operand): Add prototype.
3991 * config/s390/s390.c (general_s_operand): Remove.
3992 (s_imm_operand): Remove.
3993 (s_operand): Merge contents of general_s_operand.
3994 (s390_pool_operand): New function.
3995 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
3996 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
3997 ("*cmpdi_ccu"): Merge Q->Q alternative.
3998 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
3999 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
4000 ("*cli"): Remove.
4001 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
4002 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
4003 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
4004
4005 2004-10-06 Steve Ellcey <sje@cup.hp.com>
4006
4007 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
4008 call ia64_function_arg_boundary.
4009 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
4010 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
4011 (ia64_function_arg_advance): Do not put 128 bit floats into
4012 FP registers.
4013
4014 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4015
4016 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
4017 Accept an expression instead of an arglist.
4018 (expand_builtin_stpcpy): Accept an expression instead of an
4019 arglist.
4020
4021 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4022
4023 PR target/16007
4024 * doc/install.texi (*-*-solaris2*): Mention potential problem
4025 with Sun assembler + GNU linker and C++ programs.
4026 Document status of binutils 2.15 release.
4027
4028 2004-10-06 Jan Hubicka <jh@suse.cz>
4029
4030 * cse.c (cse_main): Kill push/pop context.
4031
4032 2004-10-05 Zack Weinberg <zack@codesourcery.com>
4033
4034 * pretty-print.c: Include tree.h.
4035 (pp_base_prepare_to_format): New function, logic from
4036 text_specifies_location.
4037 (pp_base_format_text): Use gcc_assert.
4038 * pretty-print.h (pp_prepare_to_format): New macro.
4039 (pp_base_prepare_to_format): Prototype.
4040 * diagnostic.c (text_specifies_location): Delete.
4041 (bug_report_request): Delete.
4042 (diagnostic_set_info): Don't call text_specifies_location.
4043 (diagnostic_action_after_output): Put text from
4044 bug_report_request inline here. Use gcc_unreachable.
4045 (diagnostic_report_current_function): Fix comment.
4046 (diagnostic_report_diagnostic): Clarify logic for error recursion.
4047 Call pp_prepare_to_format before diagnostic_starter.
4048 (trim_filename): Use IS_DIR_SEPARATOR.
4049 (fatal_error, internal_error): Use gcc_unreachable.
4050 (error_recursion): Call diagnostic_action_after_output to
4051 issue the bug_report_request message and exit.
4052 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
4053
4054 * c-parse.in: Add list of diagnostic messages to insulate
4055 translation template from version of yacc/bison used to
4056 compile the grammar.
4057
4058 2004-10-06 Alan Modra <amodra@bigpond.net.au>
4059
4060 PR 16406
4061 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
4062
4063 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
4064
4065 * basic-block.h: Remove the prototype for
4066 flow_preorder_transversal_compute.
4067 * cfganal.c (dfst_node): Remove.
4068 (flow_preorder_transversal_compute): Likewise.
4069 * rtl.h: Remove the prototype for get_jump_table_offset.
4070 * rtlanal.c (get_jump_table_offset): Remove.
4071
4072 2004-10-05 Richard Henderson <rth@redhat.com>
4073
4074 PR 17756
4075 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
4076
4077 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
4078
4079 PR bootstrap/17817
4080 * Makefile.in: Stage the build directory too.
4081
4082 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
4083
4084 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
4085
4086 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
4087 (frv_emit_move): Same.
4088
4089 * config/frv/frv.c (frv_emit_move): New.
4090 (frv_legitimize_address): New.
4091
4092 * config/frv/frv.md ("movsi"): Call frv_emit_move.
4093 ("movqi"): Same.
4094 ("movhi"): Same.
4095 ("movdi"): Same.
4096 ("movsf"): Same.
4097 ("movdf"): Same.
4098
4099 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
4100
4101 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
4102 system headers.
4103
4104 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
4105
4106 * c-decl.c (pushdecl): When an extern declaration at block scope
4107 refers to a visible entity with internal linkage, use the old DECL
4108 rather than the new one.
4109
4110 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
4111
4112 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
4113 comments.
4114
4115 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
4116
4117 * tree-cfg.c (thread_jumps): Remove a duplicate check for
4118 an infinite loop.
4119
4120 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
4121
4122 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
4123 of FOR_BB_BETWEEN. Remove a useless check for unreachable
4124 blocks.
4125
4126 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
4127
4128 * tree-cfg.c (cleanup_tree_cfg): Don't call
4129 delete_unreachable_blosk() after thread_jumps().
4130 (thread_jumps): Always remove basic blocks as they become
4131 unreachable.
4132
4133 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
4134
4135 * tree-cfg.c (cleanup_tree_cfg): Remove variable
4136 something_changed. Simplify the while loop.
4137
4138 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4139
4140 * builtins.c (expand_builtin_memmove): Delete duplicate code
4141 and accept a tree type for the result.
4142 (expand_builtin_bcopy): Accept a tree type for the result.
4143 (fold_builtin_memmove): Accept an arglist and tree type for
4144 the result.
4145
4146 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4147
4148 * config/s390/s390.c (s390_dump_pool): Remove return value.
4149 Use gen_pool_align, gen_pool_section_start/end instead of
4150 gen_pool_start/end_31/64.
4151 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
4152 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
4153 ("pool_start_31", "pool_end_31"): Remove.
4154 ("pool_start_64", "pool_end_64"): Likewise.
4155 ("pool_align", "pool_section_start", "pool_section_end": New insns.
4156
4157 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
4158 (TARGET_CANNOT_COPY_INSN_P): Define.
4159 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
4160 (struct constant_pool): New member 'execute'.
4161 (s390_add_execute, s390_find_execute): New functions.
4162 (s390_execute_label, s390_execute_target): Likewise.
4163 (s390_dump_pool): Output in-pool execute target templates.
4164 (s390_dump_execute): New function.
4165 (s390_alloc_pool, s390_free_pool): Handle execute templates.
4166 (s390_mainpool_start, s390_mainpool_finish): Likewise.
4167 (s390_chunkify_start, s390_chunkify_finish): Likewise.
4168 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
4169 ("*execute"): New insn pattern.
4170 ("movmem_short", "*movmem_short"): Use splitters to generate
4171 explicit execute pattern, remove embedded execute.
4172 ("clrmem_short", "*clrmem_short"): Likewise.
4173 ("cmpmem_short", "*cmpmem_short"): Likewise.
4174
4175 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
4176
4177 * tree-ssa.c (verify_ssa): Verify phi arguments only
4178 contain renamed names.
4179
4180 2004-10-05 Alan Modra <amodra@bigpond.net.au>
4181
4182 * config/rs6000/linux.h: Formatting, whitespace.
4183 * config/rs6000/linux64.h: Likewise.
4184 * config/rs6000/rs6000-protos.h: Likewise.
4185 * config/rs6000/rs6000.c: Likewise.
4186 (easy_vector_splat_const): Add fall thru comments.
4187 (output_vec_const_move): Likewise.
4188
4189 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
4190
4191 * Makefile.in: Update -Wno-error exceptions for move to build dir.
4192
4193 2004-10-05 Chao-Ying Fu <fu@mips.com>
4194 Richard Sandiford <rsandifo@redhat.com>
4195
4196 * doc/invoke.texi (-mpaired-single): Link to the new description of the
4197 built-in functions. Document dependencies.
4198 (-mips3d): Add link here too.
4199 * doc/extend.texi (MIPS Paired-Single Support): New section.
4200
4201 2004-10-04 Chao-ying Fu <fu@mips.com>
4202
4203 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
4204
4205 2004-10-04 Diego Novillo <dnovillo@redhat.com>
4206
4207 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
4208 Initialize OPT_STATS to 0.
4209
4210 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
4211
4212 * tree-data-ref.c: Fix comment typos.
4213
4214 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
4215
4216 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
4217 the predicate cannot be computed, don't initialize the result to
4218 false.
4219
4220 2004-10-01 Eric Christopher <echristo@redhat.com>
4221
4222 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
4223 locally defined enum.
4224 * dwarf2out.c (add_calling_convention_attribute): Don't
4225 emit DW_CC_normal.
4226
4227 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
4228
4229 PR c/17178, PR c/17820
4230 * c-decl.c (pop_scope): Do not warn about unused static
4231 variables as they warned in the middle-end.
4232
4233 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4234
4235 * builtins.c (expand_builtin_memcpy): Delete duplicate code
4236 and make the first parameter the expression not the arglist.
4237
4238 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
4239
4240 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
4241 as valid modes to expand address expressions.
4242
4243 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
4244
4245 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
4246 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
4247 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
4248 code formatting conventions.
4249
4250 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
4251
4252 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
4253
4254 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
4255
4256 PR tree-optimization/16632
4257 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
4258 fold (A & C) == D into 0, fold ~C. Similarly, for the case
4259 where | is used instead of &.
4260
4261 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
4262
4263 * ginclude/stddef.h: Fix a comment typo.
4264
4265 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4266
4267 PR target/17443
4268 * config.gcc (i?86-*-solaris2*): Restore correct logic
4269 for --enable-threads option.
4270 (sparc64-*-solaris2*): Likewise.
4271 (sparc-*-solaris2*): Likewise.
4272
4273 2004-10-03 Alan Modra <amodra@bigpond.net.au>
4274
4275 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
4276 (OS_MISSING_POWERPC64): Move, and comment.
4277 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
4278 (OS_MISSING_POWERPC64): Move, and comment.
4279
4280 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
4281
4282 * arm.c (output_call_mem): Add missing \t.
4283
4284 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4285
4286 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
4287 expand_builtin_strncmp): Delete duplicate code.
4288
4289 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
4290
4291 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
4292 take check-base and -limit arguments.
4293 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
4294 check ranges for ARRAY_REF and COMPONENT_REF.
4295 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
4296 instrumentation.
4297
4298 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
4299
4300 * c-objc-common.c (c_tree_printer): Correct description of %E.
4301 Don't fall through after printing an expression.
4302
4303 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
4304
4305 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
4306
4307 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
4308
4309 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
4310 delete_unrechable_blocks() only when necessary.
4311
4312 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
4313
4314 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
4315 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
4316 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
4317 __gthread_recursive_mutex_unlock): New functions.
4318
4319 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
4320
4321 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
4322 * config/s390/tpf-eh.c: Remove file.
4323 * config/s390/tpf-unwind.h: New file.
4324 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
4325 (MD_UNWIND_SUPPORT): Define.
4326
4327 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
4328
4329 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
4330
4331 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
4332
4333 * config/s390/s390-protos.h (s390_comparison): Add prototype.
4334 * config/s390/s390.c (s390_comparison): New function.
4335 (s390_branch_condition_mask): Return -1 for invalid comparisons.
4336 (s390_branch_condition_mnemonic): Assert valid comparison.
4337 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
4338 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
4339 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
4340 s390_comparison instead of comparison_operator.
4341
4342 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
4343 ("cmpmemdi"): Remove.
4344 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
4345 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
4346 ("cmpint_si"): Rename to ...
4347 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
4348 ("cmpint_di", "*cmpint_di"): Likewise.
4349 * config/s390/s390.c (s390_canonicalize_comparison): Remove
4350 redundant UNSPEC_CMPINT conversions.
4351 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
4352
4353 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
4354
4355 * collect2.c (COLLECT_PARSE_FLAG): Remove.
4356 (main): Remove a reference to COLLECT_PARSE_FLAG
4357 * system.h: Poison COLLECT_PARSE_FLAG.
4358 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
4359
4360 2004-10-01 Paul Brook <paul@codesourcery.com>
4361
4362 * config/arm/crti.asm: Give _init and _fini function type.
4363
4364 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
4365
4366 * common.opt (ftree-loop-ivcanon): Enable by default.
4367 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4368 Enable complete loop unrolling.
4369 (canonicalize_induction_variables, tree_unroll_loops_completely):
4370 Reset scev info.
4371
4372 2004-10-01 Paul Brook <paul@codesourcery.com>
4373
4374 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
4375 not register number.
4376 (thumb_find_work_register): Search full register range.
4377
4378 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
4379
4380 PR tree-opt/17343
4381 * tree-cfg.c (group_case_labels): Get the label and not
4382 the case expr for the default case.
4383 When the label we looking at is the default, decrement the
4384 new_size.
4385
4386 2004-10-01 Jan Hubicka <jh@suse.cz>
4387
4388 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
4389 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4390 * toplev.h (tree_rest_of_compilation): Update prototype.
4391 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
4392
4393 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
4394
4395 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
4396 cleanup_control_flow() out of the while loop.
4397
4398 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
4399
4400 * tree-vectorizer.c (vectorizable_operation): Fail unless
4401 the mode for the vector type is indeed a vector mode.
4402
4403 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
4404
4405 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
4406 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
4407 of convert.
4408 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
4409 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
4410 follow_ssa_edge_in_rhs): Ditto.
4411 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
4412 (dump_iv): Dump base_object.
4413 (dump_use, dump_cand): Use dump_iv.
4414 (determine_base_object): New function.
4415 (alloc_iv): Initialize base_object field.
4416 (record_use): Clear the ssa_name field of iv.
4417 (get_computation_cost_at): Do not use difference of addresses of
4418 two different objects.
4419 (may_eliminate_iv): Do not require the loop to have just single exit.
4420 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
4421 (nonzero_p): New function.
4422 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
4423 tree_simplify_using_condition, simplify_using_initial_conditions,
4424 loop_niter_by_eval, find_loop_niter_by_eval,
4425 estimate_numbers_of_iterations_loop, compare_trees,
4426 upper_bound_in_type, lower_bound_in_type,
4427 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
4428 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
4429 instead of integer_(non)zerop.
4430
4431 2004-10-01 Jakub Jelinek <jakub@redhat.com>
4432
4433 Revert
4434 2004-09-29 Jakub Jelinek <jakub@redhat.com>
4435
4436 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
4437 and TI_VA_LIST_FPR_COUNTER_FIELD.
4438 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
4439 * tree-pass.h (pass_stdarg): Add.
4440 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
4441 * tree-stdarg.c: New file.
4442 * Makefile.in (OBJS-common): Add tree-stdarg.o.
4443 (tree-stdarg.o): Add dependencies.
4444 * function.h (struct function): Add va_list_gpr_size and
4445 va_list_fpr_size fields.
4446 * function.c (allocate_struct_function): Initialize them.
4447
4448 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
4449 va_list_{g,f}pr_counter_field.
4450 (ix86_setup_incoming_varargs): Don't do anything if reg_save
4451 area will not be used. Only save registers that tree-stdarg.c
4452 detected they need saving.
4453 (ix86_va_start): Don't set up fields that won't be used.
4454
4455 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
4456 va_list_{g,f}pr_counter_field.
4457 (setup_incoming_varargs): Don't do anything if reg_save
4458 area will not be used. Only save registers that tree-stdarg.c
4459 detected they need saving.
4460 (rs6000_va_start): Don't set up fields that won't be used.
4461
4462 2004-09-30 Eric Christopher <echristo@redhat.com>
4463
4464 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
4465 sh abi.
4466 * dwarf2out.c (add_calling_convention_attribute): New function.
4467 (gen_subroutine_type_die): Use.
4468 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
4469 * target.h (gcc_target): Add dwarf_calling_convention.
4470 * hooks.c (hook_int_tree_0): New function.
4471 * hooks.h: Prototype.
4472 * config/sh/sh.c: Include dwarf2.h.
4473 (sh_dwarf_calling_convention): New function.
4474 (TARGET_DWARF_CALLING_CONVENTION): Use.
4475 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
4476
4477 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4478
4479 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
4480 expand_builtin_strrchr, expand_builtin_strpbrk,
4481 expand_builtin_strncat, expand_builtin_strspn,
4482 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
4483 code.
4484
4485 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
4486
4487 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
4488 prototype.
4489 (s390_logical_operator_ok_p): Likewise.
4490 * config/s390/s390.c (s390_expand_logical_operator): New function.
4491 (s390_logical_operator_ok_p): Likewise.
4492 * config/s390/s390.md ("anddi3"): New expander.
4493 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
4494 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
4495 ("andsi3"): Use s390_expand_logical_operator.
4496 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
4497 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
4498 ("andhi3"): New expander.
4499 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
4500 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
4501 ("andqi3"): New expander.
4502 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
4503 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
4504 ("iordi3"): New expander.
4505 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
4506 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
4507 ("iorsi3"): Use s390_expand_logical_operator.
4508 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
4509 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
4510 ("iorhi3"): New expiorer.
4511 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
4512 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
4513 ("iorqi3"): New expiorer.
4514 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
4515 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
4516 ("xordi3"): New expander.
4517 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
4518 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
4519 ("xorsi3"): New expander.
4520 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
4521 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
4522 ("xorhi3"): New expander.
4523 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
4524 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
4525 ("xorqi3"): New expander.
4526 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
4527 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
4528
4529 2004-09-30 Roger Sayle <roger@eyesopen.com>
4530
4531 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
4532 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
4533 machine mode as the result.
4534
4535 2004-09-30 Ben Elliston <bje@au.ibm.com>
4536
4537 PR bootstrap/17761
4538 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
4539 FOR_EACH_EDGE macros.
4540
4541 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
4542
4543 * c-tree.h (readonly_error): Remove.
4544 * c-typeck (enum lvalue_use): New.
4545 (lvalue_or_else, readonly_error): Use it. All callers changed.
4546 (readonly_error): Make static.
4547
4548 2004-09-30 Jan Hubicka <jh@suse.cz>
4549
4550 PR debug/13974
4551 * cfgrtl.c (try_redirect_by_replacing_jump,
4552 force_nonfallthru_and_redirect, commit_one_edge_insertion,
4553 cfg_layout_merge_blocks): Do not attach any line number information
4554 to newly inserted instructions.
4555 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
4556 emit_insn_*_noloc.
4557 (emit_*insn_before, emit_insn*_after): New.
4558 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
4559 existing locators.
4560 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
4561 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
4562
4563 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
4564
4565 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
4566 (s390_return_address_offset): Remove.
4567 (s390_can_eliminate): Add prototype.
4568 (s390_initial_elimination_offset): Add prototype.
4569 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
4570 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
4571 * config/s390/s390.c (s390_arg_frame_offset): Remove.
4572 (s390_return_address_offset): Remove.
4573 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
4574 (struct machine_function): New member split_branches_pending_p.
4575 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
4576 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
4577 (s390_optimize_prologue): Remove base_used argument. Call
4578 s390_update_frame_layout instead of s390_register_info. Handle
4579 prologue/epilogue insns that touch only RETURN_REGNUM.
4580 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
4581 (s390_register_info): Remove base_used and return_addr_used
4582 arguments, compute special register usage inline. Return live
4583 register data to caller.
4584 (s390_frame_info): Remove arguments, do not call s390_register_info.
4585 (s390_init_frame_layout): New function.
4586 (s390_update_frame_layout): Likewise.
4587 (s390_emit_prologue): Call s390_update_frame_layout; some code
4588 move to there. Do not emit pool placeholder insn if unnecessary.
4589
4590 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
4591
4592 * config/s390/s390.c (legitimate_reload_constant_p): Remove
4593 floating point constant workaround.
4594 (s390_secondary_input_reload_class): Handle PLUS reloads
4595 with too-large constant.
4596 (s390_expand_plus_operand): Likewise.
4597 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
4598 ("movsi"): Likewise. Also, remove workaround for non-general
4599 operands.
4600 ("movdf"): Do not call force_const_mem.
4601 ("movsf"): Likewise. Merge expander with *movsf insn.
4602 ("*movsf"): Remove, merge with movsf expander.
4603
4604 2004-09-30 Paul Brook <paul@codesourcery.com>
4605
4606 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
4607 (ENDFILE_SPEC): Define.
4608 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
4609
4610 2004-09-30 Richard Henderson <rth@redhat.com>
4611
4612 * config/alpha/qrnnd.asm: Mark for noexecstack.
4613
4614 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
4615
4616 * protoize.c, tree-cfg.c: Fix comment typos.
4617
4618 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
4619
4620 PR c/17730
4621 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
4622
4623 2004-09-30 Diego Novillo <dnovillo@redhat.com>
4624
4625 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
4626 expressions...
4627 (add_pointed_to_expr): ... here.
4628 Call add_pointed_to_expr for variables with DECL_INITIAL set.
4629 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
4630 pointer variable, if set.
4631
4632 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
4633
4634 * config/sh/sh.c: Follow spelling conventions.
4635
4636 2004-09-29 Richard Henderson <rth@redhat.com>
4637
4638 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
4639 * doc/tm.texi (DWARF_ZERO_REG): New.
4640
4641 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
4642 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
4643 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
4644
4645 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
4646
4647 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
4648 with a PLUS as source operand.
4649 (expand_movstr): Likewise.
4650 (expand_builtin_stpcpy): Likewise.
4651
4652 2004-09-29 Richard Henderson <rth@redhat.com>
4653
4654 PR 17739
4655 * tree-gimple.c (is_gimple_reg): Reject hard registers.
4656 (is_gimple_asm_val): New.
4657 * tree-gimple.h (is_gimple_asm_val): Declare.
4658 * gimplify.c (gimplify_asm_expr): Use it.
4659 * tree-pretty-print.c (print_declaration): Dump hard regs.
4660 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
4661 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
4662 * tree-ssa-pre.c (is_undefined_value): Likewise.
4663 * tree-ssa-copy.c (may_propagate_copy): Likewise.
4664 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
4665 * tree-ssa.c (warn_uninit): Likewise.
4666 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
4667
4668 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
4669
4670 * c-decl.c (merge_decls): Use comptype when comparing
4671 types to decide on DECL_SIZE save of olddecl.
4672
4673 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
4674
4675 * tree.h (INDIRECT_REF_P): New macro.
4676 * alias.c (get_alias_set): Use it
4677 (nonoverlapping_memrefs_p): Ditto.
4678 * emit-rtl.c (mem_expr_equal_p): Ditto.
4679 (set_mem_attributes_minus_bitpos): Ditto.
4680 (is_gimple_addressable): Ditto.
4681 (get_base_address): Ditto.
4682 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
4683 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
4684 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
4685 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
4686 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
4687 (add_address_candidates): Ditto.
4688 (rewrite_address_base): Ditto.
4689
4690 2004-09-30 Ben Elliston <bje@au.ibm.com>
4691
4692 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
4693 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
4694 (rewrite_ssa_into_ssa): Likewise.
4695 * tree-phinodes.c (create_phi_node): Access the number of
4696 predecessor edges using EDGE_COUNT() and not num_preds.
4697
4698 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
4699
4700 PR c/7425
4701 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
4702
4703 2004-09-29 Eric Christopher <echristo@redhat.com>
4704
4705 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
4706
4707 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
4708
4709 * config/cris/cris.md (moverside, movemside): With MEM, make sure
4710 the address is (plus reg mem).
4711
4712 2004-09-29 David Edelsohn <edelsohn@gnu.org>
4713
4714 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
4715
4716 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
4717
4718 * tree.c (make_node_stat): Fix uninitialized warning. Replace
4719 cascaded if ... else if with a switch.
4720
4721 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4722
4723 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
4724
4725 2004-09-29 Jakub Jelinek <jakub@redhat.com>
4726
4727 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
4728 and TI_VA_LIST_FPR_COUNTER_FIELD.
4729 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
4730 * tree-pass.h (pass_stdarg): Add.
4731 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
4732 * tree-stdarg.c: New file.
4733 * Makefile.in (OBJS-common): Add tree-stdarg.o.
4734 (tree-stdarg.o): Add dependencies.
4735 * function.h (struct function): Add va_list_gpr_size and
4736 va_list_fpr_size fields.
4737 * function.c (allocate_struct_function): Initialize them.
4738
4739 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
4740 va_list_{g,f}pr_counter_field.
4741 (ix86_setup_incoming_varargs): Don't do anything if reg_save
4742 area will not be used. Only save registers that tree-stdarg.c
4743 detected they need saving.
4744 (ix86_va_start): Don't set up fields that won't be used.
4745
4746 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
4747 va_list_{g,f}pr_counter_field.
4748 (setup_incoming_varargs): Don't do anything if reg_save
4749 area will not be used. Only save registers that tree-stdarg.c
4750 detected they need saving.
4751 (rs6000_va_start): Don't set up fields that won't be used.
4752
4753 2004-09-29 Jakub Jelinek <jakub@redhat.com>
4754
4755 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
4756 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
4757 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
4758 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
4759 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
4760 ATTR_NONNULL_1_4): New.
4761
4762 2004-09-29 Jakub Jelinek <jakub@redhat.com>
4763
4764 PR tree-optimization/17697
4765 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
4766 cfg if needed.
4767
4768 2004-09-28 Per Bothner <per@bothner.com>
4769
4770 * profile.c (branch_prob): Pass correct value to output_location,
4771 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
4772
4773 2004-09-28 Richard Henderson <rth@redhat.com>
4774
4775 PR 15089
4776 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
4777 * tree-flow.h (may_propagate_copy_into_asm): Declare.
4778 * tree-ssa-ccp.c (replace_uses_in): Use it.
4779 * tree-ssa-dom.c (cprop_operand): Likewise.
4780
4781 2004-09-28 Jeff Law <law@redhat.com>
4782
4783 * tree-ssa-threadupdate.c (create_block_for_threading): Request
4784 that no outgoing edges be left in the duplicate block. Do no
4785 update information on outgoing edges or PHI nodes in target
4786 blocks here.
4787 (remove_ctrl_stmt_and_useless_edges): Renamed from
4788 remove_last_stmt_and_useless_edges. Handle case where the
4789 block is empty or has no control statements. Do not update edge
4790 flags here.
4791 (thread_block): Create a template block rather than copying the
4792 original block every time. Create outgoing edges from the
4793 duplicate blocks and update PHIs at the target of the outgoing
4794 edges here. Fix edge flags for the original block if necessary.
4795 * cfghooks (duplicate_block): No longer assert that the original
4796 block has incoming edges.
4797
4798 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
4799
4800 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
4801 Reg Vars to enforce register allocation with general constraints.
4802 (Explicit Reg Vars): Clarify relation to asm statements.
4803 (Local Reg Vars): Similar.
4804
4805 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
4806
4807 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
4808 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
4809 build_control_flow, new_edge): Remove.
4810 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
4811 (bitlst, bitlst_table_last, bitlst_table): Remove.
4812 (bblst): Store basic_block pointer instead of block index.
4813 (bblst_table): Likewise.
4814 (edgelst): Store edge pointer instead of edge index.
4815 (edgelst_table, edgelst_last): New variables.
4816 (extract_bitlst): Rename to ...
4817 (extract_edgelst): ... this. Return edge pointers, not indices.
4818 (split_edges): Update call.
4819 (rgn_edges): Store edge pointers instead of indices.
4820 (edge_to_bit): Remove.
4821 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
4822 (SET_EDGE_TO_BIT): New macro.
4823 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
4824 (find_rgns): Remove edge_list parameter. Traverse standard CFG
4825 data structures instead of haifa_edge et al. Use edge pointers
4826 instead of edge indices everywhere.
4827 (compute_dom_prob_ps): Use standard CFG data structures. Account
4828 for exit edges.
4829 (compute_trg_info): Likewise.
4830 (propagate_deps): Likewise.
4831 (debug_candidate): Account for bblst data structure change.
4832 (check_live_1, update_live_1, is_pfree): Likewise.
4833 (IS_REACHABLE): Use standard CFG data structures.
4834 (init_ready_list): Update bblst_table/edgelst_table allocation.
4835 (schedule_region): Update alloc/cleanup code to data structure
4836 changes. Use edge->aux to store per-region edge index.
4837 (init_regions): No longer call build_control_flow. Do not
4838 create edge list any more.
4839
4840 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
4841
4842 * cse.c (cse_insn): Avoid creating direct non-local jumps.
4843 * combine.c (can_combine_p): Likewise.
4844 * local-alloc. (update_equiv_regs): Likewise.
4845
4846 2004-09-28 Richard Henderson <rth@redhat.com>
4847
4848 PR 17531
4849 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
4850 Don't check VOIDmode here. Force PLUS operands to common type.
4851 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
4852 Pmode if given a non pointer type.
4853
4854 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4855
4856 PR 17531
4857 * optabs.c (expand_binop): Force constants to the correct mode.
4858
4859 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
4860
4861 * config/s390/s390.c (s390_adjust_cost): Remove.
4862 (TARGET_SCHED_ADJUST_COST): Do not redefine.
4863 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
4864 * config/s390/s390.md ("main_pool"): Use "larl" type
4865 attribute if TARGET_CPU_ZARCH.
4866
4867 2004-09-28 Jakub Jelinek <jakub@redhat.com>
4868
4869 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
4870 variable.
4871
4872 2004-09-28 Diego Novillo <dnovillo@redhat.com>
4873
4874 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
4875 name to the pass.
4876
4877 2004-09-28 Steven Bosscher <stevenb@suse.de>
4878
4879 * common.opt (flag_gcse_sm): Disable by default.
4880 (flag_gcse_las): Likewise.
4881 (flag_web): Likewise. Create from this file.
4882 * flags.h: Remove flag_web declaration.
4883 * toplev.c (flag_web): Likewise.
4884 (process_options): Never set flag_web.
4885
4886 2004-09-28 Steven Bosscher <stevenb@suse.de>
4887
4888 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
4889 * tree-ssa-propagate.c: Include vec.h.
4890 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
4891 instead of varrays.
4892 (cfg_blocks_add): Assert the block is not already in the worklist.
4893 Update uses of interesting_ssa_edges and varying_ssa_edges.
4894 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
4895 ssa_propagate): Likewise.
4896
4897 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
4898
4899 PR c/16409
4900 * c-decl.c (start_decl): Check for initializing incomplete array
4901 of VLAs.
4902 (build_compound_literal): Check for TYPE being error_mark_node.
4903 * c-parse.in (primary): Check for VLA compound literals.
4904
4905 2004-09-28 Diego Novillo <dnovillo@redhat.com>
4906
4907 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
4908 with --disable-checking.
4909
4910 2004-09-28 Devang Patel <dpatel@apple.com>
4911
4912 * tree-pretty-print.c (dump_generic_node): Print vector types.
4913
4914 2004-09-28 Nick Clifton <nickc@redhat.com>
4915
4916 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
4917 invocation of the function sh_init_cumulative_args.
4918 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
4919 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
4920 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
4921 * config/sh/sh.c (sh_init_cumulative_args): New function based
4922 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
4923 heuristic added to determine the setting of force_mem when a
4924 library function is being called.
4925
4926 2004-09-28 Diego Novillo <dnovillo@redhat.com>
4927
4928 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
4929 Skip constant arguments.
4930
4931 2004-09-28 Diego Novillo <dnovillo@redhat.com>
4932
4933 * tree-ssa-alias.c (create_name_tags): If PTR points to a
4934 volatile type, mark the tag volatile.
4935 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
4936 volatile.
4937
4938 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
4939
4940 * tree.def (vec_cond_expr): Fix. Change 'e'
4941 to tcc_expression.
4942
4943 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
4944
4945 * basic-block.h: Fix a comment typo.
4946
4947 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
4948
4949 * optabs.c, optabs.h: Fix comment typos.
4950
4951 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
4952
4953 * config/sparc/sparc.md (call_address_struct_value_sp32):
4954 Properly mask the immediate field of the 'unimp' instruction.
4955 (call_symbolic_struct_value_sp32): Likewise.
4956
4957 2004-09-28 Ben Elliston <bje@au.ibm.com>
4958 Steven Bosscher <stevenb@suse.de>
4959 Andrew Pinski <pinskia@physics.uc.edu>
4960
4961 Merge from edge-vector-branch:
4962 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
4963 (struct edge_def): Remove pred_next, succ_next members.
4964 (struct basic_block_def): Remove pred, succ members. Add preds
4965 and succs members of type VEC(edge).
4966 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
4967 (BRANCH_EDGE): Likewise.
4968 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
4969 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
4970 (edge_iterator): New.
4971 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
4972 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
4973 (FOR_EACH_EDGE): New.
4974 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
4975 where applicable.
4976 (rotate_loop): Likewise.
4977 (find_traces_1_route): Likewise.
4978 (bb_to_key): Likewise.
4979 (connect_traces): Likewise.
4980 (copy_bb_p): Likewise.
4981 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
4982 (add_labels_and_missing_jumps): Likewise.
4983 (fix_up_fall_thru_edges): Likewise.
4984 (find_jump_block): Likewise.
4985 (fix_crossing_conditional_branches): Likewise.
4986 (fix_crossing_unconditional_branches): Likewise.
4987 (add_reg_crossing_jump_notes): Likewise.
4988 * bt-load.c (augment_live_range): Likewise.
4989 * cfg.c (clear_edges): Likewise.
4990 (unchecked_make_edge): Likewise.
4991 (cached_make_edge): Likewise.
4992 (make_single_succ_edge): Likewise.
4993 (remove_edge): Likewise.
4994 (redirect_edge_succ_nodup): Likewise.
4995 (check_bb_profile): Likewise.
4996 (dump_flow_info): Likewise.
4997 (alloc_aux_for_edges): Likewise.
4998 (clear_aux_for_edges): Likewise.
4999 (dump_cfg_bb_info): Likewise.
5000 * cfganal.c (forwarder_block_p): Likewise.
5001 (can_fallthru): Likewise.
5002 (could_fall_through): Likewise.
5003 (mark_dfs_back_edges): Likewise.
5004 (set_edge_can_fallthru_flag): Likewise.
5005 (find_unreachable_blocks): Likewise.
5006 (create_edge_list): Likewise.
5007 (verify_edge_list): Likewise.
5008 (add_noreturn_fake_exit_edges): Likewise.
5009 (connect_infinite_loops_to_exit): Likewise.
5010 (flow_reverse_top_sort_order_compute): Likewise.
5011 (flow_depth_first_order_compute): Likewise.
5012 (flow_preorder_transversal_compute): Likewise.
5013 (flow_dfs_compute_reverse_execute): Likewise.
5014 (dfs_enumerate_from): Likewise.
5015 (compute_dominance_frontiers_1): Likewise.
5016 * cfgbuild.c (make_edges): Likewise.
5017 (compute_outgoing_frequencies): Likewise.
5018 (find_many_sub_basic_blocks): Likewise.
5019 (find_sub_basic_blocks): Likewise.
5020 * cfgcleanup.c (try_simplify_condjump): Likewise.
5021 (thread_jump): Likewise.
5022 (try_forward_edges): Likewise.
5023 (merge_blocks_move): Likewise.
5024 (outgoing_edges_match): Likewise.
5025 (try_crossjump_to_edge): Likewise.
5026 (try_crossjump_bb): Likewise.
5027 (try_optimize_cfg): Likewise.
5028 (merge_seq_blocks): Likewise.
5029 * cfgexpand.c (expand_gimple_tailcall): Likewise.
5030 (expand_gimple_basic_block): Likewise.
5031 (construct_init_block): Likewise.
5032 (construct_exit_block): Likewise.
5033 * cfghooks.c (verify_flow_info): Likewise.
5034 (dump_bb): Likewise.
5035 (delete_basic_block): Likewise.
5036 (split_edge): Likewise.
5037 (merge_blocks): Likewise.
5038 (make_forwarder_block): Likewise.
5039 (tidy_fallthru_edges): Likewise.
5040 (can_duplicate_block_p): Likewise.
5041 (duplicate_block): Likewise.
5042 * cfglayout.c (fixup_reorder_chain): Likewise.
5043 (fixup_fallthru_exit_predecessor): Likewise.
5044 (can_copy_bbs_p): Likewise.
5045 (copy_bbs): Likewise.
5046 * cfgloop.c (flow_loops_cfg_dump): Likewise.
5047 (flow_loop_entry_edges_find): Likewise.
5048 (flow_loop_exit_edges_find): Likewise.
5049 (flow_loop_nodes_find): Likewise.
5050 (mark_single_exit_loops): Likewise.
5051 (flow_loop_pre_header_scan): Likewise.
5052 (flow_loop_pre_header_find): Likewise.
5053 (update_latch_info): Likewise.
5054 (canonicalize_loop_headers): Likewise.
5055 (flow_loops_find): Likewise.
5056 (get_loop_body_in_bfs_order): Likewise.
5057 (get_loop_exit_edges): Likewise.
5058 (num_loop_branches): Likewise.
5059 (verify_loop_structure): Likewise.
5060 (loop_latch_edge): Likewise.
5061 (loop_preheader_edge): Likewise.
5062 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5063 (expected_loop_iterations): Likewise.
5064 * cfgloopmanip.c (remove_bbs): Likewise.
5065 (fix_bb_placement): Likewise.
5066 (fix_irreducible_loops): Likewise.
5067 (remove_path): Likewise.
5068 (scale_bbs_frequencies): Likewise.
5069 (loopify): Likewise.
5070 (unloop): Likewise.
5071 (fix_loop_placement): Likewise.
5072 (loop_delete_branch_edge): Likewise.
5073 (duplicate_loop_to_header_edge): Likewise.
5074 (mfb_keep_just): Likewise.
5075 (create_preheader): Likewise.
5076 (force_single_succ_latches): Likewise.
5077 (loop_split_edge_with): Likewise.
5078 (create_loop_notes): Likewise.
5079 * cfgrtl.c (rtl_split_block): Likewise.
5080 (rtl_merge_blocks): Likewise.
5081 (rtl_can_merge_blocks): Likewise.
5082 (try_redirect_by_replacing_jump): Likewise.
5083 (force_nonfallthru_and_redirect): Likewise.
5084 (rtl_tidy_fallthru_edge): Likewise.
5085 (commit_one_edge_insertion): Likewise.
5086 (commit_edge_insertions): Likewise.
5087 (commit_edge_insertions_watch_calls): Likewise.
5088 (rtl_verify_flow_info_1): Likewise.
5089 (rtl_verify_flow_info): Likewise.
5090 (purge_dead_edges): Likewise.
5091 (cfg_layout_redirect_edge_and_branch): Likewise.
5092 (cfg_layout_can_merge_blocks_p): Likewise.
5093 (rtl_flow_call_edges_add): Likewise.
5094 * cse.c (cse_cc_succs): Likewise.
5095 * df.c (hybrid_search): Likewise.
5096 * dominance.c (calc_dfs_tree_nonrec): Likewise.
5097 (calc_dfs_tree): Likewise.
5098 (calc_idoms): Likewise.
5099 (recount_dominator): Likewise.
5100 * domwalk.c (walk_dominator_tree): Likewise.
5101 * except.c (emit_to_new_bb_before): Likewise.
5102 (connect_post_landing_pads): Likewise.
5103 (sjlj_emit_function_enter): Likewise.
5104 (sjlj_emit_function_exit): Likewise.
5105 (finish_eh_generation): Likewise.
5106 * final.c (compute_alignments): Likewise.
5107 * flow.c (calculate_global_regs_live): Likewise.
5108 (initialize_uninitialized_subregs): Likewise.
5109 (init_propagate_block_info): Likewise.
5110 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5111 * gcse.c (find_implicit_sets): Likewise.
5112 (bypass_block): Likewise.
5113 (bypass_conditional_jumps): Likewise.
5114 (compute_pre_data): Likewise.
5115 (insert_insn_end_bb): Likewise.
5116 (insert_store): Likewise.
5117 (remove_reachable_equiv_notes): Likewise.
5118 * global.c (global_conflicts): Likewise.
5119 (calculate_reg_pav): Likewise.
5120 * graph.c (print_rtl_graph_with_bb): Likewise.
5121 * ifcvt.c (mark_loop_exit_edges): Likewise.
5122 (merge_if_block): Likewise.
5123 (find_if_header): Likewise.
5124 (block_jumps_and_fallthru_p): Likewise.
5125 (find_if_block): Likewise.
5126 (find_cond_trap): Likewise.
5127 (block_has_only_trap): Likewise.
5128 (find_if_case1): Likewise.
5129 (find_if_case_2): Likewise.
5130 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
5131 (perfect_nestify): Likewise.
5132 * lcm.c (compute_antinout_edge): Likewise.
5133 (compute_laterin): Likewise.
5134 (compute_available): Likewise.
5135 (compute_nearerout): Likewise.
5136 * loop-doloop.c (doloop_modify): Likewise.
5137 * loop-init.c (loop_optimizer_init): Likewise.
5138 * loop-invariant.c (find_exits): Likewise.
5139 * loop-iv.c (simplify_using_initial_values): Likewise.
5140 (check_simple_exit): Likewise.
5141 (find_simple_exit): Likewise.
5142 * loop-unroll.c (peel_loop_completely): Likewise.
5143 (unroll_loop_constant_iterations): Likewise.
5144 (unroll_loop_runtime_iterations): Likewise.
5145 * loop-unswitch.c (may_unswitch_on): Likewise.
5146 (unswitch_loop): Likewise.
5147 * modulo-sched.c (generate_prolog_epilog): Likewise.
5148 (sms_schedule): Likewise.
5149 * postreload-gcse.c (eliminate_partially_redundant_load):
5150 Likewise.
5151 * predict.c (can_predict_insn_p): Likewise.
5152 (set_even_probabilities): Likewise.
5153 (combine_predictions_for_bb): Likewise.
5154 (predict_loops): Likewise.
5155 (estimate_probability): Likewise.
5156 (tree_predict_by_opcode): Likewise.
5157 (tree_estimate_probability): Likewise.
5158 (last_basic_block_p): Likewise.
5159 (propagate_freq): Likewise.
5160 (estimate_loops_at_level): Likewise.
5161 (estimate_bb_frequencies): Likewise.
5162 * profile.c (instrument_edges): Likewise.
5163 (get_exec_counts): Likewise.
5164 (compute_branch_probabilities): Likewise.
5165 (branch_prob): Likewise.
5166 * ra-build.c (live_in): Likewise.
5167 * ra-rewrite.c (rewrite_program2): Likewise.
5168 * ra.c (reg_alloc): Likewise.
5169 * reg-stack.c (reg_to_stack): Likewise.
5170 (convert_regs_entry): Likewise.
5171 (compensate_edge): Likewise.
5172 (convert_regs_1): Likewise,
5173 (convert_regs_2): Likewise.
5174 (convert_regs): Likewise.
5175 * regrename.c (copyprop_hardreg_forward): Likewise.
5176 * reload1.c (fixup_abnormal_edges): Likewise.
5177 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
5178 (sbitmap_insersection_of_preds): Likewise.
5179 (sbitmap_union_of_succs): Likewise.
5180 (sbitmap_union_of_preds): Likewise.
5181 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
5182 (fix_basic_block_boundaries): Likewise.
5183 (sched_ebbs): Likewise.
5184 * sched-rgn.c (build_control_flow): Likewise.
5185 (find_rgns): Likewise.
5186 * tracer.c (find_best_successor): Likewise.
5187 (find_best_predecessor): Likewise.
5188 (tail_duplicate): Likewise.
5189 * tree-cfg.c (make_edges): Likewise.
5190 (make_ctrl_stmt_edges): Likewise.
5191 (make_goto_expr_edges): Likewise.
5192 (tree_can_merge_blocks_p): Likewise.
5193 (tree_merge_blocks): Likewise.
5194 (cfg_remove_useless_stmts_bb): Likewise.
5195 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
5196 (tree_block_forwards_to): Likewise.
5197 (cleanup_control_expr_graph): Likewise.
5198 (find_taken_edge): Likewise.
5199 (dump_cfg_stats): Likewise.
5200 (tree_cfg2vcg): Likewise.
5201 (disband_implicit_edges): Likewise.
5202 (tree_find_edge_insert_loc): Likewise.
5203 (bsi_commit_edge_inserts): Likewise.
5204 (tree_split_edge): Likewise.
5205 (tree_verify_flow_info): Likewise.
5206 (tree_make_forwarder_block): Likewise.
5207 (tree_forwarder_block_p): Likewise.
5208 (thread_jumps): Likewise.
5209 (tree_try_redirect_by_replacing_jump): Likewise.
5210 (tree_split_block): Likewise.
5211 (add_phi_args_after_copy_bb): Likewise.
5212 (rewrite_to_new_ssa_names_bb): Likewise.
5213 (dump_function_to_file): Likewise.
5214 (print_pred_bbs): Likewise.
5215 (print_loop): Likewise.
5216 (tree_flow_call_edges_add): Likewise.
5217 (split_critical_edges): Likewise.
5218 (execute_warn_function_return): Likewise.
5219 (extract_true_false_edges_from_block): Likewise.
5220 * tree-if-conv.c (tree_if_conversion): Likewise.
5221 (if_convertable_bb_p): Likewise.
5222 (find_phi_replacement_condition): Likewise.
5223 (combine_blocks): Likewise.
5224 * tree-into-ssa.c (compute_global_livein): Likewise.
5225 (ssa_mark_phi_uses): Likewise.
5226 (ssa_rewrite_initialize_block): Likewise.
5227 (rewrite_add_phi_arguments): Likewise.
5228 (ssa_rewrite_phi_arguments): Likewise.
5229 (insert_phi_nodes_for): Likewise.
5230 (rewrite_into_ssa): Likewise.
5231 (rewrite_ssa_into_ssa): Likewise.
5232 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
5233 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
5234 (rewrite_trees): Likewise.
5235 * tree-pretty-print.c (dump_bb_header): Likewise.
5236 (dump_implicit_edges): Likewise.
5237 * tree-sra.c (insert_edge_copies): Likewise.
5238 (find_obviously_necessary_stmts): Likewise.
5239 (remove_data_stmt): Likewise.
5240 * tree-ssa-dom.c (thread_across_edge): Likewise.
5241 (dom_opt_finalize_block): Likewise.
5242 (single_incoming_edge_ignoring_loop_edges): Likewise.
5243 (record_equivalences_from_incoming_edges): Likewise.
5244 (cprop_into_successor_phis): Likewise.
5245 * tree-ssa-live.c (live_worklist): Likewise.
5246 (calculate_live_on_entry): Likewise.
5247 (calculate_live_on_exit): Likewise.
5248 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5249 (copy_loop_headers): Likewise.
5250 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
5251 (fill_always_executed_in): Likewise.
5252 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
5253 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
5254 (compute_phi_arg_on_exit): Likewise.
5255 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
5256 (get_loops_exit): Likewise.
5257 (split_loop_exit_edge): Likewise.
5258 (ip_normal_pos): Likewise.
5259 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
5260 Likewise.
5261 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
5262 (replace_phi_with_stmt): Likewise.
5263 (value_replacement): Likewise.
5264 * tree-ssa-pre.c (compute_antic_aux): Likewise.
5265 (insert_aux): Likewise.
5266 (init_pre): Likewise.
5267 * tree-ssa-propagate.c (simulate_stmt): Likewise.
5268 (simulate_block): Likewise.
5269 (ssa_prop_init): Likewise.
5270 * tree-ssa-threadupdate.c (thread_block): Likewise.
5271 (create_block_for_threading): Likewise.
5272 (remove_last_stmt_and_useless_edges): Likewise.
5273 * tree-ssa.c (verify_phi_args): Likewise.
5274 (verify_ssa): Likewise.
5275 * tree_tailcall.c (independent_of_stmt_p): Likewise.
5276 (find_tail_calls): Likewise.
5277 (eliminate_tail_call): Likewise.
5278 (tree_optimize_tail_calls_1): Likewise.
5279 * tree-vectorizer.c (vect_transform_loop): Likewise.
5280 * var-tracking.c (prologue_stack_adjust): Likewise.
5281 (vt_stack_adjustments): Likewise.
5282 (vt_find_locations): Likewise.
5283 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5284 * config/i386/i386.c (ix86_pad_returns): Likewise.
5285 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5286 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5287
5288 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
5289
5290 PR target/16532
5291 * config/sparc/sparc.c (struct machine_function): New field
5292 'leaf_function_p' and 'prologue_data_valid_p'.
5293 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
5294 to conveniently access the above fields.
5295 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
5296 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
5297 of the generic flavor 'current_function_uses_only_leaf_regs'.
5298 (eligible_for_sibcall_delay): Likewise.
5299 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
5300 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
5301 (sparc_asm_function_prologue): Add sanity check for the assumption
5302 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
5303 (sparc_can_use_return_insn_p): New function.
5304 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
5305 (output_restore): Likewise.
5306 (output_sibcall): Likewise.
5307 (sparc_output_mi_thunk): Likewise.
5308 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
5309 * config/sparc/sparc.md (return): New expander.
5310
5311 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
5312
5313 2004-09-27 Mark Mitchell <mark@codesourcery.com>
5314
5315 PR c++/17642
5316 * stor-layout.c (layout_decl): Use fold_convert, not convert.
5317 (bit_from_pos): Likewise.
5318 (byte_from_pos): Likewise.
5319 (pos_from_bit): Likewise.
5320 (normalize_offset): Likewise.
5321 (place_field): Likewise.
5322 (finalize_type_size): Likewise.
5323 (layout_type): Likewise.
5324 * tree.c (build_index_type): Likewise.
5325
5326 2004-09-27 Devang Patel <dpatel@apple.com>
5327
5328 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
5329 * genopinit.c (optabs): New entry for vcond_gen_code and
5330 vcondu_gen_code.
5331 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
5332 (get_rtx_code): New function.
5333 (vector_compare_rtx): New function.
5334 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
5335 (expand_vec_cond_expr_p): New function.
5336 (expand_vec_cond_expr): New function.
5337 (get_vcond_icode): New function.
5338 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
5339 (vcond_gen_code, vcondu_gen_code): Same.
5340
5341 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
5342
5343 * Makefile.in (STAGESTUFF): Split into ...
5344 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
5345 (mostlyclean): Update.
5346 (stage1-start, stage2-start, stage3-start, stage4-start,
5347 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
5348 Move the STAGEMOVESTUFF.
5349
5350 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
5351
5352 * system.h (getpagesize): Return 'int' instead of 'long'.
5353
5354 2004-09-27 Michael Matz <matz@suse.de>
5355
5356 PR bootstrap/17698
5357 PR bootstrap/17702
5358 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
5359 bmp_iter_and_init): Shift by bit_in_word.
5360
5361 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
5362
5363 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
5364 * configure.ac: Don't sinclude it here.
5365 * configure: Regenerate.
5366
5367 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
5368
5369 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
5370 Handle AND pattern
5371
5372 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
5373
5374 PR c/13804
5375 * c-typeck.c (build_component_ref): Name type involved in
5376 diagnostic for structure or union without a member of the given
5377 name.
5378
5379 2004-09-27 DJ Delorie <dj@redhat.com>
5380
5381 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
5382 .comm alignment is bytes, not bits.
5383
5384 2004-09-27 Devang Patel <dpatel@apple.com>
5385
5386 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
5387 (print_call_name): Do not print VEC_COND_EXPR.
5388
5389 2004-09-27 Devang Patel <dpatel@apple.com>
5390
5391 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
5392
5393 2004-09-27 Jan Hubicka <jh@suse.cz>
5394
5395 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
5396
5397 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
5398
5399 * bitmap.h: Fix a comment typo.
5400
5401 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
5402
5403 * libgcc2.c (getpagesize): Change type of return value to int.
5404
5405 2004-09-26 Matt Austern <austern@apple.com>
5406
5407 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
5408 using mmap.
5409
5410 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5411
5412 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
5413 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
5414 (bitmap_iterator): New type.
5415 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
5416 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
5417 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
5418 bmp_iter_and_init, bmp_iter_and_next): New functions.
5419 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
5420 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
5421 use iterator-style EXECUTE_IF_IN_BITMAP macros.
5422 * bitmap.c (bitmap_print): Ditto.
5423 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
5424 btr_def_live_range): Ditto.
5425 * cfganal.c (compute_dominance_frontiers_1) Ditto.
5426 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
5427 Ditto.
5428 * ddg.c (build_inter_loop_deps): Ditto.
5429 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
5430 Ditto.
5431 * except.c (remove_eh_handler): Ditto.
5432 * flow.c (reg_set_to_hard_reg_set): Ditto.
5433 * gcse.c (clear_modify_mem_tables): Ditto.
5434 * global.c (build_insn_chain): Ditto.
5435 * ifcvt.c (dead_or_predicable): Ditto.
5436 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
5437 Ditto.
5438 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
5439 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
5440 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
5441 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
5442 tree_purge_all_dead_eh_edges): Ditto.
5443 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
5444 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
5445 rewrite_ssa_into_ssa): Ditto.
5446 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
5447 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
5448 Ditto.
5449 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
5450 compute_flow_sensitive_aliasing, maybe_create_global_var,
5451 dump_points_to_info_for): Ditto.
5452 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
5453 * tree-ssa-dse.c (dse_finalize_block): Ditto.
5454 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
5455 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
5456 Ditto.
5457 * tree-ssa-loop-ivopts.c (find_induction_variables,
5458 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
5459 determine_use_iv_costs, determine_set_costs, find_best_candidate,
5460 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
5461 Ditto.
5462 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
5463 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
5464 add_call_read_ops): Ditto.
5465 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
5466
5467 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5468
5469 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
5470 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
5471
5472 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
5473
5474 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
5475 reflect size of memory regions being compared.
5476
5477 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
5478
5479 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
5480 expressions. Always clear MEM_SIZE and alias set.
5481
5482 2004-09-26 Roger Sayle <roger@eyesopen.com>
5483 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5484
5485 PR middle-end/17112
5486 * stor-layout.c (compute_record_mode): For records with a single
5487 field, only use the field's mode if its size matches what we'd
5488 have choosen for the record ourselves. This forces the use of
5489 BLKmode for packed records that don't completely fill a mode.
5490
5491 2004-09-26 Roger Sayle <roger@eyesopen.com>
5492
5493 PR middle-end/17151
5494 * combine.c (force_to_mode): Remove dubious early return test that
5495 inhibits further optimization.
5496
5497 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
5498
5499 * profile.c: Fix a comment typo.
5500
5501 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5502
5503 PR bootstrap/17591
5504 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
5505 with varying offset.
5506 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
5507 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
5508 ARRAY_REFS.
5509 (expr_invariant_in_loop_p): New function.
5510 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
5511 component_ref_field_offset for COMPONENT_REFs. Do not allow
5512 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
5513 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
5514 MISALIGNED_INDIRECT_REFs.
5515 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
5516 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
5517 MISALIGNED_INDIRECT_REFs.
5518
5519 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
5520
5521 PR c/11459
5522 * gcc.c (cpp_options, cc1_options): Preserve relative order of
5523 -std and -ansi options.
5524
5525 2004-09-26 Jan Hubicka <jh@suse.cz>
5526
5527 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
5528 for nested functions whose proper parent has not been output.
5529
5530 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
5531 when re-constructing profile previously invalidated by loop.
5532
5533 2004-09-25 Dale Johannesen <dalej@apple.com>
5534
5535 * tree-gimple.c: Move GIMPLE definition...
5536 * doc/tree-ssa.texi: here.
5537
5538 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
5539
5540 * tree-vectorizer.c: Fix a comment typo.
5541
5542 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
5543
5544 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
5545 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
5546 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
5547 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
5548
5549 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
5550
5551 * tree-ssa-loop-unswitch.c: Fix a comment typo.
5552
5553 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
5554
5555 * doc/passes.texi: Fix a typo.
5556
5557 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5558
5559 * tree-optimize.c (init_tree_optimization_passes): Add
5560 pass_record_bounds.
5561 * tree-pass.h (pass_record_bounds): Declare.
5562 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
5563 New pass.
5564
5565 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5566
5567 PR tree-optimization/17474
5568 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
5569 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
5570
5571 2004-09-25 Jan Hubicka <jh@suse.cz>
5572
5573 * predict.c (counts_to_freqs): Make global.
5574 * predict.h (counts_to_freqa): Declare.
5575 * profile.c (compute_branch_probabilities): Compute frequencies
5576 * tree-profile.c (do_tree_profiling): Refine conditional on when
5577 tree profiling pass is needed.
5578
5579 * passes.c (rest_of_handle_cfg): Disable const/pure function
5580 detection when doing tree based profiling.
5581
5582 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
5583 conditional.
5584
5585 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
5586
5587 * config/mips/mips.h (struct mips_args): Clarify comments.
5588 * config/mips/mips.c (struct mips_arg_info): Likewise.
5589 (mips_arg_info): Don't allow fpr_p to affect the register or
5590 stack alignment. Remove o64 silliness.
5591 (function_arg): Deal with the o32 float,float case specially.
5592
5593 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
5594
5595 * config/mips/mips.md (loadx, storex): Define for V2SF.
5596
5597 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
5598
5599 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
5600 * config/s390/s390.c (s390_back_chain_rtx): New function.
5601 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
5602 Call anti_adjust_stack.
5603 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
5604 only if compiling with back chain.
5605 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
5606 back chain only if back chain enabled. Use s390_back_chain_rtx.
5607
5608 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
5609
5610 * doc/trouble.texi: Remove obsolete information. Update
5611 information on how to regenerate fixincluded headers.
5612
5613 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
5614
5615 PR c/12951
5616 * doc/invoke.texi: Document that
5617 -Wno-error-implicit-function-declaration is not accepted.
5618
5619 2004-09-24 Richard Henderson <rth@redhat.com>
5620
5621 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
5622 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
5623 on TARGET_MAX.
5624 (alpha_expand_mov): Allow unaligned vectors.
5625 (alpha_expand_unaligned_store): Use CONST0_RTX.
5626 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
5627
5628 2004-09-24 Jeff Law <law@redhat.com>
5629
5630 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
5631 aliasing rules.
5632 (simplify_cond_and_lookup_avail_expr): Likewise.
5633
5634 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
5635
5636 PR c/12802
5637 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
5638 title. Document interaction with -fms-extensions.
5639 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
5640 section.
5641
5642 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
5643
5644 PR c/12713
5645 * doc/extend.texi: Document interaction of attribute noreturn and
5646 longjmp.
5647
5648 2004-09-24 Richard Henderson <rth@redhat.com>
5649
5650 PR rtl-opt/17503
5651 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
5652 (som_hash, som_eq): New.
5653 (init_subregs_of_mode, record_subregs_of_mode): New.
5654 (cannot_change_mode_set_regs): Rewrite for htab implementation.
5655 (invalid_mode_change_p): Likewise.
5656 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
5657 * flow.c (mark_used_regs): Likewise.
5658 (life_analysis): Use init_subregs_of_mode.
5659 * regs.h (subregs_of_mode): Remove.
5660 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
5661
5662 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
5663
5664 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
5665 type with the copy of the conditional.
5666
5667 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
5668
5669 PR tree-opt/16954
5670 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
5671 Prevent renaming if the aliasing sets of the type which the
5672 pointer points to are different.
5673
5674 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
5675
5676 PR c/17188
5677 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
5678 declarations of enumerators.
5679 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
5680 for redefinition. Check for nested redefinition.
5681 (finish_struct): Don't check for nested redefinition.
5682 (start_enum): Check for nested redefinition.
5683
5684 2004-09-24 Devang Patel <dpatel@apple.com>
5685
5686 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
5687 only when necesssary.
5688 (combine_blocks): Combine loop header and exit block.
5689
5690 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
5691
5692 * hooks.c (hook_tree_tree_bool_null): New.
5693 * hooks.h (hook_tree_tree_bool_null): Declare it.
5694 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
5695 * targhooks.c (default_fold_builtin): Remove.
5696 * targhooks.h (default_fold_builtin): Remove.
5697
5698 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5699
5700 PR rtl-optimization/17625
5701 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
5702
5703 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
5704
5705 PR tree-opt/17624
5706 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
5707 Reject if any of the operands occur in an abnormal PHI.
5708
5709 2004-09-24 Andreas Schwab <schwab@suse.de>
5710
5711 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
5712 rules.
5713
5714 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
5715
5716 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
5717 if the GNU assembler is used.
5718 (sparc-*-solaris2*): Likewise.
5719 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
5720 (dbxout_function_end): Protect N_ENSYM with it.
5721 (dbxout_begin_prologue): Protect N_BNSYM with it.
5722 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
5723 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
5724 * config/sparc/sol2-gas.h: New file.
5725
5726 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
5727
5728 PR bootstrap/17369
5729 * Makefile.in (@set_gcc_lib_path@): Added.
5730
5731 * configure.ac: Include ../config/gcc-lib-path.m4. Use
5732 TL_AC_GNU_MAKE_GCC_LIB_PATH.
5733 * configure: Regenerated.
5734
5735 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
5736
5737 PR c/6980
5738 * c-typeck.c (build_c_cast): Improve wording of
5739 -Wbad-function-cast diagnostic.
5740
5741 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
5742
5743 PR target/17626
5744 * config/cris/cris.md (moverside, movemside): Rename variable
5745 "reg" to "otherop". To generate canonical RTX, check that otherop
5746 isn't constant instead of checking that operand 1 is a register.
5747
5748 2004-09-23 Jakub Jelinek <jakub@redhat.com>
5749
5750 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
5751
5752 2004-09-23 Diego Novillo <dnovillo@redhat.com>
5753 Jakub Jelinek <jakub@redhat.com>
5754
5755 * tree-flow.h (find_new_referenced_vars): Add prototype.
5756 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
5757 Move to...
5758 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
5759 ... here.
5760 (mark_new_vars_to_rename): Walk through all operands.
5761 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
5762 (execute_fold_all_builtins): Use it.
5763 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
5764
5765 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
5766
5767 * gthr-tpf.h: New file.
5768 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
5769 * gthr.h: Use gthr-tpf.h on TPF OS.
5770
5771 2004-09-23 Jeff Law <law@redhat.com>
5772
5773 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
5774 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
5775 (substitute_and_fold): Likewise.
5776 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
5777 except invariants from SSA_NAME_VALUE.
5778 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
5779 and SET_SSA_NAME_EQUIV.
5780 (restore_vars_to_original_value, record_const_or_copy): Likewise.
5781 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
5782 (record_equality, cprop_into_successor_phis): Likewise.
5783 (record_equivalences_from_stmt, cprop_operand): Likewise.
5784 (lookup_avail_expr): Likewise.
5785 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
5786 from SSA_NAME_VALUE.
5787 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
5788 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
5789 annotation from the VALUE_HANDLE field.
5790
5791 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
5792
5793 PR c++/13989
5794 PR c++/9844
5795 * tree.c (reconstruct_complex_type): Remove extra "this".
5796 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
5797 Add V4SFmode to case statement.
5798
5799 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
5800
5801 PR c/16833
5802 * doc/extend.texi, doc/invoke.texi: Document interaction of
5803 -fno-builtin with format checks. Note that built-in functions
5804 have effects beyond generating code that avoids calls to those
5805 functions.
5806
5807 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
5808
5809 PR tree-optimization/17533
5810 * dominance.c (verify_dominators): Tolerate even more incorrect
5811 dominance data during error message printing.
5812 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
5813 and edges more correctly.
5814
5815 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
5816
5817 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
5818 New tree-codes.
5819 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
5820 MISALIGNED_INDIRECT_REF.
5821 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
5822 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
5823 Likewise.
5824 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
5825 (find_interesting_uses_address): Likewise.
5826 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
5827 (build_fold_addr_expr_with_type): Likewise.
5828 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
5829 * print-rtl.c (print_mem_expr): Likewise.
5830 * tree-dump.c (dequeue_and_dump): Likewise.
5831 * tree-eh.c (tree_could_trap_p): Likewise.
5832 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
5833 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
5834 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
5835 Likewise.
5836 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5837 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
5838 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
5839 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
5840 (add_address_candidates, rewrite_address_base): Likewise.
5841 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
5842 Likewise.
5843 * tree.c (staticp, build1_stat): Likewise.
5844
5845 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
5846 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
5847 * tree-ssa-operands.c (get_expr_operands): Likewise.
5848 * expr.c (expand_expr_real_1): Likewise.
5849
5850 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
5851 optabs.
5852 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
5853 for the new optabs.
5854 (expand_ternary_op): New function.
5855 * genopinit.c (optabs): Handle the new optabs.
5856 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
5857 (init_optabs): Initialize vec_realign_load_optab.
5858 (expand_ternary_op): New functions.
5859
5860 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
5861 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
5862 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
5863 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
5864 * target.h (struct vectorize): New member for struct gcc_target.
5865 (misaligned_mem_ok): New member for targetm.vectorize.
5866 (builtin_mask_for_load): Likewise.
5867 (builtin_mask_for_store): Likewise.
5868 * targethooks.c (default_vect_misaligned_mem_ok): New function.
5869 * targethooks.h (default_vect_misaligned_mem_ok): New function.
5870
5871 * config/rs6000/altivec.md (build_vector_mask_for_load): New
5872 define_expand.
5873 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
5874 (vec_realign_load_v16qi): New define_insn.
5875 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
5876 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
5877 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
5878 (altivec_builtin_mask_for_store): New variables.
5879 (rs6000_builtin_mask_for_load): New function. Implements
5880 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
5881 (rs6000_builtin_mask_for_store): New function. Implements
5882 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
5883 (rs6000_expand_builtin): Expand the target builtins
5884 builtin_mask_for_load and builtin_mask_for_store.
5885 (altivec_init_builtins): Initialize the new target builtins.
5886 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
5887 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
5888
5889 * tree-vectorizer.c (vect_create_data_ref): Renamed to
5890 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
5891 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
5892 (vectorizable_store): Call vect_create_data_ref_ptr with additional
5893 arguments, and create an indirect_ref with its return value data_ref.
5894 Check aligned_access_p.
5895 (vectorizable_load): Handle misaligned loads, using software-pipelined
5896 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
5897 vec_realign_load_optab is supported, or using a scheme without
5898 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
5899 misaligned_mem_ok is supported.
5900
5901 (vect_finish_stmt_generation): Typo.
5902 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
5903 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
5904 presence of misaligned loads.
5905 (vect_analyze_data_ref_access): Add check for constant init.
5906 (vect_get_symbl_and_dr): Remove duplicate line.
5907 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
5908
5909 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
5910
5911 * builtins.c: Fix a comment typo.
5912
5913 2004-09-23 Jan Hubicka <jh@suse.cz>
5914
5915 * profile.c (branch_prob): Do not verify flow info in the middle of the
5916 pass.
5917
5918 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5919
5920 * cfgloop.h (update_single_exits_after_duplication): Declare.
5921 (loopify, split_loop_bb): Declaration changed.
5922 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
5923 of rtx.
5924 (loopify): Added redirect_all_edges argument.
5925 (update_single_exits_after_duplication): Export.
5926 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
5927 * tree-flow.h (tree_duplicate_loop_to_header_edge,
5928 tree_ssa_loop_version): Declare.
5929 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
5930 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
5931 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
5932 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
5933
5934 * tree-ssa-loop-unswitch.c: New file.
5935 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
5936 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
5937 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
5938 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
5939 * tree-pass.h (pass_unswitch): Declare.
5940 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
5941 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
5942 * doc/passes.texi: Documen tree level loop unswitching.
5943
5944 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
5945
5946 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
5947
5948 2004-09-22 Eric Christopher <echristo@redhat.com>
5949
5950 * builtins.c (simplify_builtin_va_start): Remove.
5951 (simplify_builtin): Ditto.
5952 (fold_builtin_strchr): Ditto.
5953 (simplify_builtin_*): Rename remainders to fold_builtin_*.
5954 (expand_builtin): Fix up for above changes.
5955 (fold_builtin_1): Add new folders. Change for above.
5956 (expand_builtin_va_start): Call fold_builtin_next_arg.
5957 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
5958 * tree.h: Remove prototype for simplify_builtin.
5959
5960 2004-09-23 Jan Hubicka <jh@suse.cz>
5961
5962 PR debug/17389
5963 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
5964 of fully inlined functions.
5965 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
5966 inlined.
5967
5968 * cfgexpand.c (add_reg_br_prob_note): New function.
5969 (expand_gimple_cond_expr): Use it.
5970 (tree_expand_cfg): No longer kill the profile.
5971 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
5972 only if it is present.
5973 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
5974 * predict.c (combine_predictions_for_insn): Set the probabilities
5975 based on REG_BR_PROB note if present.
5976 * predict.c (branch_prob): Profile is read only with
5977 flag_branch_probabilities.
5978
5979 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
5980
5981 * aclocal.m4: Add in gettext's m4 includes.
5982 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
5983 * configure.ac: Add in check for iconv.h
5984 * configure: Regenerate.
5985
5986 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
5987
5988 * aclocal.m4: Update for rename of gettext-sister.m4.
5989
5990 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
5991
5992 Fix PR tree-optimization/17587
5993 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
5994 (insert_aux): Instead of here.
5995
5996 2004-09-22 Diego Novillo <dnovillo@redhat.com>
5997
5998 PR tree-optimization/16721
5999 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
6000 * tree-ssa-alias.c (create_memory_tag): Move setting of
6001 TREE_THIS_VOLATILE ...
6002 (get_tmt_for): ... here.
6003
6004 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6005
6006 * config/sparc/sparc.md (cmove splitter): Fix formatting.
6007 (conditional_trap expander): Reject inappropriate CCmodes.
6008 (conditional trap insn): Use V9 syntax if possible.
6009
6010 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
6011
6012 PR c/16566
6013 * c-typeck.c (build_component_ref): Don't special-case
6014 COMPOUND_EXPR.
6015
6016 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
6017
6018 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
6019 returns NULL.
6020
6021 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
6022
6023 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
6024 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
6025 TRUTH_XOR_EXPR): Mention the restriction on types.
6026
6027 2004-09-22 Matt Austern <austern@apple.com>
6028
6029 * config/darwin.c (darwin_make_decl_one_only):
6030 Allow coalesced symbol to appear in static archive's table of contents
6031
6032 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
6033
6034 PR tree-optimization/17512
6035 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
6036 special cases.
6037
6038 2004-09-22 David Edelsohn <edelsohn@gnu.org>
6039
6040 * dbxout.c (get_lang_number): Do not define if
6041 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
6042
6043 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6044
6045 PR target/15583
6046 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
6047 builtin_define ("__USE_INIT_FINI__").
6048
6049 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
6050
6051 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
6052 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
6053 * config/s390/s390.h (TARGET_TPF): New macro.
6054 * config/s390/s390.md ("eh_return"): New expander.
6055 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
6056 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
6057 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
6058 * config/s390/tpf.h (TARGET_TPF): Define to 1.
6059 (STACK_POINTER_OFFSET): Increase to 448.
6060 (TARGET_DEFAULT): Set -mtpf-trace on as default.
6061 (TPF_LOC_DIFF_OFFSET): New macro.
6062 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
6063 encoding.
6064 (__isPATrange): Add prototype.
6065 (MD_FALLBACK_FRAME_STATE_FOR): Define.
6066 * config/s390/tpf-eh.c: New file.
6067
6068 2004-09-22 Diego Novillo <dnovillo@redhat.com>
6069
6070 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
6071 operands in an integer comparison.
6072 * tree-cfg.c (find_taken_edge): Call fold() to determine
6073 whether the predicate is known.
6074
6075 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
6076
6077 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
6078 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
6079 Create build and doc directories along with the language directories.
6080 Don't create doc directory separately.
6081 * configure: Regenerate.
6082 * Makefile.in: Create all object and executables files built
6083 with the build compiler in a build/ directory.
6084 (genobjnames): Add missing build objects.
6085 (STAGESTUFF): Don't stage the gen* programs.
6086 (ggc-none.o): Define dependencies for the target compiler.
6087 (build-print-rtl.o): Rename to build/print-rtl.o.
6088 (build-errors.o): Rename to build/errors.o.
6089 (build-varray.o): Rename to build/varray.o.
6090 (maintainerclean): Delete the contents of the build directory.
6091 ($(genobjs): %.o): Explicitly use -o.
6092 (build/insn-conditions.o): Delete specfic rule to use generic rule.
6093 (build/gengtype-lex.o): Likewise.
6094 (build/gengtype-yacc.o): Likewise.
6095 (build/gcov-iov.o): Likewise.
6096
6097 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
6098
6099 * vec.h (VEC_space): Return true if there _is_ space.
6100 (VEC_reserve): Adjust.
6101
6102 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
6103
6104 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
6105 use FPRs for scalar, complex and vector types only.
6106
6107 2004-09-21 Jeff Law <law@redhat.com>
6108
6109 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
6110 the opt_stats_d structure.
6111 (vrp_data): Change from a varray into a hash table.
6112 (vrp_hash_elt): New structure for elements in the vrp hash table.
6113 (vrp_hash, vrp_eq):New functions for hashing and testing equality
6114 in the vrp hash table.
6115 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
6116 initialization slightly to make it easier to read. No longer need
6117 to grow/clear the varray. Instead empty and delete the hash table.
6118 (dom_opt_finalize_block): Update due to change of VRP_DATA from
6119 a varray to a hash table.
6120 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
6121
6122 * tree-ssa-ccp.c (get_default_value): If we have a constant
6123 value recorded for an SSA_NAME, then use that constant as
6124 the initial lattice value.
6125 (substitute_and_fold): Transfer equivalences discovered into
6126 SSA_NAME_EQUIV.
6127
6128 * tree.h (SSA_NAME_EQUIV): Add comments.
6129 (SET_SSA_NAME_EQUIV): Similarly.
6130
6131 2004-09-21 David Edelsohn <edelsohn@gnu.org>
6132
6133 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
6134
6135 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
6136
6137 2004-09-21 Mark Mitchell <mark@codesourcery.com>
6138
6139 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
6140 (finish_decl): Likewise.
6141
6142 2004-09-21 Devang Patel <dpatel@apple.com>
6143
6144 * tree.def (VEC_COND_EXPR): New tree node.
6145 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
6146
6147 2004-09-21 Stan Shebs <shebs@apple.com>
6148
6149 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
6150 * config/rs6000/darwin-world.asm: Likewise.
6151
6152 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
6153
6154 * tree-ssa.c (verify_def): Use print_generic_stmt,
6155 not debug_generic_stmt.
6156 (verify_use): Ditto.
6157 (verify_phi_args): Ditto.
6158 (verify_ssa): Ditto.
6159
6160 2004-09-21 Paul Brook <paul@codesourcery.com>
6161
6162 * varasm.c (default_assemble_integer): Return false for values wider
6163 than the target word size. Works around GAS bug.
6164
6165 2004-09-21 Zack Weinberg <zack@codesourcery.com>
6166
6167 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
6168 gets value 0.
6169 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
6170 if it has value 0.
6171
6172 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
6173
6174 * c-typeck.c (build_function_call): Give name of object
6175 we are attempting to call in error message.
6176 * c-objc-common.c (c_tree_printer): Call pp_expression,
6177 not return false, for 'E' case.
6178
6179 2004-09-21 Steven Bosscher <stevenb@suse.de>
6180
6181 PR rtl-optimization/17482
6182 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
6183 load_killed_in_block_p): Clarify comments.
6184 (record_last_reg_set_info): Make static inline.
6185 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
6186 (record_opr_changes): New function to replace the above.
6187 (compute_hash_table): Clarify comments. Use record_opr_changes.
6188 (reg_set_between_after_reload_p): Clean up.
6189 (reg_used_between_after_reload_p): Likewise.
6190 (eliminate_partially_redundant_load): Clarify comments.
6191
6192 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
6193
6194 PR rtl-optimization/17266
6195 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
6196
6197 2004-09-21 Uros Bizjak <uros@kss-loka.si>
6198
6199 PR rtl-optimization/14851
6200 * rtlanal.c (commutative_operand_precedence): Calculate
6201 precedence of stripped constant.
6202
6203 2004-09-20 Jeff Law <law@redhat.com>
6204 Jan Hubicka <jh@suse.cz>
6205
6206 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
6207 initialize key elements here.
6208 (release_ssa_name): Zero the released SSA_NAME here.
6209 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
6210 (struct tree_ssa_name): Add new "equiv" field.
6211 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
6212 (tree_ssa_dominator_optimize): No longer allocate, resize or
6213 clear CONST_AND_COPIES.
6214 (get_value_for, set_value_for): Kill.
6215 (thread_across_edge): Get/set the equivalency using
6216 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
6217 (restore_vars_to_original_value): Likewise.
6218 (record_equivalences_from_phis): Likewise.
6219 (record_dominating_conditions): Likewise.
6220 (record_const_or_copy, record_equality): Likewise.
6221 (lookup_avail_expr): Likewise.
6222 (record_equivalences_from_stmt, cprop_operand): Likewise.
6223 (cprop_into_successor_phis): No longer need to pass around
6224 CONST_AND_COPIES. Callers updated. Get equivalences via
6225 SSA_NAME_EQUIV.
6226 (cprop_into_phis): Likewise.
6227
6228 2004-09-20 Matt Austern <austern@apple.com>
6229 Zack Weinberg <zack@codesourcery.com>
6230
6231 * c-common.c (fix_string_type): Build the unqualified array
6232 type unconditionally, then use c_build_qualified_type to get
6233 the proper const-qualified variant, and set its
6234 TYPE_MAIN_VARIANT to refer to the unqualified type.
6235 * c-lex.c (c_lex_return_raw_string): New global.
6236 (c_lex_with_flags): Honor it.
6237 * c-pragma.h: Declare it.
6238
6239 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
6240
6241 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
6242
6243 2004-09-21 Jan Hubicka <jh@suse.cz>
6244
6245 PR middle-end/17126
6246 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
6247 (tree_rest_of_compilation): Cleanup.
6248
6249 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
6250
6251 * config/s390/s390.c (s390_select_rtx_section): Remove.
6252 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
6253
6254 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
6255
6256 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
6257 note to pretend a direct save from the original register when an
6258 intermediate register is used for the save.
6259
6260 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6261
6262 * tsystem.h (alloca): Provide a default definition.
6263
6264 Revert:
6265 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6266 * unwind-dw2.c: Call __builtin_alloca, not alloca.
6267
6268 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
6269
6270 PR tree-opt/17558
6271 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
6272 aliasing sets are the same rather than just conflicting.
6273
6274 2004-09-20 Jan Hubicka <jh@suse.cz>
6275
6276 PR middle-end/16460
6277
6278 * cgraph.c (cgraph_unnest_node): New function.
6279 (c_finalize): Rename to ....
6280 (c_warn_unused_result_recursivly): ... this one; do only the warning
6281 (finish_function): Finalize the toplevel function; do not lower nested tree.
6282 * cgraph.h (cgraph_unnest_node): Declare.
6283 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
6284 nestedness datastructure.
6285 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
6286 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
6287 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
6288
6289 2004-09-20 Richard Henderson <rth@redhat.com>
6290
6291 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
6292 from some_small_symbolic_operand_1; export.
6293 (some_small_symbolic_operand): Remove.
6294 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
6295 extra C check.
6296 * config/alpha/predicates.md (some_small_symbolic_operand): New.
6297
6298 2004-09-20 Jan Hubicka <jh@suse.cz>
6299
6300 * predict.c (return_prediction): New function.
6301 (apply_return_prediction): Likewise.
6302 (tree_bb_level_predictions): Likewise.
6303 (tree_estimate_probability): Add noreturn exit edges; call
6304 bb_level_predictions; fix logic of return heuristics.
6305 (predict_paths_leading_to): Rescuesce from old CVS version of
6306 process_note_prediction function.
6307 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
6308
6309 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
6310
6311 * config/s390/s390.c (s390_frame_info): Added alignment statement for
6312 floating point register area on stack.
6313
6314 2004-09-20 Jakub Jelinek <jakub@redhat.com>
6315
6316 * predict.c (expr_expected_value): Use *_CLASS_P macros.
6317
6318 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
6319
6320 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
6321 generating useless garbage.
6322
6323 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
6324
6325 * builtins.c (fold_builtin): Call the new omonymous
6326 target hook for machine-dependent built-ins.
6327 * target-def.h (TARGET_FOLD_BUILTIN): New.
6328 * target.h (struct gcc_target): Add the fold_builtin hook.
6329 * targhooks.c (default_fold_builtin): New.
6330 * targhooks.h (default_fold_builtin): Declare it.
6331
6332 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
6333
6334 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
6335 comment typos.
6336
6337 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
6338
6339 PR target/17565
6340 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
6341
6342 2004-09-20 Jan Hubicka <jh@suse.cz>
6343
6344 * predict.c (estimate_probability): Remove unnecesary code.
6345
6346 2004-09-19 Ira Rosen <irar@il.ibm.com>
6347
6348 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
6349 (STMT_VINFO_VECT_DR_BASE): Declare.
6350 (VECT_SMODULO): Declare.
6351 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
6352 (vect_compute_array_base_alignment): New function.
6353 (vect_analyze_data_ref_access): Check array indices. Remove one
6354 dimensional arrays restriction.
6355 (vect_get_ptr_offset): New function.
6356 (vect_get_symbl_and_dr): New function.
6357 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
6358 (former name vect_get_base_decl_and_bit_offset).
6359 (vect_create_index_for_array_ref): Removed.
6360 (vect_create_index_for_vector_ref): New function.
6361 (vect_create_addr_base_for_vector_ref): New function.
6362 (vect_create_data_ref): Handle additional data refs. Call
6363 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
6364 (vect_compute_data_ref_alignment): Support the changes. Call
6365 vect_get_base_and_bit_offset.
6366 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
6367 data refs. Store vect_dr_base.
6368 (vect_analyze_data_ref_accesses): Support nonconstant init.
6369 (new_stmt_vec_info): Initialize vect_dr_base field.
6370 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
6371 (get_vectype_for_scalar_type): Check for BLKmode.
6372 * tree-chrec.h (initial_condition_in_loop_num): Declare.
6373 * tree-chrec.c (initial_condition_in_loop_num): New function.
6374 (chrec_component_in_loop_num): New function.
6375 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
6376 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
6377 to be pointer to varray_type.
6378
6379 2004-09-19 Jan Hubicka <jh@suse.cz>
6380
6381 * basic-block.h (update_bb_profile_after_threading): Declare.
6382 * cfg.c (update_bb_profile_after_threading): Break out from ...
6383 * cfgcleanup.c (try_forward_edges): ... here; use it.
6384 * tree-ssa-dom.c (thread_across_edge): Use it.
6385 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
6386 profile of the new BB.
6387
6388 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
6389
6390 * tree-ssa-pre.c (insert_into_set): Don't put
6391 is_gimple_min_invariant values into the set.
6392
6393 2004-09-19 Andreas Jaeger <aj@suse.de>
6394
6395 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
6396 prototype.
6397
6398 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
6399
6400 * config/cris/cris.h: Preserve the original spelling in a
6401 quote.
6402
6403 2004-09-18 Jeff Law <law@redhat.com>
6404
6405 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
6406 global varrays to replace the block local varrays.
6407 (struct dom_walk_block_data): Remove, no longer used.
6408 (get_eq_expr_value): No longer need to pass around pointers to local
6409 varrays. Callers updated. Unused markers added to unused parameters.
6410 (record_range, record_equivalences_from_stmt): Likewise.
6411 (record_equivalences_from_incoming_edge): Likewise.
6412 (record_var_is_nonzero): Likewise. Update now that we have a
6413 single global varray of SSA_NAMEs that need restoring.
6414 (dom_opt_initialize_block_local_data): Kill, no longer used.
6415 (tree_ssa_dominator_optimize): Initialize new global varrays.
6416 Update callbacks in dominator walker structure.
6417 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
6418 VRP_VARIABLES_STACK.
6419 (restore_nonzero_vars_to_original_value): Update now that we have
6420 a single global varray of SSA_NAMEs that need restoring.
6421 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
6422 Remove unused variables.
6423 (optimize_stmt): Remove unused variable.
6424
6425 2004-09-18 Jan Hubicka <jh@suse.cz>
6426
6427 * tree-cfg.c (thread_jumps): Fix updating of the profile.
6428
6429 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
6430 verify_cgraph call.
6431
6432 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
6433
6434 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
6435 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
6436 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
6437 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
6438 tree-ssa-operands.c, tree-ssa-phiopt.c,
6439 tree-ssa-threadupdate.c: Fix comment typos.
6440
6441 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
6442
6443 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
6444 config/arm/README-interworking, config/arm/arm-cores.def,
6445 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
6446 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
6447 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
6448 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
6449 config/frv/frv.md, config/i386/winnt.c,
6450 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
6451 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
6452 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
6453 config/mcore/mcore.c, config/mips/mips.h,
6454 config/mn10300/mn10300.md, config/pa/pa.c,
6455 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
6456 config/rs6000/rs6000.c, config/sh/symbian.c,
6457 config/sparc/sparc.h: Fix comment typos. Follow spelling
6458 conventions.
6459
6460 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
6461
6462 PR c/17424
6463 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
6464
6465 2004-09-18 Diego Novillo <dnovillo@redhat.com>
6466
6467 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
6468 remove TREE_ADDRESSABLE from RESULT_DECL.
6469
6470 2004-09-18 Diego Novillo <dnovillo@redhat.com>
6471
6472 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
6473
6474 2004-09-18 Jan Hubicka <jh@suse.cz>
6475
6476 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
6477 NULL.
6478 * tree-ssa-alias.c (init_alias_info): Likewise.
6479 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
6480 (verify_ssa): Likewise.
6481 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
6482
6483 2004-09-18 Jan Hubicka <jh@suse.cz>
6484
6485 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
6486 huge offset.
6487
6488 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
6489
6490 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
6491 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
6492 DW_EH_PE_sdata* for data.
6493 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6494
6495 2004-09-17 Geoffrey Keating <geoffk@apple.com>
6496
6497 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
6498 shared anyway.
6499
6500 PR pch/13361
6501 * c-typeck.c (constructor_asmspec): Delete.
6502 (struct initializer_stack): Delete field 'asmspec'.
6503 (start_init): Delete saving of asmspec.
6504 (finish_init): Don't update constructor_asmspec.
6505 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
6506 * stmt.c (expand_asm): Duplicate strings from tree.
6507 (expand_asm_operands): Likewise.
6508 * tree.c (tree_size): Update computation of size of STRING_CST.
6509 (make_node): Don't make STRING_CST nodes.
6510 (build_string): Allocate string with tree node.
6511 (tree_code_size): Clean up assertions, don't allow requests
6512 for "the size of a STRING_CST".
6513 * tree.def (STRING_CST): Update comment.
6514 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
6515 (tree_string): Place contents of string in tree node.
6516 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
6517 from tree.
6518
6519 2004-09-17 Zack Weinberg <zack@codesourcery.com>
6520
6521 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
6522 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
6523
6524 2004-09-17 Jones Desougi <jones@ingate.com>
6525
6526 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
6527 * configure, config.in: Regenerate.
6528
6529 2004-09-17 Zack Weinberg <zack@codesourcery.com>
6530
6531 * tree.c, tree.h (tree_class_strings): Make array const.
6532 Reindent per coding convention. Move asterisk to proper place
6533 per coding convention.
6534
6535 2004-09-18 Andreas Schwab <schwab@suse.de>
6536
6537 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
6538 (tree-vectorizer.o): Likewise.
6539 (targhooks.o): Likewise.
6540
6541 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
6542 Zack Weinberg <zack@codesourcery.com>
6543
6544 * alias.c (find_base_decl): Remove unreachable case '3' block.
6545 * expr.c (safe_from_p): Abort if passed a type.
6546 * tree-gimple.c (recalculate_side_effects): Abort if passed
6547 anything other than an expression.
6548 * tree-ssa-pre.c (phi_translate): Return expr immediately if
6549 is_gimple_min_invariant is true for it. Reorder cases for clarity.
6550 Abort on un-handled tree classes.
6551 (valid_in_set): Likewise.
6552 * tree.c (tree_code_class_strings): New static data.
6553
6554 * tree.h (enum tree_code_class): New.
6555 (tree_code_class_strings): Declare.
6556 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
6557 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
6558 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
6559 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
6560 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
6561
6562 * tree.def, c-common.def, objc/objc-tree.def: Use
6563 tree_code_class enumeration constants instead of code letters.
6564
6565 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
6566 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
6567 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
6568 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
6569 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
6570 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
6571 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
6572 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
6573 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
6574 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
6575 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
6576 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
6577 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
6578 Update to match.
6579
6580 * LANGUAGES: Add note about change.
6581
6582 2004-09-17 Diego Novillo <dnovillo@redhat.com>
6583
6584 PR tree-optimization/17319
6585 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
6586 examine pointers on the LHS of an assignment.
6587 (collect_points_to_info_r): Handle RETURN_EXPR.
6588
6589 2004-09-17 Jeff Law <law@redhat.com>
6590
6591 * tree-ssa-dom.c (const_and_copies_stack): New.
6592 (dom_walk_block_data): Remove const_and_copies field.
6593 (record_const_or_copy): No longer need to pass in varray_type *.
6594 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
6595 Callers updated.
6596 (record_equality): Similarly.
6597 (restore_vars_to_original_value): Similarly. Revamp to use new
6598 single global stack rather than per-block stacks.
6599 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
6600 (thread_across_edge): Remove now unused parameters.
6601 (dom_opt_initialize_block_local_data): No longer test the block
6602 local CONST_AND_COPIES.
6603 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
6604
6605 2004-09-17 Jan Hubicka <jh@suse.cz>
6606
6607 PR tree-optimization/17509
6608 * tree-optimize.c (update_inlined_to_pointers): New function.
6609 (tree_rest_of_compilation): Use it.
6610
6611 2004-09-17 Devang Patel <dpatel@apple.com>
6612
6613 * dbxout.c (get_lang_number): New.
6614 (dbxout_init): Include lang number in N_SO stab.
6615 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
6616 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
6617
6618 2004-09-17 Diego Novillo <dnovillo@redhat.com>
6619
6620 PR tree-optimization/17273
6621 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
6622 replacement is a constant.
6623
6624 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
6625
6626 * c-tree.h (enum c_typespec_keyword): New.
6627 (struct c_declspecs): Adjust description of "type". Remove
6628 specbits, explicit_int_p and explicit_char_p. Rename
6629 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
6630 short_p, signed_p, unsigned_p and complex_p.
6631 (finish_declspecs): New.
6632 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
6633 typename): Call finish_declspecs.
6634 * c-decl.c (finish_declspecs): New.
6635 (declspecs_add_type): Check for combinations which cannot occur in
6636 valid specifier lists. Update comments.
6637 (shadow_tag_warned): Remove checks done in finish_declspecs.
6638 Don't report useless type name if type defaulted to int.
6639 (grokdeclarator): Remove checks and actions done in
6640 finish_declspecs. Don't allow for type being NULL. Update for
6641 datastructures changes. Initialize decl_attr.
6642 (build_null_declspecs, quals_from_declspecs): Update for
6643 datastructures changes.
6644
6645 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
6646
6647 * doc/extend.texi: Fix duplicated word.
6648
6649 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
6650
6651 * doc/invoke.texi: Remove stray explanation on
6652 -freduce-all-givs and -fmove-all-movables.
6653
6654 2004-09-17 James Morrison <phython@gcc.gnu.org>
6655
6656 * doc/cfg.texi: Use @smallexample.
6657 * doc/md.texi: Likewise.
6658 * doc/tree-ssa.texi: Likewise.
6659 * doc/extend.texi: Likewise. Use @r{} in comments.
6660 * doc/trouble.texi: Use @r{} in comments.
6661
6662 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
6663
6664 * configure.ac (gcc_cv_gld_version): Handle whitespace before
6665 "VERSION=".
6666 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
6667 * configure: Regenerate.
6668
6669 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
6670
6671 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
6672 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
6673 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
6674 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
6675 slashes in substitutions.
6676 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
6677
6678 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
6679
6680 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
6681 gimplify.c, lambda-code.c, optabs.c, predict.c,
6682 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
6683 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
6684 conventions.
6685
6686 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
6687
6688 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
6689 doc/extend.texi, doc/install.texi, doc/invoke.texi,
6690 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
6691 doc/trouble.texi: Use @option around options.
6692
6693 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
6694
6695 * Makefile.in (gen-protos.o): Depend on errors.h.
6696
6697 2004-09-17 Steven Bosscher <stevenb@suse.de>
6698
6699 PR tree-optimization/17513
6700 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
6701 for successors of the entry block.
6702
6703 2004-09-17 Uros Bizjak <uros@kss-loka.si>
6704
6705 PR rtl-optimization/15187
6706 * ifcvt.c (noce_try_cmove_arith): Exit early if total
6707 insn_rtx_cost of both branches > BRANCH_COST
6708
6709 2004-09-16 Diego Novillo <dnovillo@redhat.com>
6710
6711 PR tree-optimization/17528
6712 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
6713 erase the may-alias set for a tag when merging it with
6714 another.
6715
6716 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
6717
6718 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
6719 for 32-bit TARGET_SHMEDIA.
6720 (call_value): Likewise.
6721
6722 2004-09-16 Diego Novillo <dnovillo@redhat.com>
6723
6724 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
6725 test apply only to TREE_STATIC and DECL_EXTERNAL.
6726
6727 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6728
6729 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
6730 * basic-block.h (get_dominated_by_region): Declare.
6731 * dominance.c (get_dominated_by_region): New function.
6732 * tree-cfg.c: Include cfglayout.h.
6733 (tree_duplicate_bb): Duplicate also phi nodes.
6734 (struct ssa_name_map_entry): New type.
6735 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
6736 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
6737 allocate_ssa_names, rewrite_to_new_ssa_names_def,
6738 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
6739 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
6740 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
6741 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
6742 rewrite_to_new_ssa_names, allocate_ssa_names,
6743 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
6744 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
6745 (copy_loop_headers): Use tree_duplicate_sese_region.
6746
6747 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
6748
6749 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
6750
6751 2004-09-16 Jeff Law <law@redhat.com>
6752
6753 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
6754 (rewrite_block_data): Remove, no longer used.
6755 (rewrite_initialize_block_local_data): Remove, no longer used.
6756 (rewrite_initialize_block): Mark parameters as unused as needed.
6757 Change references to the block local block_defs to be block_defs_stack.
6758 Push a marker onto the block_defs_stack.
6759 (ssa_rewrite_initialize_block): Similarly.
6760 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
6761 (ssa_register_new_def): No longer needs varray argument. Use
6762 block_defs_stack instead. No longer handle possibly null block_defs
6763 varray. Reverse order of items we push on the stack to make it
6764 easier to identify our marker.
6765 (register_new_def): No longer handle possibly null block_defs
6766 varray.
6767 (rewrite_finalize_block): Revamp to look for markers in the global
6768 block_defs_stack varray rather than wiping a block local varray.
6769 Mark arguments as unused as needed.
6770 (ssa_rewrite_finalize_block): Similarly.
6771 (rewrite_into_ssa): Update initialization of dom walker structure
6772 to reflect that we don't need block local data anymore. Initialize
6773 the block_defs_stack varray.
6774 (rewrite_ssa_into_ssa): Similarly.
6775 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
6776 (struct dom_walk_data): Kill block_defs field.
6777 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
6778 (thread_across_edge): Use the global block_defs_stack instead of
6779 the old block_defs varray.
6780 (dom_opt_initialize_block_local_data): Update now that we don't have
6781 block_defs field to check anymore.
6782 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
6783 (restore_currdefs_to_original_value): Use the new block_defs_stack
6784 instead of a block local varray.
6785 (dom_opt_finalize_block): Similarly.
6786 (record_equivalencs_from_phis): Similarly.
6787 (optimize_stmt, register_definitions_for_stmt): Similarly.
6788
6789 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
6790
6791 PR tree-optimization/17517
6792 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6793 coalesce same-root variables without checking for abnormal PHI usage.
6794
6795 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
6796
6797 * cfgloop.h (duplicate_loop): Add prototype.
6798 * cfgloopmanip.c (duplicate_loop): Make non-static.
6799 * lambda-code.c (perfect_nestify): Factor out test whether
6800 we can handle this loop into separate function.
6801 Call it.
6802 (can_convert_to_perfect_nest): New function.
6803 (replace_uses_of_x_with_y): Add modify_stmt call.
6804 * tree-loop-linear.c (linear_transform_loops): Call
6805 rewrite_into_loop_closed_ssa and free_df.
6806
6807 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
6808
6809 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
6810 loop invariant as well.
6811 (perfect_nestify): new function.
6812 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
6813 upper bounds, and steps.
6814 Set outerinductionvar properly.
6815 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
6816 parameters.
6817 Return NULL if we need a perfect loop and can't make one.
6818 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
6819 (not_interesting_stmt): New function.
6820 (phi_loop_edge_uses_def): Ditto.
6821 (stmt_uses_phi_result): Ditto.
6822 (stmt_is_bumper_for_loop): Ditto.
6823 (perfect_nest_p): Ditto.
6824 (nestify_update_pending_stmts): Ditto.
6825 (replace_uses_of_x_with_y): Ditto.
6826 (stmt_uses_op): Ditto.
6827 (perfect_nestify): Ditto.
6828 * lambda-mat.c (lambda_matrix_id_p): New function.
6829 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
6830 * lambda.h: Update prototypes.
6831 * tree-loop-linear (linear_transform_loop): Use new
6832 perfect_nest_p. Detect and ignore identity transform.
6833 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
6834
6835 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
6836
6837 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
6838 Gather also strides of accessed data. Pass in the data references
6839 array.
6840 (try_interchange_loops): Add a new heuristic for handling the temporal
6841 locality. Pass in the data references array.
6842 (linear_transform_loops): Pass the data references array to
6843 try_interchange_loops.
6844
6845 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
6846
6847 * doc/invoke.texi: Fix typos. Follow spelling conventions.
6848
6849 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
6850
6851 * doc/c-tree.texi (Classes): Remove index entries for
6852 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
6853
6854 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6855
6856 * fold-const.c (fold): Fold difference of addresses.
6857 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
6858 get_inner_reference.
6859 * tree-ssa-loop-ivopts.c (peel_address): Removed.
6860 (ptr_difference_const): Moved to fold-const.c.
6861 (split_address_cost): Use get_inner_reference instead of peel_address.
6862 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
6863 * tree.h (ptr_difference_const): Export.
6864
6865 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
6866 variable type to the dump. Fix indentation.
6867 (idx_find_step): Handle nonconstant array_ref_element_size and
6868 array_ref_low_bound.
6869 (idx_record_use): Handle array_ref_element_size and
6870 array_ref_low_bound.
6871 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
6872 statements correctly.
6873 (get_computation_at, iv_value): Do not unshare expressions here.
6874 (rewrite_use_outer): Unshare the expression before it is emitted
6875 to code.
6876 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
6877 Moved to tree.c.
6878 * tree.c (unsigned_type_for, signed_type_for): Moved from
6879 tree-ssa-loop-niter.c. Use langhooks.
6880 * tree.h (signed_type_for): Export.
6881
6882 2004-09-16 David Edelsohn <edelsohn@gnu.org>
6883
6884 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
6885 prototype.
6886
6887 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
6888
6889 PR target/11572
6890 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
6891 Add two parameters to extra_includes.
6892 (C_INCPATH_INIT): Remove.
6893 * c-incpath.c (register_include_chains): Call extra_pre_includes
6894 before adding the standard include directory.
6895 Update call to extra_includes.
6896 (!defined TARGET_EXTRA_INCLUDES): Update
6897 hook_void_charptr_charptr_int and add !define
6898 TARGET_EXTRA_PRE_INCLUDES.
6899 (!define TARGET_EXTRA_INCLUDES): Define as
6900 hook_void_charptr_charptr_int.
6901 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
6902 (target_c_incpath): Always declare.
6903 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
6904 empty function.
6905 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
6906 * config/darwin.h: (darwin_register_frameworks): Update for
6907 the two new parameters.
6908 (darwin_register_objc_includes): Add prototype.
6909 (TARGET_EXTRA_PRE_INCLUDES): Define.
6910 * config/darwin-c.c (darwin_register_objc_includes): New function.
6911 (darwin_register_frameworks): Update for the two new parameters.
6912 (target_c_incpath): Remove.
6913 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
6914 the compile line.
6915 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
6916 parameters.
6917 (TARGET_EXTRA_PRE_INCLUDES): Document.
6918
6919 * gcc.c (spec_function): Add replace-outfile.
6920 (replace_outfile_spec_function): New function.
6921 * config/darwin.h (LINK_SPEC): Add replace
6922 -lobjc with -lobjc-gnu if -fgnu-runtime is
6923 supplied.
6924 * invoke.texi (replace-outfile): Document.
6925
6926 2004-09-13 Jan Hubicka <jh@suse.cz>
6927
6928 * predict.c (expr_expected_value, strip_builtin_expect): New function.
6929 (tree_predict_by_opcode): Use it.
6930 (tree_estimate_probability): Add, for now disabled,
6931 strip_builtin_expect call.
6932
6933 2004-09-15 James E Wilson <wilson@specifixinc.com>
6934
6935 PR target/17455
6936 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
6937 if current_function_decl is a sibcall.
6938
6939 2004-09-15 Mark Mitchell <mark@codesourcery.com>
6940
6941 * varasm.c (default_function_rdodata_section): Make sure to pass
6942 along a decl for a link-once section.
6943
6944 2004-09-15 Richard Henderson <rth@redhat.com>
6945
6946 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
6947 warning with code disable. Fix formatting.
6948
6949 2004-09-15 Steven Bosscher <stevenb@suse.de>
6950
6951 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
6952 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
6953 after propagating into an ADDR_EXPR.
6954
6955 2004-09-15 Andrew Pinski <apinski@apple.com>
6956
6957 PR rtl-opt/17427
6958 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
6959 Move it out of gcc_assert.
6960
6961 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
6962
6963 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
6964 except.c, fold-const.c, function.c, langhooks.c, params.c,
6965 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
6966 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
6967 for quoting in diagnostics going through pretty-print.c. Use ''
6968 for quoting in other diagnostic text.
6969 * langhooks.c: Include intl.h. Mark text locating diagnostics for
6970 translation.
6971 * Makefile.in (langhooks.o): Update dependencies.
6972 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
6973 formats.
6974
6975 2004-09-15 Mark Mitchell <mark@codesourcery.com>
6976
6977 * configure.ac: Check for COMDAT support. Robustify check for
6978 SHF_MERGE support.
6979 * configure: Regenerated.
6980 * config.in: Likewise.
6981 * langhooks-def.h (lhd_comdat_group): New function.
6982 (LANG_HOOKS_COMDAT_GROUP): New macro.
6983 (LANG_HOOKS_DECLS): Use it.
6984 * langhooks.c (lhd_comdat_group): Define.
6985 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
6986 * output.h (named_section_flags): Make it a macro.
6987 (named_section_real): New function.
6988 (default_no_named_section): Add decl parameter.
6989 (default_elf_asm_named_section): Likewise.
6990 (default_coff_asm_named_section): Likewise.
6991 (default_pe_asm_named_section): Likewise.
6992 * target.h (gcc_target): Adjust type of named_section.
6993 * varasm.c (named_section_flags): Rename to named_section_real.
6994 Add decl parameter.
6995 (default_no_named_section): Add decl parameter.
6996 (default_elf_asm_named_section): Use COMDAT, if available. Deal
6997 with the case that ASM_COMMENT_START is "@".
6998 (default_coff_asm_named_section): Add decl parameter.
6999 (default_pe_asm_named_section): Likewise.
7000 * config/alpha/alpha.c (vms_asm_named_section): Add decl
7001 parameter.
7002 (unicosmk_asm_named_section): Likewise.
7003 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
7004 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
7005 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
7006 * config/cris/cris-protos.h (cris_target_asm_named_section):
7007 Likewise.
7008 * config/cris/cris.c (cris_target_asm_named_section):
7009 Likewise.
7010 * config/darwin/darwin-protos.h (darwin_asm_named_section):
7011 Likewise.
7012 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
7013 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
7014 * config/i386/i386-protos.h (i386_pe_asm_named_section):
7015 Likewise.
7016 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
7017 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
7018 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
7019 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
7020 Likewise.
7021 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
7022 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
7023 * cp/cp-tree.h (cxx_comdat_group): Declare.
7024 * cp/decl.c (cxx_comdat_group): New function.
7025
7026 2004-09-15 Jan Hubicka <jh@suse.cz>
7027
7028 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
7029 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
7030
7031 * tree-cfg.c (remove_bb): Release SSA defs.
7032
7033 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
7034
7035 * doc/tm.texi: Follow spelling conventions.
7036
7037 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
7038
7039 * tree-ssa-dom.c: Fix comment typos.
7040
7041 2004-09-15 Alan Modra <amodra@bigpond.net.au>
7042
7043 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
7044 include ccr.
7045 (ppc_fallback_frame_state): Save location of CR.
7046
7047 2004-09-15 Jakub Jelinek <jakub@redhat.com>
7048
7049 * expr.c (string_constant): Handle also read-only variables
7050 initialized to string literals.
7051
7052 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
7053 into memcpy (x, y, 1) if memcpy can be expanded inline.
7054
7055 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7056
7057 PR tree-optimization/17468
7058 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
7059 definition inside a block precede uses.
7060 * tree-tailcall.c (adjust_return_value): Emit statements in the
7061 correct order.
7062
7063 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
7064
7065 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
7066
7067 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
7068
7069 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
7070
7071 2004-09-14 Jeff Law <law@redhat.com>
7072
7073 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
7074 (struct dom_walk_block_data): Remove avail_exprs member.
7075 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
7076 (lookup_avail_expr): No longer need to pass in address of
7077 the block local available exprs stack. All callers changed.
7078 (simplify_cond_and_lookup_avail_expr): Similarly.
7079 (simplify_switch_and_lookup_avail_expr): Similarly.
7080 (get_eq_expr_value, record_cond): Likewise.
7081 (record_dominating_conditions): Likewise.
7082 (update_rhs_and_lookup_avail_expr): Likewise.
7083 (record_equivalences_from_stmt): Likewise.
7084 (dom_opt_initialize_block_local_data): No longer test state of
7085 block local avail_exprs.
7086 (dom_opt_initialize_block): Mark unwind point in the global
7087 avail_expr stack.
7088 (remove_expressions_from_table): Update to unwind to the
7089 most recent unwind marker in the global avail_expr stack.
7090 All callers changed.
7091 (dom_opt_finalize_block): Mark unwind point in the global
7092 avail_expr stack as needed.
7093 (record_cond): Push elements into the global avail_exprs stack.
7094
7095 * tree-dfa.c (free_df_for_stmt): No longer static.
7096 (free_df): Update comments.
7097 * tree-flow.h (free_df_for_stmt): Prototype.
7098 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
7099 call release_defs.
7100
7101 2004-09-14 Diego Novillo <dnovillo@redhat.com>
7102
7103 PR tree-optimization/17252
7104 * tree-ssa-alias.c (may_alias_p): Don't assume that a
7105 pointer may not point to itself when using relaxed
7106 aliasing rules.
7107
7108 2004-09-14 Richard Henderson <rth@redhat.com>
7109
7110 PR middle-end/17397
7111 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
7112 while folding <ADDR_EXPR <INDIRECT_REF X>>.
7113
7114 2004-09-14 Andrew Pinski <apinski@apple.com>
7115
7116 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
7117 sets of the pointers but the aliasing sets of what they point to.
7118
7119 2004-09-14 Roger Sayle <roger@eyesopen.com>
7120
7121 PR rtl-optimization/9771
7122 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
7123 conditional compilation in init_reg_sets_1.
7124 (init_reg_sets_1): Let global_regs[i] take priority over the frame
7125 (but not stack) pointer exceptions to regs_invalidated_by_call.
7126 (globalize_reg): Globalizing a fixed register may need to update
7127 regs_invalidated_by_call.
7128
7129 2004-09-14 Diego Novillo <dnovillo@redhat.com>
7130
7131 PR tree-optimization/15262
7132 * tree-dfa.c (dump_variable): Also print the type of the
7133 variable.
7134 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
7135 memory tags are of conflicting alias sets but have no aliased
7136 symbols in common, add one tag to the alias set of the other.
7137 (setup_pointers_and_addressables): Remove hack to deal with
7138 programs with no aliased symbols.
7139 (may_alias_p): Don't special case aggregate types.
7140
7141 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
7142
7143 PR c/15498
7144 * doc/invoke.texi (Environment Variables): Correct example locale.
7145
7146 2004-09-14 Jan Hubicka <jh@suse.cz>
7147
7148 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
7149
7150 2004-09-14 Mark Mitchell <mark@codesourcery.com>
7151
7152 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
7153
7154 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
7155
7156 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
7157 restrict_p.
7158 (struct c_declarator): Change u.array.quals and pointer_quals to
7159 int. Add u.array.attrs.
7160 (quals_from_declspecs): New.
7161 * c-decl.c (quals_from_declspecs): New.
7162 (shadow_tag_warned): Give more specific message for useless type
7163 qualifiers.
7164 (build_array_declarator, set_array_declarator_inner,
7165 grokdeclarator, make_pointer_declarator, build_null_declspecs,
7166 declspecs_add_qual): Update for changed structures.
7167
7168 2004-09-14 Jeff Law <law@redhat.com>
7169
7170 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
7171 to a global varray.
7172 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
7173 (dom_opt_initialize_block_local_data): No longer test state
7174 of stmts_to_rescan.
7175 (dom_opt_finalize_block): Update due to change in scope of
7176 stmts_to_rescan.
7177 (optimize_stmt): Similarly.
7178
7179 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
7180
7181 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
7182 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
7183 comment typos. Follow spelling conventions.
7184
7185 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
7186
7187 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
7188 config/i386/predicates.md, config/sparc/sparc.c: Follow
7189 spelling conventions.
7190
7191 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7192 Steven Bosscher <stevenb@suse.de>
7193
7194 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
7195 * basic-block.h (struct reorder_block_def): Add copy_number field.
7196 * cfgloop.h (biv_p): Declare.
7197 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
7198 * common.opt (fsplit-ivs-in-unroller): New flag.
7199 * loop-iv.c (biv_p): New function.
7200 * loop-unroll.c: Include hashtab.h and recog.h.
7201 (struct iv_to_split, struct split_ivs_info): New types.
7202 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
7203 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
7204 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
7205 insert_base_initialization, split_iv): New functions.
7206 (peel_loop_completely, unroll_loop_constant_iterations,
7207 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
7208 Use them.
7209 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
7210
7211 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7212
7213 * tree-cfg.c (thread_jumps): Update dominators correctly in
7214 case destination of threaded edge dominates its source.
7215
7216 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7217
7218 * unroll.c: Removed.
7219 * loop.h: Removed.
7220 * Makefile.in (LOOP_H, unroll.o): Removed.
7221 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
7222 dependency.
7223 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
7224 reference.
7225 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
7226 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
7227 * loop.c: Do not include loop.h.
7228 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
7229 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
7230 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
7231 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
7232 struct loop_regs, struct loop_movables, struct loop_info): Moved
7233 from loop.h.
7234 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
7235 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
7236 find_common_reg_term, loop_iterations, final_giv_value): Moved
7237 from unroll.c.
7238 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
7239 loop_dump_stream, for_each_insn_in_loop, express_from,
7240 extend_value_for_giv, loop_iv_add_mult_emit_before,
7241 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
7242 loop_insn_first_p, get_condition_for_loop,
7243 loop_insn_emit_before, loop_insn_hoist,
7244 loop_insn_sink): Made static.
7245 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
7246 reference.
7247 (strength_reduce): Do not call unroller.
7248 (record_giv): Do not initialize unrolled field.
7249 (prescan_loop): Do not set loop_info->preconditioned.
7250 * passes.c: Do not include loop.h.
7251 (rest_of_handle_loop_optimize): Do not call unroller.
7252 * predict.c: Do not include loop.h.
7253 * rtl.h (NOTE_PRECONDITIONED): Removed.
7254 * stmt.c: Do not include loop.h.
7255 * toplev.c: Do not include loop.h.
7256 (process_options): Do not handle flag_old_unroll_loops.
7257
7258 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
7259 Documentation removed.
7260 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
7261
7262 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
7263
7264 * Makefile.in (STAGE1_CHECKING): New variable.
7265 (stage1_build): Use it.
7266 * tree-ssa.c (verify_ssa): Preserve state of dominance
7267 information.
7268
7269 2004-09-14 Uros Bizjak <uros@kss-loka.si>
7270
7271 * config/i386/i386.c (output_fp_compare): Add generation
7272 of ftst instruction.
7273 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
7274 Use output_fp_compare () function.
7275 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
7276 (fix_truncdi_memory): Remove operands[5] copy.
7277
7278 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
7279
7280 * config/m32r/m32r.md, config/m68k/m68kelf.h,
7281 config/mcore/mcore.md, config/rs6000/linux64.h,
7282 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
7283 typos.
7284
7285 2004-09-13 James E Wilson <wilson@specifixinc.com>
7286
7287 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
7288 * gen-protos.c: Include errors.h.
7289 (progname): Delete.
7290
7291 2004-09-14 Jan Hubicka <jh@suse.cz>
7292
7293 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
7294 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
7295 (predict_loops): Use number_of_iterations_exit to predict
7296 number of iterations on trees.
7297
7298 2004-09-13 Dale Johannesen <dalej@apple.com>
7299
7300 PR 17408
7301 PR 17409
7302 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
7303 objects declared extern.
7304
7305 2004-09-14 Paul Brook <paul@codesourcery.com>
7306
7307 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
7308 HOST_WIDE_INT.
7309
7310 2004-09-13 Daniel Jacobowitz <dan@debian.org>
7311
7312 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
7313 Only use TYPE_BINFO for aggregates.
7314
7315 2004-09-13 Daniel Jacobowitz <dan@debian.org>
7316
7317 * expmed.c (synth_mult): Initialize latency. Check cost before
7318 checking ops count.
7319
7320 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
7321
7322 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
7323 add_call_clobber_ops and add_call_read_ops.
7324 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
7325 the number of vdefs and vuses inserted based on analysis of global
7326 variables across calls. * tree-dfa.c (find_referenced_vars):
7327 Needed to reset static var maps before each function is compiled.
7328 * cgraphunit.c:
7329 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
7330 static_vars_info,functions_to_static_vars_info,module_statics_escape,
7331 all_module_statics,searchc_env,dfs_info): New fields to support
7332 analysis of static global variables.
7333 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
7334 cgraph_reset_static_var_maps, get_global_static_vars_info,
7335 get_global_statics_not_read, get_global_statics_not_written,
7336 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
7337 check_rhs_var, check_lhs_var, get_asm_expr_operands,
7338 process_call_for_static_vars, scan_for_static_refs,
7339 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
7340 clear_static_vars_maps, cgraph_propagate_bits,
7341 cgraph_characterize_statics): New. Functions to support analysis
7342 of static global variables.
7343 (cgraph_mark_local_and_external_functions): Renamed from:
7344 (cgraph_mark_local_functions)
7345 (cgraph_expand_all_functions): Remove call to
7346 cgraph_mark_local_and_external_functions.
7347 (cgraph_optimize): Added driver to analyze static variables whose
7348 scope is within the compilation unit. * cgraph.h (struct
7349 cgraph_local_info, GTY): Added statics_read, statics_written,
7350 local, calls_read_all, calls_write_all, for_functions_valid.
7351 (struct cgraph_node): Added next_cycle. * cgraph.c
7352 (dump_cgraph_node): Added print routines for new fields. *
7353 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
7354 list.
7355
7356 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
7357
7358 * c-decl.c (grokdeclarator): Correct comments about where storage
7359 class specifiers are rejected by grammar and add corresponding
7360 asserts. Diagnose typedefs and parameters declared inline.
7361 Change warning for inline main to a pedwarn. Only diagnose inline
7362 main if hosted.
7363 (declspecs_add_scspec): Allow duplicate "inline".
7364
7365 2004-09-13 Steve Ellcey <sje@cup.hp.com>
7366
7367 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
7368 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
7369
7370 2004-09-13 Richard Henderson <rth@redhat.com>
7371
7372 PR 17436
7373 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
7374 (tree_type): Replace spare with contains_placeholder_bits.
7375 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
7376 make static. Remove seen_types list.
7377 (type_contains_placeholder_p): New.
7378
7379 2004-09-13 James E Wilson <wilson@specifixinc.com>
7380
7381 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
7382 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
7383 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
7384 bdesc_arrays instead of mips_bdesc.
7385 (mips_init_builtins): Likewise.
7386 * config/mips/mips.h (TARGET_SB1): New.
7387 (HAVE_SQRT_P): Delete.
7388 * config/mips/mips.md (divide_condition): Support V2SF.
7389 (sqrt_condition, recip_condition): New.
7390 (div<mode>3): Use ANYF instead of SCALARF.
7391 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
7392 MODE.
7393 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
7394 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
7395 instead of MODE.
7396 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
7397 instead of SCALARF. Use UNITMODE instead of MODE.
7398
7399 2004-09-13 Zack Weinberg <zack@codesourcery.com>
7400
7401 * config.in: Regenerate after removal of libbanshee.
7402
7403 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
7404
7405 PR tree-optimization/17400
7406 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7407 coalesce partitions when one occurs in an abnormal PHI.
7408
7409 2004-09-13 Andrew Pinski <apinski@apple.com>
7410
7411 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
7412 name to _new_size.
7413
7414 2004-09-13 Richard Henderson <rth@redhat.com>
7415
7416 PR inline-asm/6806
7417 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
7418 (cselib_invalidate_rtx_note_stores): New.
7419 (cselib_record_sets, cselib_process_insn): Update to match.
7420 * cselib.h (cselib_invalidate_rtx): Declare.
7421 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
7422
7423 2004-09-13 Richard Henderson <rth@redhat.com>
7424
7425 PR tree-opt/10528
7426 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
7427 after copying its argument.
7428
7429 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
7430
7431 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
7432 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
7433 in diagnostics. Use %' for English apostrophes.
7434 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
7435 (pedwarn_c90, pedwarn_c99): Use it.
7436 * c-decl.c (lookup_label): Quote label name in diagnostic.
7437 * c-parse.in (yyprint): Use ' instead of ` for left quote.
7438 * c-typeck.c (warn_for_assignment): Likewise.
7439
7440 2004-09-13 Jan Hubicka <jh@suse.cz>
7441
7442 * i386.c (x86_schedule): New global variable.
7443 (override_options): Disable scheduling when not supported.
7444 * i386.h (x86_schedule): Declare.
7445 (TARGET_SCHEDULE): New macro.
7446
7447 2004-09-12 Richard Henderson <rth@redhat.com>
7448
7449 PR c++/16254
7450 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
7451 * tree.c, tree.h (has_cleanups): Remove.
7452
7453 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7454
7455 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
7456 arguments of the phi nodes correctly.
7457
7458 2004-09-12 Jan Hubicka <jh@suse.cz>
7459
7460 * ggc-common.c (cmp_statistics): Fix sorting.
7461
7462 2004-09-12 David Edelsohn <edelsohn@gnu.org>
7463
7464 PR target/16795
7465 * expmed.c (expand_divmod): If cheap power of 2 divide is
7466 available, use it for negative constant as well.
7467
7468 2004-09-12 Andrew Pinski <apinski@apple.com>
7469
7470 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
7471 size of 0.
7472
7473 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
7474
7475 2004-09-12 Richard Henderson <rth@redhat.com>
7476
7477 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
7478 or minus one.
7479 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
7480 post-reload, and scratch NULL.
7481 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
7482 (x86_shift_adj_2): Use ix86_expand_clear.
7483 (ashldi3): Remove CMOVE expansion difference.
7484 (ashldi3_1): Remove.
7485 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
7486 add constraints for immediates. New peephole for split-with-temp.
7487 Run splitter after peep2 pass.
7488 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
7489 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
7490 (setcc_2): Rename with *.
7491 * config/i386/predicates.md (reg_or_pm1_operand): New.
7492 (ashldi_input_operand): New.
7493
7494 2004-09-12 Richard Henderson <rth@redhat.com
7495
7496 * print-rtl.c (print_decl_name): New.
7497 (print_mem_expr): Use it.
7498
7499 2004-09-12 Richard Henderson <rth@redhat.com
7500
7501 PR 17186, part deux
7502 * except.c (sjlj_emit_function_exit): Fix logic locating
7503 sjlj_exit_after in final block.
7504
7505 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
7506
7507 * common.opt: Remove flags -fmove-all-movables and
7508 -freduce-all-givs.
7509 * loop-invariant.c (find_invariants_to_move):
7510 Remove all uses of flag_move_all_movables.
7511 * loop.c (move_movables): Remove all uses of
7512 flag_move_all_movables.
7513 (strength_reduce): Remove all uses of
7514 flag_reduce_all_givs.
7515 * doc/invoke.texi: Remove documentation of flags
7516 -fremove-all-movables and -freduce-all-givs.
7517
7518 2004-09-11 Roger Sayle <roger@eyesopen.com>
7519
7520 PR middle-end/17411
7521 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
7522 change. elt->type may be a floating point type, so use fold_convert.
7523
7524 2004-09-11 Geoffrey Keating <geoffk@apple.com>
7525
7526 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
7527 the thing referenced as used, not the stub itself.
7528
7529 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
7530
7531 * c-tree.h (enum c_storage_class): New.
7532 (struct c_declspecs): Add storage_class, inline_p and thread_p.
7533 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
7534 declarations and "auto" or "register" in file scope empty
7535 declarations. Give more specific warnings for other cases of
7536 storage class specifiers in empty declarations.
7537 (grokdeclarator): Update for new structures. Don't check for
7538 multiple storage classes. Diagnose file-scope "register" if
7539 pedantic.
7540 (build_null_declspecs): Update.
7541 (declspecs_add_scspec): Update. Diagnose multiple storage class
7542 specifiers and invalid uses of "__thread".
7543
7544 2004-09-11 Zack Weinberg <zack@codesourcery.com>
7545
7546 * tree.c (tree_code_size): New function, bulk of code from tree_size.
7547 (tree_size, make_node): Use it.
7548 * tree-ssa-pre.c (init_pre): Use it.
7549 * tree.h: Prototype it.
7550
7551 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7552
7553 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
7554 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
7555 redirect_immediate_use): Use PHI_DF.
7556 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
7557 (bb_for_stmt): Use PHI_BB.
7558 (get_immediate_uses): Use PHI_DF.
7559 * tree-ssa-dse.c (max_stmt_uid): New variable.
7560 (get_stmt_uid): New function.
7561 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
7562 node annotations.
7563 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
7564 (max_uid): Renamed to max_stmt_uid.
7565 (get_stmt_uid): New function.
7566 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
7567 phi node annotations.
7568 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
7569 * tree.h (PHI_BB, PHI_DF): New accessor functions.
7570 (struct tree_phi_node): Add bb and df fields.
7571
7572 2004-09-11 Richard Henderson <rth@redhat.com>
7573
7574 PR middle-end/17416
7575 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
7576 in conflict loop.
7577
7578 2004-09-11 Jan Hubicka <jh@suse.cz>
7579
7580 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
7581 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
7582 * i386.md (i387_cw): Add 'uninitialized' mode.
7583
7584 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
7585 (output_location): Break out from ....
7586 (branch_prob): ... here; handle gcov output on trees.
7587 * toplev.c (process_options): No longer be sorry about coverage for
7588 trees.
7589
7590 2004-09-11 Steven Bosscher <stevenb@suse.de>
7591
7592 PR c++/17412
7593 * fold-const.c (fold): Do not try to fold the operand of a
7594 CLEANUP_POINT_EXPR if that operand does itself not have any
7595 operands.
7596
7597 PR middle-end/17417
7598 * langhooks.c (lhd_decl_printable_name): Make sure that this
7599 function is called with is a decl node that has an identifier.
7600 * tree-pretty-print.c (dump_function_name): New function to
7601 wrap PRINT_FUNCTION_NAME and dump_decl_name.
7602 (print_call_name): Use it.
7603
7604 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
7605
7606 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
7607 "config.h" if not.
7608
7609 2004-09-11 Jakub Jelinek <jakub@redhat.com>
7610
7611 * tree-ssa-alias.c (collect_points_to_info_r): Handle
7612 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
7613 to OFFSET.
7614
7615 2004-09-11 Richard Henderson <rth@redhat.com>
7616
7617 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
7618 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
7619 operand of the ADDR_EXPR.
7620 (expand_expr_real_1): Update to match.
7621
7622 2004-09-11 David Edelsohn <edelsohn@gnu.org>
7623
7624 PR target/17277
7625 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
7626 choose 64-bit version.
7627
7628 2004-09-11 Richard Henderson <rth@redhat.com>
7629
7630 PR c/17396
7631 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
7632
7633 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
7634
7635 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
7636 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
7637 Insert @: after i.e. or e.g.
7638
7639 2004-09-10 Geoffrey Keating <geoffk@apple.com>
7640
7641 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
7642 D.xxx rather than <Dxxx>.
7643
7644 2004-09-10 Adam Nemet <anemet@lnxw.com>
7645
7646 * configure.ac (AC_MSG_CHECKING(what linker to use)):
7647 in_tree_ld_is_elf should be true for LynxOS.
7648 * configure: Regenerate.
7649
7650 2004-09-10 Adam Nemet <anemet@lnxw.com>
7651
7652 * Makefile.in (all.cross): Add srcextra.
7653
7654 2004-09-10 Roger Sayle <roger@eyesopen.com>
7655
7656 PR middle-end/17024
7657 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
7658 floating point comparison operators. Change aborts to gcc_asserts.
7659
7660 2004-09-10 Geoffrey Keating <geoffk@apple.com>
7661
7662 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
7663
7664 2004-09-10 James E Wilson <wilson@specifixinc.com>
7665
7666 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
7667 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
7668
7669 * convert.c (convert_to_vector): Replace recursive call with
7670 error_mark_node.
7671
7672 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
7673 Add integer argument named constant. Use const_tiny_rtx instead of
7674 CONST0_RTX.
7675 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
7676 and CONST1_RTX.
7677 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
7678 vector types.
7679 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
7680 of gen_rtx_raw_CONST_VECTOR.
7681
7682 2004-09-10 Eric Christopher <echristo@redhat.com>
7683
7684 PR c/16046
7685 * c-parse.in (attribute): Add NULL_TREE for error case
7686 for error recovery.
7687
7688 2004-09-10 Zack Weinberg <zack@codesourcery.com>
7689
7690 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
7691 (extract_interface_info): Delete prototype.
7692 * c-decl.c (extract_interface_info): Delete stub.
7693 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
7694 it's not already been done ...
7695 (init_c_lex): ... not here.
7696 (fe_file_change): Don't call extract_interface_info.
7697
7698 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
7699
7700 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
7701 typedef_p and typedef_signed_p.
7702 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
7703 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
7704 Check typedef_p and typedef_signed_p, not typedef_decl.
7705 (grokfield): Check typedef_p, not typedef_decl.
7706 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
7707 not typedef_decl.
7708 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
7709 typedef_decl.
7710
7711 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
7712
7713 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
7714
7715 2004-09-10 Geoffrey Keating <geoffk@apple.com>
7716
7717 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
7718 temporary variables.
7719
7720 * dbxout.c (dbxout_block): Update for
7721 current_function_func_begin_label a string.
7722 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
7723 * except.c (dw2_output_call_site_table): Likewise.
7724 * toplev.c (current_function_func_begin_label): Likewise.
7725 * tree.h (current_function_func_begin_label): Likewise.
7726 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
7727
7728 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
7729 loop.
7730
7731 * config/darwin.c: Include target.h.
7732 (struct machopic_indirection): Make ptr_name a string.
7733 (machopic_indirection_hash): Update for ptr_name a string.
7734 (machopic_indirection_eq): Likewise.
7735 (machopic_indirection_name): Likewise.
7736 (machopic_output_indirection): Likewise.
7737 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
7738 string. Don't expect stub names to be in the identifier hash table.
7739 Do call strip_name_encoding before looking up entry in ID hash table.
7740 * config/t-darwin (darwin.o): Add target.h to dependencies.
7741
7742 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
7743 of fprintf for register names.
7744
7745 * output.h (unlikely_section_label): Delete declaration.
7746 (unlikely_text_section_name): Likewise.
7747 * varasm.c (unlikely_section_label_printed): Make static.
7748 (unlikely_section_label): Likewise.
7749 (unlikely_text_section_name): Likewise.
7750 (assemble_start_function): Use reconcat.
7751
7752 * rtl.def (REG): Add comment to describe third field.
7753
7754 2004-09-10 Andrew Pinski <apinski@apple.com>
7755
7756 * config/darwin.c (machopic_mcount_stub_name): Call
7757 machopic_indirection_name instead of making the string
7758 ourselves.
7759
7760 2004-09-10 Diego Novillo <dnovillo@redhat.com>
7761
7762 Revert
7763
7764 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
7765
7766 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
7767 memory tag is call clobbered, so are its aliases.
7768 (group_aliases): When two memory tags being grouped, if one is
7769 call clobbered, so are the other and its aliases.
7770 (add_may_alias): Remove call-clobbering stuff.
7771 (replace_may_alias): Likewise.
7772 (merge_pointed_to_info): Merge pt_global_mem
7773
7774 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
7775
7776 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
7777 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
7778 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
7779 tree-scalar-evolution.c, tree-ssa-copyrename.c,
7780 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
7781
7782 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
7783
7784 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
7785 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
7786 pair. Remove match_dup from inputs. Remove masaccs handling.
7787 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
7788 (masaccs, mdasaccs): Turn into define_insns.
7789
7790 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
7791
7792 * tree-tailcall.c (process_assignment): Only do accumulator transforms
7793 for floating-point types if flag_unsafe_math_optimizations.
7794
7795 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
7796
7797 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
7798 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
7799 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
7800 config/h8300/h8300.md, config/i386/gmm_malloc.h,
7801 config/ia64/ia64.md, config/ip2k/libgcc.S,
7802 config/mips/mips-ps-3d.md, config/mips/mips.c,
7803 config/rs6000/rs6000.c, config/s390/s390.c,
7804 config/sh/symbian.c: Fix comment typos.
7805
7806 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
7807
7808 * config/s390/s390.c (s390_emit_prologue): Added missing
7809 "{}" brackets.
7810
7811 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
7812
7813 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
7814 typos. Follow spelling conventions.
7815
7816 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
7817
7818 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
7819 in diagnostic. Don't dereference NULL TYPE_NAME.
7820
7821 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
7822
7823 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
7824 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
7825 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
7826 value-prof.c: Fix comment typos. Follow spelling conventions.
7827
7828 2004-09-10 Jan Hubicka <jh@suse.cz>
7829
7830 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
7831 * tree-split_edge.c (tree_split_edge): Likewise.
7832 (thread_jumps): Likewise.
7833
7834 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
7835
7836 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
7837 typos.
7838
7839 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
7840
7841 * cgraph.h (cgraph_dump_file): Do not declare.
7842 * cgraphunit.c (cgraph_dump_file): Declare as static.
7843 (init_cgraph): New.
7844 * toplev.c (cgraph_dump_file): Do not declare.
7845 (compile_file): Call init_cgraph.
7846 * tree-dump.c (dump_files): Add IPA dump file, remove
7847 XML dump of call graph.
7848 (get_dump_file_name): Support IPA dump file naming scheme.
7849 * tree.h (enum tree_dump_index): Add IPA dump file, remove
7850 XML dump of call graph.
7851 * doc/invoke.texi (Debugging Options): Document the new options.
7852
7853 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
7854
7855 * doc/extend.texi: Document the FR-V built-in functions.
7856
7857 2004-09-09 James E Wilson <wilson@specifixinc.com>
7858
7859 * doc/sourcebuild.texi: Delete libbanshee reference.
7860
7861 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
7862
7863 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
7864
7865 2004-09-09 James E Wilson <wilson@specifixinc.com>
7866
7867 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
7868 before calling vector_types_convertible_p.
7869 (digest_init): Check that inside_init has VECTOR_TYPE before calling
7870 vector_types_convertible_p. Don't give another error if
7871 convert_for_assignment returns error_mark_node.
7872
7873 2004-09-09 Roger Sayle <roger@eyesopen.com>
7874
7875 PR middle-end/17055
7876 * fold-const.c (build_zero_vector): New function to construct a
7877 vector (either floating point or integer) of zeros.
7878 (fold_convert): Internally, enable conversions of integer zero
7879 to arbitrary vector types, using the new build_zero_vector.
7880
7881 2004-09-09 Roger Sayle <roger@eyesopen.com>
7882
7883 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
7884 expand a left shift by an immediate constant as either an ashl or
7885 a sequence of additions.
7886 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
7887 instead of calling gen_ashlsi3 with a constant directly.
7888
7889 2004-09-09 Roger Sayle <roger@eyesopen.com>
7890
7891 * config/i386/i386.c (ix86_split_long_move): When optimizing for
7892 size, and the low and high parts of a DImode constant are equal,
7893 copy one register to another instead of loading the same immediate
7894 value twice.
7895
7896 2004-09-09 Richard Henderson <rth@redhat.com>
7897
7898 PR middle-end/17367
7899 * function.c (assign_parm_setup_block): Only put PARALLELs into
7900 a register if use_register_for_decl.
7901
7902 2004-09-09 Eric Christopher <echristo@redhat.com>
7903
7904 * ra-colorize.c (reset_lists): Move variable declaration inside
7905 ENABLE_CHECKING to avoid unused variable warnings when
7906 not --enable-checking.
7907 (check_colors): Ditto.
7908
7909 2004-09-09 Mike Stump <mrs@apple.com>
7910
7911 * version.c (version_string): Bump to 4.0.0.
7912 * doc/include/gcc-common.texi (version-GCC): Likewise.
7913
7914 2004-09-10 Jakub Jelinek <jakub@redhat.com>
7915
7916 * doc/extend.texi (nothrow attribute): The attribute is not
7917 implemented in 3.2 and earlier.
7918
7919 2004-09-09 Steve Ellcey <sje@cup.hp.com>
7920
7921 * genrecog.c (compute_predicate_codes): Use op0_codes
7922 instead of codes.
7923
7924 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
7925
7926 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
7927 implementation changes.
7928
7929 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
7930
7931 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
7932 a PARALLEL instead of a SET due to added clobbers.
7933
7934 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
7935
7936 * reload.c (find_reloads_address): Pass correct operand to
7937 maybe_memory_address_p.
7938
7939 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
7940
7941 * Makefile.in: Remove libbanshee, tree-alias-*.
7942 Remove tree-alias-common.h dependencies.
7943 * common.opt: Remove -ftree-points-to.
7944 * configure.ac: Remove libbanshee.
7945 * flags.h: Remove pta_type, flag_tree_points_to.
7946 * gengtype.c (open_base_files): Remove tree-alias-type.h.
7947 * opts.c (OPT_ftree_points_to): Remove.
7948 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
7949 * tree-dfa.c: Remove tree-alias-common.h
7950 * tree-into-ssa.c: Ditto.
7951 * tree-outof-ssa.c: Ditto.
7952 * tree-ssa-copyrename.c: Ditto.
7953 * tree-ssa-live.c: Ditto.
7954 * tree-optimize.c: Ditto.
7955 * tree-ssa.c: Ditto.
7956 Remove pass_build_pta, pass_del_pta.
7957 * tree-pass.h: Ditto.
7958 * tree-ssa-alias.c: Remove tree-alias-common.h.
7959 (struct alias_stats_d): Remove pta_queries, pta_resolved.
7960 (pass_may_alias): Remove PROP_pta requirement.
7961 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
7962 (get_tmt_for): Ditto.
7963 (dump_alias_stats): Ditto.
7964 * doc/passes.texi: Remove blurb about points-to analysis.
7965 * fortran/Make-lang.in: Remove tree-alias-*.o.
7966
7967 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
7968
7969 * genattrtab.c (write_insn_cases): New function, split out from
7970 write_attr_case. Correctly handle define_peepholes when printing
7971 the instruction name.
7972 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
7973
7974 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
7975
7976 PR target/17377
7977 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
7978 * config/cris/cris.c (cris_return_address_on_stack): New function.
7979 * config/cris/cris.md ("return"): For location of return address,
7980 also check cris_return_address_on_stack.
7981
7982 2004-09-09 Diego Novillo <dnovillo@redhat.com>
7983
7984 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
7985 calling phi_ssa_name_p.
7986
7987 2004-09-09 Richard Henderson <rth@redhat.com>
7988
7989 PR c/17322
7990 * c-typeck.c (valid_compound_expr_initializer): Use only
7991 initializer_constant_valid_p, and not TREE_CONSTANT.
7992 (digest_init): Likewise.
7993 (output_init_element): Likewise.
7994
7995 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
7996
7997 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
7998 live_out_1, prune_hardregs_for_mode, init_one_web_common,
7999 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
8000 record_conflict, compare_and_free_webs, init_webs_defs_uses,
8001 parts_to_webs_1, parts_to_webs, reset_conflicts,
8002 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
8003 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
8004 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
8005 put_move, remove_move, combine, select_spill, colorize_one_web,
8006 try_recolor_web, insert_coalesced_conflicts, check_colors,
8007 break_precolored_alias, restore_conflicts_from_coalesce,
8008 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
8009 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
8010 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
8011 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
8012 check_df): Likewise.
8013 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
8014 real_arithmetic, real_compare, real_exponent, real_ldexp,
8015 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
8016 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
8017 real_digit, real_nan, real_maxval, round_for_format, real_convert,
8018 real_to_target, real_from_target, real_hash, encode_ieee_single,
8019 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
8020 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
8021 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
8022 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
8023 extract_insn, peep2_next_insn, peep2_reg_dead_p,
8024 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
8025 if_test_bypass_p): Likewise.
8026 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
8027 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
8028 emit_swap_insn, swap_to_top, move_for_stack_reg,
8029 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
8030 compensate_edge, convert_regs_1): Likewise.
8031 * regclass.c (init_reg_sets, init_reg_sets_1,
8032 memory_move_secondary_cost): Likewise.
8033 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
8034 Likewise.
8035 * reload.c (push_secondary_reload, find_valid_class, push_reload,
8036 operands_match_p, decompose, immune_p, find_reloads,
8037 find_reloads_toplev, find_reloads_address_1, subst_reloads,
8038 copy_replacements, refers_to_regno_for_reload_p,
8039 reg_overlap_mentioned_for_reload_p): Likewise.
8040 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
8041 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
8042 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
8043 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
8044 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
8045 do_output_reload, fixup_abnormal_edges): Likewise.
8046 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
8047 fill_slots_from_thread, relax_delay_slots): Likewise.
8048 * resource.c (mark_referenced_resources, mark_set_resources):
8049 Likewise.
8050 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
8051 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
8052 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
8053 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
8054 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
8055 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
8056 * rtlhooks.c (gen_lowpart_general): Likewise.
8057 * sbitmap.c (sbitmap_difference): Likewise.
8058 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
8059 sched_analyze, add_forward_dependence): Likewise.
8060 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
8061 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
8062 schedule_insns): Likewise.
8063 * sched-vis.c (print_pattern): Likewise.
8064 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
8065 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
8066 simplify_const_relational_operation, simplify_ternary_operation,
8067 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
8068 Likewise.
8069 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
8070 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
8071 resolve_operand_name_1, expand_return, expand_decl,
8072 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
8073 * stor-layout.c (put_pending_size, smallest_mode_for_size,
8074 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
8075 set_sizetype, get_mode_bounds): Likewise.
8076
8077 2004-09-09 Zack Weinberg <zack@codesourcery.com>
8078
8079 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
8080 * config/arm/pecoff.h, config/i386/beos-elf.h
8081 * config/i386/cygming.h, config/i386/i386-interix.h:
8082 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
8083 comment cloned from manual.
8084 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
8085
8086 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
8087
8088 * builtins.c (build_va_arg_indirect_ref): New function.
8089 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
8090 build_fold_indirect_ref.
8091 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
8092 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
8093 * tree.h: Declare new function.
8094
8095 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
8096
8097 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
8098 dumping for development builds.
8099 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
8100 development builds only.
8101 * genattrtab.c (write_eligible_delay): Fix typo in previous
8102 commit.
8103 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
8104 gcc_assert.
8105
8106 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
8107
8108 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
8109 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
8110 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
8111 hoist_code, extract_mentioned_regs_helper, compute_store_table,
8112 insert_store): Use gcc_assert and gcc_unreachable.
8113 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
8114 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
8115 ggc_record_overhead): Likewise.
8116 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
8117 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
8118 ggc_pop_context, clear_marks, validate_free_objects,
8119 ggc_pch_read): Likewise.
8120 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
8121 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
8122 ggc_push_context, check_cookies, ggc_collect,
8123 ggc_print_statistics): Likewise.
8124 * gimple-low.c (lower_function_body, lower_stmt,
8125 lower_bind_expr): Likewise.
8126 * gimplify.c (gimple_tree_eq, push_gimplify_context,
8127 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
8128 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
8129 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
8130 gimplify_case_label_expr, gimplify_exit_block_expr,
8131 canonicalize_component_ref, gimplify_compound_lval,
8132 gimplify_self_mod_expr, gimplify_call_expr,
8133 gimplify_init_ctor_eval, gimplify_init_constructor,
8134 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
8135 gimplify_expr, check_pointer_types_r,
8136 force_gimple_operand): Likewise.
8137 * global.c (global_alloc, build_insn_chain): Likewise.
8138 * graph.c (clean_graph_dump_file,
8139 finish_graph_dump_file): Likewise.
8140 gcov-io.c (gcov_open): Use GCOV_CHECK.
8141
8142 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
8143
8144 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
8145
8146 2004-09-09 Jan Hubicka <jh@suse.cz>
8147
8148 middle-end/17128
8149 * tree-inline.c (expand_call_inline): Make overactive sanity check
8150 happy.
8151
8152 2004-09-09 Jan Hubicka <jh@suse.cz>
8153
8154 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
8155 VIEW_CONVERT_EXPR.
8156
8157 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
8158
8159 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
8160 (gengtype.o): Depend on errors.h.
8161 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
8162 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
8163 attr_alt_subset_p, attr_alt_subset_of_compl_p,
8164 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
8165 write_test_expr, write_attr_value, write_eligible_delay,
8166 make_internal_attr, make_numeric_value): Likewise.
8167 * genautomata.c (regexp_name, get_str_vect,
8168 gen_presence_absence_set, automaton_decl_hash,
8169 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
8170 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
8171 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
8172 test_unit_reserv, it_is_empty_reserv_sets,
8173 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
8174 reserv_sets_and, output_cycle_reservs, get_free_state,
8175 intersected_state_reservs_p, states_union, remove_arc,
8176 copy_insn_regexp, transform_1, transform_2, transform_3,
8177 regexp_transform_func, store_alt_unit_usage,
8178 check_regexp_units_distribution, process_seq_for_forming_states,
8179 process_alts_for_forming_states, make_automaton,
8180 form_arcs_marked_by_insn, create_composed_state,
8181 set_out_arc_insns_equiv_num, partition_equiv_class,
8182 process_insn_equiv_class, set_insn_equiv_classes,
8183 units_to_automata_heuristic_distr, form_regexp,
8184 longest_path_length, output_dfa_max_issue_rate, add_vect,
8185 out_state_arcs_num, add_vect_el, output_trans_table,
8186 output_state_alts_table, output_dead_lock_vect,
8187 output_max_insn_queue_index_def,
8188 output_min_insn_conflict_delay_func,
8189 output_internal_insn_latency_func, output_print_reservation_func,
8190 output_cpu_unit_reservation_p, output_state_arcs,
8191 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
8192 make_default_insn_latency_attr,
8193 form_important_insn_automata_lists): Likewise.
8194 * genemit.c (gen_exp, output_add_clobbers,
8195 output_added_clobbers_hard_reg_p): Likewise.
8196 * genextract.c (print_path, main): Likewise.
8197 * genflags.c (gen_macro): Likewise.
8198 * gengenrtl.c: Include errors.h
8199 (type_from_format, accessor_from_format): Likewise.
8200 * gengtype.c (get_file_basename, output_mangled_typename,
8201 walk_type, write_types_process_field,
8202 write_types_local_process_field): Likewise.
8203 * genmodes.c (complete_mode): Likewise.
8204 * genopinit.c (gen_insn): Likewise.
8205 * genoutput.c (output_insn_data, check_constraint_len,
8206 constraint_len): Likewise.
8207 * genpreds.c (add_mode_tests):Likewise.
8208 * gen-protos.c (add_hash): Likewise.
8209 * genrecog.c (find_operand, find_matching_operand,
8210 validate_pattern, add_to_sequence, maybe_both_true,
8211 nodes_identical_1, merge_trees, write_switch, write_cond,
8212 write_action, is_unconditional, make_insn_sequence,
8213 debug_decision_2): Likewise.
8214 * gensupport.c (is_predicable, collect_insn_data,
8215 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
8216
8217 2004-09-09 Jan Hubicka <jh@suse.cz>
8218
8219 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
8220 * cfgbuild.c (compute_outgoing_frequencies): When probability is
8221 missing, guess it.
8222 (find_many_sub_basic_blocks): Do update profile only when it is
8223 present.
8224 * predict.c (set_even_probabilities): Break out from ...
8225 (combine_predictions_for_insn): ... here; deal with
8226 !can_predict_insn_p insns.
8227 (combine_predictions_for_bb): Use set_even_probabilities.
8228 (bb_estimate_probability_locally): Break out from ....
8229 (estimate_probability): ... here.
8230 (guess_outgoing_edge_probabilities): New entry point.
8231
8232 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
8233
8234 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
8235 handle_braces, process_brace_body, main, used_arg,
8236 set_multilib_dir, print_multilib_info): Use fatal, not abort.
8237
8238 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
8239
8240 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
8241 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
8242 Morgan's theorem in last checkin.
8243
8244 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8245 Nathan Sidwell <nathan@codesourcery.com>
8246
8247 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
8248 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
8249 * timevar.c (timevar_push, timevar_pop, timevar_start,
8250 timevar_stop): Likewise.
8251 * toplev.c (default_pch_valid_p): Likewise.
8252 * tracer.c (tail_duplicate): Likewise.
8253 * tree-alias-common.c (get_alias_var_decl,
8254 get_values_from_constructor, create_alias_var, delete_alias_vars,
8255 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
8256 Likewise.
8257 * tree.c (tree_size, make_node_stat, copy_node_stat,
8258 build_int_cst_wide, integer_all_onesp, list_length, chainon,
8259 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
8260 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
8261 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
8262 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
8263 build_method_type_directly, decl_type_context, get_callee_fndecl,
8264 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
8265 tree_fold_gcd): Likewise.
8266 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
8267 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
8268 cleanup_control_expr_graph, find_taken_edge,
8269 find_taken_edge_switch_expr, phi_alternatives_equal,
8270 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
8271 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
8272 tree_split_edge, tree_verify_flow_info, thread_jumps,
8273 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
8274 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
8275 chrec_fold_multiply_poly_poly): Likewise.
8276 * tree-complex.c (extract_component, expand_complex_division,
8277 expand_complex_comparison, expand_complex_operations_1,
8278 build_replicated_const, expand_vector_operations_1): Likewise.
8279 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
8280 build_classic_dir_vector): Likewise.
8281 * tree-dfa.c (compute_immediate_uses_for_phi,
8282 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
8283 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
8284 * tree-dump.c (dequeue_and_dump): Likewise.
8285 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
8286 record_in_finally_tree, replace_goto_queue_1,
8287 maybe_record_in_goto_queue, verify_norecord_switch_expr,
8288 do_return_redirection): Likewise.
8289 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
8290 add_to_dst_predicate_list, find_phi_replacement_condition,
8291 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
8292 Likewise.
8293 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
8294 initialize_inlined_parameters, declare_return_variable,
8295 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
8296 optimize_inline_calls, copy_tree_r): Likewise.
8297 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
8298 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
8299 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
8300 tsi_split_statement_list_after, tsi_split_statement_list_before):
8301 Likewise.
8302 * tree-mudflap.c (mf_varname_tree): Likewise.
8303 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
8304 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
8305 * tree-optimize.c (tree_rest_of_compilation): Likewise.
8306 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
8307 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
8308 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
8309 Likewise.
8310 * tree-phinodes.c (resize_phi_node, add_phi_arg,
8311 remove_all_phi_nodes_for): Likewise.
8312 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
8313 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
8314 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
8315 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
8316 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
8317 generate_one_element_ref, generate_element_copy,
8318 generate_element_zero, scalarize_copy, scalarize_init,
8319 scalarize_ldst): Likewise.
8320 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
8321 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
8322 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
8323 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
8324 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
8325 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
8326 widen_bitfield, ccp_fold_builtin): Likewise.
8327 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
8328 replace_exp_1, propagate_tree_value): Likewise.
8329 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
8330 * tree-ssa-dce.c (set_control_dependence_map_bit,
8331 find_control_dependence, find_pdom, mark_operand_necessary,
8332 mark_stmt_if_obviously_necessary,
8333 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
8334 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
8335 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
8336 eliminate_redundant_computations, avail_expr_eq): Likewise.
8337 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
8338 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
8339 duplicate_blocks): Likewise.
8340 * tree-ssa-loop-im.c (for_each_index, set_level,
8341 is_call_clobbered_ref): Likewise.
8342 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
8343 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
8344 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
8345 peel_address, ptr_difference_cost, may_replace_final_value,
8346 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
8347 rewrite_use, rewrite_uses): Likewise.
8348 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
8349 check_loop_closed_ssa_use): Likewise.
8350 * tree-ssanames.c (make_ssa_name): Likewise.
8351 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
8352 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
8353 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
8354 get_indirect_ref_operands, add_stmt_operand): Likewise.
8355 * tree-ssa-pre.c (value_exists_in_set_bitmap,
8356 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
8357 phi_translate, valid_in_set, compute_antic,
8358 find_or_generate_expression, create_expression_by_pieces, insert_aux,
8359 create_value_expr_from, eliminate): Likewise.
8360 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
8361 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
8362 Likewise.
8363 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
8364 eliminate_tail_call): Likewise.
8365 * tree-vectorizer.c (vect_create_index_for_array_ref,
8366 vect_align_data_ref, vect_create_data_ref,
8367 vect_create_destination_var, vect_get_vec_def_for_operand,
8368 vect_finish_stmt_generation, vect_transform_stmt,
8369 vect_transform_loop_bound, vect_transform_loop,
8370 vect_analyze_operations): Likewise.
8371 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
8372 Likewise.
8373 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
8374 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
8375 bsi_after_labels, bsi_last): Likewise.
8376 * tree-ssa-live.c (var_union, change_partition_var,
8377 create_ssa_var_map, calculate_live_on_entry, root_var_init,
8378 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
8379 Likewise.
8380 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
8381 tpa_find_tree): Likewise.
8382 (register_ssa_partition_check): Declare.
8383 (register_ssa_partition): use it.
8384 * tree-ssa-live.c: Include errors.h.
8385 (register_ssa_partition_check): New.
8386 * tree-ssa-operands.c: Include errors.h.
8387 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
8388
8389 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
8390 Catherine Moore <clm@redhat.com>
8391
8392 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
8393 (FRV_CPU_FR405): New processor enums.
8394 (frv_issue_rate, frv_acc_group): Declare.
8395 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
8396 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
8397 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
8398 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
8399 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
8400 handled by CPP_SPEC.
8401 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
8402 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
8403 (ACC_MASK): New macro.
8404 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
8405 (TARGET_MEDIA_FR450): New macro.
8406 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
8407 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
8408 (LABEL_ALIGN_AFTER_BARRIER): Define.
8409 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
8410 (IACC_FIRST, IACC_LAST): New pair of SPRs.
8411 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
8412 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
8413 (REGISTER_NAMES): Add entries for new registers.
8414 (REG_CLASS_CONTENTS): Update for new register ranges.
8415 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
8416 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
8417 (PACKING_FLAG_USED_P): Delete.
8418 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
8419 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
8420 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
8421 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
8422 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
8423 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
8424 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
8425 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
8426 (CPU_UNITS_QUERY): Define to 1.
8427 * config/frv/frv.c: Include gt-frv.h
8428 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
8429 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
8430 (frv_insn_group): New enumeration.
8431 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
8432 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
8433 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
8434 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
8435 gap left by REGSTATE_LIVE.
8436 (regstate_t): New typedef.
8437 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8438 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
8439 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
8440 Initialize frv_unit_codes[] and frv_type_to_unit[].
8441 (frv_conditional_register_usage): Remove redundant fixing of
8442 accumulator registers.
8443 (frv_insn_packing_flag): Update specification.
8444 (frv_function_prologue): Don't set frv_insn_packing_flag here.
8445 Zero out frv_nops[].
8446 (frv_expand_epilogue): Remove comments about the no-longer-present
8447 SIBCALL_P argument.
8448 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
8449 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
8450 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
8451 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
8452 packing is disabled and if INSN can only issue to M1.
8453 (call_operand): Check TARGET_LONG_CALLS.
8454 (acc_operand, even_acc_operand, quad_acc_operand)
8455 (accg_operand): Simplify. Don't accept pseudo registers.
8456 (output_move_single): Handle SPR<-zero moves.
8457 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
8458 (frv_registers_update, frv_registers_used_p): Delete.
8459 (frv_registers_set_p): Delete.
8460 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
8461 (frv_issues_to_branch_unit_p): New function.
8462 (frv_packet): New structure.
8463 (frv_cond_flags, frv_regstate_conflict_p): New functions.
8464 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
8465 (frv_registers_update_1, frv_registers_update): New functions.
8466 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
8467 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
8468 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
8469 (frv_sort_insn_group, frv_reorder_packet): New functions.
8470 (frv_pack_insns): Use frv_reorder_packet.
8471 (frv_packet_address): New variable.
8472 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
8473 (frv_register_nop, frv_reorg): New functions.
8474 (bdesc_1arg): Add __SCUTSS.
8475 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
8476 __SUBSS, __SLASS and __SCAN.
8477 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
8478 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
8479 (frv_init_builtins): Register the above builtins.
8480 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
8481 registers. Turn the referenced accumulators into global registers.
8482 (frv_read_iacc_argument): New function.
8483 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
8484 (frv_split_iacc_move): New function.
8485 (frv_expand_builtin): Handle the new builtins.
8486 * config/frv/frv.md: Replace old schedulers with new order-independent
8487 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
8488 packing algorithm.
8489 (cpu): Add fr550, fr450 and fr405.
8490 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
8491 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
8492 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
8493 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
8494 (fnop, mnop): New patterns.
8495 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
8496 New constants.
8497 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
8498 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
8499 registers.
8500 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
8501 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
8502 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
8503 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
8504 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
8505 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
8506 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
8507 (frv_prefetch0, frv_prefetch): New patterns.
8508 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
8509 -mcpu=simple. Add -mcpu=fr550.
8510 (MULTILIB_DIRNAMES): Update accordingly.
8511 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
8512 -mcpu=fr450.
8513 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
8514 -mlong-calls and -malign-labels options for FR-V.
8515
8516 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
8517
8518 PR c/8420
8519 * c-tree.h (struct c_declspecs): New.
8520 (struct c_declarator, struct c_type_name, struct c_parm): Update
8521 element types.
8522 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
8523 start_function, start_decl, build_c_parm,
8524 make_pointer_declarator): Update prototypes.
8525 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
8526 declspecs_add_scspec, declspecs_add_attrs): New.
8527 (split_specs_attrs): Remove.
8528 * c-parse.in (%union): Add dsptype.
8529 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
8530 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
8531 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
8532 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
8533 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
8534 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
8535 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
8536 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
8537 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
8538 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
8539 maybe_type_quals_attrs): Change to dsptype.
8540 (struct c_declspec_stack): New.
8541 (current_declspecs, declspec_stack): Change type.
8542 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
8543 structures.
8544 (extdefs): Likewise.
8545 (setspecs): Likewise.
8546 (fndef): Use current_declspecs for empty declspecs list.
8547 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
8548 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
8549 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
8550 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
8551 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
8552 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
8553 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
8554 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
8555 structures and helper functions. Update comments.
8556 (typespec_nonattr): Correct comment.
8557 (maybe_type_quals_attrs, typename): Update to new structures.
8558 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
8559 shadow_tag, shadow_tag_warned, start_function, start_decl,
8560 build_c_parm, make_pointer_declarator,
8561 set_array_declarator_inner, groktypename): Update to new
8562 structures.
8563 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
8564 declspecs_add_scspec, declspecs_add_attrs): New.
8565 (split_specs_attrs): Remove.
8566 (shadow_tag_warned): Make warning for useless type names a
8567 pedwarn. Give hard error for long, short, signed, unsigned or
8568 _Complex used with struct, union or enum in empty declaration.
8569 Make found_tag a bool.
8570 (grokdeclarator): Remove checks now done at parse time.
8571
8572 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
8573
8574 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
8575 c_declarator, struct c_type_name, struct c_parm): New.
8576 (build_array_declarator, set_array_declarator_inner,
8577 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
8578 start_function, start_decl, build_c_parm, build_attrs_declarator,
8579 build_function_declarator, make_pointer_declarator, c_cast_expr,
8580 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
8581 (build_id_declarator): New.
8582 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
8583 structures.
8584 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
8585 ARG_INFO_OTHERS): Remove.
8586 (build_id_declarator): New.
8587 (build_array_declarator, set_array_declarator_inner, groktypename,
8588 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
8589 grokfield, start_function, store_parm_decls_newstyle,
8590 store_parm_decls_oldstyle, store_parm_decls,
8591 build_c_parm, build_attrs_declarator, build_function_declarator,
8592 make_pointer_declarator, grokdeclarator): Update to new
8593 structures.
8594 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
8595 parmtype.
8596 (declarator, notype_declarator, after_type_declarator,
8597 parm_declarator, parm_declarator_starttypename,
8598 parm_declarator_nostarttypename, array_declarator, typename,
8599 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
8600 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
8601 parmlist_1, parmlist_2, parmlist_or_identifiers,
8602 parmlist_or_identifiers_1): Use these types.
8603 (primary, after_type_declarator, parm_declarator_starttypename,
8604 notype_declarator, component_decl, component_declarator,
8605 component_notype_declarator, typename, absdcl,
8606 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
8607 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
8608
8609 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
8610
8611 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
8612 in_typeof, record_maybe_used_decl, pop_maybe_used,
8613 c_expr_sizeof_expr, c_expr_sizeof_type): New.
8614 * c-decl.c (parser_obstack): New.
8615 (c_init_decl_processing): Initialize parser_obstack.
8616 (c_write_global_declarations_1): Check for used but undefined
8617 static functions.
8618 * c-parse.in (%union): Add otype.
8619 (save_obstack_position): New.
8620 (extdefs): Use it.
8621 (unary_expr): Update in_sizeof and in_alignof. Use
8622 c_expr_sizeof_expr and c_expr_sizeof_type.
8623 (sizeof): Update in_sizeof.
8624 (alignof): Update in_alignof.
8625 (typeof): Update in_typeof.
8626 (typespec_nonreserved_nonattr): Call pop_maybe_used.
8627 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
8628 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
8629 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
8630 (build_external_ref): Set C_DECL_USED or call
8631 record_maybe_used_decl if appropriate.
8632 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
8633
8634 2004-09-08 Eric Christopher <echristo@redhat.com>
8635
8636 * builtins.c: Fix prototype for fold_builtin_atan.
8637
8638 2004-09-08 Eric Christopher <echristo@redhat.com>
8639
8640 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
8641 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
8642 fold_builtin_atan): New functions. Migrate function bodies...
8643 (fold_builtin_1): ... from here.
8644
8645 2004-09-09 Alan Modra <amodra@bigpond.net.au>
8646
8647 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
8648 save_size.
8649
8650 2004-09-08 David Edelsohn <edelsohn@gnu.org>
8651
8652 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
8653 * config/rs6000/power5.md (power5-lmul): Same.
8654
8655 2004-09-08 Richard Henderson <rth@redhat.com>
8656
8657 PR rtl-opt/17186
8658 * function.c (expand_function_end): Have fall-off-the-end
8659 return path jump around return register setup.
8660
8661 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
8662
8663 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
8664 (output_return): Do not test for the presence of the 'unimp' insn.
8665 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
8666 as predicates instead of custom ones. Return raw strings when
8667 possible.
8668 (output_sibcall): Likewise. Concatenate strings.
8669 (output_ubranch): Remove kludge for TurboSPARC.
8670 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
8671 (output_v9branch): Likewise.
8672 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
8673 <#>: Set sparc_indent_opcode if the delay slot is filled.
8674 <(>: Likewise.
8675 <)>: New operand to emit the displacement from the saved PC on return.
8676 <@>: Remove.
8677 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
8678 (ASM_OUTPUT_OPCODE): New macro.
8679 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
8680 * config/sparc/sparc.md (normal_branch, inverted_branch,
8681 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
8682 inverted_fpe_branch): Adjust call to output_cbranch.
8683 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
8684 call to output_v9branch.
8685 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
8686 (output_v9branch): Likewise.
8687
8688 2004-09-08 Devang Patel <dpatel@apple.com>
8689
8690 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
8691 -segs_read_only_addr and -segs_read_write_addr.
8692 (WORD_SWITCH_TAKES_ARG): Same.
8693 (LINK_SPEC): Same.
8694 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
8695 -segs_read_write_addr.
8696
8697 2004-09-08 Richard Henderson <rth@redhat.com>
8698
8699 * function.c (reference_callee_copied): New.
8700 (assign_parm_setup_reg): Use it.
8701 * calls.c (initialize_argument_information): Likewise.
8702 (emit_library_call_value_1): Likewise.
8703 * function.h (reference_callee_copied): Declare.
8704
8705 * target.h (struct gcc_target): Add callee_copies.
8706 * target-def.h (TARGET_CALLEE_COPIES): New.
8707 (TARGET_PASS_BY_REFERENCE): Update default.
8708 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8709 * targhooks.c (hook_callee_copies_named): New.
8710 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
8711 hook_pass_by_reference_false.
8712 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
8713 * targhooks.h: Update decls.
8714 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
8715 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8716 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
8717 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
8718 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8719 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
8720 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8721 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
8722 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8723 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
8724 (mips_callee_copies): New.
8725 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8726 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
8727 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8728 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
8729 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8730 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
8731 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8732 * config/sh/sh.c (sh_callee_copies): New.
8733 (TARGET_CALLEE_COPIES): New.
8734 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8735 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
8736 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
8737 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
8738 for FUNCTION_ARG_CALLEE_COPIES.
8739 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
8740
8741 2004-09-08 Devang Patel <dpatel@apple.com>
8742
8743 * tree-if-conv.c (find_phi_replacement_condition): Return true
8744 edge block.
8745 (replace_phi_with_cond_modify_expr): Select conditional expr args
8746 based on true edge basic block.
8747
8748 2004-09-08 Jan Hubicka <jh@suse.cz>
8749
8750 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
8751 variables being alias set.
8752
8753 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
8754
8755 * final.c (shorten_branches, final, get_insn_template,
8756 output_alternate_entry_point, final_scan_insn, alter_subreg,
8757 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
8758 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
8759 * fix-header.c (lookup_std_proto): Likewise.
8760 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
8761 verify_local_live_at_start, update_life_info, mark_reg,
8762 calculate_global_regs_live, allocate_reg_life_data,
8763 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
8764 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
8765 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
8766 * fold-const.c (force_fit_type, div_and_round_double,
8767 may_negate_without_overflow_p, int_const_binop, const_binop,
8768 size_binop, size_diffop, fold_convert_const, fold_convert,
8769 invert_tree_comparison, swap_tree_comparison,
8770 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
8771 range_binop, make_range, fold_cond_expr_with_comparison,
8772 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
8773 fold_abs_const, fold_not_const, fold_relational_const, round_up,
8774 round_down): Likewise.
8775 * function.c (find_function_data, assign_stack_temp_for_type,
8776 instantiate_virtual_regs_lossage, aggregate_value_p,
8777 assign_parm_find_entry_rtl, assign_parm_setup_block,
8778 expand_function_start, expand_function_end, keep_stack_depressed,
8779 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
8780
8781 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
8782
8783 * Makefile.in (tree-loop-linear.o): Added.
8784 (OBJS-common): Add tree-loop-linear.o
8785 * common.opt: New flag, ftree-loop-linear.
8786 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
8787 * tree-flow.h: Add prototype for linear_transform_loops.
8788 * tree-optimize.c: Add linear transform after vectorization.
8789 * tree-pass.h: Add struct pass_linear_transform.
8790 * tree-ssa-loop.c: Add pass_linear_transform.
8791 * tree-loop-linear.c: New file.
8792 * lambda-code.c: gcc_assertify.
8793 (gcc_loop_to_lambda_loop): Handle all exit tests.
8794 Handle case where we have (invariant >= induction var).
8795 (find_induction_var_from_exit_cond): Ditto.
8796
8797 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
8798
8799 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
8800 memory tag is call clobbered, so are its aliases.
8801 (group_aliases): When two memory tags being grouped, if one is
8802 call clobbered, so are the other and its aliases.
8803 (add_may_alias): Remove call-clobbering stuff.
8804 (replace_may_alias): Likewise.
8805 (merge_pointed_to_info): Merge pt_global_mem
8806
8807 2004-09-08 Jan Hubicka <jh@suse.cz>
8808
8809 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
8810 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
8811 (cgraph_expand_function): Remove stale cgraph edges of currently
8812 compiled function; fix non-unit-at-a-time code copying function
8813 node for later reuse.
8814
8815 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
8816
8817 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
8818 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
8819 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
8820 (vec_gc_free, vec_heap_free): New.
8821 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
8822 (DEF_VEC_P): Add allocator argument. Adjust.
8823 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
8824 (DEF_VEC_O): Add allocator argument. Adjust.
8825 (VEC(free)): New.
8826
8827 * tree.h (tree): Define a GC'd vector.
8828 * lamba-code.c (lambda_loop): Likewise.
8829 * value-prof.h (histogram_value): Likewise.
8830
8831 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
8832
8833 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
8834 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
8835 gen_lowpart_common, gen_highpart, gen_highpart_mode,
8836 subreg_highpart_offset, operand_subword, operand_subword_force,
8837 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
8838 set_mem_alias_set, change_address_1, verify_rtx_sharing,
8839 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
8840 try_split, add_insn_after, add_insn_before, remove_insn,
8841 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
8842 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
8843 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
8844 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
8845 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
8846 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
8847 record_path_before_1, check_path_after_1, check_path_after): Likewise.
8848 * except.c (gen_eh_region, resolve_one_fixup_region,
8849 remove_unreachable_regions, convert_from_eh_region_ranges_1,
8850 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
8851 connect_post_landing_pads, sjlj_emit_function_exit,
8852 remove_exception_handler_label, remove_eh_handler,
8853 reachable_next_level, collect_one_action_chain,
8854 output_function_exception_table): Likewise.
8855 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
8856 optimize_save_area_alloca, allocate_dynamic_stack_space,
8857 probe_stack_range, hard_function_value): Likewise.
8858 * expmed.c (mode_for_extraction, store_bit_field,
8859 store_fixed_bit_field, extract_bit_field, expand_shift,
8860 expand_mult_const, expand_mult, choose_multiplier,
8861 expand_mult_highpart, expand_divmod, emit_store_flag,
8862 do_cmp_and_jump): Likewise.
8863 * expr.c (convert_move, convert_modes, move_by_pieces,
8864 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
8865 move_block_from_reg, gen_group_rtx, emit_group_load,
8866 emit_group_move, emit_group_store, use_reg, use_regs,
8867 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
8868 emit_move_insn, emit_move_insn_1, emit_push_insn,
8869 expand_assignment, store_expr, count_type_elements,
8870 store_constructor, store_field, safe_from_p, expand_var,
8871 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
8872
8873 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
8874
8875 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
8876 gcc_assert and gcc_unreachable.
8877 * ddg.c (create_ddg_dependence, add_deps_for_def,
8878 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
8879 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
8880 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
8881 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
8882 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
8883 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
8884 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
8885 dataflow_set_copy, hybrid_search, diagnostic.c,
8886 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
8887 * dojump.c (do_jump): Likewise.
8888 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
8889 compute_dom_fast_query, calculate_dominance_info,
8890 free_dominance_info, get_immediate_dominator,
8891 set_immediate_dominator, get_dominated_by,
8892 redirect_immediate_dominators, nearest_common_dominator,
8893 dominated_by_p, verify_dominators, recount_dominator,
8894 iterate_fix_dominators, add_to_dominance_info,
8895 delete_from_dominance_info): Likewise.
8896 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
8897 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
8898 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
8899 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
8900 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
8901 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
8902 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
8903 output_call_frame_info, output_loc_operands, build_cfa_loc,
8904 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
8905 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
8906 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
8907 splice_child_die, attr_checksum, same_dw_val_p,
8908 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
8909 unmark_dies, value_format, output_loc_list, output_die,
8910 output_pubnames, output_aranges, base_type_die, is_base_type,
8911 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
8912 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
8913 field_byte_offset, add_data_member_location_attribute,
8914 add_const_value_attribute, rtl_for_decl_location,
8915 add_location_or_const_value_attribute, add_byte_size_attribute,
8916 add_bit_offset_attribute, add_bit_size_attribute,
8917 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
8918 decl_start_label, gen_formal_parameter_die,
8919 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
8920 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
8921 force_decl_die, force_type_die, gen_decl_die,
8922 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
8923 dwarf2out_finish): Likewise.
8924
8925 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
8926
8927 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
8928 * builtins.c: Include tree-mudflap.h.
8929
8930 2004-09-08 Uros Bizjak <uros@kss-loka.si>
8931
8932 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
8933 force operand 0.0 into register in XFmode. Also do not force
8934 operand 0.0 into register if !TARGET_CMOVE.
8935 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
8936 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
8937 implement ftst x87 instruction.
8938 (*fp_jcc_7): New insn pattern. Change corresponding split
8939 pattern to handle "general_operand" instead of
8940 "nonimmediate_operand".
8941
8942 2004-09-08 Ben Elliston <bje@au.ibm.com>
8943
8944 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
8945
8946 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
8947
8948 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
8949 generated from standard va_arg expansion.
8950 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
8951 marked nodes.
8952 (mf_varname_tree, mf_file_function_line_tree): Add some support
8953 for column numbers if compiled with USE_MAPPED_LOCATION.
8954
8955 2004-09-07 Ziemowit Laski <zlaski@apple.com>
8956
8957 * c-decl.c (groktypename_in_parm_context): Remove function.
8958 * c-tree.h (groktypename_in_parm_context): Remove prototype.
8959
8960 2004-09-07 Ziemowit Laski <zlaski@apple.com>
8961
8962 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
8963 * c-parse.in: Include c-common.h instead of objc-act.h.
8964 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
8965 myparms, myparm): Remove %type declarations.
8966 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
8967 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
8968 declarations.
8969 (objc_inherit_code, objc_public_flag): Remove.
8970 (typespec_nonreserved_nonattr): Call
8971 objc_get_protocol_qualified_type() instead of get_static_reference()
8972 and get_protocol_reference().
8973 (stmt_nocomp): Call grokparm() on @catch parameter.
8974 (objcdef): Move semantic action to objc_finish_implementation().
8975 (classdef): Move semantic action to objc_start_class_interface(),
8976 objc_continue_interface(), objc_finish_interface(),
8977 objc_start_class_implementation(), objc_continue_implementation(),
8978 objc_start_category_interface() and
8979 objc_start_category_implementation().
8980 (protocoldef): Move semantic actions to objc_start_protocol() and
8981 objc_finish_interface().
8982 (ivar_decl_list): Remove nonterminal.
8983 (visibility_spec): Move semantic actions to objc_set_visibility().
8984 (ivar_decls): Remove assignment to $$.
8985 (ivar_decl): Rephrase in terms of component_decl; call
8986 objc_add_instance_variable().
8987 (ivars, ivar_declarator): Remove nonterminals.
8988 (opt_semi): New nonterminal.
8989 (methodtype): Remove semantic actions.
8990 (methoddef): Move semantic actions to objc_set_method_type(),
8991 objc_start_method_definition() and objc_finish_method_definition().
8992 (methodproto): Move semantic actions to objc_set_method_type() and
8993 objc_add_method_declaration().
8994 (methoddecl): Use objc_typename instead of typename; move semantic
8995 actions to objc_build_method_signature().
8996 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
8997 (optparmlist): Express in terms of optparms and optellipsis.
8998 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
8999 nonterminals.
9000 (keyworddecl): Use objc_typename instead of typename.
9001 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
9002 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
9003
9004 2004-09-08 Alan Modra <amodra@bigpond.net.au>
9005
9006 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
9007 (MD_FALLBACK_FRAME_STATE_FOR): Update.
9008 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
9009 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
9010 (MD_FROB_UPDATE_CONTEXT): Remove default.
9011 (uw_update_context_1): Instead #ifdef invocation.
9012 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
9013 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
9014 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
9015 (MD_UNWIND_SUPPORT): Undefine this instead.
9016 * config/i386/gnu.h: Likewise.
9017 * config/alpha/linux-unwind.h: New file, macro converted to
9018 function, extracted from..
9019 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
9020 (MD_UNWIND_SUPPORT): Define.
9021 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
9022 * config/i386/linux-unwind.h, config/i386/linux.h,
9023 config/i386/linux64.h: Likewise.
9024 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
9025 MD_HANDLE_UNWABI too.
9026 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
9027 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
9028 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
9029 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
9030 * config/sparc/linux-unwind.h, config/sparc/linux.h,
9031 config/sparc/linux64.h: Likewise.
9032 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
9033 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
9034 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
9035 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
9036 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
9037
9038 2004-09-07 Jan Hubicka <jh@suse.cz>
9039
9040 * cse.c (fold_rtx): Avoid building of
9041 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
9042
9043 * tree-ssa-pre.c (grand_bitmap_obstack): New.
9044 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
9045 (init_pre): Initialize obstack.
9046 (fini_pre): Free obstack.
9047
9048 2004-09-07 David Daney <ddaney@avtrex.com>
9049
9050 * config.gcc: Added support for --with-divide=[breaks|traps] for
9051 mips targets.
9052 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
9053 (TARGET_DIVIDE_TRAPS): New macro.
9054 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
9055 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
9056 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
9057 GENERATE_DIVIDE_TRAPS.
9058 (mips_output_division): Emit conditional trap if
9059 GENERATE_DIVIDE_TRAPS is set.
9060 * doc/install.texi: Document --with-divide.
9061 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
9062
9063 2004-09-07 Caroline Tice <ctice@apple.com>
9064
9065 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
9066 EDGE_CROSSING, to flags test case.
9067
9068 2004-09-07 Jan Hubicka <jh@suse.cz>
9069
9070 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
9071 class too.
9072
9073 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
9074
9075 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
9076 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
9077 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
9078 or gcc_unreachable.
9079 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
9080 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
9081 alloc_aux_for_edges, free_aux_for_edges): Likewise.
9082 * cfgcleanup.c (try_forward_edges,
9083 merge_blocks_move_predecessor_nojumps,
9084 merge_blocks_move_successor_nojumps): Likewise.
9085 * cfgexpand.c (expand_gimple_cond_expr,
9086 expand_gimple_tailcall): Likewise.
9087 * cfghooks.c (duplicate_block): Likewise.
9088 * cfglayout.c (record_effective_endpoints,
9089 insn_locators_initialize, change_scope, fixup_reorder_chain,
9090 verify_insn_chain, fixup_fallthru_exit_predecessor,
9091 duplicate_insn_chain, cfg_layout_finalize): Likewise.
9092 * cfgloopanal.c (check_irred): Likewise.
9093 * cfgloop.c (superloop_at_depth, flow_loops_free,
9094 flow_loop_entry_edges_find, flow_loops_find,
9095 flow_loop_outside_edge_p, get_loop_body,
9096 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
9097 get_loop_exit_edges, num_loop_branches, cancel_loop,
9098 verify_loop_structure): Likewise.
9099 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
9100 duplicate_loop_to_header_edge, create_preheader,
9101 create_loop_notes): Likewise.
9102 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
9103 edirect_branch_edge, force_nonfallthru_and_redirect,
9104 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
9105 commit_edge_insertions, commit_edge_insertions_watch_calls,
9106 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
9107 cfg_layout_redirect_edge_and_branch_force,
9108 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
9109 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
9110 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
9111 cgraph_varpool_node): Likewise.
9112 * cgraphunit.c (cgraph_finalize_function,
9113 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
9114 cgraph_expand_function, cgraph_remove_unreachable_nodes,
9115 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9116 cgraph_mark_inline, cgraph_expand_all_functions,
9117 cgraph_build_static_cdtor): Likewise.
9118 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
9119 simplify_logical, distribute_notes, insn_cuid): Likewise.
9120 * conflict.c (conflict_graph_add, print_conflict): Likewise.
9121 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
9122 coverage_checksum_string): Likewise.
9123 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
9124 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
9125 cse_cc_succs, cse_condition_code_reg): Likewise.
9126 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
9127 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
9128 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
9129 cselib_record_set): Likewise.
9130
9131 2004-09-07 Jan Hubicka <jh@suse.cz>
9132
9133 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
9134
9135 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
9136
9137 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
9138 fold_convert.
9139 (fold_builtin_strpbrk): Likewise.
9140 * expr.c (array_ref_low_bound): Likewise.
9141 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
9142 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
9143 * tree-sra.c (generate_element_zero): Likewise.
9144 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
9145 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
9146 add_old_iv_candidates, add_iv_candidates): Likewise.
9147 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
9148
9149 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
9150
9151 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
9152 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
9153 c_expand_expr, boolean_increment, nonnull_check_p,
9154 check_function_arguments_recurse, fold_offsetof_1): Likewise.
9155 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
9156 builtin_define_type_max): Likewise.
9157 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
9158 implicit_decl_warning, builtin_function, build_compound_literal,
9159 complete_array_type, grokdeclarator, get_parm_info,
9160 start_function, store_parm_decls_oldstyle,
9161 c_write_global_declarations): Likewise.
9162 * c-format.c (get_constant, decode_format_attr,
9163 maybe_read_dollar_number, get_flag_spec, check_format_arg,
9164 check_format_types, format_type_warning,
9165 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
9166 init_dynamic_diag_info, handle_format_attribute): Likewise.
9167 * c-gimplify.c (push_context, pop_context, finish_bc_block):
9168 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
9169 * c-objc-common.c (c_tree_printer): Likewise.
9170 * c-pch.c (pch_init): Likewise.
9171 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
9172 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
9173 * c-typeck.c (c_incomplete_type_error, composite_type,
9174 common_pointer_type, common_type, same_translation_unit_p,
9175 tagged_types_tu_compatible_p, finish_init, pop_init_level,
9176 set_designator, set_nonincremental_init_from_string,
9177 process_init_element, c_finish_if_stmt): Likewise.
9178 * caller-save.c (init_caller_save, save_call_clobbered_regs,
9179 insert_restore, insert_save, insert_one_insn): Likewise.
9180 * calls.c (emit_call_1, compute_argument_block_size,
9181 precompute_arguments, expand_call, emit_library_call_value_1,
9182 store_one_arg): Likewise.
9183
9184 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
9185
9186 * configure.ac (enable-checking): Add release option. Reorganize
9187 to avoid repetition.
9188 * configure: Rebuilt.
9189 * doc/install.texi (enable-checking): Amend documentation.
9190
9191 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
9192
9193 PR bootstrap/17313
9194 * Makefile.in (specs.ready): Depend on cc1$(exeext).
9195
9196 2004-09-06 James E Wilson <wilson@specifixinc.com>
9197
9198 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
9199 movdf_hardfloat_32bit): Split fG into two alternatives.
9200 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
9201
9202 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
9203
9204 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
9205
9206 * final.c (output_in_slot): Delete.
9207 (final_scan_insn): Revert 2004-09-03 change.
9208 (output_asm_insn): Likewise.
9209 * config/sparc/sparc.c (output_return): Likewise.
9210 (output_sibcall): Likewise.
9211
9212 2004-09-06 Jan Hubicka <jh@suse.cz>
9213
9214 * loop.c (loop_dump_aux): Do not print RTL when not available.
9215 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
9216 frontend specific type nodes.
9217 (produce_memory_decl_rtl): Break out from ...
9218 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
9219 (get_computation_at): Avoid random tree sharing.
9220 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
9221
9222 2004-09-06 Zack Weinberg <zack@codesourcery.com>
9223
9224 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
9225 unnecessary commands.
9226
9227 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
9228
9229 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
9230 (bitmap.o): Likewise.
9231
9232 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
9233
9234 Unify the management of RTL and tree-level dump files.
9235
9236 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
9237 Don't print function name to the dump file, the pass manager
9238 would do this for us. Add code from the top of
9239 rest_of_compilation, up to the initial RTL dump.
9240 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
9241 close the DFI_sibling dump file.
9242 (rest_of_compilation): Don't do that here. Remove code up to the
9243 initial RTL dump.
9244 (init_optimization_passes): Remove.
9245 (pass_rest_of_compilation): Change pass name to NULL.
9246 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
9247 Do not call init_optimization_passes.
9248 * toplev.h (init_optimization_passes): Remove.
9249
9250 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9251 finish_graph_dump_file): Remove SUFFIX parameter.
9252 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
9253 finish_graph_dump_file): Likewise.
9254
9255 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
9256 * cfgexpand.c (pass_expand): Adjust.
9257 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
9258 * passes.c (pass_rest_of_compilation): Adjust.
9259 * predict.c (pass_profile): Adjust.
9260 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
9261 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
9262 pass_split_crit_edges, pass_warn_function_return): Adjust.
9263 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
9264 * tree-dfa.c (pass_referenced_vars): Adjust.
9265 * tree-eh.c (pass_lower_eh): Adjust.
9266 * tree-if-conv.c (pass_build_ssa): Adjust.
9267 * tree-into-ssa.c (pass_build_ssa): Adjust.
9268 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
9269 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
9270 * tree-nrv.c (pass_nrv): Adjust.
9271 * tree-optimize.c (pass_gimple, pass_all_optimizations,
9272 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
9273 pass_init_datastructures): Adjust.
9274 * tree-outof-ssa.c (pass_del_ssa): Adjust.
9275 * tree-profile.c (pass_tree_profile): Adjust.
9276 * tree-sra.c (pass_sra): Adjust.
9277 * tree-ssa-alias.c (pass_may_alias): Adjust.
9278 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
9279 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
9280 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
9281 * tree-ssa-dom.c (pass_dominator): Adjust.
9282 * tree-ssa-dse.c (pass_dse): Adjust.
9283 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
9284 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
9285 * tree-ssa-loop-ch.c (pass_ch): Adjust.
9286 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
9287 pass_loop_done, pass_complete_unroll, pass_iv_canon,
9288 pass_iv_optimize, pass_vectorize): Adjust.
9289 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
9290 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
9291 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
9292 pass_late_warn_uninnitialized): Adjust.
9293 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
9294
9295 * Makefile.in (tree-dump.o): Add new dependencies.
9296 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
9297 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
9298 Likewise.
9299 * toplev.c (dump_file_name): New.
9300 * tree-dump.c (dump_enable_all): Add LETTER parameter.
9301 (struct dump_file_info): Add NUM and LETTER fields.
9302 (dump_files): Adjust and add RTL dump files.
9303 (dump_register): Add NUM and LETTER fields.
9304 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
9305 (dump_begin): Use get_dump_file_name.
9306 (dump_switch_p_1): Adjust call to dump_enable_all.
9307 * tree-dump.h (dump_register): Adjust prototype.
9308 * tree-optimize.c (register_one_dump_file): Take dump file index.
9309 Support flags for RTL dumps.
9310 (register_dump_files): Fill in NUM field of struct dump_file_info.
9311 Track properties both when the gate is executed and when it is not.
9312 (execute_todo): Dump RTL. Add PROPERTIES parameter.
9313 (execute_one_pass): Pass properties to execute_todo. Handle VCG
9314 dumps of RTL.
9315 * tree-pass.h (dump_file_name): New.
9316 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
9317 New.
9318
9319 * Makefile.in (passes.o): Add new dependencies.
9320 * passes.c (struct dump_file_info, enum dump_file_index,
9321 dump_file_tbl, init_optimization_passes): Remove.
9322 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
9323 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
9324 dump_enabled_p.
9325 (finish_optimization_passes): Update finish_graph_dump_file loop.
9326 (enable_rtl_dump_file): Remove.
9327 * tree-dump.c (dump_files): Adjust and add RTL dump files.
9328 (enable_rtl_dump_file): Add here.
9329 * tree.h (enum tree_dump_index): Add RTL dump file indices.
9330 * doc/invoke.texi (Debugging options): Document new RTL debugging
9331 options. Update.
9332
9333 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
9334
9335 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
9336 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
9337 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
9338 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
9339 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
9340 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
9341 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
9342 vec.h: Fix comment formatting.
9343
9344 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
9345
9346 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
9347 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
9348 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
9349 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
9350 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
9351 tree-ssa-loop-niter.c, tree-ssa-operands.c,
9352 tree-ssa-operands.h, tree-ssa-propagate.c,
9353 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
9354 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
9355
9356 2004-09-05 Diego Novillo <dnovillo@redhat.com>
9357
9358 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
9359 vectorizer is enabled.
9360
9361 2004-09-05 Andreas Jaeger <aj@suse.de>
9362
9363 * tree-if-conv.c: Spell check comments and clean up whitespace.
9364
9365 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9366
9367 * tree-ssa-loop-ivopts.c: New file.
9368 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
9369 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
9370 target_pres_cost, target_spill_cost): Declare.
9371 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
9372 spill_cost): Renamed to ...
9373 (target_avail_regs, target_res_regs, target_small_cost,
9374 target_pres_cost, target_spill_cost): ... and exported.
9375 (init_set_costs, global_cost_for_size): Work with renamed variables.
9376 * common.opt (flag_ivopts): New flag.
9377 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
9378 REF_ORIGINAL.
9379 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
9380 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
9381 generating SSA form.
9382 (force_gimple_operand): New function.
9383 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
9384 * tree-cfg.c (stmt_bsi): New function.
9385 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
9386 PARAM_IV_MAX_CONSIDERED_USES): New.
9387 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
9388 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
9389 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
9390 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
9391 * tree-nested.c (build_addr): Export.
9392 * tree-optimize.c (init_tree_optimization_passes): Add
9393 pass_iv_optimize.
9394 * tree-pass.h (pass_iv_optimize): Declare.
9395 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
9396 IMAGPART_EXPR.
9397 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
9398 as a phi node argument.
9399 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
9400 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
9401 functions.
9402 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
9403 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
9404 pass_iv_optimize): New pass.
9405 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
9406 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
9407 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
9408 * tree.h (REF_ORIGINAL): New macro.
9409 (build_int_cst_type, unsigned_type_for, zero_p,
9410 cst_and_fits_in_hwi, build_addr): Declare.
9411 * doc/invoke.texi (-fivopts): Document.
9412 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
9413 PARAM_IV_MAX_CONSIDERED_USES): Document.
9414 * doc/passes.texi: Document induction variable optimizations pass.
9415
9416 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9417
9418 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
9419 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
9420 * c-common.c (c_common_attribute_table): Accept parameters to
9421 sentinel attribute.
9422 (check_function_sentinel, handle_sentinel_attribute): Likewise.
9423 * doc/extend.texi: Update accordingly.
9424
9425 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9426
9427 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
9428 New.
9429 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
9430 attribute.
9431 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
9432 New functions.
9433 (c_common_attribute_table): Add `sentinel' attribute.
9434 (check_function_arguments): Handle `sentinel' attribute.
9435 * doc/extend.texi: Document `sentinel' attribute.
9436
9437 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
9438
9439 * configure: Regenerated.
9440
9441 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9442
9443 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
9444
9445 * tree.c (save_expr): No longer TREE_READONLY.
9446
9447 2004-09-04 Jan Hubicka <jh@suse.cz>
9448
9449 * passes.c (rest_of_clean_state): Fix merge conflict made during
9450 commiting the patch.
9451
9452 2004-09-04 Jan Hubicka <jh@suse.cz>
9453
9454 * passes.c (rest_of_clean_state): Decompose the instruction stream.
9455
9456 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
9457
9458 * doc/md.texi (shift patterns): New anchor. Add reference to
9459 TARGET_SHIFT_TRUNCATION_MASK.
9460 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
9461 * target.h (shift_truncation_mask): New target hook.
9462 * targhook.h (default_shift_truncation_mask): Declare.
9463 * targhook.c (default_shift_truncation_mask): Define.
9464 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
9465 (TARGET_INITIALIZER): Include it.
9466 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
9467 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
9468 reject all out-of-range values. Fix sign-extension code for modes
9469 whose width is smaller than HOST_BITS_PER_WIDE_INT.
9470 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
9471 (expand_superword_shift, expand_subword_shift): Likewise.
9472 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
9473 (expand_binop): Use them to implement double-word shifts.
9474 * config/arm/arm.c (arm_shift_truncation_mask): New function.
9475 (TARGET_SHIFT_TRUNCATION_MASK): Define.
9476
9477 2004-09-04 Jan Hubicka <jh@suse.cz>
9478
9479 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
9480 (mix): New macro copied from hashtab.c
9481 (iterative_hash_hashval_t, iterative_hash_pointer,
9482 iterative_hash_host_wide_int): New functions based on hashtab.c
9483 implementation.
9484
9485 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
9486
9487 * config/mips/mips.md (mask): New mode attribute.
9488 (zero_extendsidi2): Add memory alternative.
9489 (*zero_extendsidi2_mem): Delete.
9490 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
9491 memory_operand in the TARGET_MIPS16 check.
9492 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
9493 Redefine using :GPR and :SHORT.
9494 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
9495
9496 2004-09-04 Uros Bizjak <uros@kss-loka.si>
9497
9498 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
9499 using rint_optab.
9500 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
9501 expand_builtin_mathfn.
9502 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
9503 btrunc?f patterns for btrunc_optab. Implement rint_optab using
9504 rint?f patterns.
9505 * optabs.c (init_optabs): Initialize rint_optab.
9506 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
9507 Add new OTI_rint.
9508 (btrunc_optab): Rename macro from trunc_optab.
9509 (rint_optab): Define corresponding macro.
9510
9511 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
9512 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
9513
9514 * config/i386/i386-protos.h (emit_i387_cw_initialization):
9515 Change prototype. Add new int parameter.
9516 * config/i386/i386.c (emit_i387_cw_initialization):
9517 Handle new rounding modes.
9518
9519 * config/i386/i386.h (enum fp_cw_mode): Delete.
9520 (MODE_NEEDED): Handle new rounding modes.
9521 (EMIT_MODE_SET): Change condition to handle new rounding modes.
9522
9523 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
9524 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
9525 represent different rounding modes of frndint insn.
9526 (type): Add frndint type.
9527 (i387, length, memory): Handle this type.
9528 (i387_cw): New attribute definition.
9529 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
9530 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
9531 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
9532 Add "i387_cw" attribute defined to "trunc".
9533 (x86_fnstcw_1): Remove comment.
9534 (*frndintxf2): Rename insn definition to frndintxf2. Move
9535 insn definition near rint?f2 expanders.
9536 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
9537 rintf and rintl built-ins as inline x87 intrinsics.
9538 (frndintxf2_floor): New pattern to implement floor rounding
9539 mode with frndint x87 instruction.
9540 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
9541 floorf and floorl built-ins as inline x87 intrinsics.
9542 (frndintxf2_ceil): New pattern to implement ceil rounding
9543 mode with frndint x87 instruction.
9544 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
9545 ceilf and ceill built-ins as inline x87 intrinsics.
9546 (frndintxf2_trunc): New pattern to implement trunc rounding
9547 mode with frndint x87 instruction.
9548 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
9549 truncf and truncl built-ins as inline x87 intrinsics.
9550 (frndintxf2_mask_pm): New pattern to implement rounding
9551 mode with exceptions with frndint x87 instruction.
9552 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
9553 implement nearbyint, nearbyintf and nearbyintl built-ins as
9554 inline x87 intrinsics.
9555
9556 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
9557
9558 * config/mips/mips.md (SHORT): New mode macro.
9559 (size): New mode attribute.
9560 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
9561 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
9562 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
9563 !ISA_HAS_SEB_SEH.
9564 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
9565 *extend[qh]isi2_hw patterns and extending them to di.
9566 (extendqihi2): Implement as define_insn_and_split that produces
9567 extendqisi2 after reload.
9568
9569 2004-09-03 Devang Patel <dpatel@apple.com>
9570
9571 * Makefile.in (OBJS-common): Add tree-if-conv.o
9572 (tree-if-conv.o): New rule.
9573 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
9574 (get_loop_body_in_bfs_order): New.
9575 * cfgloop.h (get_loop_body_in_bfs_order): New.
9576 * tree-flow.h (enum move_pos): Move here from ..
9577 * tree-ssa-loop-im.c (enum move_pos): here.
9578 (movement_possibility): Make externally visible.
9579 * tree-optimize.c (init_tree_optimization_passes): New entry for
9580 if conversion pass.
9581 * tree-pass.h (pass_if_conversion): New.
9582 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
9583 * tree-if-conv.c: New file.
9584 * doc/passes.texi: Document tree if-conversion pass.
9585 * doc/tree-ssa.texi: Same.
9586
9587 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
9588
9589 PR target/14925:
9590 Makefile.in (LIB2ADDEHSTATIC): New.
9591 (LIB2ADDEHSHARED): New.
9592 (LIBUNWIND): New.
9593 (LIBUNWINDDEP): New.
9594 (SHLIBUNWIND_LINK): New.
9595 (SHLIBUNWIND_INSTALL): New.
9596 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
9597 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
9598 (clean): Remove libunwind*
9599 (stage1-start): Remove and copy stage1/libunwind*.
9600 (stage2-start): Remove and copy stage2/libunwind*.
9601 (stage3-start): Remove and copy stage3/libunwind*.
9602 (stage4-start): Remove and copy stage4/libunwind*.
9603 (stageprofile-start): Remove and copy stageprofile/libunwind*.
9604 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
9605
9606 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
9607 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
9608 tmake_file if --with-system-libunwind isn't used.
9609
9610 * config/ia64/t-glibc-libunwind: New file.
9611 * config/t-libunwind-elf: Likewise.
9612 * unwind-compat.c: Likewise.
9613 * unwind-compat.h: Likewise.
9614 * unwind-dw2-fde-compat.c: Likewise.
9615
9616 * config/ia64/t-glibc (LIB2ADDEH): Updated.
9617 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
9618
9619 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
9620 aliases if needed.
9621 * unwind-dw2-fde-glibc.c: Likewise.
9622 * unwind-dw2.c: Likewise.
9623
9624 * config/t-libunwind (LIB2ADDEH): Updated.
9625 (LIB2ADDEHSTATIC): New.
9626 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
9627 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
9628
9629 * configure.ac: Change --enable-libunwind-exceptions to
9630 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
9631 * configure: Regenerated.
9632 * config.in: Updated.
9633
9634 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
9635 above and mention --with-system-libunwind.
9636 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
9637 removed in gcc 3.4.3 and later.
9638
9639 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
9640 USE_LIBUNWIND_EXCEPTIONS is defined.
9641
9642 * mklibgcc.in: Support libunwind.
9643
9644 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
9645
9646 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
9647 m_NOCONA.
9648
9649 2004-09-03 Richard Henderson <rth@redhat.com>
9650
9651 PR middle-end/9997
9652 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
9653 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
9654 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
9655 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
9656 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
9657 resize_stack_vars_conflict, add_stack_var_conflict,
9658 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
9659 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
9660 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
9661 expand_one_static_var, expand_one_hard_reg_var,
9662 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
9663 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
9664 (expand_used_vars): Rewrite.
9665 * Makefile.in (cfgexpand.o): Update dependencies.
9666
9667 2004-09-04 Jan Hubicka <jh@suse.cz>
9668
9669 * cfg.c (free_edge): Use ggc_free.
9670 (expunge_block): Use ggc_free.
9671 * passes.c (rest_of_clean_state): Free after compilation.
9672 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
9673 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
9674
9675 2004-09-03 James E Wilson <wilson@specifixinc.com>
9676
9677 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
9678 DECL_EXTERNAL check.
9679
9680 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
9681
9682 * final.c (output_in_slot): New global variable.
9683 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
9684 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
9685 'output_in_slot' before invoking output_asm_insn.
9686 (output_asm_insn): Add a space after the tab if 'output_in_slot'
9687 is set.
9688 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
9689 final_scan_insn.
9690 (output_sibcall): Likewise.
9691
9692 2004-09-03 Jan Hubicka <jh@suse.cz>
9693
9694 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
9695 * tree-ssanames (init_ssanames): Likewise.
9696
9697 2004-09-03 Ziemowit Laski <zlaski@apple.com>
9698
9699 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
9700 objc_declare_protocols, objc_start_protocol,
9701 objc_start_class_interface, objc_start_category_interface,
9702 objc_continue_interface, objc_finish_interface,
9703 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
9704 objc_start_class_implementation, objc_start_category_implementation,
9705 objc_continue_implementation, objc_finish_implementation,
9706 objc_add_method_declaration, objc_start_method_definition,
9707 objc_finish_method_definition, objc_build_keyword_decl,
9708 objc_build_method_signature, objc_build_encode_expr,
9709 objc_build_protocol_expr, objc_build_selector_expr,
9710 objc_build_message_expr, objc_build_string_object,
9711 objc_get_class_reference, objc_get_protocol_qualified_type,
9712 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
9713
9714 2004-09-03 James E Wilson <wilson@specifixinc.com>
9715
9716 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
9717
9718 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
9719 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
9720 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
9721 (mips_recip1_<fmt>): Use frdiv1 type.
9722 (mips_recip2_<fmt>): Use frdiv2 type.
9723 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
9724 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
9725 and frsqrt1.
9726 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
9727
9728 2004-09-03 Daniel Jacobowitz <dan@debian.org>
9729
9730 * reload.c (find_reloads): Swap operand_loc pointers for
9731 find_dummy_reload if we have swapped two operands.
9732
9733 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
9734
9735 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
9736 to get the tablejump-insn before the jump-table label.
9737
9738 2004-09-03 Ziemowit Laski <zlaski@apple.com>
9739
9740 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
9741 objc_declare_protocols, objc_build_message_expr,
9742 objc_finish_message_expr, objc_build_selector_expr,
9743 objc_build_protocol_expr, objc_build_encode_expr,
9744 objc_build_string_object, objc_get_protocol_qualified_type,
9745 objc_get_class_reference, objc_get_class_ivars,
9746 objc_start_class_interface, objc_start_category_interface,
9747 objc_start_protocol, objc_continue_interface, objc_finish_interface,
9748 objc_start_class_implementation, objc_start_category_implementation,
9749 objc_continue_implementation, objc_finish_implementation,
9750 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
9751 objc_add_method_declaration, objc_start_method_definition,
9752 objc_finish_method_definition, objc_add_instance_variable,
9753 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
9754 objc_finish_try_stmt, objc_begin_catch_clause,
9755 objc_finish_catch_clause, objc_build_finally_clause,
9756 objc_build_synchronized, objc_static_init_needed_p,
9757 objc_generate_static_init_call): New prototypes.
9758
9759 2004-09-03 Steve Ellcey <sje@cup.hp.com>
9760
9761 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
9762 is only one reg.
9763 (ia64_function_value): Ditto.
9764
9765 2004-09-03 Jan Beulich <jbeulich@novell.com>
9766
9767 * config.gcc: Resurrect NetWare as a target. Handle special case of
9768 Novell linker to be used (specified through --with-ld=) and threading
9769 model of either Posix (default) or NKS.
9770 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
9771 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
9772 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
9773 * config/i386/netware.c, config/i386/netware.h: New.
9774 * config/i386/nwld.c, config/i386/nwld.h: New.
9775 * config/i386/netware-crt0.c: New.
9776 * config/i386/netware-libgcc.c: New.
9777 * config/i386/netware-libgcc.def: New.
9778 * config/i386/netware-libgcc.exp: New.
9779 * config/i386/t-netware, config/i386/t-nwld: New.
9780 * gthr-nks.h: New.
9781 * doc/install.texi: Document NKS threading model.
9782
9783 2004-09-03 Jan Beulich <jbeulich@novell.com>
9784
9785 PR c/7054
9786 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
9787 * tree.h (initial_max_fld_align): Declare
9788 * stor-layout.c (initial_max_fld_align): Define and initialize.
9789 (maximum_field_alignment): Initialize to the same value.
9790 * common.opt: Add -fpack-struct= variant of switch.
9791 * opts.c: Handle -fpack-struct= variant of switch.
9792 * c-pragma.c: Change #pragma pack() handling so that it becomes
9793 compatible to other compilers: accept individual 'push' argument,
9794 make final pop restore (command line) default, correct interaction
9795 of push/pop and sole specification of a new alignment (so that the
9796 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
9797 to #pragma pack(push, <n>).
9798 * doc/extend.texi: New node "Structure-Packing Pragmas" under
9799 "Pragmas", describing #pragma pack.
9800 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
9801 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
9802 Document new TARGET_DEFAULT_PACK_STRUCT.
9803
9804 2004-09-03 Devang Patel <dpatel@apple.com>
9805
9806 * dwarf2out.c (gen_field_die). Equate decl number to die.
9807
9808 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
9809
9810 PR target/15832
9811 * global.c (modify_reg_pav): New function.
9812 (make_accurate_live_analysis): Call the new function. Move pavin
9813 modification by earlyclobber set into the new function.
9814
9815 2004-09-03 Andreas Schwab <schwab@suse.de>
9816
9817 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
9818 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
9819 extended.
9820
9821 2004-09-02 Jan Beulich <jbeulich@novell.com>
9822
9823 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
9824 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
9825 not unwind code specific ones.
9826 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
9827 Remove unwind code specific dependencies.
9828 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
9829 Remove gbl-ctors.h.
9830 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
9831 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
9832 * tsystem.h: Declare memcpy and memset when inhibit_libc.
9833
9834 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
9835
9836 * combine.c (try_combine): Delay modifying of insns which cannot
9837 be easily undone.
9838
9839 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
9840
9841 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
9842 tree-loop-im.
9843 * gcc/tree-ssa-loop.c: Ditto
9844 * gcc/tree-ssa-loop-ivcanon.c: Ditto
9845 * gcc/doc/invoke.texi: Ditto.
9846
9847 2004-09-02 Ziemowit Laski <zlaski@apple.com>
9848
9849 * c-decl.c (store_parm_decls_newstyle): Make static.
9850 (store_parm_decls_from): New function.
9851 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
9852 (store_parm_decls_from): New prototype.
9853
9854 2004-09-02 David Edelsohn <edelsohn@gnu.org>
9855
9856 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
9857 HImode with STRICT_ALIGNMENT.
9858
9859 2004-09-02 Mark Mitchell <mark@codesourcery.com>
9860
9861 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
9862 (TARGET_OS_CPP_BUILTINS): Likewise.
9863 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
9864 TARGET_BPABI_CPP_BUILTINS.
9865
9866 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
9867
9868 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
9869
9870 2004-09-02 Eric Christopher <echristo@redhat.com>
9871
9872 * builtins.c (expand_builtin_cabs): Delete.
9873 (expand_builtin): If unable to fold the values do a normal
9874 library call for builtin_cab*.
9875 (fold_builtin_cabs): Depend on optimize and optimize_size.
9876 * optabs.c (expand_cmplxdiv_straight): Delete.
9877 (expand_cmplxdiv_wide): Ditto.
9878 (expand_vector_binop): Ditto.
9879 (expand_vector_unop): Ditto.
9880 (expand_complex_abs): Delete.
9881 (expand_binop): Remove calls to above functions.
9882 Remove open coding of complex arithmetic.
9883 (expand_unop): Ditto.
9884 * optabs.h: Remove prototypes.
9885
9886 2004-09-02 Ziemowit Laski <zlaski@apple.com>
9887
9888 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
9889 * c-tree.h (store_parm_decls_newstyle): New prototype.
9890
9891 2004-09-02 Geoffrey Keating <geoffk@apple.com>
9892
9893 * config/rs6000/rs6000.c (expand_block_clear): Use vector
9894 instructions if available.
9895 (expand_block_move): Likewise.
9896
9897 2004-09-03 Jan Hubicka <jh@suse.cz>
9898
9899 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
9900
9901 2004-09-02 Mark Mitchell <mark@codesourcery.com>
9902
9903 * config/arm/symbian.h (LIB_SPEC): Define to empty.
9904 * config/arm/t-symbian (SHLIB_LC): Likewise.
9905
9906 2004-09-02 Paul Brook <paul@codesourcery.com>
9907
9908 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
9909
9910 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
9911
9912 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
9913 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
9914 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
9915 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
9916 (mips_issue_rate): Remove unreachable abort.
9917 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
9918 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
9919 (mips_block_move_straight, print_operand_address, mips_file_start)
9920 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
9921 (mips_output_conditional_branch, mips_expand_builtin_direct)
9922 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
9923 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
9924 with gcc_assert.
9925
9926 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
9927
9928 * config/mips/mips.md (*lea_high64): Change split condition to
9929 flow2_completed. Add a peephole2 to generate a more parallel version.
9930
9931 2004-09-02 Jan Hubicka <jh@suse.cz>
9932
9933 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
9934 GGC.
9935
9936 * ggc-page.c: include tree-flow.h.
9937 (extra_order_size_table): Add stmt_ann_d.
9938 (STAT_LABEL): Rename from ....
9939 (LABEL): ... this one.
9940 * Makefile.in (ggc-page.o): Add dependency.
9941
9942 * ggc-common.c (ggc_force_collect): New global variable.
9943 (loc_description): Add fields "freed", "collected"
9944 (ptr_hash): New static hash
9945 (ptr_hash_entry): New structure.
9946 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
9947 (ggc_record_overhead): Take ptr argument, record it
9948 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
9949 (cmp_statistics): Imrove sorting.
9950 (dump_ggc_loc_statistics): Output newly collected statistics
9951 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
9952 (ggc_free): Call ggc_free_overhead.
9953 (ggc_collect): Force collection when asked to be forced.
9954 (ggc_collect): Call ggc_prune_overhead_list.
9955 * ggc.h (ggc_force_collect): Declare
9956 (ggc_record_overhead): Update prototype.
9957 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
9958
9959 2004-09-02 James E Wilson <wilson@specifixinc.com>
9960
9961 * common.opt (ftrapping-math): Default to on.
9962
9963 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
9964
9965 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
9966
9967 2004-09-02 Denis Chertykov <denisc@overta.ru>
9968
9969 PR target/16884
9970 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
9971 match_scratch.
9972 (*movmemqi_insn): Likewise.
9973 (*movmemhi): Likewise.
9974 (clrmemhi): Likewise.
9975 (*clrmemqi): Likewise.
9976 (*clrmemhi): Likewise.
9977
9978 2004-09-02 Paul Brook <paul@codesourcery.com>
9979
9980 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
9981 default_use_cxa_atexit=yes.
9982
9983 2004-09-02 Alan Modra <amodra@bigpond.net.au>
9984
9985 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
9986 (struct kernel_old_ucontext): Delete.
9987 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
9988 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
9989 when IN_LIGGCC2.
9990
9991 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
9992
9993 * toplev.c (process_options): Fix typo.
9994
9995 2004-09-01 Richard Henderson <rth@redhat.com>
9996
9997 PR middle-end/17258
9998 * calls.c (initialize_argument_information): Tighten pass-through
9999 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
10000 Use build_fold_addr_expr.
10001 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
10002 that assumes ADDR_EXPR allocates stack space.
10003 * fold-const.c (build_fold_addr_expr_with_type): Look through
10004 WITH_SIZE_EXPR.
10005
10006 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
10007
10008 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
10009 * ggc.h (ggc_alloc_rtx): Delete.
10010
10011 2004-09-01 Roger Sayle <roger@eyesopen.com>
10012
10013 * expmed.c (enum alg_code): Remove long unused enumeration values.
10014 (struct mult_cost): New structure to hold the "score" of a synthetic
10015 multiply sequence, including both a rtx_cost and a latency field.
10016 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
10017 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
10018 (struct algorithm): Change type of cost field to be mult_cost.
10019 (synth_mult): Change type of cost_limit argument to be a
10020 pointer to a mult_cost. Update all cost comparisons to use the
10021 new mult_cost infrastructure. For alg_add_factor and
10022 alg_sub_factor operations, latency is lower than the rtx_cost.
10023 (choose_mult_variant): Update calls to synth_mult. Perform
10024 cost comparisons using the new mult_cost infrastructure.
10025 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
10026 to optain the total rtx_cost of a synth_mult "algorithm".
10027
10028 2004-09-01 David Edelsohn <edelsohn@gnu.org>
10029
10030 * config/rs6000/power4.md: Increase store latency to 12.
10031 * config/rs6000/power5.md: Same.
10032
10033 2004-09-01 James E Wilson <wilson@specifixinc.com>
10034
10035 PR target/14064
10036 * config/avr/avr.c (avr_unique_section): Delete prototype and
10037 definition.
10038 (TARGET_ASM_UNIQUE_SECTION): Delete.
10039
10040 2004-09-01 Ziemowit Laski <zlaski@apple.com>
10041
10042 * c-parse.in (primary): Call objc_build_message_expr(),
10043 objc_build_selector_expr(), objc_build_protocol_expr(),
10044 objc_build_encode_expr() and objc_build_string_object() instead of
10045 build_message_expr(), build_selector_expr(), build_protocol_expr(),
10046 build_encode_expr() and build_objc_string_object(), respectively.
10047 (component_decl_list2): Call objc_get_class_ivars() instead of
10048 get_class_ivars_from_name().
10049 (keyworddecl): Call objc_build_keyword_decl() instead of
10050 build_keyword_decl().
10051 (receiver): Call objc_get_class_reference() instead of
10052 get_class_reference().
10053 (reswords): Add blank line before @@ifobjc section, for clarity.
10054
10055 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
10056
10057 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
10058 to Altivec vetors.
10059
10060 2004-09-01 Wu Yongwei <adah@sh163.net>
10061 Danny Smith <dannysmith@users.sourceforge.net>
10062
10063 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
10064 not Windows 'DWORD'.
10065 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
10066 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
10067 (__gthr_win32_recursive_mutex_init_function): Add prototype for
10068 __GTHREAD_HIDE_WIN32API case..
10069 (__gthr_win32_recursive_mutex_lock): Likewise.
10070 (__gthr_win32_recursive_mutex_trylock): Likewise.
10071 (__gthr_win32_recursive_mutex_unlock): Likewise.
10072 (__gthread_recursive_mutex_init_function); Add definition for
10073 __GTHREAD_HIDE_WIN32API case.
10074 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
10075 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
10076 call to InterlockedDecrement.
10077
10078 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10079
10080 * tree-tailcall.c (find_tail_calls): Also fail is statement has
10081 volatile operands.
10082
10083 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
10084
10085 * doc/c-tree.texi: Document new operands for ARRAY_REF and
10086 COMPONENT_REF.
10087
10088 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10089
10090 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
10091 * common.opt (fspeculative-prefetching): New.
10092 * flags.h (flag_speculative_prefetching_set): Declare.
10093 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
10094 values.
10095 * opts.c (flag_sepculative_prefetching_set): New variable.
10096 (common_handle_option): Handle -fspeculative-prefetching.
10097 * passes.c (rest_of_compilation): Ditto.
10098 * profile.c (instrument_values, compute_value_histograms, branch_prob):
10099 Use vectors instead of arrays.
10100 * toplev.c (process_options): Handle -fspeculative-prefetching.
10101 * rtl-profile.c: Include ggc.h.
10102 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
10103 rtl_gen_one_value_profiler_no_edge_manipulation,
10104 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
10105 argument changed.
10106 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
10107 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
10108 argument changed.
10109 * value-prof.c: Include ggc.h.
10110 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
10111 macros.
10112 (insn_prefetch_values_to_profile, find_mem_reference_1,
10113 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
10114 speculative_prefetching_transform): New.
10115 (value_profile_transformations): Call speculative_prefetching_transform.
10116 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
10117 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
10118 tree_find_values_to_profile, find_values to profile): Use vectors
10119 instead of arrays.
10120 (free_profiled_values): Removed.
10121 * value-prof.h (struct histogram_value): Renamed to
10122 struct histogram_value_t.
10123 (histogram_value, histogram_values): New types.
10124 (find_values_to_profile): Declaration changed.
10125 (free_profiled_values): Removed.
10126 (struct profile_hooks): Type of argument of the hooks changed to
10127 histogram_value.
10128 * doc/invoke.texi (-fspeculative-prefetching): Document.
10129
10130 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10131
10132 PR rtl-optimization/16408
10133 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
10134
10135 2004-09-01 Richard Henderson <rth@redhat.com>
10136
10137 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
10138 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
10139
10140 2004-09-01 Jakub Jelinek <jakub@redhat.com>
10141
10142 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
10143
10144 2004-09-01 Mike Stump <mrs@apple.com>
10145
10146 * config/darwin.c (machopic_symbol_defined_p): In addition to
10147 being SYMBOL_REF_LOCAL_P, a symbol must also be
10148 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
10149 defined in this output file, or translation unit in the case
10150 of IMA not being used.
10151 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
10152 never need .indirect_symbol when indirecting.
10153
10154 2004-09-01 Jakub Jelinek <jakub@redhat.com>
10155
10156 * Makefile.in (bb-reorder.o): Add several dependencies.
10157
10158 2004-09-01 Jakub Jelinek <jakub@redhat.com>
10159
10160 * fold-const.c (operand_equal_p): Require equal sign also for
10161 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
10162
10163 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
10164
10165 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
10166 for use in configargs.h. Put the cname in a separate variable. Use
10167 that to set target_cpu_default2.
10168
10169 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
10170 Nick Clifton <nickc@redhat.com>
10171
10172 * config/sh/sh.md ("length"): Increase branch length when
10173 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
10174 constant, 2 byte for aligning the constant.
10175
10176 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
10177
10178 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
10179 CPU.
10180 (arm7tdmi-s): New CPU name.
10181 * arm/arm.c (ARM_CORE): Update for new format.
10182 * arm/arm.h (ARM_CORE): Likewise.
10183 * arm/gentune.sh: Update for extra field.
10184 * config.gcc: Likewise.
10185 * arm/arm-tune.md: Regenerate.
10186 * doc/invoke.texi: Document the real processor names for ARM cpus.
10187
10188 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
10189
10190 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
10191 (floatdidf): New functions.
10192 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
10193 (floatdisf): New functions.
10194 * t-arm-elf: Use them.
10195
10196 2004-09-01 Ziemowit Laski <zlaski@apple.com>
10197
10198 * c-common.h (lookup_interface): Remove prototype.
10199 (is_class_name): Rename to objc_is_class_name.
10200 (lookup_objc_ivar): Rename to objc_lookup_ivar.
10201 (get_current_scope): Rename to objc_get_current_scope.
10202 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
10203 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
10204 (yylexname): Call objc_is_class_name() instead of is_class_name().
10205 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
10206 instead of lookup_objc_ivar().
10207 * stub-objc.c (lookup_interface): Remove stub.
10208 (is_class_name): Rename to objc_is_class_name.
10209 (lookup_objc_ivar): Rename to objc_lookup_ivar.
10210
10211 2004-08-31 Mark Mitchell <mark@codesourcery.com>
10212
10213 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
10214 * config/arm/lib1funcs.asm: Do not include supplemental .S files
10215 when compiling for Symbian.
10216 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
10217 (TARGET_OS_CPP_BUILTINS): Likewise.
10218 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
10219
10220 2004-08-31 Stan Shebs <shebs@apple.com>
10221
10222 * toplev.c (process_options): Ensure debug_hooks is initialized.
10223
10224 2004-08-31 Mark Mitchell <mark@codesourcery.com>
10225
10226 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
10227 * target.h (cxx): Add export_class_data.
10228 * config/arm/arm.c (arm_cxx_export_class_data): New function.
10229 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
10230 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
10231
10232 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
10233
10234 * config/sh/sh.c (output_branch): Check the insn length possibly
10235 in the delayed slot.
10236
10237 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10238
10239 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
10240 blank after ')'.
10241 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
10242
10243 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
10244 (c_sizeof_of_alignof_type): Likewise.
10245 * expr.c (array_ref_element_size): Likewise.
10246 (highest_pow2_factor_for_target): Likewise.
10247 * gimplify.c (canonicalize_addr_expr): Likewise.
10248 (gimplify_compound_lval): Likewise.
10249 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
10250 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
10251 * varasm.c (assemble_variable): Likewise.
10252 (output_constant_def_contents): Alignments are unsigned.
10253
10254 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10255 Jeff Law <law@redhat.com>
10256
10257 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
10258 gets modified.
10259
10260 2004-08-31 Mark Mitchell <mark@codesourcery.com>
10261
10262 * hooks.c (hook_bool_void_true): New function.
10263 * hooks.h (hook_bool_void_true): Declare.
10264 * target-def.h (TARGET_CXX): Add
10265 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
10266 * target.h (struct cxx): Add key_method_may_be_inline.
10267 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
10268 function.
10269 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
10270 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
10271 __THUMB_INTERWORK.
10272
10273 2004-08-31 Denis Chertykov <denisc@overta.ru>
10274
10275 PR target/15417
10276 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
10277 frame pointer register only in Pmode while reload in progress.
10278
10279 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
10280
10281 PR target/15334
10282 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
10283 because it breaks the 32-bit shift patterns that rely on a match_dup.
10284
10285 2004-08-31 Matt Austern <austern@apple.com>
10286
10287 * config/darwin.c (darwin_make_decl_one_only): Allocate section
10288 names once per compilation, instead of once per symbol.
10289
10290 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
10291
10292 * Makefile.in (build_subdir): New substitution.
10293 (fixinc.sh): Simplify heavily since fixincludes is already built.
10294 (stmp-fixinc): Depend on specs.ready.
10295 (install-mkheaders): Use new location of fixincludes.
10296 (clean): Do not descend into fixinc.
10297 (FORBUILD): Replace with ../$(build_subdir).
10298 * configure.ac (build_subdir): Substitute.
10299 (FORBUILD): Do not set.
10300 (all_outputs): Remove fixinc/Makefile.
10301 (default commands): Do not create links in fixinc.
10302 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
10303 the fixincludes configuration steps and substituting
10304 @FIXINCL@ in fixinc.in.
10305 * fixinc.in: New, from fixinc/fixincl.sh.
10306
10307 * fixinc/*: Removed.
10308
10309 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
10310
10311 * attribs.c (strip_attrs): Remove.
10312 (split_specs_attrs): Move ...
10313 * c-decl.c: ... to here.
10314 * tree.h (split_specs_attrs, strip_attrs): Remove.
10315 * c-tree.h (split_specs_attrs): Declare.
10316
10317 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
10318
10319 * read-rtl.c: Disable RTL checking.
10320 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
10321
10322 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
10323
10324 * config/mips/mips.md (fcond): New code macro and attribute.
10325 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
10326 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
10327 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
10328
10329 2004-08-30 Mark Mitchell <mark@codesourcery.com>
10330
10331 Revert:
10332 2004-08-29 Mark Mitchell <mark@codesourcery.com>
10333 PR rtl-optimization/16590
10334 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
10335
10336 2004-08-30 Andrew Pinski <apinski@apple.com>
10337
10338 * hard-reg-set.h:
10339 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
10340 * ChangeLog: Fix previous ChangeLog entry.
10341
10342 PR rtl-opt/13987
10343 * config.host (use_long_long_for_widest_fast_int): New, default is
10344 off.
10345 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
10346 * configure.ac: If use_long_long_for_widest_fast_int, then
10347 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
10348 * configure: Regenerate.
10349 * config.in: Regenerate.
10350 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
10351 New: widest integer type supported efficiently in hardware for the
10352 host.
10353 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
10354 HOST_BITS_PER_WIDEST_FAST_INT.
10355 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
10356 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
10357 HOST_WIDEST_FAST_INT
10358 instead of HOST_WIDE_INT.
10359 (HARD_REG_SET_LONGS): Likewise.
10360 (UHOST_BITS_PER_WIDE_INT): Likewise.
10361 Change the checks for the fast cases to be based on
10362 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
10363
10364 2004-08-30 Steven Bosscher <stevenb@suse.de>
10365
10366 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
10367 not the pointers.
10368
10369 2004-08-30 Geoffrey Keating <geoffk@apple.com>
10370
10371 PR 12738
10372 PR 17205
10373 Radar 3460526
10374 Radar 3775729
10375 * c-decl.c (grokdeclarator): Produce error for 'static' on local
10376 function declaration.
10377
10378 2004-08-30 Richard Henderson <rth@redhat.com>
10379
10380 * expr.c (array_ref_element_size): Force aligned_size back to
10381 sizetype.
10382 (component_ref_field_offset): Similarly for aligned_offset.
10383 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
10384 low-bound, element-size, field-offset fields rather than
10385 computed values.
10386
10387 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
10388
10389 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
10390 redundant code.
10391
10392 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
10393
10394 * c-tree.h (struct language_function): Add arg_info element.
10395 * c-decl.c (current_function_arg_info): New.
10396 (grokdeclarator, store_parm_decls): Use it instead of
10397 DECL_ARGUMENTS.
10398 (c_push_function_context, c_pop_function_context): Save and
10399 restore it.
10400
10401 2004-08-30 Richard Henderson <rth@redhat.com>
10402
10403 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
10404 COMPONENT_REF to pointer arithmetic.
10405 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
10406 constant "c" as a valid constant initializer. Allow narrowing of
10407 differences against the same base object, for any base object.
10408
10409 2004-08-30 Richard Henderson <rth@redhat.com>
10410
10411 * expr.c (expand_expr_addr_expr): New.
10412 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
10413
10414 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
10415
10416 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
10417 (mips_fp_condition): New enum.
10418 (mips_fp_conditions): New array.
10419 (print_fcc_operand): Delete.
10420 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
10421 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
10422 (builtin_description): Add "cond" field.
10423 (DIRECT_BUILTIN): Initialize it.
10424 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
10425 into INSN and CODE. Initialize the "cond" field.
10426 (CMP_BUILTINS): Update accordingly.
10427 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
10428 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
10429 mips_fp_condition as argument. Make it the final operand of the
10430 comparison instruction.
10431 (mips_expand_builtin): Update accordingly.
10432 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
10433 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
10434 the gaps.
10435 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
10436 Don't use the 'Q' operand prefix; just print the operand normally.
10437 (mips_cabs_*, mips_c_*): Delete, replacing with...
10438 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
10439 patterns. Split the 4s versions into 2 ps patterns after reload.
10440
10441 2004-08-30 Richard Henderson <rth@redhat.com>
10442
10443 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
10444 assuming an ADDR_EXPR is non-null.
10445
10446 2004-08-30 Jason Merrill <jason@redhat.com>
10447
10448 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
10449
10450 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
10451
10452 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
10453 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
10454 gcc_assert and gcc_unreachable instead of abort.
10455 * alloc-pool.c (abort, fancy_abort): Remove.
10456 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
10457 gcc_assert or gcc_unreachable.
10458 * attribs.c (init_attributes, decl_attributes): Likewise.
10459 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
10460 mark_bb_for_unlikely_executed_section,
10461 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
10462 fix_crossing_unconditional_branches): Likewise.
10463 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
10464 bitmap_operation): Likewise.
10465 * bt-load.c (insn_sets_btr_p, augment_live_range,
10466 move_btr_def): Likewise.
10467 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
10468 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
10469 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
10470 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
10471 expand_builtin_memcmp, expand_builtin_args_info,
10472 std_gimplify_va_arg_expr, expand_builtin_unop,
10473 expand_builtin_fputs, expand_builtin_profile_func,
10474 expand_builtin_fork_or_exec, fold_builtin_bitop,
10475 fold_builtin_classify, fold_builtin_fputs): Likewise.
10476
10477 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
10478
10479 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
10480 * gcov.c (abort): Remove undef.
10481
10482 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
10483 (struct tree_binfo): Remove primary field.
10484
10485 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
10486
10487 * fixinc/Makefile.in (machname.h): Remove.
10488 (fixincl.x): Do not pass $@ to genfixes.
10489 * fixinc/genfixes: Remove code to produce machname.h.
10490 * fixinc/fixincl.sh: Move it here instead.
10491 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
10492 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
10493 return a bool indicating whether pz_mn_name_pat is NULL.
10494 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
10495 Declare extern C variables for the ENV_TABLE.
10496 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
10497 instead use the result of mn_get_regexps.
10498 * fixinc/fixtests.c: Likewise.
10499
10500 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
10501
10502 * configure.ac: Do not run fixincludes after stage1 during
10503 toplevel bootstrap.
10504 * configure: Regenerate.
10505
10506 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
10507
10508 * sched-deps.c (get_condition): Partially revert previous, by never
10509 trying to extract the condition from a condjump.
10510
10511 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
10512
10513 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
10514 (handle_visibility_attribute, c_determine_visibility): Likewise.
10515 * c-common.h (my_friendly_assert): Remove.
10516
10517 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
10518
10519 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
10520 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
10521 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
10522 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
10523 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
10524
10525 2004-08-30 Diego Novillo <dnovillo@redhat.com>
10526
10527 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
10528 in COMPONENT_REF nodes.
10529
10530 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
10531
10532 PR c++/15378
10533 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
10534 global_dc->warning_as_error_requested.
10535 * diagnostic.c (diagnostic_initialize): Tidy.
10536 * diagnostic.h (diagnostic_context::x_data): Remove
10537 (diagnostic_context::issue_warnings_are_errors_message): Rename
10538 from warnings_are_errors_message.
10539 (diagnostic_context::warning_as_error_requested): New.
10540
10541 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
10542
10543 * sched-deps.c (get_condition): Fix breakage in previous patch.
10544
10545 2004-08-30 Paul Brook <paul@codesourcery.com>
10546
10547 * doc/install.texi: Fix broken mpfr link.
10548
10549 2004-08-29 David O'Brien <obrien@FreeBSD.org>
10550
10551 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
10552 other FreeBSD platforms.
10553
10554 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
10555
10556 * arm.h (REVERSE_CONDITION): Define.
10557 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
10558
10559 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
10560
10561 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
10562 just the codes, call reversed_comparison_code ().
10563 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
10564 (not_reg_cond): Use reversed_comparison_code.
10565 (and_reg_cond): Likewise.
10566 * ifcvt.c (cond_exec_process_if_block): Likewise.
10567 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
10568
10569 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
10570
10571 * sched-deps.c (get_condition): Rewrite using jump support functions.
10572 Use reversed_comparison_code.
10573 (conditions_mutex_p): Use reversed_comparison_code.
10574
10575 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
10576
10577 * config/mips/mips.c (override_options): Disable hot/cold partitioning
10578 for MIPS16.
10579
10580 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
10581
10582 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
10583 (mips_function_type): Move to mips.c.
10584 * config/mips/mips.c (mips_builtin_type): New enum.
10585 (builtin_description): Replace code and ftype with builtin_type
10586 and function_type.
10587 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
10588 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
10589 (CODE_FOR_mips_abs_ps): Define.
10590 (mips_bdesc): Use new macros.
10591 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
10592 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
10593 (mips_expand_builtin_direct): New function.
10594 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
10595 builtin. Replace boolean parameter with builtin_type.
10596 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
10597 (mips_expand_4s_compare_builtin): Delete, replacing with...
10598 (mips_expand_builtin_compare): ...this new function.
10599
10600 2004-08-29 Mark Mitchell <mark@codesourcery.com>
10601
10602 PR rtl-optimization/16590
10603 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
10604
10605 2004-08-29 Diego Novillo <dnovillo@redhat.com>
10606
10607 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
10608 * tree-ssa-propagate.c: Fix documentation.
10609
10610 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
10611
10612 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
10613 (mov[sd]fcc): Likewise.
10614
10615 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
10616
10617 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
10618
10619 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
10620
10621 * config/mips/mips.md (divide_condition): New mode attribute.
10622 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
10623 (sqrt[sd]f3): Redefine using SCALARF.
10624 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
10625 patterns.
10626
10627 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
10628
10629 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
10630 (loadx, storex, fmt, UNITMODE): New mode attributes.
10631 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
10632 (mul[sd]f3): Redefine using :SCALARF.
10633 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
10634 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
10635 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
10636 Check TARGET_FUSED_MADD for V2SF too.
10637 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
10638 were already named.
10639 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
10640 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
10641
10642 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
10643
10644 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
10645 V2SF_type_node if it will be needed.
10646
10647 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
10648
10649 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
10650 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
10651 (mips_prepare_builtin_target): New function.
10652 (mips_expand_builtin): Use them. Update calls to subroutines.
10653 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
10654 cmp_choice with a boolean argument to select between movt and movf.
10655 Take the comparison's icode as an argument, not the function's fcode.
10656 (mips_expand_compare_builtin): New function. Rename existing function
10657 to mips_expand_scalar_compare_builtin.
10658 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
10659 (mips_expand_ps_compare_builtin): Use the new functions. Take the
10660 comparison's icode as an argument, not the builtin's fcode.
10661
10662 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
10663
10664 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
10665 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
10666 registers are false and -1 if all registers are true.
10667 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
10668 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
10669 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
10670 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
10671 (bc1any2t, bc1any2f): Likewise CCV2.
10672 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
10673
10674 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
10675
10676 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
10677 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
10678 UNSPEC rather than an IF_THEN_ELSE.
10679 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
10680 mips_cond_move_tf_ps by name.
10681
10682 2004-08-29 Chao-ying Fu <fu@mips.com>
10683 James E Wilson <wilson@specifixinc.com>
10684
10685 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
10686 8 byte size and alignment. Give CCV4 16 byte size and alignment.
10687 * config/mips/mips-ps-3d.md: New file.
10688 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
10689 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10690 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
10691 (mips_output_move): Emit "mov.ps" for V2SFmode.
10692 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
10693 MODE_VECTOR_FLOAT.
10694 (override_options): Check if TARGET_MIPS3D and there was an explicit
10695 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
10696 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
10697 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
10698 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
10699 and allow CCV2 and CCV4 to occupy two and four CC registers.
10700 (print_fcc_operand): New function.
10701 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
10702 %Z to call print_fcc_operand.
10703 (mips_function_value): Handle MODE_VECTOR_FLOAT.
10704 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
10705 (mips_vector_mode_supported_p): New function.
10706 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
10707 (builtin_description): New struct.
10708 (mips_bdesc): New array of struct builtin_description.
10709 (mips_expand_builtin, mips_init_builtins,
10710 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
10711 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
10712 functions.
10713 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
10714 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
10715 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
10716 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
10717 "-mips3d", and "-mno-mips3d".
10718 (ASM_SPEC): Map -mips3d to -mips3d in gas.
10719 (EXTRA_CONSTRAINT_Y): New macro.
10720 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
10721 multi-letter constraint 'Y'.
10722 (CONSTRAINT_LEN): New macro.
10723 (enum mips_builtins): New for MIPS builtin functions.
10724 (enum mips_function_type): New for the types of MIPS builtin functions.
10725 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
10726 * config/mips/mips.md: New constants for paired single and MIPS-3D
10727 instructions. Include the new mips-ps-3d.md file.
10728 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
10729 movv2sf_hardfloat_64bit): New named patterns.
10730 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
10731 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
10732 sdxc1_v2sf_di): New unnamed patterns.
10733 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
10734 const_vector support.
10735 (const_0_or_1_operand): New predicate.
10736 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
10737
10738 2004-08-29 Diego Novillo <dnovillo@redhat.com>
10739
10740 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
10741 (tree-ssa-propagate.o): New rule.
10742 (GTFILES): Add tree-ssa-propagate.c.
10743 * tree-flow.h (struct stmt_ann_d): Remove field
10744 in_ccp_worklist.
10745 * tree-ssa-propagate.c: New file.
10746 * tree-ssa-propagate.h: New file.
10747 * tree-ssa-ccp.c: Re-write to use the routines from
10748 tree-ssa-propagate.c.
10749
10750 2004-08-28 Andrew Pinski <apinski@apple.com>
10751
10752 * tree-ssa-loop.c: Remove extra include of basic-block.h.
10753
10754 2004-08-28 Ziemowit Laski <zlaski@apple.com>
10755
10756 * c-common.h: Update comments about ObjC/ObjC++ entry points.
10757 (objc_is_reserved_word): New prototype.
10758 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
10759 separate section; these are call-backs.
10760 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
10761 ObjC/ObjC++ "@" keywords.
10762 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
10763 prototypes; they already live in c-common.h.
10764 * stub-objc.c: Update copyright notice.
10765 (objc_is_reserved_word): New stub.
10766
10767 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
10768
10769 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
10770 even when not checking.
10771
10772 2004-08-27 Jason Merrill <jason@redhat.com>
10773
10774 PR c++/13684
10775 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
10776 (gimple_push_cleanup): Add eh_only parm.
10777 (gimplify_target_expr): Pass it.
10778 * c.opt (-fno-threadsafe-statics): New option.
10779 * c-opts.c (c_common_handle_option): Handle it.
10780 * c-common.h (flag_threadsafe_statics): Declare it.
10781 * c-common.c (flag_threadsafe_statics): Record it.
10782 * doc/invoke.texi: Document it.
10783 * tsystem.h (_GNU_SOURCE): Define.
10784 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
10785 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
10786 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
10787 (__gthread_recursive_mutex_init_function): New fn.
10788 (__gthread_recursive_mutex_lock): New fn.
10789 (__gthread_recursive_mutex_trylock): New fn.
10790 (__gthread_recursive_mutex_unlock): New fn.
10791 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
10792 * gthr-win32.h, gthr-vxworks.h: Likewise.
10793 * gthr.h: Document.
10794
10795 2004-08-27 David Edelsohn <edelsohn@gnu.org>
10796
10797 * config/rs6000/rs6000.c (rs6000_override_options): Increase
10798 maximum skip to 15. Set function alignment, jump alignment, and
10799 loop alignment to 16 for processors that form dispatch groups.
10800 (rs6000_rtx_costs): outer_code is used.
10801
10802 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
10803
10804 * stor-layout.c (sizetype_set): Remove.
10805 (set_sizetype): Don't test or set it.
10806
10807 * tree.h (size_int_type): Remove.
10808 * fold-const.c: Do not #include gt-fold-const.h.
10809 (size_htab_hash, size_htab_eq): Remove.
10810 (size_int_kind): Use build_int_cst.
10811 (new_const, size_htab): Remove.
10812 (size_int_type): Remove.
10813 (round_up): Use build_int_cst.
10814 (round_down): Likewise. Remove spurious constant build.
10815
10816 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
10817
10818 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
10819 Add is_release variable, use it for --enable-werror and
10820 --enable-checking defaults.
10821 * system.h (gcc_assert, gcc_unreachable): New.
10822 * doc/install.texi (--enable-checking): Update.
10823 * configure, config.in: Rebuilt.
10824
10825 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
10826
10827 * rtl.h (read_rtx): Change prototype.
10828 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
10829 line number. Return true on success.
10830 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
10831 callers accordingly.
10832
10833 2004-08-26 Richard Henderson <rth@redhat.com>
10834
10835 * c-typeck.c (build_offsetof): Remove.
10836 * c-tree.h (build_offsetof): Remove.
10837 * c-common.c (fold_offsetof_1, fold_offsetof): New.
10838 * c-common.h (fold_offsetof): Declare.
10839 * c-parse.in (offsetof_base): New.
10840 (offsetof_member_designator): Use it. Build references, not just
10841 a tree list.
10842 (primary): Use fold_offsetof, not build_offsetof.
10843
10844 2004-08-26 Richard Henderson <rth@redhat.com>
10845
10846 * tree.c (staticp): Return the static object.
10847 * tree.h (staticp): Update decl.
10848 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
10849 * langhooks.c (lhd_staticp): Return NULL_TREE.
10850 * langhooks-def.h (lhd_staticp): Update decl.
10851 * c-common.c (c_staticp): Return the static object.
10852 * c-common.h (c_staticp): Update decl.
10853
10854 2004-08-26 Richard Henderson <rth@redhat.com>
10855
10856 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
10857 modes.
10858
10859 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
10860
10861 PR c/13801
10862 * c-decl.c (struct c_binding): Add type and inner_comp fields.
10863 (bind): Set type and inner_comp fields.
10864 (pop_scope): Restore type of decl to the correct type from an
10865 outer scope. Give error when popping file scope for incomplete
10866 arrays completed incompatibly with default initialization in an
10867 inner scope.
10868 (diagnose_mismatched_decls): Handle externs with initializers at
10869 block scope.
10870 (pushdecl): Set type of external declaration at block scope based
10871 only on the visible declarations. Save type when changing the
10872 type of a declaration. Merge an external declaration at block
10873 scope with a visible static declaration at file scope.
10874 (implicitly_declare): Give recycled old declaration the new type
10875 except for incompatible declarations of built-in functions, saving
10876 the old type.
10877
10878 2004-08-26 Ziemowit Laski <zlaski@apple.com>
10879
10880 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
10881
10882 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
10883
10884 * tree-alias-common.c (gate_pta): New function.
10885 (pass_build_pta): Use it.
10886 (pass_del_pta): Use it.
10887 (delete_alias_vars): Don't check flag_tree_points_to.
10888
10889 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
10890
10891 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
10892 TFmode as additional register mode cloberred by call.
10893
10894 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
10895
10896 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
10897 parallel pattern for library call returning DImode in
10898 mixed mode.
10899
10900 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
10901
10902 * config/rs6000/rs6000.c (function_arg): Generate parallel
10903 pattern for more split args.
10904
10905 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
10906
10907 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
10908 either gen_movdi_di_update or gen_movdi_si_update depending on
10909 target mode.
10910 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
10911 to generate two versions.
10912
10913 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
10914
10915 * Makefile.in (lambda-code.o): New.
10916 (lambda-trans.o): Ditto.
10917 (TREE_DATA_REF_H): Ditto.
10918 (LAMBDA_H): Ditto.
10919 (lambda-mat.o): Use LAMBDA_H.
10920 (tree-data-ref.o): Ditto.
10921 * lambda-code.c: New file. Lambda code generation algorithm.
10922 * lambda-trans.c: Ditto. Lambda transformation matrix support.
10923 * lambda.h: Add lambda loop structures.
10924 Add lambda loopnest structures.
10925 Add lambda body vector structure.
10926 Add lambda linear expression structures.
10927 Add prototypes for functions in new files.
10928 * lambda-mat.c: Include tree.h
10929
10930 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
10931 Sebastian Pop <pop@cri.ensmp.fr>
10932
10933 * tree-data-ref.h: Include lambda.h
10934 (free_dependence_relation): Declared here.
10935 (free_dependence_relations): Ditto.
10936 (free_data_refs): Ditto.
10937 * tree-data-ref.c (free_dependence_relation): New function.
10938 (free_dependence_relations): Ditto.
10939 (free_data_refs): Ditot.
10940 (analyze_all_data_dependences): Free datarefs and dependence_relations.
10941 (build_classic_dist_vector): Store in the dependence_relations the
10942 information. Each arc in the dependence_relations graph is labelled
10943 with the distance and direction vectors.
10944 (build_classic_dir_vector): Ditto.
10945 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
10946 Now computes again the whole dependence graph including read-read
10947 relations.
10948 (compute_data_dependences_for_loop): Now dependence_relations contains
10949 all the data, and thus it doesn't need to initialize the classic_dir
10950 and classic_dist vectors.
10951 (analyze_all_data_dependences): Adjusted for using the new interface of
10952 compute_data_dependences_for_loop. Remove the statistics dump.
10953
10954 2004-08-26 Bob Wilson <bob.wilson@acm.org>
10955
10956 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
10957 (xtensa_expand_block_move): Update comment.
10958 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
10959
10960 2004-08026 Richard Earnshaw <rearnsha@arm.com>
10961
10962 PR target/13506
10963 * toplev.c (crash_signal): If we crashed while emitting
10964 a user asm, then die more gracefully.
10965
10966 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10967
10968 PR target/17119.
10969 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
10970 checking for a valid constant, regardless of sign.
10971
10972 2004-08-25 Richard Henderson <rth@redhat.com>
10973
10974 PR target/16974
10975 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
10976 if the constant satisfies add_operand.
10977
10978 2004-08-25 Richard Henderson <rth@redhat.com>
10979
10980 PR debug/10695
10981 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
10982 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
10983 unwind info for >16-bit frames.
10984
10985 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
10986
10987 PR target/17171
10988 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
10989
10990 2004-08-25 Richard Henderson <rth@redhat.com>
10991
10992 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
10993 (TARGET_CANNOT_FORCE_CONST_MEM): New.
10994
10995 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
10996
10997 * doc/tree-ssa.texi: Document new operand iterator.
10998
10999 2004-08-26 Alan Modra <amodra@bigpond.net.au>
11000
11001 PR target/16480
11002 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
11003 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
11004 as PLUS base regs.
11005
11006 2005-08-28 Paul Brook <paul@codesourcery.com>
11007
11008 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
11009 -mfpu=vfp -march=armv5t
11010 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
11011
11012 2004-08-25 Richard Henderson <rth@redhat.com>
11013
11014 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11015 * target.h (struct gcc_target): Add scalar_mode_supported_p.
11016 * targhooks.c (default_scalar_mode_supported_p): New.
11017 * targhooks.h (default_scalar_mode_supported_p): Declare.
11018 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
11019
11020 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
11021 before attempting to create types. Tidy.
11022 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
11023
11024 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
11025 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11026
11027 2004-08-25 Richard Henderson <rth@redhat.com>
11028
11029 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
11030 set REAL_MODE_FORMAT for TFmode.
11031
11032 2004-08-25 Ziemowit Laski <zlaski@apple.com>
11033
11034 * c-decl.c (grokparm): New function.
11035 * c-tree.h (grokparm): New prototype.
11036
11037 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
11038
11039 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
11040 iterator controlling structure.
11041 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
11042 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
11043 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
11044 iterator flags.
11045 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
11046 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
11047 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
11048 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
11049 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
11050 Empty operand pointers.
11051 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
11052 (op_iter_next_use): New. Return next use_operand_p.
11053 (op_iter_next_def): New. Return next def_operand_p.
11054 (op_iter_next_tree): New. Return next operands as a tree.
11055 (op_iter_init): New. Initialize an iterator structure.
11056 (op_iter_init_use): New. Initialize structure and get the first use.
11057 (op_iter_init_def): New. Initialize structure and get the first def.
11058 (op_iter_init_tree): New. Initialize structure and get the first tree.
11059 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
11060 (op_iter_init_maydef): New. Initialize structure and get the first
11061 V_MAY_DEF operands.
11062 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
11063 * tree-dfa.c (compute_immediate_uses_for_stmt,
11064 redirect_immediate_uses): Use new operand iterator.
11065 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
11066 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
11067 operands instead of using *_disappeared_p routines.
11068 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
11069 ssa_rewrite_stmt): Use new operand iterator.
11070 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
11071 rewrite_trees): Use new operand iterator.
11072 * tree-pretty-print.c (dump_vops): Use new operand iterator.
11073 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
11074 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
11075 dump_points_to_info): Use new operand iterator.
11076 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
11077 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
11078 operand iterator.
11079 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
11080 propagate_necessity): Use new operand iterator.
11081 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
11082 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
11083 a parameter instead of a stmt_ann_t.
11084 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
11085 build_tree_conflict_graph): Use new operand iterator.
11086 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
11087 rewrite_mem_refs): Use new operand iterator.
11088 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
11089 check_loop_closed_ssa_use): Use new operand iterator.
11090 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
11091 * tree-ssanames.c (release_defs): Use new operand iterator.
11092 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
11093
11094 2004-08-25 Adam Nemet <anemet@lnxw.com>
11095
11096 * tlink.c (initial_cwd): New variable.
11097 (tlink_init): Initialize it.
11098 (recompile_files): Use tlink_execute() instead of system(). Don't
11099 duplicate verbose output of collect_execute. Restore initial_cwd.
11100 Update comment before the function.
11101
11102 2004-08-25 Ziemowit Laski <zlaski@apple.com>
11103
11104 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
11105 accept) a cast from one Objective-C pointer type to another.
11106
11107 2004-08-25 Paolo Carlini <pcarlini@suse.de>
11108
11109 * doc/install.texi: Document that libstdc++-v3 requires
11110 now automake 1.9.1.
11111
11112 2004-08-25 Caroline Tice <ctice@apple.com>
11113
11114 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
11115 to comments at start of function.
11116 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
11117 comment.
11118 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
11119 merge_blocks_move_predecessor_nojumps,
11120 merge_blocks_move_successor_nojumps, merge_blocks_move,
11121 try_crossjump_to_edge, try_crossjump_bb): Likewise.
11122 * cfglayout.c (fixup_reorder_chain): Likewise.
11123 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
11124 cfg_layout_can_merge_blocks_p): Likewise.
11125 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
11126 * passes.c (rest_of_compilation): Update comments for calling
11127 optimization that partitions hot/cold basic blocks.
11128 * doc/invoke.texi: Update documentation of
11129 freorder-blocks-and-partition flag.
11130
11131 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
11132
11133 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
11134 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
11135
11136 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
11137
11138 * config/mips/mips.md (any_shift): New code macro.
11139 (optab, insn): New code attributes.
11140 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
11141 Use the standard rather than internal patterns for the MIPS16
11142 double-shift optimization.
11143 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
11144 Redefine using :GPR and any_shift.
11145 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
11146 to cover all three shifts.
11147 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
11148 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
11149 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
11150
11151 2004-08-24 Geoffrey Keating <geoffk@apple.com>
11152
11153 * gimplify.c (lookup_tmp_var): Separate temporaries when not
11154 optimizing.
11155
11156 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11157
11158 PR libstdc++/17005 (fix for HP-UX 11.11)
11159 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
11160 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
11161 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
11162 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
11163 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
11164 (LINK_SPEC): Handle march=1.0 option.
11165 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
11166 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
11167 (SUBTARGET_OPTIONS): New define.
11168 (LINK_SPEC): Handle march=1.0 option.
11169 (STARTFILE_SPEC): New define.
11170 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
11171 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
11172 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
11173 (SUBTARGET_OPTIONS): New define.
11174 (LINK_SPEC): Handle march=1.0 option.
11175 (STARTFILE_SPEC): New define.
11176 * config/pa/pa.c (override_options): Add code to process -munix= option.
11177 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
11178 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
11179 defines.
11180 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
11181 (SUBTARGET_OPTIONS): Provide default define.
11182 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
11183 STANDARD_STARTFILE_PREFIX_2): New defines.
11184 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
11185 (ENDFILE_SPEC): Use %O.
11186 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
11187 Mention issue caused by changing namespace and runtime to UNIX 95/98.
11188 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
11189 Document -munix=std option.
11190
11191 2004-08-25 Steven Bosscher <stevenb@suse.de>
11192
11193 * cse.c (cse_around_loop, cse_check_loop_start,
11194 cse_set_around_loop): Remove.
11195 (cse_basic_block): Remove the around_loop argument.
11196 (cse_end_of_basic_block): Remove the after_loop argument.
11197 (cse_main): Likewise.
11198 * rtl.h (cse_main): Update prototype.
11199 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
11200 rest_of_handle_gcse): Update cse_main calls.
11201
11202 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
11203
11204 * tree.h (build_int_cst): New, sign extended constant.
11205 (build_int_cstu): New, zero extended constant.
11206 (build_int_cst_wide): Renamed from build_int_cst.
11207 * tree.c (build_int_cst, build_int_cstu): New.
11208 (build_int_cst_wide): Renamed from build_int_cst.
11209 (make_vector_type, build_common_tree_nodes,
11210 build_common_tree_nodes_2): Adjust build_int_cst calls.
11211 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
11212 expand_builtin_strpbrk, expand_builtin_fputs,
11213 build_string_literal, expand_builtin_printf,
11214 expand_builtin_sprintf, fold_builtin_classify_type,
11215 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
11216 fold_builtin_toascii, fold_builtin_isdigit,
11217 simplify_builtin_strstr, simplify_builtin_strpbrk,
11218 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
11219 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
11220 DEF_ATTR_INT): Likewise.
11221 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
11222 Likewise.
11223 * c-lex.c (interpret_integer, lex_charconst): Likewise.
11224 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
11225 * c-pretty-print.c (pp_c_integer_constant): Likewise.
11226 * c-typeck.c (really_start_incremental_init, push_init_level,
11227 set_nonincremental_init_from_string): Likewise.
11228 * calls.c (load_register_parameters): Likewise.
11229 convert.c (convert_to_pointer): Likewise.
11230 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
11231 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
11232 build_gcov_info): Likewise.
11233 * except.c (init_eh, assign_filter_values): Likewise.
11234 * expmed.c (store_fixed_bit_field, extract_bit_field,
11235 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
11236 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
11237 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
11238 * expr.c (convert_move, emit_group_load, emit_group_store,
11239 expand_assignment, store_constructor, store_field,
11240 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
11241 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
11242 invert_truthvalue, optimize_bit_field_compare,
11243 decode_field_reference, all_ones_mask_p, constant_boolean_node,
11244 fold_div_compare, fold, fold_read_from_constant_string,
11245 fold_negate_const, fold_abs_const, fold_not_const, round_up,
11246 round_down): Likewise.
11247 * function.c (assign_parm_setup_block): Likewise.
11248 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
11249 Likewise.
11250 * stor-layout.c (layout_type, initialize_sizetypes,
11251 set_min_and_max_values_for_integral_type): Likewise.
11252 * tree-chrec.c (chrec_fold_multiply_poly_poly,
11253 reset_evolution_in_loop): Likewise.
11254 * tree-chrec.h (build_polynomial_chrec): Likewise.
11255 * tree-complex.c (build_replicated_const): Likewise.
11256 * tree-eh.c (honor_protect_cleanup_actions,
11257 lower_try_finally_onedest, lower_try_finally_copy,
11258 lower_try_finally_switch): Likewise.
11259 * tree-mudflap.c (mf_build_string, mx_register_decls,
11260 mudflap_register_call, mudflap_enqueue_constant): Likewise.
11261 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
11262 * tree-pretty-print.c (dump_generic_node): Likewise.
11263 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
11264 Likewise.
11265 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
11266 * tree-ssa-loop-niter.c (number_of_iterations_cond,
11267 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
11268 Likewise.
11269 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
11270 canonicalize_loop_induction_variables): Likewise.
11271 * tree-vectorizer.c (vect_create_index_for_array_ref,
11272 vect_transform_loop_bound, vect_compute_data_ref_alignment):
11273 Likewise.
11274
11275 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
11276 alpha_gimplify_va_arg_1): Likewise.
11277 * config/arm/arm.c (arm_get_cookie_size): Likewise.
11278 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
11279 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
11280 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
11281 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
11282 mips_gimplify_va_arg_expr): Likewise.
11283 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11284 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
11285 add_compiler_branch_island): Likewise.
11286 * config/s390/s390.c (s390_va_start): Likewise.
11287 * config/sh/sh.c (sh_va_start): Likewise.
11288 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
11289 Likewise.
11290 * config/xtensa/xtensa.c (xtensa_va_start,
11291 xtensa_gimplify_va_arg_expr): Likewise.
11292
11293 * objc/objc-act.c (build_objc_string_object,
11294 build_objc_symtab_template, init_def_list, init_objc_symtab,
11295 init_module_descriptor, generate_static_references,
11296 build_selector_translation_table, get_proto_encoding,
11297 build_typed_selector_reference, build_selector_reference,
11298 build_next_objc_exception_stuff,
11299 build_method_prototype_list_template, generate_descriptor_table,
11300 generate_protocols, build_protocol_initializer,
11301 build_ivar_list_template, build_method_list_template,
11302 build_ivar_list_initializer, generate_ivars_list,
11303 generate_dispatch_table, generate_protocol_list,
11304 build_category_initializer, build_shared_structure_initializer,
11305 generate_shared_structures, handle_impent,
11306 generate_objc_image_info): Likewise.
11307
11308 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
11309
11310 * cfglayout.c (duplicate_insn_chain): Remove references to
11311 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
11312 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
11313 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
11314 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
11315 and NOTE_INSN_LOOP_CONT.
11316 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
11317 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
11318 and NOTE_INSN_LOOP_CONT.
11319 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
11320 check_dbra_loop, loop_dump_aux): Remove references to removed notes
11321 and fields.
11322 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
11323 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
11324 references to removed notes and fields.
11325 (subtract_reg_term, ujump_to_loop_cont): Remove.
11326
11327 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
11328
11329 * doc/install.texi: Document that libcpp does not require
11330 Automake any longer. Document that Automake 1.9.1 should
11331 work everywhere.
11332
11333 2004-08-25 Zack Weinberg <zack@codesourcery.com>
11334
11335 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
11336 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
11337 DWARF_DEBUGGING_INFO from choice-of-definition chain;
11338 restructure using C89 features (#elif, #error).
11339 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
11340 * config/sh/sh.h: Remove references to DWARF_DEBUG.
11341 * doc/invoke.texi: Remove references to DWARF version 1;
11342 clarify why -gdwarf-2<n> doesn't work.
11343
11344 2004-08-25 Zack Weinberg <zack@codesourcery.com>
11345
11346 * basic-block.h (BB_SET_PARTITION): Clear old value first.
11347 * cfg.c (clear_bb_flags): Don't clear partition setting.
11348 * ifcvt.c (find_if_case_1): Remove ??? comment.
11349
11350 2004-08-25 Alan Modra <amodra@bigpond.net.au>
11351
11352 PR target/17052
11353 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
11354 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
11355 current_function_stdarg in place of sysv_varargs_p.
11356 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
11357 sysv_varargs_p.
11358
11359 2004-08-24 Richard Henderson <rth@redhat.com>
11360
11361 PR target/16298
11362 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
11363 random codes within CONST.
11364
11365 2004-08-24 James E Wilson <wilson@specifixinc.com>
11366
11367 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
11368 -freorder-blocks-and-partition.
11369
11370 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11371
11372 PR middle-end/17044
11373 * tree-ssa-threadupdate.c (redirection_data): Make static.
11374 (thread_block): Use ggc_alloc_cleared to allocate struct
11375 redirection_data. Don't free elements in redirection_data.
11376
11377 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
11378
11379 * config/mips/predicates.md (small_data_pattern): Match prefetches.
11380
11381 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11382
11383 PR tree-optimization/17016
11384 * tree-ssa-loop-niter.c (number_of_iterations_cond,
11385 number_of_iterations_exit): Use POINTER_TYPE_P instead
11386 of testing for POINTER_TYPE.
11387
11388 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11389
11390 * tree-ssa-loop-ivcanon.c: New file.
11391 * tree-ssa-loop-manip.c (create_iv): New function.
11392 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
11393 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
11394 * cfgloop.c (mark_single_exit_loops): New function.
11395 (verify_loop_structure): Verify single-exit loops.
11396 * cfgloop.h (struct loop): Add single_exit field.
11397 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
11398 (mark_single_exit_loops): Declare.
11399 (tree_num_loop_insns): Declare.
11400 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
11401 (duplicate_loop_to_header_edge): Use it.
11402 * common.opt (fivcanon): New flag.
11403 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
11404 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
11405 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
11406 (bsi_insert_on_edge_immediate): New function.
11407 * tree-flow.h (bsi_insert_on_edge_immediate,
11408 canonicalize_induction_variables, tree_unroll_loops_completely,
11409 create_iv): Declare.
11410 * tree-optimize.c (init_tree_optimization_passes): Add
11411 pass_iv_canon and pass_complete_unroll.
11412 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
11413 * tree-scalar-evolution.c (get_loop_exit_condition,
11414 get_exit_conditions_rec, number_of_iterations_in_loop,
11415 scev_initialize): Use single_exit information.
11416 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
11417 missing assumptions.
11418 (loop_niter_by_eval): Return number of iterations as unsigned
11419 int.
11420 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
11421 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
11422 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
11423 New passes.
11424 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
11425 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
11426 the defining statement is ready.
11427 * tree-vectorizer.c (vect_create_iv_simple): Removed.
11428 (vect_create_index_for_array_ref, vect_transform_loop_bound):
11429 Use create_iv.
11430 (vect_transform_loop_bound): Use single_exit information.
11431 (vect_analyze_loop_form): Cleanup bogus tests.
11432 (vectorize_loops): Do not call flow_loop_scan.
11433 * tree.h (may_negate_without_overflow_p): Declare.
11434 * fold-const.c (may_negate_without_overflow_p): Split out from ...
11435 (negate_expr_p): ... this function.
11436 (tree_expr_nonzero_p): Handle overflowed constants correctly.
11437 * doc/invoke.texi (-fivcanon): Document.
11438 * doc/passes.texi: Document canonical induction variable creation.
11439
11440 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
11441
11442 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
11443 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
11444 using the mode of the operand to decide between them.
11445 * config/mips/mips.md (MOVECC): New mode macro.
11446 (ccreg): New mode attribute.
11447 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
11448 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
11449 (mov[sd]icc): Redefine using :GPR.
11450
11451 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
11452
11453 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
11454 (mips_prefetch_cookie): New function.
11455 * config/mips/mips.c (print_operand_address): Fix handling of
11456 ADDRESS_CONST_INT.
11457 (mips_emit_prefetch): Delete.
11458 (mips_prefetch_cookie): New function.
11459 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
11460 mode of QImode for the address_operand. Use mips_prefetch_cookie
11461 to calculate the first "pref" operand.
11462 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
11463 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
11464
11465 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
11466
11467 * arm.md: Include predicates.md.
11468 * predicates.md: New file.
11469 * arm.c (s_register_operand, arm_hard_register_operand)
11470 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
11471 (arm_immediate_operand, arm_neg_immediate_operand)
11472 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
11473 (arm_add_operand, arm_addimm_operand, arm_not_operand)
11474 (offsettable_memory_operand, alignable_memory_operand)
11475 (arm_reload_memory_operand, arm_float_rhs_operand)
11476 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
11477 (index_operand, shiftable_operator, logical_binary_operator)
11478 (shift_operator, equality_operator, arm_comparison_operator)
11479 (minmax_operator, cc_register, dominant_cc_register)
11480 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
11481 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
11482 (const_shift_operand, load_multiple_operation)
11483 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
11484 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
11485 (cirrus_register_operand, cirrus_fp_register)
11486 (cirrus_shift_const): Delete, replaced with equivalents in
11487 predicates.md.
11488 (shift_op): Handle ROTATE.
11489 * arm-protos.h: Delete declarations for above.
11490 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
11491 * t-arm (MD_INCLUDES): Add predicates.md.
11492 (s-preds): Depends on MD_INCLUDES.
11493
11494 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
11495
11496 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
11497 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
11498 patterns. Redefine using :GPR. Give the match_operator a mode.
11499 Use '%2' rather than '%z2' for operand 2.
11500
11501 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
11502
11503 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
11504 attribute.
11505
11506 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
11507
11508 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
11509 of internal patterns.
11510 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
11511 Redefine using :P.
11512 (tablejump): Use expand_binop to calculate address. Adjust names
11513 of internal patterns.
11514 (tablejump[sd]i): Renamed from tablejump_internal[12].
11515 Redefine using :P.
11516 (tablejump_mips16[12]): Delete.
11517
11518 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
11519
11520 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
11521 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
11522 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
11523 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
11524 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
11525
11526 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
11527
11528 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
11529 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
11530 using :GPR.
11531 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
11532 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
11533 (*branch_equality[sd]i_inverted): Likewise
11534 branch_equality{,_di}_inverted.
11535 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
11536 Redefine using :GPR.
11537
11538 2004-08-24 Zack Weinberg <zack@codesourcery.com>
11539
11540 * rtl.def: Reorganize, placing all codes used only in machine
11541 descriptions at the end.
11542
11543 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
11544 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
11545 rtx_name, rtx_format arrays by direct reference to rtl.def,
11546 first undefining GENERATOR_FILE. Define enum insn_note and
11547 note_insn_name array by direct reference to insn-notes.def.
11548 (adjust_field_rtx_def): Remove local definition of rtx_name.
11549 Use symbolic names for insn notes.
11550 * Makefile.in (gengtype.o): Update dependencies.
11551
11552 2004-08-24 Zack Weinberg <zack@codesourcery.com>
11553
11554 * basic-block.h (struct basic_block_def): Reorder fields to
11555 eliminate interior padding. Remove 'partition' field.
11556 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
11557 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
11558 (BB_COPY_PARTITION): New macros.
11559 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
11560 Replace all references to the 'partition' field of a basic
11561 block with new macros.
11562
11563 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
11564 * final.c (final_scan_insn): Don't handle it.
11565 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
11566 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
11567 * sched-rgn.c (sched_is_disabled_for_current_region_p):
11568 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
11569
11570 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
11571
11572 * c-decl.c (c_init_decl_processing): Adjust
11573 build_common_tree_nodes call.
11574 * expmed.c (const_mult_add_overflow_p): Use
11575 build_distinct_type_copy.
11576 * stor-layout.c (early_type_list): Remove.
11577 (layout_type): Don't append to early_type_list.
11578 (initialize_sizetypes): Add signed_p argument.
11579 (set_sizetype): Overwrite the stub type nodes directly.
11580 * tree.c (copy_node_stat): Clear a type's value cache here ...
11581 (build_distinct_type): ... not here.
11582 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
11583 * tree.h (initialize_sizetypes): Add signed_p argument.
11584 (build_common_tree_nodes): Likewise.
11585
11586 * objc/objc-act.c (get_static_reference): Use
11587 build_variant_type_copy.
11588 (get_protocol_reference): Likewise.
11589 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
11590
11591 2004-08-24 Richard Henderson <rth@redhat.com>
11592 Andrew Pinski <apinski@apple.com>
11593
11594 * gimplify.c (gimplify_array_ref_to_plus): Delete.
11595 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
11596 for ARRAY_REF.
11597
11598 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
11599 ARRAY_REF also to get to the STRING_CST.
11600
11601 2004-08-24 Paul Brook <paul@codesourcery.com>
11602
11603 * config/arm/arm.c (arm_override_options): Update error message.
11604 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
11605 TARGET_HARD_FLOAT_ABI.
11606 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
11607 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
11608
11609 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11610
11611 PR target/17093
11612 * config/m32r.md (movsi_sda): Add SI mode specification to
11613 UNSPEC.
11614
11615 2004-08-24 Nick Clifton <nickc@redhat.com>
11616
11617 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
11618 of seth_add3_operand.
11619
11620 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
11621
11622 * Makefile.in (PROTO_OBJS): Add errors.o.
11623 * protoize.c (fancy_abort): Remove.
11624 * mips-tfile.c (fancy_abort): Add parameters.
11625
11626 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
11627
11628 * doc/trouble.texi (C++ misunderstandings): Fix example code.
11629
11630 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
11631
11632 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
11633 (host-default.o): Add dependency on HOOKS_H.
11634 * config/x-linux: Likewise.
11635 * config/x-solaris: Likewise.
11636 * config/i386/x-mingw32: Likewise.
11637 * config/rs6000/x-darwin: Likewise.
11638
11639 2004-08-23 James E Wilson <wilson@specifixinc.com>
11640
11641 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
11642 DEF_REG_NOTE.
11643
11644 2004-08-23 Mark Mitchell <mark@codesourcery.com>
11645
11646 PR c/14492
11647 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
11648
11649 2004-08-23 Diego Novillo <dnovillo@redhat.com>
11650
11651 * cfg.c (check_bb_profile): Fix typos.
11652 * function.c (assign_parm_is_stack_parm): Likewise.
11653 * tree-nested.c: Likewise.
11654
11655 2004-08-23 Daniel Jacobowitz <dan@debian.org>
11656
11657 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
11658 Remove TYPECODE.
11659 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
11660
11661 2004-08-23 Eric Christopher <echristo@redhat.com>
11662
11663 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
11664 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
11665 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
11666 * target.h: Ditto.
11667 * hooks.h: Include machmode.h.
11668 (hook_bool_mode_false): Declare.
11669 * hooks.c (hook_bool_mode_false): Define.
11670 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
11671 * stor-layout.c (layout_type): Ditto.
11672 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
11673 Define to target macro.
11674 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
11675 * config/arm/arm.c: Ditto. Use.
11676 * config/arm/arm.h: Ditto.
11677 * config/arm/arm-protos.h: Ditto.
11678 * config/i386/i386.c: Ditto.
11679 * config/i386/i386.h: Ditto.
11680 * config/rs6000/rs6000.c: Ditto.
11681 * config/rs6000/rs6000.h: Ditto.
11682 * config/sh/sh.c: Ditto.
11683 * config/sh/sh.h: Ditto.
11684 * config/sh/sh-protos.h: Ditto.
11685 * config/sh/sh.md: Use.
11686 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
11687 to TARGET_VECTOR_MODE_SUPPORTED_P.
11688
11689 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
11690
11691 * Makefile.in (BUILD_ERRORS): Set to build-errors.
11692 (errors.o): New target for host.
11693 (build-errors.o): New target for build.
11694 (genobjs): Replace errors.o with build-errors.
11695 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
11696 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
11697 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
11698 (fix-header.o): Add errors.h
11699 * collect2.c (fancy_abort): Add parameters.
11700 * collect2.h (fancy_abort): Don't declare.
11701 * errors.h (fancy_abort): Don't declare.
11702 * errors.c: Include either bconfig.h or config.h.
11703 (fancy_abort): Trim filename.
11704 * fix-header.c (v_fatal, fatal): Remove.
11705 (progname): Remove definition.
11706 (main): Set progname here.
11707 * gcc.c (fancy_abort): Add parameters.
11708 * gcc.h (fancy_abort): Remove declaration.
11709 * gcov.c (fancy_abort): Remove.
11710 * rtl.h (fancy_abort): Don't declare.
11711 (abort): Don't define.
11712 * tree.h (fancy_abort): Don't declare.
11713 (abort): Don't define.
11714 * system.h (fancy_abort): Declare.
11715 (abort): Define to fancy_abort.
11716 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
11717
11718 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
11719 (usize_type, ubitsizetype): Remove.
11720 * stor-layout.c (set_sizetype): Don't initialize usizetype,
11721 ubitsizetype.
11722 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
11723
11724 * tree.h (build_distinct_type_copy): New.
11725 (build_type_copy): ... here. Rename to ...
11726 (build_variant_type_copy): ... here.
11727 * tree.c (build_qualified_type): Rename build_type_copy call.
11728 (build_distinct_type_copy): New, broken out of ...
11729 (build_type_copy): ... here. Rename to ...
11730 (build_variant_type_copy): ... here. Use
11731 build_distinct_type_copy.
11732 (build_common_tree_nodes_2): Rename build_type_copy call.
11733 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
11734 call.
11735 (handle_packed_attribute, handle_unused_attribute,
11736 handle_transparanet_union_attribute, handle_aligned_attribute,
11737 handle_deprecated_attribute): Likewise.
11738 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
11739 Likewise.
11740 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
11741 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
11742 build_distinct_type_copy.
11743
11744 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11745
11746 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
11747 attribute.
11748
11749 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11750
11751 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
11752 loads and stores.
11753 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
11754 formerly unnamed patterns. Redefine using :P for the address. Remove
11755 explicit length attributes.
11756
11757 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11758
11759 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
11760 New functions.
11761 (single_reachable_address): Use them.
11762 (schedule_sm): Add dump.
11763 (is_call_clobbered_ref): New function.
11764 (determine_lsm_reg): Check whether the reference is call clobbered.
11765 Only work for gimple_reg_type values.
11766
11767 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11768
11769 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
11770 $31 store insns. Redefine using :GPR.
11771
11772 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11773
11774 * config/mips/mips.md (P): New mode macro.
11775 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
11776 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
11777 Add mode attributes.
11778
11779 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11780
11781 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
11782 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
11783 later constants to cover the gap.
11784 (load, store): New mode attributes.
11785 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
11786 Use new unspec constants.
11787
11788 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11789
11790 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
11791 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
11792 to use register_operand rather than uns_arith_operand as the predicate
11793 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
11794 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
11795 Redefine using :GPR. Make same predicate change here. Extend the
11796 commutativity of operands 1 and 2 from the SImode version to the
11797 DImode one.
11798 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
11799 but with no predicate changes.
11800 (*nor[sd]i3): Redefine using :GPR.
11801
11802 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11803
11804 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
11805 noreturn functions.
11806
11807 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11808
11809 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
11810 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
11811 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
11812 rather than "%z2" (with a fake const0_rtx for operand 2).
11813 (ffs[sd]i2): Redefine using :GPR.
11814 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
11815
11816 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11817
11818 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
11819
11820 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11821
11822 * config/mips/mips.md (any_extend): New code macro.
11823 (u, su): New code attributes.
11824 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
11825 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
11826 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
11827 (*{s,u}mul_acc_di): Redefine using any_extend.
11828 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
11829 to reflect real insn names.
11830 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
11831 with an any_extend template.
11832 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
11833 Add '*' to name.
11834
11835 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11836
11837 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
11838 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
11839 (mul[sd]i3_r4000): Redefine using :GPR.
11840 (mulsi3_mult3): Don't check TARGET_MAD separately.
11841 (muldi3_mult3): Moved after mulsi_mult3.
11842
11843 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11844
11845 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
11846 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
11847 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
11848 (TARGET_GAS, TARGET_MIPS_AS): Delete.
11849 (TARGET_GPWORD): Define to true for n32 on IRIX.
11850 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
11851 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
11852 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
11853 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
11854 (MDEBUG_ASM_SPEC): Delete, folding into...
11855 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
11856 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
11857 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
11858 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
11859 to define asm_abi_default_spec.
11860 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
11861 (TARGET_ASM_SELECT_SECTION): Delete.
11862 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
11863 for non-mips16 code, removing previous workaround for SGI assemblers.
11864 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
11865 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
11866 (override_options): Remove !TARGET_GAS and !have_named_sections code.
11867 (print_operand): Fold TARGET_GAS conditionals into asm strings.
11868 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
11869 ASM_STABS_OP and ASM_STABN_OP.
11870 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
11871 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
11872 (mips_output_function_prologue): Remove !TARGET_GAS code.
11873 (mips_select_rtx_section): Remove !have_named_sections code.
11874 (mips_select_section): Delete.
11875 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
11876 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
11877 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
11878 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
11879 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
11880 * config/mips/windiss.h (ASM_SPEC): Likewise.
11881
11882 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11883
11884 * read-rtl.c (map_value, mapping, macro_group): New structures.
11885 (BELLWETHER_CODE): New macro.
11886 (modes, codes, bellwether_codes): New variables.
11887 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
11888 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
11889 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
11890 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
11891 (add_map_value, initialize_macros): New functions.
11892 (def_hash, def_hash_eq_p): Generalize to anything that points to,
11893 or starts with, a char * field.
11894 (find_macro, read_mapping, check_code_macro): New functions.
11895 (read_rtx_1): New, split out from read_rtx. Handle the new
11896 define_{mode,code}_{macro,attr} constructs. Use find_macro
11897 to parse the name of a code or mode. Use BELLWETHER_CODE to
11898 extract the format and to choose a suitable code for rtx_alloc.
11899 Modify recursive invocations to use read_rtx_1.
11900 (read_rtx): Call initialize_macros. Apply code and mode macros
11901 to the rtx returned by read_rtx_1. Cache everything after the
11902 first macro expansion for subsequent read_rtx calls.
11903 * doc/md.texi: Document new .md constructs.
11904 * config/mips/mips.md (GPR): New mode macro.
11905 (d, si8_di5): New mode attributes.
11906 (any_cond): New code macro.
11907 (add[sd]i3): Redefine using :GPR.
11908 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
11909 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
11910 previously unnamed MIPS16 patterns.
11911 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
11912 lines. Don't match (plus (const_int 0) ...).
11913 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
11914 Use a define_split to generate the addition.
11915 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
11916 (subsi3_internal): Delete.
11917 (*subsi3_extended): Renamed from subsi3_internal_2.
11918 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
11919 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
11920 using an any_cond template.
11921
11922 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11923
11924 * read-rtl.c (read_rtx): Tidy use of format_ptr.
11925
11926 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
11927
11928 * read-rtl.c (string_obstack): New file-scope variable.
11929 (read_string, read_quoted_string, read_braced_string)
11930 (read_escape): Remove obstack parameter and use string_obstack instead.
11931 (read_rtx): Remove function-local rtl_obstack and initialize
11932 string_obstack instead. Update call to read_string.
11933
11934 2004-08-22 Andrew Pinski <apinski@apple.com>
11935
11936 PR c/15262
11937 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
11938 expression is not constant.
11939 (c_finish_return): Do not go through INDIRECT_REF when looking
11940 for the inner expression of an ADDR_EXPR for warning about.
11941
11942 2004-08-22 Richard Henderson <rth@redhat.com>
11943
11944 PR 17075
11945 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
11946 create new blocks and fall through.
11947 (expand_gimple_basic_block): Update to match.
11948
11949 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
11950
11951 * reload.c (find_reloads_address): Make return value tri-state.
11952 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
11953 (find_reloads): Assume that reloaded addresses match 'o' or
11954 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
11955 returned 1 (not -1). Omit optional reloads for address operands
11956 only if find_reloads_address returned 1 (not -1).
11957
11958 * config/s390/s390.c (legitimize_reload_address): New function.
11959 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
11960 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
11961 legitimize_reload_address.
11962
11963 2004-08-22 Richard Hendersion <rth@redhat.com>
11964
11965 * tree.h (SAVE_EXPR_RESOLVED_P): New.
11966 * gimplify.c (gimplify_save_expr): Use it.
11967 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
11968 on the temporary variable.
11969
11970 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
11971
11972 * fold-const.c (rtl_expr_nonnegative_p): Delete.
11973 * tree.h (rtl_expr_nonnegative_p): Remove.
11974
11975 2004-08-22 Steven Bosscher <stevenb@suse.de>
11976
11977 * config/i386/ppro.md (ppro_complex_insn): Add missing check
11978 for cpu==pentiumpro.
11979
11980 * combine.c (struct reg_stat): Fix comment typo.
11981
11982 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
11983
11984 * c-tree.h (c_sizeof_nowarn): Remove.
11985
11986 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
11987
11988 * c-decl.c (set_array_declarator_type): Rename to
11989 set_array_declarator_inner.
11990 (build_c_parm, build_attrs_declarator, build_function_declarator):
11991 New functions.
11992 (make_pointer_declarator): Call build_attrs_declarator.
11993 * c-tree.h (set_array_declarator_type): Rename to
11994 set_array_declarator_inner.
11995 (build_c_parm, build_attrs_declarator, build_function_declarator):
11996 New prototypes.
11997 * c-parse.in (after_type_declarator,
11998 parm_declarator_starttypename, parm_declarator_nostarttypename,
11999 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
12000 firstparm): Use these functions
12001
12002 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
12003
12004 * c-decl.c (build_array_declarator, set_array_declarator_type,
12005 start_decl, grokdeclarator, grokparms): Change boolean parameters
12006 to type bool.
12007 * c-tree.h (build_array_declarator, set_array_declarator_type,
12008 start_decl): Update prototypes.
12009 * c-decl.c, c-parse.in: All callers changed.
12010
12011 2004-08-21 Mike Stump <mrs@apple.com>
12012
12013 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
12014 (darwin_fix_and_continue): Likewise.
12015 (darwin_fix_and_continue_switch): Likewise.
12016 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
12017 (darwin_fix_and_continue): Likewise.
12018 (darwin_fix_and_continue_switch): Likewise.
12019
12020 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
12021
12022 PR c++/16030
12023 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
12024 Remove, merging into ...
12025 (gen_stdcall_or_fastcall_suffix): New function, returning tree
12026 rather than const char*, and accepting additional parameter.
12027 Don't add suffix to '*'-prefixed symbols or variadic functions.
12028 (i386_pe_encode_section_info): Adjust for call to new function.
12029 Call change_decl_assembler_name.
12030
12031 2004-08-20 Mike Stump <mrs@apple.com>
12032
12033 * config/darwin.c (machopic_indirect_data_reference): Mark
12034 stubs as defined.
12035 * config/386/386.c (darwin_local_data_pic): Add.
12036 (legitimate_constant_p): Reorder so that PLUS handling runs
12037 before darwin_local_data_pic to match the ordering in
12038 legitimate_pic_address_disp_p and so that MINUS runs after
12039 darwin_local_data_pic as otherwise the darwin_local_data_pic
12040 logic can be skipped, which would be very bad.
12041 (legitimate_pic_address_disp_p): Move from from here to
12042 darwin_local_data_pic so it can be reused.
12043
12044 2004-08-21 Alan Modra <amodra@bigpond.net.au>
12045
12046 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
12047 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
12048 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
12049 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
12050 (RS6000_ABI_NAME): Define as "linux".
12051 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
12052 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
12053 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
12054 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
12055 * config/rs6000/rs6000.c (dot_symbols): New global var.
12056 (rs6000_output_function_entry): New function, modified for
12057 !DOT_SYMBOLS..
12058 (print_operand <case 'z'>): ..extracted from here.
12059 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
12060 (rs6000_output_function_epilogue): Likewise.
12061 (rs6000_elf_declare_function_name): Likewise.
12062 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
12063 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
12064 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
12065 * configure: Regenerate.
12066 * config.in: Regenerate.
12067
12068 2004-08-20 Mark Mitchell <mark@codesourcery.com>
12069
12070 * reload.c (find_reloads_address): Fix thinko in previous change.
12071
12072 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
12073 a CONST_INT.
12074
12075 2004-08-20 Jakub Jelinek <jakub@redhat.com>
12076
12077 PR rtl-optimization/17099
12078 * combine.c (force_to_mode): Check if inner_mask has any bits set
12079 outside of GET_MODE (x) instead of op_mode.
12080
12081 2004-08-20 Mark Mitchell <mark@codesourcery.com>
12082
12083 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
12084 fragment.
12085 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
12086 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
12087 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
12088 architecture.
12089 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
12090 configurations.
12091 * config/arm/t-symbian: New file.
12092
12093 2004-08-20 Andrew Pinski <apinski@apple.com>
12094
12095 * regrename.c (kill_value_regno): ANSIfy.
12096
12097 2004-08-20 Dale Johannesen <dalej@apple.com>
12098
12099 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
12100
12101 2004-08-20 Daniel Jacobowitz <dan@debian.org>
12102
12103 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
12104 (kill_value_regno): New function, derived from kill_value.
12105 (kill_value): Update.
12106 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
12107
12108 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
12109
12110 Fix PR tree-optimization/17111
12111 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
12112 of non-value_handles.
12113 (bitmap_set_contains): All constants are in every set.
12114
12115 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
12116
12117 * fold-const.c (round_up, round_down): Use build_int_cst.
12118 Optimize common case.
12119
12120 2004-08-20 Zack Weinberg <zack@codesourcery.com>
12121 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12122
12123 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
12124 one_only_data_section): Rename to som_readonly_data_section,
12125 som_one_only_readonly_data_section and som_one_only_data_section.
12126 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
12127 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
12128 conditional defines.
12129 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
12130 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
12131 string values.
12132 (pa_select_section): Use renamed section functions.
12133 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
12134 SOM_READONLY_DATA_SECTION_FUNCTION,
12135 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
12136 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
12137 Define here ...
12138 * config/pa/som.h: ... not here.
12139 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
12140 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
12141 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
12142 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
12143 (READONLY_DATA_SECTION): Use som_readonly_data_section.
12144
12145 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
12146
12147 * fold-const.c (int_const_binop): Don't generate non-overflowing
12148 size-types specially.
12149 (fold_convert_const): Likewise.
12150
12151 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
12152 clear cache on copied sizetype.
12153
12154 2004-08-20 Ben Elliston <bje@au.ibm.com>
12155
12156 * configure.ac: Don't escape apostrophe in --enable-coverage help.
12157 * configure: Regenerate.
12158
12159 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
12160
12161 PR 5620
12162 * gcc.c (struct stat input_stat): Don't define if
12163 HOST_LACKS_INODE_NUMBERS
12164 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
12165 than stat to determine if temp file is same as input file.
12166 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
12167 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
12168
12169 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
12170
12171 * configure.ac (mips*-*-*): Print an error if not using GAS.
12172 * configure: Regenerated.
12173 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
12174 comments about buggy MIPSpro assemblers.
12175 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
12176 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
12177 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
12178 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
12179 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
12180 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
12181 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
12182 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
12183 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
12184 of more general IRIX 6 definitions.
12185 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
12186 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
12187 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
12188 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
12189 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
12190 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
12191 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
12192 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
12193 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
12194 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
12195 (LINK_SPEC): Move most of definition to iris.h.
12196 (SUBTARGET_LINK_SPEC): New macro.
12197 (IRIX_STARTFILE_SPEC): Fold into...
12198 (STARTFILE_SPEC): ...here.
12199 (IRIX_ENDFILE_SPEC): Fold into...
12200 (ENDFILE_SPEC): ...here.
12201 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
12202 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
12203 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
12204 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
12205 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
12206 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
12207 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
12208 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
12209 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
12210 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
12211 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
12212 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
12213 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
12214 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
12215 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
12216 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
12217 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
12218 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
12219 (TARGET_IRIX6): Define to 1.
12220 (DRIVER_SELF_SPECS): Define.
12221 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
12222 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
12223 (SUBTARGET_LINK_SPEC): New macro.
12224 (IRIX_STARTFILE_SPEC): Fold into...
12225 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
12226 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
12227 (LIB_SPEC, LIBGCC_SPEC): Use them.
12228 (LIB_SPEC): Remove !mabi=* case.
12229 (IRIX_ENDFILE_SPEC): Fold into...
12230 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
12231 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
12232 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
12233 (TARGET_IRIX6): New macro.
12234 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
12235 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
12236 (LABEL_AFTER_LOC): Delete.
12237 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
12238 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
12239 (mips_build_builtin_va_list): Check TARGET_IRIX6.
12240 (override_options): Remove TARGET_SGI_O32_AS-related code.
12241 (irix_output_external_libcall): Make static.
12242 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
12243 LABEL_AFTER_LOC.
12244 (mips_file_start): Tidy guard for ABI sections. Remove use of
12245 ABICALLS_ASM_OP; use .abicalls instead.
12246 (mips_output_aligned_decl_common, mips_declare_object_name)
12247 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
12248 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
12249 .globl foo .text directives.
12250 (irix_asm_named_section_1, irix_asm_named_section)
12251 (irix_section_align_entry, irix_section_align_htab)
12252 (irix_orig_asm_out_file, irix_section_align_entry_eq)
12253 (irix_section_align_entry_hash, irix_asm_output_align)
12254 (irix_file_start, irix_section_align_1, copy_file_data)
12255 (irix_file_end, irix_section_type_flags): Delete.
12256 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
12257 Use standard section syntax. Remove protective "jr $31".
12258 (__gcc_fini): Likewise .gcc_fini.
12259 * config/mips/irix-crtn.asm: Adjust sections accordingly.
12260 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
12261 iris5gas.h.
12262 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
12263 from t-irix-gld.
12264 (EXTRA_MULTILIB_PARTS): Define.
12265 * config/mips/t-iris6: Remove bogus comment.
12266 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
12267 * config/mips/iris5gas.h, config/mips/iris5gld.h,
12268 config/mips/iris6gas.h, config/mips/iris6gld.h,
12269 config/mips/t-iris5-as, config/mips/t-iris5-gas
12270 config/mips/t-irix-gld: Delete.
12271 * config/mips/iris.h: New file.
12272 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
12273
12274 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
12275
12276 * postreload.c (reload_cse_move2add): Allow any condjump, but check
12277 that the implicit set isn't clobbered in the jump insn.
12278
12279 2004-08-19 Mark Mitchell <mark@codesourcery.com>
12280
12281 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
12282 * optabs.c (init_optabs): Don't check it.
12283 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
12284 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
12285
12286 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
12287
12288 * config/s390/s390.md (s390_warn_framesize_string)
12289 (s390_warn_dynamic_string, s390_stack_size_string)
12290 (s390_stack_guard_string): New global string variables.
12291 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
12292 (s390_stack_guard): New global variables.
12293 (override_options): Added checks for the new options.
12294 (s390_emit_prologue): Emit stack check and trap code and perform
12295 compile time stack size checking.
12296
12297 * config/s390/s390.h (TARGET_OPTIONS): Added new options
12298 "warn-framesize", "warn-dynamicstack", "stack-size" and
12299 "stack-guard".
12300
12301 * doc/invoke.texi: Added documentation for the new options.
12302
12303 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
12304
12305 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
12306 to eliminate warning.
12307 (linear_search_fdes): Declare p as unsigned.
12308 (binary_search_mixed_encoding_fdes): Likewise.
12309 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
12310 to eliminate warning.
12311 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
12312 type cast.
12313
12314 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
12315
12316 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
12317 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
12318 instead of one. Check for strictly legitimate address.
12319 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
12320 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
12321
12322 2004-08-19 Eric Christopher <echristo@redhat.com>
12323
12324 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
12325 * langhooks.h (unsave_expr_now): Ditto.
12326 * tree.h (unsave_expr_1): Remove prototype.
12327 (lhd_unsave_expr_now): Rename to unsave_expr_now.
12328 * tree-inline.c (unsave_expr_1): Move here
12329 from tree.c. Make static.
12330 (unsave_expr_now): Rename from lhd_unsave_expr_now.
12331 * tree-sra.c: Fix up for rename.
12332 * tree-ssa-copy.c: Ditto.
12333 * tree-eh.c: Ditto.
12334 * tree.c (unsave_expr_1): Move to tree-inline.c.
12335
12336 2004-08-19 Caroline Tice <ctice@apple.com>
12337
12338 * config/i386/cygming.h (switch_to_section): Fix typo (change
12339 in_unlikely_text_section to in_unlikely_executed_text).
12340
12341 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
12342
12343 * vec.h (VEC_lower_bound): New macro.
12344
12345 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
12346
12347 PR target/16446
12348 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
12349 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
12350 treat each ABI separately. Deal with n32/n64 complex float arguments.
12351 (function_arg): Add associated complex handling here.
12352
12353 2004-08-19 Richard Henderson <rth@redhat.com>
12354
12355 * config/arm/arm.c (arm_gen_load_multiple): Use
12356 adjust_automodify_address. Take base memory and offset instead
12357 of unchanging/struct/scalar bits.
12358 (arm_gen_store_multiple): Likewise.
12359 (arm_gen_movmemqi): Use adjust_automodify_address.
12360 * config/arm/arm-protos.h: Update decls.
12361 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
12362 (store_multiple): Similarly.
12363
12364 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
12365
12366 * regclass.c (globalize_reg): Update call_really_used_regs.
12367
12368 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
12369
12370 * doc/invoke.texi (integer-share-limit): Document.
12371
12372 * tree.h (TYPE_CACHED_VALUES_P): New.
12373 (TYPE_CACHED_VALUES): New.
12374 (TYPE_ORIG_SIZE_TYPE): Adjust.
12375 * tree.def (INTEGER_CST): Update documentation.
12376 * tree.c: Inlcude params.h.
12377 (build_int_cst): Cache small values.
12378 (build_type_copy): Do not copy the value cache.
12379 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
12380 unneeded zeroing.
12381 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
12382 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
12383 cache.
12384 * fold-const.c (force_fit_type): Copy value when setting
12385 overflows.
12386 (int_const_binop): Likewise.
12387 * stor-layout.c: Include params.h
12388 (set_sizetype): Create values cache.
12389 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
12390 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
12391 * params.h (INTEGER_SHARE_LIMIT): New.
12392 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
12393
12394 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
12395
12396 * gimplify.c (gimplify_minimax_expr): Remove.
12397 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
12398
12399 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
12400
12401 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
12402 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
12403
12404 2004-08-19 Mark Mitchell <mark@codesourcery.com>
12405
12406 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
12407
12408 2004-08-18 Andrew Pinski <apinski@apple.com>
12409
12410 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
12411
12412 2004-08-18 Mark Mitchell <mark@codesourcery.com>
12413
12414 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
12415 (__aeabi_ul2f): Likewise.
12416
12417 2004-08-18 Richard Henderson <rth@redhat.com>
12418
12419 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
12420 move to rtl completely.
12421 (struct meminsnbuf, xtensa_emit_block_move): Remove.
12422 (xtensa_find_mode_for_size): Remove.
12423 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
12424 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
12425
12426 2004-08-18 Richard Henderson <rth@redhat.com>
12427
12428 * config/mcore/mcore.c (mode_from_align): Remove DImode.
12429 (block_move_sequence): Rewrite to use adjust_address.
12430 (mcore_expand_block_move): Cleanup logic. Accept only operands.
12431 Return boolean indicating success/failure.
12432 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
12433 * config/mcore/mcore.md (movmemsi): Update to match.
12434
12435 2004-08-18 Mike Stump <mrs@apple.com>
12436
12437 * doc/invoke.texi (-mfix-and-continue): Add support for
12438 fast turn around debugging.
12439 (-ffix-and-continue): Likewise.
12440 (-mindirect-data): Likewise.
12441 (-findirect-data): Likewise.
12442 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
12443 (indirect_data): Likewise.
12444 (machopic_data_defined_p): Likewise.
12445 (machopic_output_indirection): Likewise.
12446 (darwin_encode_section_info): Likewise.
12447 (darwin_fix_and_continue): Likewise.
12448 (darwin_fix_and_continue_switch): Likewise.
12449 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
12450 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
12451 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
12452 (SUBTARGET_OPTIONS): Likewise.
12453 (darwin_fix_and_continue): Likewise.
12454 (darwin_fix_and_continue_switch): Likewise.
12455 (TARGET_FIX_AND_CONTINUE): Likewise.
12456 * config/rs6000.c (rs6000_emit_prologue): Likewise.
12457
12458 2004-08-19 Steven Bosscher <stevenb@suse.de>
12459
12460 * basic-block.h (struct edge_def): Remove crossing_edge.
12461 (EDGE_CROSSING): New define.
12462 (EDGE_ALL_FLAGS): Update.
12463 * bb-reorder.c (find_traces_1_round, better_edge_p,
12464 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
12465 find_jump_block, fix_crossing_conditional_branches,
12466 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
12467 Replace all occurences of crossing_edge with an edge flag check
12468 or set/reset.
12469 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12470 try_crossjump_bb): Likewise.
12471 * cfglayout.c (fixup_reorder_chain): Likewise.
12472 * cfgrtl.c (force_nonfallthru_and_redirect,
12473 commit_one_edge_insertion): Likewise.
12474
12475 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
12476 * tree-flow.h (compute_dominance_frontiers): Move prototype...
12477 * basic-block.h: ...here.
12478 * tree-cfg.c (compute_dominance_frontiers_1,
12479 compute_dominance_frontiers): Move from here...
12480 * cfganal.c: ...to here. Include timevar.h.
12481
12482 2004-08-18 James E Wilson <wilson@specifixinc.com>
12483
12484 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
12485 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
12486
12487 * config/mips/mips.md (type): Add frdiv.
12488 (divsf3+1, divsf3+2): Change type to frdiv.
12489 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
12490 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
12491
12492 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
12493 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
12494 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
12495 * config/mips/5000.md (r5k_fdiv_single): Likewise.
12496 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
12497 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
12498 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
12499 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
12500 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
12501 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
12502 Likewise.
12503 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
12504
12505 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
12506
12507 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
12508 get regression tester working again.
12509
12510 2004-08-18 Zack Weinberg <zack@codesourcery.com>
12511
12512 * insn-notes.def, reg-notes.def: New files.
12513 * rtl.h: Use them to define enum insn_note and enum reg_note.
12514 * rtl.c: Use them to define note_insn_name and reg_note_name.
12515 * Makefile.in (RTL_BASE_H): Update.
12516
12517 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
12518 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
12519
12520 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
12521
12522 * arm.c (arm_size_rtx_costs): New function.
12523 (arm_override_options): Use it if optimizing for space.
12524
12525 2004-08-18 Richard Henderson <rth@redhat.com>
12526
12527 * emit-rtl.c (gen_const_mem): New.
12528 * rtl.h (gen_const_mem): Declare.
12529 * expr.c (do_tablejump): Use it.
12530 * varasm.c (force_const_mem): Likewise.
12531 * config/darwin.c (machopic_indirect_data_reference): Likewise.
12532 (machopic_legitimize_pic_address): Likewise.
12533 * config/arm/arm.c (legitimize_pic_address): Likewise.
12534 * config/i386/i386.c (legitimize_pic_address): Likewise.
12535 (legitimize_tls_address): Likewise.
12536 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
12537 * config/ia64/ia64.md (load_fptr): Likewise.
12538 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
12539 * config/pa/pa.c (legitimize_pic_address): Likewise.
12540 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
12541 (rs6000_emit_move): Likewise.
12542 * config/s390/s390.c (legitimize_pic_address): Likewise.
12543 (legitimize_tls_address): Likewise.
12544 * config/s390/s390.md (casesi): Likewise.
12545 * config/sh/sh.c (sh_reorg): Likewise.
12546 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
12547 * config/v850/v850.md (casesi): Likewise.
12548
12549 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
12550 * config/sh/sh.c (prepare_move_operands): Remove incorrect
12551 use of MEM_READONLY_P.
12552
12553 2004-08-18 Steven Bosscher <stevenb@suse.de>
12554
12555 * Makefile.in (OBJS-common): Add postreload-gcse.c.
12556 Add new postreload-gcse.o.
12557 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
12558 (lookup_as_function, insert, rehash_using_reg, use_related_value,
12559 equiv_constant): Use SAFE_HASH instead of safe_hash.
12560 (exp_equiv_p): Export. Add for_gcse argument when comparing
12561 for GCSE.
12562 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
12563 find_comparison_args, fold_rtx, cse_insn): Update callers.
12564 (hash_rtx): New function derived from old canon_hash and bits
12565 from gcse.c hash_expr_1.
12566 (canon_hash_string): Rename to hash_rtx_string.
12567 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
12568 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
12569 (cselib_lookup): Update this caller.
12570 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
12571 Make static.
12572 (hash_expr): Call hash_rtx.
12573 (ldst_entry): Likewise.
12574 (expr_equiv_p): Call exp_equiv_p.
12575 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
12576 reg_used_on_edge, reg_set_between_after_reload_p,
12577 reg_used_between_after_reload_p, get_avail_load_store_reg,
12578 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
12579 get_bb_avail_insn, hash_scan_set_after_reload,
12580 compute_hash_table_after_reload,
12581 eliminate_partially_redundant_loads, gcse_after_reload,
12582 get_bb_avail_insn, gcse_after_reload_main): Remove.
12583 * postreload-gcse.c: New file, reincarnating most of the above.
12584 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
12585 (gcse_after_reload_main): Update prototype.
12586 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
12587 * passes.c (rest_of_handle_gcse2): Use it.
12588
12589 2004-08-18 Diego Novillo <dnovillo@redhat.com>
12590
12591 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
12592 (pass_loop_done): Likewise.
12593
12594 2004-08-18 Andrew Pinski <apinski@apple.com>
12595
12596 * config/rs6000/darwin.md: Delete the altivec patterns which are
12597 handled differently now.
12598 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
12599 (macho_correct_pic_di): Likewise.
12600 (call_indirect_nonlocal_darwin64): Likewise.
12601 Delete the save world/saveFP/saveVec patterns.
12602
12603 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
12604 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
12605 * config/rs6000/rs6000.md: Include darwin.md.
12606 (builtin_setjmp_receiver): Add DImode case.
12607 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
12608 Darwin bits.
12609
12610 2004-08-18 Matt Austern <austern@apple.com>
12611
12612 Dead code stripping
12613 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
12614 * darwin.c (darwin_file_end): Mark file as potentially strippable.
12615
12616 2004-08-18 Richard Henderson <rth@redhat.com>
12617
12618 * alias.c (readonly_fields_p): Remove.
12619 (objects_must_conflict_p): Don't call it.
12620 * tree.h (readonly_fields_p): Remove.
12621 * langhooks.h (struct lang_hooks): Remove honor_readonly.
12622 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
12623
12624 2004-08-18 Diego Novillo <dnovillo@redhat.com>
12625
12626 * tree-dfa.c (add_referenced_var): Only global variables are
12627 call-clobbered.
12628 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
12629 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
12630 all pointers dereferenced if the statement dereferences them.
12631 (create_name_tags): Do not create memory tags for pointers
12632 that have PT_ANYTHING set.
12633 Also check if PT_VARS is not empty before creating a name tag.
12634 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
12635 variables that share the same alias set with a pointer that
12636 may point anywhere.
12637 (add_may_alias): Add FIXME comment to remove clobbering
12638 aliased variables and tags.
12639 (replace_may_alias): Likewise.
12640 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
12641 (merge_pointed_to_info): If the original variable has not
12642 points-to information, call set_pt_anything.
12643 (add_pointed_to_var): Do not prevent adding a pointed-to
12644 variable if the pointers is PT_ANYTHING.
12645 If the variable is a global, set PT_GLOBAL_MEM.
12646 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
12647 pointer type only come in PTR+OFFSET flavours.
12648 Always call merge_pointed_to_info on PHI arguments that are
12649 SSA_NAMEs.
12650 (get_nmt_for): Mark call-clobbered tags whose pointer points
12651 to global memory.
12652 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
12653 values.
12654 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
12655 FLAGS.
12656 (add_stmt_operand): Abort if the caller tried to add a killing
12657 definition for a memory tag.
12658 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
12659 unnecessary checks.
12660
12661 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
12662
12663 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
12664 from call_used_regs. Update call_really_used_regs.
12665 (CALL_REALLY_USED_REGISTERS): Define.
12666 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
12667 Replace call_used_regs with call_really_used_regs.
12668 (calc_live_regs, sh_media_register_for_return): Likewise.
12669 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
12670 * sh.md (return_media): Likewise.
12671
12672 2004-08-18 Andrew Pinski <apinski@apple.com>
12673
12674 * config/darwin.c (machopic_legitimize_pic_address): Only set
12675 MEM_READONLY_P in the non TARGET_TOC case.
12676
12677 2004-08-18 Zack Weinberg <zack@codesourcery.com>
12678
12679 * rtl.def (NIL): Delete.
12680 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
12681 Tighten the syntax a little.
12682
12683 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
12684 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
12685 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
12686 * config/i386/predicates.md, config/m32r/m32r.h
12687 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
12688 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
12689 * config/sparc/sparc.h, doc/tm.texi:
12690 Replace all occurrences of NIL with UNKNOWN.
12691
12692 2004-08-18 Zack Weinberg <zack@codesourcery.com>
12693
12694 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
12695 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
12696 sequence inline. Move drop_through_label code into this
12697 block, being the only place it is used. Adjust comments.
12698
12699 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
12700
12701 * config/rs6000/altivec.md: Add new patterns for calls to
12702 save_world/rest_world functions.
12703
12704 * config/rs6000/rs6000-protos.h: (save_world_operation,
12705 restore_world_operation) new declarations.
12706
12707 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
12708 field added.
12709 (rs6000_stack_info): Set world_save_p field.
12710 (save_world_operation): New function.
12711 (restore_world_operation): New function.
12712 (compute_save_world_info): New function.
12713 (rs6000_stack_info): Call compute_save_world_info.
12714 (rs6000_emit_prologue): Check for world_save_p and generate
12715 pattern to call save_world for saving all non-volatile and
12716 special registers.
12717 (rs6000_emit_epilogue): Check for world_save_p and generate
12718 pattern to call rest_world to restore saved registers.
12719
12720 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
12721 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
12722 (rs6000_reg_names): New entries added for save_world_operation and
12723 restore_world_operation.
12724
12725 2004-08-18 Caroline Tice <ctice@apple.com>
12726
12727 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
12728 "-freorder-blocks-and-partition" to the flags used in second
12729 stage of profiledbootstrap.
12730 * bb-reorder.c (push_to_next_round_p): Add new variable,
12731 next_round_is_last; set and use variable to make sure, when
12732 partitioning, that the last trace construction round consists
12733 of all (and only) cold basic blocks.
12734 (rotate_loop): Don't copy blocks that end in a section
12735 crossing jump.
12736 (copy_bb): Correctly initialize "partition" of duplicated bb.
12737 (add_unlikely_executed_notes): Add a comment.
12738 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
12739 to make sure, if function contains hot blocks, that the
12740 successors of ENTRY_BLOCK_PTR are hot; also, only look for
12741 crossing edges if the architecture supports named sections.
12742 (mark_bb_for_unlikely_executed_section): Modify to always
12743 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
12744 the basic block note insn.
12745 (fix_crossing_unconditional_branches): Remove extra space.
12746 (fix_edges_for_rarely_executed_code): Modify to only do
12747 partitioning work if the architecture supports named sections.
12748 (reorder_basic_blocks): Modify to only add
12749 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
12750 supports named sections.
12751 * c-common.c (handle_section_attribute): Initialize new global
12752 variable, user_defined_section_attribute, to true if user has
12753 specified one.
12754 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
12755 forward edges that cross section boundaries.
12756 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
12757 partitioning information if the architecture supports named
12758 sections.
12759 * cfgrtl.c (target.h): Add statement to include this.
12760 (rtl_split_block): Make sure newly created bb gets correct
12761 partition.
12762 (try_redirect_by_replacing_jump): Make sure redirection isn't
12763 attempting to cross section boundaries.
12764 (force_nonfallthru_and_redirect): Only do partition fix up if
12765 architecture supports named sections.
12766 (rtl_split_edge): Make sure newly created bb ends up in
12767 correct partition.
12768 (commit_one_edge_insertion): Remove code that incorrectly
12769 updated basic block partition; Make sure partition fix up only
12770 happens if architecture supports named sections and it's not
12771 already done.
12772 (rtl_verify_flow_info_1): Fix if-condition on test/error
12773 condition that fallthru edges are not allowed to cross section
12774 boundaries.
12775 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
12776 * final.c (final_scan_insn): Remove redundant test from if-statement;
12777 change calls to text_section into calls to function_section; add code
12778 to only to partitioning fix up if architecture supports named
12779 sections.
12780 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
12781 partition.
12782 (if_convert): Add targetm.have_named_sections to test.
12783 * output.h (unlikely_section_label): Extern declaration for new global
12784 variable.
12785 (unlikely_text_section_name): Likewise.
12786 * opts.c (decode_options): If both partitioning and DWARF debugging
12787 are turned on, issue a warning that this doesn't work, and change
12788 partitiong to basic block reordering (without hot/cold partitions).
12789 * passes.c (rest_of_handle_final): Re-set new global variable,
12790 user_defined_section_attribute, to false.
12791 (rest_of_compilation): Change options for calling partitioning
12792 function: Don't call if the user defined the section attribute, and
12793 don't call if DECL_ONE_ONLY is true for the current function.
12794 * predict.c (choose_function_section): Return immediately if we
12795 are doing hot/cold partitioning (i.e. let the basic block partitioning
12796 determine where the function belongs).
12797 * reg-stack.c (emit_swap_insn): Add condition to step over
12798 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
12799 * toplev.c (user_defined_section_attribute): New global variable.
12800 * toplev.h (user_defined_section_attribute): Extern declaration
12801 for new global variable.
12802 * varasm.c (unlikely_section_label): New global variable.
12803 (unlikely_text_section_name): New global variable.
12804 (unlikely_text_section): Add code to initialize
12805 unlikely_text_section_name if necessary; modify to use
12806 unlikely_text_section_name and unlikely_section_label; also to use
12807 named_section properly.
12808 (in_unlikely_text_section): Modify to work correctly with
12809 named_section and to use unlikely_text_section_name.
12810 (named_section): Add code to work properly with cold section.
12811 (function_section): Clean up if-statement.
12812 * config/darwin.c (darwin_asm_named_section): Return to original
12813 code, removing use of SECTION_FORMAT_STRING.
12814 * config/arm/pe.h (switch_to_section): Add case for
12815 in_unlikely_executed_text to switch statement.
12816 * config/i386/cygming.h (switch_to_section): Likewise.
12817 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
12818 (SECTION_FORMAT_STRING): Likewise.
12819 * config/mcore/mcore.h (switch_to_section): Likewise.
12820 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
12821 (SECTION_FORMAT_STRING): Remove.
12822
12823 2004-08-18 Roger Sayle <roger@eyesopen.com>
12824
12825 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
12826 -ffixed-reg safe, by preserving the meanings of zero and one.
12827 (CALL_USED_REGISTERS): Likewise.
12828 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
12829
12830 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
12831
12832 * config/sh/sh.c (split_branches): Check the result of
12833 next_active_insn.
12834 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
12835 Call rtl_register_cfg_hooks.
12836
12837 2004-08-18 Richard Henderson <rth@redhat.com>
12838
12839 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
12840 * alias.c (true_dependence): Update to match new semantics.
12841 (canon_true_dependence, write_dependence_p): Likewise.
12842 (anti_dependence, output_dependence): Update write_dependence_p args.
12843 (unchanging_anti_dependence): Remove.
12844 * calls.c (purge_mem_unchanging_flag): Remove.
12845 (fixup_tail_calls): Don't call it.
12846 (expand_call): Don't add unchanging memory to function usage.
12847 * expr.c (emit_block_move_via_libcall): Likewise.
12848 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
12849 (get_subtarget): Don't use RTX_UNCHANGING_P.
12850 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
12851 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
12852 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
12853 * cse.c (insert): Don't use RTX_UNCHANGING_P.
12854 (cse_insn, canon_hash): Use MEM_READONLY_P.
12855 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
12856 instead of RTX_UNCHANGING_P.
12857 * explow.c (maybe_set_unchanging): Remove.
12858 * expr.h (maybe_set_unchanging): Remove.
12859 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
12860 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
12861 (assign_parm_setup_reg, expand_function_start): Likewise.
12862 * integrate.c (copy_rtx_and_substitute): Likewise.
12863 * ra-rewrite.c (emit_colors): Likewise.
12864 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
12865 (fixup_match_1): Likewise.
12866 * reload1.c (reload, alter_reg): Likewise.
12867 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
12868 not RTX_UNCHANGING_P.
12869 (equiv_init_varies_p): Likewise.
12870 * loop-invariant.c (check_maybe_invariant): Likewise.
12871 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
12872 * loop.c (note_addr_stored): Likewise.
12873 (prescan_loop): Likewise. Don't check function usage for clobbered
12874 unchanging memory.
12875 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
12876 not RTX_UNCHANGING_P.
12877 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
12878 * varasm.c (force_const_mem): Likewise.
12879 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
12880 * web.c (entry_register): Likewise.
12881 * tree-gimple.h (get_base_address): Move decl ...
12882 * tree.h: ... here.
12883 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
12884
12885 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
12886 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
12887 (alpha_set_memflags): Update to match.
12888
12889 * config/darwin.c (machopic_indirect_data_reference): Set
12890 MEM_READONLY_P instead of RTX_UNCHANGING_P.
12891 (machopic_indirect_call_target): Likewise.
12892 (machopic_legitimize_pic_address): Likewise.
12893 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
12894 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
12895 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
12896 * config/frv/frv.md (symGOT2reg): Likewise.
12897 * config/i386/i386.c (legitimize_pic_address,
12898 legitimize_tls_address, ix86_split_to_parts): Likewise.
12899 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
12900 * config/ia64/ia64.md (load_fptr): Likewise.
12901 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
12902 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
12903 * config/mcore/mcore.c (block_move_sequence): Likewise.
12904 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
12905 * config/pa/pa.c (legitimize_pic_address): Likewise.
12906 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
12907 (rs6000_emit_move): Likewise.
12908 * config/s390/s390.c (legitimize_pic_address): Likewise.
12909 (legitimize_tls_address): Likewise.
12910 * config/s390/s390.md (casesi): Likewise.
12911 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
12912 * config/sh/sh.md (symGOT2reg): Likewise.
12913 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
12914 * config/v850/v850.md (casesi): Likewise.
12915
12916 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
12917 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
12918 * config/mips/mips.c (mips_restore_gp): Likewise.
12919 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
12920 * config/sh/sh.c (sh_reorg): Likewise.
12921
12922 2004-08-18 Richard Henderson <rth@redhat.com>
12923
12924 * tree.h (struct tree_decl): Add gimple_formal_temp.
12925 (DECL_GIMPLE_FORMAL_TEMP_P): New.
12926 * gimplify.c (pop_gimplify_context): Clear it.
12927 (lookup_tmp_var): Set it, if is_formal.
12928 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
12929 Use is_gimple_val for VECTOR. Simplify return value.
12930 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
12931 (gimplify_expr): Likewise.
12932 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
12933 is_gimple_tmp_rhs for clarity. Update all callers.
12934 (is_gimple_reg_rhs): Simplify logic.
12935 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
12936 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
12937 (is_gimple_formal_tmp_reg): Similarly.
12938 * tree-gimple.h: Update decls.
12939 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
12940 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
12941 * tree-ssa-live.c (var_union, type_var_init): Likewise.
12942
12943 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
12944
12945 * c4x.c (legitimize_operands): Remove calls to
12946 preserve_subexpressions_p.
12947
12948 2004-08-18 David Edelsohn <edelsohn@gnu.org>
12949
12950 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
12951 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
12952
12953 2004-08-18 Ziemowit Laski <zlaski@apple.com>
12954
12955 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
12956 Objective-C++ extensions.
12957 * gengtype.c (get_file_basename): Match entire subdirectory name
12958 ('cp', 'objc', 'objcp') rather than just its suffix.
12959 (get_base_file_bitmap): Allow for files to belong to more than one
12960 language.
12961 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
12962 used by more than one front-end.
12963
12964 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
12965
12966 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
12967 avoid use of preserve_subexpressions_p.
12968
12969 2004-08-17 Richard Henderson <rth@redhat.com>
12970
12971 PR 17051
12972 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
12973
12974 2004-08-17 DJ Delorie <dj@redhat.com>
12975
12976 * doc/extend.texi: Document new xstormy16 attribute.
12977
12978 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
12979 (xstormy16_splittable_below100_or_register): New.
12980 (combine_bnp): New.
12981 (xstormy16_reorg): New.
12982 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12983
12984 * config/stormy16/stormy16.md (movqi_internal): Make name public.
12985 (movhi_internal): Likewise.
12986 (cbhranchhi): Likewise.
12987 (cbhranchhi_neg): Likewise.
12988 (andhi3): Only allow splittable below100 operands.
12989 (iorhi3): Likewise.
12990 (peephole2): New and/zero_extend->and peephole.
12991 (peephole2): New load/ior/save->set1 peephole.
12992 (peephole2): New load/and/save->clr1 peephole.
12993 (bclrx, bclrx2, bclr7, bclr15): New.
12994 (bsetx, bsetx2, bset7, bset15): New.
12995
12996 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
12997 liberal about acceptable 'B' masks.
12998
12999 * config/stormy16/stormy16-protos.h
13000 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
13001 xstormy16_below100_operand, xstormy16_below100_or_register,
13002 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
13003 (PREDICATE_CODES): Add new predicates.
13004
13005 * config/stormy16/stormy16.c
13006 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
13007 xstormy16_below100_operand, xstormy16_below100_or_register,
13008 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
13009 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
13010 (xstormy16_legitimate_address_p): Allow below100 symbols.
13011 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
13012 (xstormy16_expand_move): Leave below100 operands as-is.
13013 (xstormy16_encode_section_info): Encode below100 symbols.
13014 (xstormy16_strip_name_encoding): New.
13015 (xstormy16_print_operand): Print 'b' as shift mask.
13016 (xstormy16_attribute_table): Add below100 attributes.
13017 (xstormy16_handle_below100_attribute): New.
13018
13019 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
13020 (XSTORMY16_SECTION_FUNCTION): New.
13021 (EXTRA_SECTION_FUNCTIONS): Define using the above.
13022 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13023 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
13024 (ASM_OUTPUT_LABELREF): Define.
13025
13026 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
13027 (movhi_internal): Add below100 support.
13028 (andhi3): Add below100 support.
13029 (iorhi3): Add below100 support.
13030 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
13031
13032 2004-08-17 James E Wilson <wilson@specifixinc.com>
13033
13034 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
13035 of VOIDmode for comparison code mode.
13036 * config/mips/mips.md: For conditional move patterns, use mode of
13037 first compare operand for comparison mode, instead of VOIDmode.
13038
13039 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
13040 normal and -ffast-math code.
13041
13042 2004-08-17 Mark Mitchell <mark@codesourcery.com>
13043
13044 PR c++/15871
13045 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
13046
13047 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
13048
13049 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
13050
13051 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
13052
13053 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
13054 for non Darwin targets.
13055 (*call_value_nonlocal_darwin64): Likewise.
13056
13057 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
13058
13059 * config/rs6000/rs6000.c (rs6000_function_value): Check for
13060 altivec mode for altivec return register.
13061
13062 2004-08-17 David Edelsohn <edelsohn@gnu.org>
13063
13064 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
13065 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
13066 * config/rs6000/rs6000.md: Include darwin.md.
13067 (builtin_setjmp_receiver): Add DImode case.
13068 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
13069 Darwin bits.
13070
13071 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
13072
13073 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
13074 trees.
13075 * tree-vectorizer.h: New File: Same.
13076 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
13077 * common.opt (ftree-vectorize): New flag to enable vectorization.
13078 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
13079 vectorization pass.
13080 * tree-data-ref.h (init_data_ref): Additional argument.
13081 (array_base_name_differ_p): Moved to tree-data-ref.c.
13082 * tree-data-ref.c (array_base_name_differ_p): Revised.
13083 (initialize_data_dependence_relation): Call array_base_name_differ_p
13084 with an extra argument.
13085 (analyze_all_data_dependences): Same.
13086 (init_data_ref): Additional argument is_read to set DR_IS_READ.
13087 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
13088 file.
13089 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
13090 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
13091 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
13092 vectorization pass.
13093 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
13094 (tree_ssa_loop_done): Call scev_finalize.
13095 (tree_vectorize): Define the new vectorization pass.
13096 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
13097 size of the vector they support (until support for multiple vector
13098 sizes is added to the vectorizer).
13099 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
13100 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
13101 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
13102 documentation.
13103
13104 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
13105
13106 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
13107 usage.
13108 (generate_protocol_list, handle_impent): Likewise.
13109
13110 2004-08-17 Roger Sayle <roger@eyesopen.com>
13111
13112 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
13113 ensure that call_used_regs is a superset of both fixed_regs and
13114 call_really_used_regs.
13115
13116 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
13117
13118 PR target/17019
13119 * arm.md (addsi3_cbranch_scratch): Correct case labels.
13120
13121 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
13122
13123 PR middle-end/17036
13124 * fold-const.c (fold): Check for integer operand when
13125 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
13126 Pinski <pinskia@physics.uc.edu>.
13127
13128 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
13129
13130 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
13131 No need to check if in a cross configuration.
13132 * configure: Regenerate.
13133
13134 * calls.c (precompute_register_parameters):
13135 Inline preserve_subexpressions_p ().
13136 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
13137 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
13138 Likewise.
13139 * expr.c (get_subtarget): Likewise.
13140 * rtl.h (preserve_subexpressions_p): Remove.
13141 * stmt.c (preserve_subexpressions_p): Remove.
13142
13143 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
13144 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
13145 Abort on gimplified cases.
13146
13147 2004-08-16 James E Wilson <wilson@specifixinc.com>
13148
13149 * tree.h (VECTOR_FLOAT_TYPE_P): New.
13150 (FLOAT_TYPE_P): Use it.
13151 * c-typeck.c (build_binary_op): After convert calls, check for
13152 check for ERROR_MARK operands.
13153
13154 2004-08-16 Zack Weinberg <zack@codesourcery.com>
13155
13156 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
13157 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
13158 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
13159 (genobjs static pattern rule): Remove %.c dependency.
13160 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
13161 Rename rules; delete commands; fix dependencies.
13162 (mostlyclean): Do not delete temporary source copies.
13163 * configure.ac: Delete all references to BUILD_PREFIX and
13164 BUILD_PREFIX_1.
13165 * configure: Regenerate.
13166
13167 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
13168 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
13169 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
13170 with #ifndef GENERATOR_FILE so that nothing from those headers
13171 is used.
13172
13173 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
13174
13175 2004-08-16 Adam Nemet <anemet@lnxw.com>
13176
13177 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
13178
13179 2004-08-16 Andrew Pinski <apinski@apple.com>
13180
13181 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
13182 extraneous semicolon.
13183
13184 2004-08-16 Devang Patel <dpatel@apple.com>
13185
13186 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
13187 * print-tree.c (print_node): Print DECL_PRESERVE_P.
13188 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
13189 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
13190 * target.h (struct gcc_target): New member, mark_decl_preserved.
13191 * hooks.c (hook_void_charptr): Rename to ...
13192 (hook_void_constcharptr): ... new name.
13193 * hooks.h (hook_void_charptr): Rename to ..
13194 (hook_void_constcharptr): ... new name.
13195 * tree.h (DECL_PRESERVE_P): New #define.
13196 (struct tree_decl): New member, preserve_flag.
13197 * varasm.c (assemble_start_function): Mark decl preserved.
13198 (assemble_variable): Same.
13199 * darwin.c (darwin_mark_decl_preserved): New function.
13200 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
13201 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
13202 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
13203
13204 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
13205
13206 * c-decl.c (grokdeclarator): Allow for function definition where
13207 innermost declarator has attributes.
13208
13209 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
13210
13211 * except.c (get_exception_filter, build_post_landing_pads,
13212 dw2_build_landing_pads): Use target-specific mode for 'filter'.
13213 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
13214 * target.h (eh_return_filter_mode): New field added.
13215 * targhooks.c (default_eh_return_filter_mode): Defined.
13216 * targhooks.h (default_eh_return_filter_mode): Declared.
13217 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
13218
13219 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
13220
13221 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
13222 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
13223 * configure: Regenerate.
13224
13225 2004-08-16 Stan Shebs <shebs@apple.com>
13226
13227 Basic support for 64-bit Darwin.
13228 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
13229 (machopic_legitimize_pic_address): Similarly, plus use Pmode
13230 instead of SImode.
13231 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
13232 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
13233 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
13234 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
13235 (PROCESSOR_DEFAULT64): Define.
13236 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
13237 Darwin.
13238 * config/rs6000/rs6000.md: Include darwin.md.
13239 (builtin_setjmp_receiver): Add DImode case.
13240 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
13241 Darwin.
13242 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
13243 (rs6000_emit_move): Add DImode case to Darwin bits.
13244 (machopic_output_stub): Use .quad if 64-bit.
13245 * invoke.texi: Document -m32 and -m64.
13246
13247 2004-08-16 Janis Johnson <janis187@us.ibm.com>
13248
13249 * doc/extend.texi (AltiVec builtins): Document additional differences
13250 from the Motorola AltiVec PIM.
13251
13252 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
13253
13254 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
13255 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
13256 (struct tree_common): Update public_flag documentation.
13257
13258 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
13259
13260 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13261 Check for artificial variables, not is_gimple_tmp_var.
13262 * tree-ssa-live.c (var_union): Likewise.
13263
13264 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
13265
13266 * calls.c (load_register_parameters): Remove spurious FIXME token.
13267
13268 2004-08-15 Ziemowit Laski <zlaski@apple.com>
13269
13270 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
13271 (c-lang.o): Depend on c-objc-common.h.
13272 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
13273 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
13274 * c-lang.c: Include c-objc-common.h.
13275 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
13276 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
13277 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
13278 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
13279 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
13280 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
13281 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
13282 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
13283 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
13284 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
13285 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
13286 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
13287 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
13288 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
13289 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
13290 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
13291 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
13292 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
13293 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
13294 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
13295 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
13296 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
13297 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
13298 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
13299 Move to c-objc-common.h.
13300 * c-objc-common.c: Include c-objc-common.h.
13301 * c-objc-common.h: New file.
13302
13303 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
13304 Andrew Pinski <pinskia@physics.uc.edu>
13305
13306 PR target/14931
13307 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
13308 style.
13309
13310 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
13311
13312 * tree.h (build_int_cst): New.
13313 (build_int_2): Remove.
13314 * tree.c (build_int_2): Remove.
13315 (build_int_cst): New.
13316 (make_vector_type, build_common_tree_nodes,
13317 build_common_tree_nodes_2): Use build_int_cst.
13318 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
13319 expand_builtin_strpbrk, expand_builtin_fputs,
13320 build_string_literal, expand_builtin_printf,
13321 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
13322 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
13323 fold_builtin_isdigit, simplify_builtin_strstr,
13324 simplify_builtin_strpbrk, fold_builtin_fputs,
13325 simplify_builtin_sprintf): Use build_int_cst.
13326 * c-common.c (start_fname_decls, fix_string_type,
13327 c_common_nodes_and_builtins, c_init_attributes,
13328 shorten_compare): Likewise.
13329 * c-decl.c (complete_array_type,
13330 check_bitfield_type_and_width): Likewise.
13331 * c-lex.c (interpret_integer, lex_charconst): Likewise.
13332 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
13333 * c-pretty-print.c (pp_c_integer_constant): Likewise.
13334 * c-typeck.c (really_start_incremental_init, push_init_level,
13335 set_nonincremental_init_from_string): Likewise.
13336 * calls.c (load_register_parameters): Likewise.
13337 * convert.c (convert_to_pointer): Likewise.
13338 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
13339 build_fn_info_type, build_ctr_info_value, build_gcov_info):
13340 Likewise.
13341 * except.c (init_eh, assign_filter_values, assign_filter_values):
13342 Likewise.
13343 * expmed.c (store_fixed_bit_field, extract_bit_field,
13344 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
13345 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
13346 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
13347 * expr.c (convert_move, emit_group_load, emit_group_store,
13348 expand_assignment, store_constructor, store_field,
13349 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
13350 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
13351 invert_truthvalue, optimize_bit_field_compare,
13352 decode_field_reference, all_ones_mask_p, constant_boolean_node,
13353 fold_div_compare, fold, fold_read_from_constant_string,
13354 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
13355 * function.c (assign_parm_setup_block): Likewise.
13356 * stmt.c (shift_return_value, expand_end_case_type,
13357 estimate_case_costs): Likewise.
13358 * stor-layout.c (layout_type, initialize_sizetypes,
13359 set_min_and_max_values_for_integral_type): Likewise.
13360 * tree-chrec.c (chrec_fold_multiply_poly_poly,
13361 reset_evolution_in_loop): Likewise.
13362 * tree-chrec.h (build_polynomial_chrec): Likewise.
13363 * tree-complex.c (build_replicated_const): Likewise.
13364 * tree-eh.c (honor_protect_cleanup_actions,
13365 lower_try_finally_onedest, lower_try_finally_copy,
13366 lower_try_finally_switch): Likewise.
13367 * tree-mudflap.c (mf_build_string, mx_register_decls,
13368 mudflap_register_call, mudflap_enqueue_constant): Likewise.
13369 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
13370 * tree-pretty-print.c (dump_generic_node): Likewise.
13371 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
13372 Likewise.
13373 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
13374 * tree-ssa-loop-niter.c (number_of_iterations_cond,
13375 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
13376 Likewise.
13377
13378 * config/alpha/alpha.c (alpha_initialize_trampoline,
13379 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
13380 * config/arm/arm.c (arm_get_cookie_size): Likewise.
13381 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
13382 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
13383 * config/i860/i860.c (i860_va_start): Likewise.
13384 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13385 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
13386 mips_gimplify_va_arg_expr): Likewise.
13387 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13388 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
13389 add_compiler_branch_island): Likewise.
13390 * config/s390/s390.c (s390_va_start): Likewise.
13391 * config/sh/sh.c (sh_va_start): Likewise.
13392 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
13393 Likewise.
13394 * config/xtensa/xtensa.c (xtensa_va_start,
13395 xtensa_gimplify_va_arg_expr): Likewise.
13396
13397 * objc/objc-act.c (build_objc_string_object,
13398 build_objc_symtab_template, init_def_list, init_objc_symtab,
13399 init_module_descriptor, generate_static_references,
13400 build_selector_translation_table, get_proto_encoding,
13401 build_typed_selector_reference, build_selector_reference,
13402 build_next_objc_exception_stuff,
13403 build_method_prototype_list_template, generate_descriptor_table,
13404 generate_protocols, build_protocol_initializer,
13405 build_ivar_list_template, build_method_list_template,
13406 build_ivar_list_initializer, generate_ivars_list,
13407 generate_dispatch_table, generate_protocol_list,
13408 build_category_initializer, build_shared_structure_initializer,
13409 generate_shared_structures, handle_impent,
13410 generate_objc_image_info): Use build_int_cst.
13411
13412 2004-08-15 Ben Elliston <bje@au.ibm.com>
13413
13414 * vec.h: Comment improvements.
13415
13416 2004-08-14 Roger Sayle <roger@eyesopen.com>
13417
13418 * c-common.c (shorten_compare, pointer_int_sum,
13419 c_common_truthvalue_conversion, boolean_increment): Replace calls
13420 to build with calls to buildN.
13421 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
13422 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
13423 gimplify_switch_stmt): Likewise.
13424 * c-typeck.c (default_function_array_conversion,
13425 build_component_ref, build_array_ref, build_function_call,
13426 pointer_diff, build_unary_op, build_conditional_expr,
13427 build_compound_expr, build_modify_expr, c_finish_goto_label,
13428 c_finish_goto_ptr, c_finish_return, c_finish_loop,
13429 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
13430 build_binary_op): Likewise.
13431
13432 2004-08-15 Steven Bosscher <stevenb@suse.de>
13433
13434 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
13435
13436 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13437
13438 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
13439 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
13440 * fixinc/fixincl.x: Rebuilt.
13441
13442 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
13443
13444 * config/mips/mips-protos.h (mips_symbolic_constant_p)
13445 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
13446 (mips_small_data_pattern_p): Declare.
13447 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
13448 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
13449 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
13450 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
13451 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
13452 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
13453 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
13454 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
13455 (pc_or_label_operand, call_insn_operand, move_operand)
13456 (consttable_operand, symbolic_operand, general_symbolic_operand)
13457 (global_got_operand, local_got_operand, stack_operand)
13458 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
13459 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
13460 (mips_small_data_pattern_p): Replace previous small_data_pattern
13461 predicate. Turn into a bool () (rtx) function.
13462 * config/mips/predicates.md: New file.
13463 * config/mips/mips.md: Include it. Use the target-independent
13464 comparison_operator instead of cmp_op. Rename trap_cmp_op to
13465 trap_comparison_operator and equality_op to equality_operator.
13466 Replace uses of small_int with the equivalent const_arith_operand.
13467 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
13468 const_float_1_operand to const_1_operand. Rename fcc_register_operand
13469 to fcc_reload_operand.
13470 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
13471
13472 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13473
13474 PR libstdc++/17005 partial fix.
13475 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
13476 except when generating ANSI/C89 code.
13477
13478 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
13479
13480 * c-common.c (shorten_compare): Use force_fit_type directly.
13481
13482 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
13483 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
13484 Dave Korn <dk@artimi.com>
13485
13486 * doc/install.texi (Building): Avoid duplicate reference to GNU
13487 make requirement.
13488 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
13489
13490 2004-08-14 Richard Henderson <rth@redhat.com>
13491
13492 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
13493 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
13494
13495 2004-08-13 Richard Henderson <rth@redhat.com>
13496
13497 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
13498 for constant_call_address_operand.
13499 (call_value_pop_1, call_value_1): Likewise.
13500 (sibcall_value_1, call_value_1_rex64): Likewise.
13501
13502 2004-08-13 James E Wilson <wilson@specifixinc.com>
13503
13504 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
13505 Correct mode from SFmode to DFmode.
13506
13507 2004-08-13 Ziemowit Laski <zlaski@apple.com>
13508
13509 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
13510 __cstring_object and __image_info sections with the no_dead_strip
13511 attribute.
13512
13513 2004-08-13 Roger Sayle <roger@eyesopen.com>
13514 David Billinghurst <David.Billinghurst@riotinto.com>
13515
13516 PR libgfortran/15930
13517 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
13518 * fixinc/fixincl.x: Regenerate.
13519 * fixinc/tests/base/internal/math_core.h: New file.
13520
13521 2004-08-13 Richard Henderson <rth@redhat.com>
13522
13523 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
13524 (dbxout_function_end): Remove ifdefs for it.
13525 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
13526
13527 2004-08-13 Richard Henderson <rth@redhat.com>
13528
13529 * Makefile.in (insn-preds.o): Depend on TREE_H.
13530 * genpreds.c (write_insn_preds_c): Include tree.h.
13531 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
13532 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
13533 const48_operand, and_operand, or_operand, mode_width_operand,
13534 mode_mask_operand, mul8_operand, const0_operand,
13535 hard_fp_register_operand, hard_int_register_operand,
13536 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
13537 samegp_function_operand, direct_call_operand, small_symbolic_operand,
13538 global_symbolic_operand, call_operand, symbolic_operand,
13539 dtp16_symbolic_operand, dtp32_symbolic_operand,
13540 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
13541 gottp_symbolic_operand, alpha_comparison_operator,
13542 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
13543 signed_comparison_operator, alpha_fp_comparison_operator,
13544 divmod_operator, fix_operator, aligned_memory_operand,
13545 unaligned_memory_operand, reg_or_unaligned_mem_operand,
13546 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
13547 reg_no_subreg_operand, addition_operation): Move to predicates.md.
13548 (reg_or_const_int_operand): Remove. Replace all users with
13549 reg_or_cint_operand.
13550 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
13551 (resolve_reload_operand): Split out of aligned_memory_operand.
13552 * config/alpha/alpha-protos.h: Update for exports.
13553 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
13554 * config/alpha/alpha.md: Include predicates.md.
13555 * config/alpha/predicates.md: New file.
13556
13557 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
13558
13559 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
13560 fields with a pointer to the instruction definition.
13561 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
13562 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
13563 (write_attr_case, write_const_num_delay_slots): Update accordingly.
13564 (write_attr_case, write_const_num_delay_slots): Write the name of
13565 an insn next to its case statement.
13566 * genoutput.c (data): Add a filename field.
13567 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
13568 (output_insn_data): Print the location of each insn definition.
13569 * genrecog.c (write_action): Print the name of an insn above
13570 the statement that returns its code.
13571
13572 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
13573
13574 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
13575 * config/libgloss.h: Likewise.
13576 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
13577 * c4x/c4x-modes.def: Likewise.
13578 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
13579 (c4x_rptb_nop_p): Likewise.
13580 (c4x_rptb_valid_p): Likewise.
13581 (c4x_rptb_insert): Likewise.
13582 (c4x_address_conflict): Likewise.
13583 * config/c4x/c4x.md: Likewise.
13584 * config/frv/frv.md: Likewise.
13585 * config/i386/athlon.md: Likewise.
13586 * config/i386/i386.md: Likewise.
13587 * config/i386/predicates.md: Likewise.
13588 * config/ia64/ia64.c: Likewise.
13589 * config/ia64/itanium1.md: Likewise.
13590 * config/ia64/itanium2.md: Likewise.
13591 * config/iq2000/iq2000.md: Likewise.
13592 * config/mcore/mcore.c: Likewise.
13593 * config/mips/mips.c: Likewise.
13594 * config/mips/r3900.h: Likewise.
13595 * config/mips/sb1.md: Likewise.
13596 * config/pa/milli64.S: Likewise.
13597 * config/pa/pa.c: Likewise.
13598 * config/pa/pa.h: Likewise.
13599 * config/rs6000/8540.md: Likewise.
13600
13601 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
13602
13603 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
13604
13605 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
13606
13607 * sh.md (cbranch define_delay) Use cond_delay_slot for
13608 non-anulled condition too.
13609
13610 2004-08-12 David Edelsohn <edelsohn@gnu.org>
13611
13612 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
13613 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
13614 any_parallel_operand, lmw_operation, stmw_operation,
13615 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
13616 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
13617 any_parallel_operand.
13618 (return_and_restore_fpregs_{si,di}): Same.
13619
13620 2004-08-12 Zack Weinberg <zack@codesourcery.com>
13621
13622 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
13623 if pred->singleton != PARALLEL, issue a warning and pretend it was.
13624 Also issue a warning for any predicate we don't know about.
13625
13626 2004-08-12 Richard Henderson <rth@redhat.com>
13627
13628 * config/i386/i386.c (internal_label_prefix): Export.
13629 (internal_label_prefix_len, struct ix86_address,
13630 ix86_decompose_address, maybe_get_pool_constant,
13631 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
13632 memory_address_length): Export.
13633 (any_fp_register_operand, fp_register_operand,
13634 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
13635 x86_64_general_operand, x86_64_szext_general_operand,
13636 x86_64_nonmemory_operand, x86_64_movabs_operand,
13637 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
13638 x86_64_zext_immediate_operand, const_int_1_31_operand,
13639 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
13640 tls_symbolic_operand, global_dynamic_symbolic_operand,
13641 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
13642 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
13643 constant_call_address_operand, const0_operand, const1_operand,
13644 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
13645 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
13646 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
13647 general_no_elim_operand, nonmemory_no_elim_operand,
13648 index_register_operand, q_regs_operand, flags_reg_operand,
13649 non_q_regs_operand, zero_extended_scalar_load_operand,
13650 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
13651 ix86_comparison_operator, ix86_carry_flag_operator,
13652 fcmov_comparison_operator, promotable_binary_operator,
13653 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
13654 mult_operator, div_operator, arith_or_logical_operator,
13655 memory_displacement_operand, cmpsi_operand, long_memory_operand,
13656 aligned_operand): Move to predicates.md as define_predicates.
13657 (tls_symbolic_operand_1): Remove.
13658 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
13659 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
13660 (legitimize_address): Merge tls_symbolic_operand contents.
13661 (ix86_expand_move): Likewise.
13662 * config/i386/i386-protos.h: Update for exports.
13663 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
13664 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
13665 * config/i386/i386.md: Include predicates.md.
13666 * config/i386/predicates.md: New file.
13667
13668 2004-08-13 Mark Mitchell <mark@codesourcery.com>
13669
13670 PR c++/16924
13671 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
13672 SYMBOL_REF_DECL.
13673 (i386_pe_mark_dllimport): Likewise.
13674 (i386_pe_encode_section_info): Likewise, when overriding
13675 dllimport attribute.
13676
13677 2004-08-12 Geoffrey Keating <geoffk@apple.com>
13678
13679 * configure.ac: When testing for flex, nm, ar, and bison, check
13680 that they will actually be built.
13681 * configure: Regenerate.
13682
13683 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
13684
13685 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
13686 (MOVE_MAX_PIECES): Define.
13687
13688 2004-08-12 Devang patel <dpatel@apple.com>
13689
13690 * dbxout.c (dbxout_begin_prologue): New function.
13691 (dbx_debug_hooks): Use new begin prologue hook.
13692 (dbxout_function_end): Emit N_ENSYM.
13693 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
13694
13695 2004-08-12 Janis Johnson <janis187@us.ibm.com>
13696
13697 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
13698 argument is float*.
13699
13700 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
13701 for vec_dss.
13702
13703 * doc/extend.texi (AltiVec builtins): Fix description for recent
13704 changes. Update operation list to match current support.
13705
13706 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
13707
13708 * config/s390/s390.c (struct s390_frame_layout): New struct as element
13709 of struct machine_function.
13710 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
13711 changed all uses.
13712 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
13713 changed all uses.
13714 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
13715 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
13716 (s390_frame_area, s390_register_info): New functions.
13717 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
13718 for base register.
13719 (s390_return_addr_rtx, s390_return_address_offset)
13720 (s390_va_start, s390_gimplify_va_arg)
13721 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
13722 layouts.
13723 (s390_frame_info): Functionality partly moved to s390_register_info.
13724 Made adaptions for new stack layout.
13725 (save_gprs, restore_gprs): Changed meaning of second parameter and
13726 adapted all callers.
13727
13728 * config/s390/s390.h (s390_backchain_string): New global variable.
13729 (MASK_BACKCHAIN): Removed definition.
13730 (TARGET_BACKCHAIN): Changed check.
13731 (TARGET_KERNEL_BACKCHAIN): New macro.
13732 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
13733 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
13734 "kernel-backchain".
13735 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
13736
13737 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
13738 as condition. Adjusted for new stack layout.
13739
13740 * doc/invoke.texi: Added documentation for new option
13741 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
13742 "-mno-backchain".
13743
13744 2004-08-12 Paul Brook <paul@codesourcery.com>
13745
13746 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
13747 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
13748
13749 2004-08-12 David Daney <ddaney@avtrex.com>
13750
13751 * java/gcj.texi: Add subsection on signal usage.
13752
13753 2004-08-12 David Edelsohn <edelsohn@gnu.org>
13754
13755 * expr.c (move_by_pieces): Set alignment for move to minimum of
13756 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
13757 alignment, but not less than the original alignment.
13758 (move_by_pieces_ninsns): Same.
13759 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
13760 (store_by_pieces_1): Same.
13761
13762 2004-08-12 Diego Novillo <dnovillo@redhat.com>
13763
13764 PR tree-optimization/16867
13765 * tree.c (is_global_var): New function.
13766 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
13767 Call is_global_var.
13768 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
13769 Update all users.
13770 (is_global_var): Declare.
13771 * tree-dfa.c (dump_variable): Display global and addressable
13772 attributes.
13773 (add_referenced_var): Clarify documentation when marking
13774 variables call-clobbered.
13775 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
13776 instead of needs_to_live_in_memory.
13777 (mark_call_clobbered): If the variable is a tag, mark it
13778 DECL_EXTERNAL.
13779 * tree-gimple.c (is_gimple_reg): Don't check for
13780 TREE_ADDRESSABLE.
13781 (is_gimple_non_addressable): Likewise.
13782 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
13783 needs to be marked call-clobbered.
13784 (setup_pointers_and_addressables): Call is_global_var instead
13785 of needs_to_live_in_memory.
13786 * tree-ssa-dce.c (need_to_preserve_store): Remove.
13787 Update all users with is_global_var.
13788 (mark_stmt_if_obviously_necessary): Fix processing of aliased
13789 stores. Don't check the virtual definitions. Rather, check
13790 whether the store is going into global memory.
13791 (find_obviously_necessary_stmts): Get the symbol from the PHI
13792 result.
13793 * tree-ssa-operands.c (get_call_expr_operands): Do not add
13794 clobbering may-defs if the call does not have side effects.
13795
13796 2004-08-12 Jakub Jelinek <jakub@redhat.com>
13797
13798 PR c++/16276
13799 * output.h (default_function_rodata_section,
13800 default_no_function_rodata_section): New prototypes.
13801 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
13802 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
13803 (TARGET_ASM_OUT): Add it.
13804 * varasm.c (default_function_rodata_section,
13805 default_no_function_rodata_section): New functions.
13806 * final.c (final_scan_insn): Call
13807 targetm.asm_out.function_rodata_section instead of
13808 readonly_data_section.
13809 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
13810 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
13811 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
13812 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
13813 Likewise.
13814 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
13815 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
13816 Likewise.
13817 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
13818 Likewise.
13819 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
13820 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
13821 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
13822
13823 2004-08-12 Paul Brook <paul@codesourcery.com>
13824
13825 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
13826 frame info.
13827 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
13828 DWARF2_UNWIND_INFO.
13829
13830 2004-08-12 Ben Elliston <bje@au.ibm.com>
13831
13832 PR target/16286
13833 * config/rs6000/altivec.h: Change vector to __vector throughout.
13834 (Except for the `vector' macro itself).
13835
13836 2004-08-12 Zack Weinberg <zack@codesourcery.com>
13837
13838 * genpreds.c: Add capability to generate predicate bodies as
13839 well as function prototypes. Write function prototypes for
13840 the generic predicates too.
13841 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
13842 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
13843 (write_match_code, write_predicate_expr, write_one_predicate_function)
13844 (parse_option): New functions.
13845 (output_predicate_decls): Delete.
13846 (main): Read the machine description, process DEFINE_PREDICATE or
13847 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
13848 as appropriate.
13849
13850 * genrecog.c (struct decision_test): Replace index with
13851 struct pred_data pointer.
13852 (next_index): Remove, unused.
13853 (pred_table, preds, special_mode_pred_table): Delete.
13854 (compute_predicate_codes, process_define_predicate): New functions.
13855 (validate_pattern, add_to_sequence, write_switch): Update for
13856 new data structures.
13857 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
13858 Check both error_count and have_error.
13859
13860 * gensupport.c (in_fname, first_predicate): New globals.
13861 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
13862 (predicate_table, last_predicate, old_pred_table)
13863 (old_special_pred_table): New statics.
13864 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
13865 (add_predicate, init_predicate_table): New functions.
13866 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
13867 (init_md_reader_args_cb): Use the global in_fname. No need to zero
13868 it or max_include_len. Call init_predicate_table.
13869 (read_rtx): Run the predicate queue after the attribute queue
13870 but before all the others.
13871 * gensupport.h (in_fname, struct pred_data, first_predicate)
13872 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
13873 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
13874 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
13875 * dummy-conditions.c: Don't include bconfig.h, system.h,
13876 coretypes.h, tm.h, or system.h. Do include stddef.h.
13877 Duplicate declaration of struct c_test from gensupport.h.
13878
13879 * Makefile.in (OBJS-common): Add insn-preds.o.
13880 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
13881 (insn-preds.c, insn-preds.o): New rules.
13882 (s-preds): Also generate insn-preds.c.
13883 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
13884 Update dependencies.
13885 (print-rtl.o, print-rtl1.o): Correct dependencies.
13886
13887 * recog.h: Delete prototypes of predicate functions.
13888
13889 * doc/md.texi (Predicates): New section with complete
13890 documentation of operand/operator predicates. Remove some
13891 incomplete documentation of predicates from other places.
13892 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
13893 PREDICATE_CODES; indicate that both are deprecated in favor
13894 of define_predicate/define_special_predicate.
13895
13896 * config/ia64/ia64.c: All predicate function definitions moved
13897 to ia64.md, except
13898 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
13899 (ia64_expand_load_address, ia64_expand_move):
13900 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
13901
13902 * config/ia64/ia64.md: All predicates now defined here.
13903 (symbolic_operand): Is now a special predicate.
13904
13905 * config/ia64/ia64.h: Declare ia64_section_threshold.
13906 (PREDICATE_CODES): Delete.
13907
13908 2004-08-12 Richard Henderson <rth@redhat.com>
13909
13910 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
13911 * c-semantics.c (add_stmt): Set it.
13912 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
13913 before instantiating a variable sized type.
13914
13915 2004-08-12 Richard Henderson <rth@redhat.com>
13916
13917 * stor-layout.c (round_up, round_down): Move ...
13918 * fold-const.c (round_up, round_down): ... here. Use
13919 multiple_of_p to avoid any arithmetic at all.
13920
13921 2004-08-12 Richard Henderson <rth@redhat.com>
13922
13923 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
13924 (gimplify_init_ctor_preeval_1): New.
13925 (gimplify_init_ctor_preeval): New.
13926 (gimplify_init_ctor_eval): New.
13927 (gimplify_init_constructor): Use them. Always gimplify the LHS
13928 object first.
13929
13930 2004-08-12 Ziemowit Laski <zlaski@apple.com>
13931
13932 (This patch is part of merge of objc-improvements-branch
13933 into mainline.)
13934
13935 * doc/frontends.texi: Mention Objective-C++ in addition to
13936 Objective-C.
13937 * doc/install.texi: Add 'obj-c++' to list of configurable
13938 languages.
13939 * doc/invoke.texi: Rename Objective-C option headings to
13940 indicate they also apply to Objective-C++. List file
13941 extensions for Objective-C++ sources. Mention that
13942 ObjC and ObjC++ compilations may also use C and C++ options,
13943 respectively. Point users to doc/standards.texi for
13944 further info on ObjC and ObjC++.
13945 * doc/sourcebuild.texi: Mention the objcp/ directory and
13946 the Objective-C++ sources it contains.
13947 * doc/standards.texi: Update link to Apple ObjC site;
13948 add link to gcc readings.html WWW doc.
13949
13950 2004-08-12 Alan Modra <amodra@bigpond.net.au>
13951
13952 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
13953 and 2004-07-14 changes.
13954
13955 2004-08-12 Paul Brook <paul@codesourcery.com>
13956
13957 * doc/invoke.texi: Fix typo.
13958
13959 2004-08-11 Devang Patel <dpatel@apple.com>
13960
13961 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
13962 and -no_dead_strip_inits_and_terms.
13963 (LINK_SPEC): Same.
13964 * doc/invoke.texi (Darwin Options): Document -dead_strip and
13965 -no_dead_strip_inits_and_terms.
13966
13967 2004-08-11 Paul Brook <paul@codesourcery.com>
13968
13969 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
13970 (arm_load_pic_register): ... to this.
13971 * config/arm/arm.c (arm_finalize_pic): Rename ...
13972 (arm_load_pic_register): ... to this. Always output insns at the
13973 current location. Load via low reg in thumb mode.
13974 (arm_expand_prologue): Call arm_load_pic_register.
13975 (thumb_expand_prologue): Ditto.
13976 * config/arm/arm.h (FINALIZE_PIC): Remove.
13977 * config/arm/arm.md (builtin_setjmp_receiver): Call
13978 arm_load_pic_register.
13979
13980 2004-08-11 Paul Brook <paul@codesourcery.com>
13981
13982 * arm.c (thumb_force_lr_save): Add prototype.
13983 (thumb_compute_save_reg_mask): New function.
13984 (thumb_find_work_register): New function.
13985 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
13986 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
13987 Don't clobber r3 when removing pretend args.
13988 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
13989 (thumb_output_function_prologue): Use new functions.
13990 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
13991 * arm.h (THUMB_REG_PUSHED_P): Remove.
13992
13993 2004-08-11 James E Wilson <wilson@specifixinc.com>
13994
13995 PR rtl-optimization/16490
13996 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
13997 global_live_at_end for new basic block if already set for other blocks.
13998
13999 2004-08-11 David Edelsohn <edelsohn@gnu.org>
14000
14001 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
14002
14003 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
14004 (mfcr rlwinm rlwinm patterns): Set length to 12.
14005
14006 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
14007
14008 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
14009 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
14010 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
14011 (start_ssa_stmt_operands): Delete.
14012 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
14013 struct stmt_operands_d.
14014 (build_ssa_operands): New extern entry point.
14015 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
14016 building code, replace with create_ssa_artficial_load_stmt().
14017 * tree-ssa-operands.c (struct voperands_d): Delete.
14018 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
14019 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
14020 (free_uses, free_defs, free_vuses, free_v_may_defs,
14021 free_v_must_defs): Remove dealloc parameter.
14022 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
14023 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
14024 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
14025 vector comparisons, ssa_name reuse, and allocations here.
14026 (verify_start_operands): Delete.
14027 (finalize_ssa_stmt_operands): Set new operands by calling finalize
14028 routines.
14029 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
14030 (append_def, append_usei): Simplify to simple accumulation.
14031 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
14032 duplicates and simple accumulation.
14033 (free_ssa_operands): Free vectors in a stmt_operand structure.
14034 (build_ssa_operands): New. Create a new stmt_operand structure from
14035 a stmt and an old set of stmt_operands.
14036 (get_stmt_operands): Simplify and call build_ssa_operands.
14037 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
14038 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
14039 add_call_read_ops): Don't pass prev_vops around anymore.
14040 (note_addressable): Return if no stmt annotation.
14041 (copy_virtual_operands): Access v_may_def operands through a struct.
14042 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
14043 hash tables without treating the stmt as a real stmt.
14044 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
14045 v_may_def def and use through a struct instead of 2 array elements.
14046 (struct v_may_def_optype_d): Use v_may_def_operand_type.
14047 (struct stmt_operands_d): New. Struct for storing all operand vectors.
14048
14049 2004-08-11 Nick Clifton <nickc@redhat.com>
14050
14051 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
14052 this funciton's behaviour. Return true when the current function
14053 has a section attribute and -mlong-calls is in effect.
14054 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
14055 short-call marker when -mlong-calls is in effect and the function
14056 has a section attribute.
14057
14058 2004-08-10 Zack Weinberg <zack@codesourcery.com>
14059
14060 * stmt.c (expand_return): If asked to return the RESULT_DECL,
14061 just call expand_value_return on result_rtl.
14062
14063 2004-08-10 Richard Henderson <rth@redhat.com>
14064
14065 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
14066 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
14067 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
14068 (add_location_or_const_value_attribute): ... not here. Use
14069 loc_descriptor_from_tree if possible.
14070 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
14071 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
14072 values specially.
14073 (loc_descriptor_from_tree): New. Update callers.
14074 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
14075 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
14076 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
14077 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
14078 and BUILT_IN_STACK_RESTORE.
14079 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
14080 * stmt.c (expand_stack_alloc): Remove.
14081 * tree-mudflap.c (mx_register_decls): Don't look for
14082 BUILT_IN_STACK_ALLOC.
14083 * tree-nested.c (convert_local_reference): Likewise.
14084 * tree.h (DECL_VALUE_EXPR): New.
14085
14086 2004-08-10 Richard Henderson <rth@redhat.com>
14087
14088 * stor-layout.c (round_up): Check for 0/1 before dividing.
14089 (round_down): Likewise.
14090
14091 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
14092
14093 2004-08-09 Mark Mitchell <mark@codesourcery.com>
14094
14095 * config.gcc (arm*-*-eabi*): New target.
14096 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
14097 (TARGET_LIB_INT_CMP_BIASED): Likewise.
14098 * expmed.c (expand_divmod): Try a two-valued divmod function as a
14099 last resort.
14100 * gthr.h: Remove bogus tokens at end of #pragma.
14101 * optabs.c (expand_twoval_binop_libfunc): New function.
14102 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
14103 (prepare_float_lib_cmp): Try reversing the condition.
14104 (debug_optab_libfuncs): New function.
14105 * optabs.h (expand_twoval_binop_libfunc): Declare.
14106 * config/arm/arm.c (arm_init_libfuncs): New function.
14107 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
14108 (TARGET_INIT_LIBFUNCS): Define it.
14109 * config/arm/arm.h (TARGET_BPABI): New macro.
14110 * config/arm/arm-protos.h
14111 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
14112 * config/arm/bpabi.S: New file.
14113 * config/arm/bpabi.c: Likewise.
14114 * config/arm/bpabi.h: Likewise.
14115 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
14116 (__aeabi_drsub): Likewise.
14117 (__aeabi_dsub): Likewise.
14118 (__aeabi_dadd): Likewise.
14119 (__aeabi_ui2d): Likewise.
14120 (__aeabi_i2d): Likewise.
14121 (__aeabi_f2d): Likewise.
14122 (__aeabi_dmul): Likewise.
14123 (__aeabi_ddiv): Likewise.
14124 (__aeabi_cdrcmple): Likewise.
14125 (__aeabi_cdcmpeq): Likewise.
14126 (__aeabi_cdcmple): Likewise.
14127 (__aeabi_dcmpeq): Likewise.
14128 (__aeabi_dcmplt): Likewise.
14129 (__aeabi_dcmple): Likewise.
14130 (__aeabi_dcmpge): Likewise.
14131 (__aeabi_dcmpgt): Likewise.
14132 (__aeabi_dcmpun): Likewise.
14133 (__aeabi_d2iz): Likewise.
14134 (__aeabi_d2uiz): Likewise.
14135 (__aeabi_d2f): Likewise.
14136 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
14137 (__aeabi_frsub): Likewise.
14138 (__aeabi_fsub): Likewise.
14139 (__aeabi_fadd): Likewise.
14140 (__aeabi_ui2f): Likewise.
14141 (__aeabi_i2f): Likewise.
14142 (__aeabi_fmul): Likewise.
14143 (__aeabi_fdiv): Likewise.
14144 (__aeabi_cfrcmple): Likewise.
14145 (__aeabi_cfcmpeq): Likewise.
14146 (__aeabi_cfcmple): Likewise.
14147 (__aeabi_fcmpeq): Likewise.
14148 (__aeabi_fcmplt): Likewise.
14149 (__aeabi_fcmple): Likewise.
14150 (__aeabi_fcmpge): Likewise.
14151 (__aeabi_fcmpgt): Likewise.
14152 (__aeabi_fcmpun): Likewise.
14153 (__aeabi_f2iz): Likewise.
14154 (__aeabi_f2uiz): Likewise.
14155 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
14156 (__aeabi_uidivmod): New function or alias.
14157 (__aeabi_idivmod): Likewise.
14158 (__aeabi_idiv0): Likewise.
14159 (__aeabi_ldiv0): Likewise.
14160 (__aeabi_llsr): Likewise.
14161 (__aeabi_lasr): Likewise.
14162 (__aeabi_llsl): Likewise.
14163 (bpabi.S): Include it.
14164 * config/arm/libgcc-bpabi.ver: New file.
14165 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
14166 (LINK_SPEC): Remove.
14167 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
14168 __aeabi_ulcmp.
14169 * config/arm/t-bpabi: New file.
14170 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
14171 (TARGET_LIB_INT_CMP_BIASED): Likewise.
14172
14173 2004-08-10 David Edelsohn <edelsohn@gnu.org>
14174
14175 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
14176 * config/rs6000/rs6000.md (clrmemsi): New pattern.
14177 * config/rs6000/rs6000.c (expand_block_clear): New function.
14178 (expand_block_move): Convert alignment to bits. Use SImode and
14179 HImode for unaligned addresses if not STRICT_ALIGNMENT.
14180
14181 2004-08-10 Caroline Tice <ctice@apple.com>
14182
14183 * varasm.c (unlikely_section_label): New global variable.
14184 (unlikely_text_section_name): New global variable.
14185 (text_section): Remove alignment statement.
14186 (unlikely_text_section): Remove alignment statement; use
14187 unlikely_section_label rather than hard-coded string.
14188 (assemble_start_function): Initialize unlikely_section_label and
14189 unlikely_text_section_name; make sure cold section is properly
14190 aligned at start of function; output unlikely_section_label if
14191 appropriate.
14192
14193 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
14194
14195 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
14196 * config/s390/s390.c (s390_canonicalize_comparison): New function.
14197 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
14198 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
14199 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
14200 ("*tmqi_mem"): Remove SUBREG from pattern.
14201 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
14202 ("*andsi3_cconly"): Likewise.
14203
14204 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
14205
14206 PR target/16909
14207 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
14208
14209 2004-08-10 Janis Johnson <janis187@us.ibm.com>
14210
14211 * doc/sourcebuild.texi (compat testing): Document available test
14212 framework commands. Use the preferred spelling of DejaGnu.
14213
14214 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
14215
14216 * lambda.h: Add matrix type, and prototypes for remainder of
14217 matrix and vector functions.
14218 (lambda_vector_mult_const): New function.
14219 (lambda_vector_negate): Ditto.
14220 (lambda_vector_add): Ditto.
14221 (lambda_vector_add_mc): Ditto.
14222 (lambda_vector_copy): Ditto.
14223 (lambda_vector_zerop): Ditto.
14224 (lambda_vector_equal): Ditto.
14225 (lambda_vector_min_nz): Ditto.
14226 (lambda_vector_first_nz): Ditto.
14227 (lambda_vector_matrix_mult): Ditto.
14228 * lambda-mat.c: New file.
14229 * Makefile.in (lambda-mat.o): New.
14230
14231 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
14232
14233 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
14234 after linking stmt into the program.
14235 (bsi_remove): Don't call modify_stmt.
14236 * tree-complex.c (update_complex_assignment,
14237 expand_complex_comparison): Call modify_stmt after changing the stmt.
14238 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
14239 removing the stmt.
14240 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
14241 the stmt, and only if needed.
14242 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
14243 expression.
14244 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
14245 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
14246 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
14247 (eliminate_redundant_computations): Don't pass an annotation. Call
14248 modify_stmt rather than setting the annotation directly.
14249 (record_equivalences_from_stmt): Remove unused local 'j'.
14250 (cprop_operand): Take a stmt rather than an annotation as a parameter.
14251 Call modify_stmt.
14252 (cprop_into_stmt): Pass stmt rather than annotation.
14253 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
14254 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
14255 modify_stmt.
14256 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
14257
14258 2004-08-10 Jason Merrill <jason@redhat.com>
14259
14260 PR middle-end/16948
14261 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
14262 the RESULT_DECL.
14263
14264 2004-08-10 Geoffrey Keating <geoffk@apple.com>
14265
14266 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
14267 hash function.
14268
14269 2004-08-10 Roger Sayle <roger@eyesopen.com>
14270
14271 * config/mips/mips.md: New reciprocal square root patterns that
14272 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
14273
14274 2004-08-10 Paul Brook <paul@codesourcery.com>
14275
14276 * config/arm/arm-protos.h (arm_set_return_address,
14277 thumb_set_return_address): Add prototypes.
14278 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
14279 * config/arm/arm.c (arm_compute_func_type,
14280 use_return_insn, arm_compute_save_reg0_reg12_mask,
14281 arm_compute_save_reg_mask, arm_output_function_prologue,
14282 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
14283 current_function_calls_eh_return.
14284 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
14285 old eh code.
14286 (arm_set_return_address, thumb_set_return_address): New functions.
14287 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
14288 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
14289 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
14290 (epilogue): Use the stackadj register.
14291 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
14292
14293 2004-08-10 Jakub Jelinek <jakub@redhat.com>
14294
14295 PR target/3144
14296 * expr.c (move_by_pieces_ninsns): Add max_size argument.
14297 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
14298 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
14299 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
14300 but using MOVE_RATIO.
14301 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
14302 (can_store_by_pieces): Change max_size type to unsigned int.
14303 (store_by_pieces_1): Likewise. Pass max_size to
14304 move_by_pieces_ninsns.
14305 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
14306 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
14307 to move_by_pieces_ninsns.
14308 (STORE_BY_PIECES_P): Define.
14309 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
14310 to move_by_pieces_ninsns.
14311 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
14312
14313 * config/i386/i386.h (CLEAR_RATIO): Define.
14314
14315 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
14316
14317 * expr.c (expand_expr_real_1): Add back code that was not dead.
14318
14319 2004-08-09 Andrew Pinski <apinski@apple.com>
14320
14321 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
14322 which is found to be compatible before returning the aliasing set.
14323
14324 2004-08-09 Daniel Jacobowitz <dan@debian.org>
14325
14326 * ggc-zone.c (struct alloc_zone): Add statistics counters.
14327 (always_collect): New flag.
14328 (ggc_alloc_zone_1): Update statistics support. Don't include
14329 overhead in allocated counter.
14330 (sweep_pages): Update allocated counter for large pages. Don'y
14331 include overhead.
14332 (ggc_collect_1): Always collect.
14333 (ggc_collect): Honor always_collect flag. Sum all zones to decide
14334 whether to collect.
14335 (SCALE, LABEL): New macros.
14336 (ggc_print_statistics): Add statistics support.
14337
14338 2004-08-09 Roger Sayle <roger@eyesopen.com>
14339
14340 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
14341 (init_expmed): Fix potential overrun problem with "all.reg".
14342 (expand_sdiv2_pow2): Add an alternate implementation for signed
14343 division, if the target provides a suitable conditional move insn.
14344
14345 2004-08-09 Paul Brook <paul@codesourcery.com>
14346 Richard Henderson <rth@redhat.com>
14347
14348 * unwind-dw2.c (uw_install_context_1): Update target saved stack
14349 pointer.
14350
14351 2004-08-09 Geoffrey Keating <geoffk@apple.com>
14352
14353 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
14354 Check DATA limit only if there's no AS limit. Ignore insanely
14355 low DATA limits.
14356 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
14357 but take care that the AS limit isn't overrun.
14358 * doc/invoke.texi: Update documentation of min-heapsize parameter.
14359
14360 2004-08-09 Jeff Law <law@redhat.com>
14361
14362 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
14363 (tree-ssa-threadupdate.o): Add dependencies.
14364 * tree-ssa-threadupdate.c: New file.
14365 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
14366 (rewrite_vars_out_of_ssa): Remove prototype.
14367 (cleanup_tree_cfg): Returns a bool.
14368 * tree.h (thread_through_all_blocks): Prototype.
14369 * tree-outof-ssa.c (SSANORM_*): Move into here.
14370 (remove_ssa_form): Now static.
14371 (rewrite_vars_out_of_ssa): Kill.
14372 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
14373 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
14374 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
14375 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
14376 anything was changed.
14377 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
14378 from the PHI's annotation rather than the edge associated with
14379 the new argument.
14380 * tree-ssa-dom.c (redirection_edges): Kill.
14381 (redirect_edges_and_update_ssa_graph): Kill.
14382 (tree_ssa_dominator_optimize): Do not reset forwardable flag
14383 for blocks anymore. Do not initialize redirection_edges.
14384 Call thread_through_all_blocks. Simplify code for cleanup
14385 of the CFG and iterating. No longer call cleanup_tree_cfg
14386 outside the iteration loop.
14387 (thread_across_edge): No longer mess with forwardable blocks.
14388
14389 2004-08-09 Zack Weinberg <zack@codesourcery.com>
14390
14391 * explow.c (memory_address): Use memory_address_p.
14392 * recog.c (general_operand): Likewise.
14393 * regrename.c: No need to define REG_OK_STRICT.
14394
14395 2004-08-09 Steven Bosscher <stevenb@suse.de>
14396
14397 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
14398 New timers.
14399 * gcse.c: Include timevar.h.
14400 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
14401 and global_copy_prop_count.
14402 (local_const_prop_count, local_copy_prop_count): New static globals.
14403 (gcse_main): Set the right timevar for each pass.
14404 (cprop_jump): Increment global_const_prop_count when a constant is
14405 propagated. Add "GLOBAL" to dump output.
14406 (cprop_insn): Increment global_const_prop_count when a constant is
14407 propagated, or global_copy_prop_count when a copy is propagated.
14408 (do_local_cprop): Likewise for local_const_prop_count and
14409 local_copy_prop_count.
14410 (one_cprop_pass): Initialize const/cprop counters to zero.
14411 Print out results of local and global const/cprop separately.
14412 (bypass_block): Break over-length line.
14413 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
14414 for bb-reorder.o and tracer.o.
14415
14416 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
14417
14418 * Makefile.in (GTFILES): Remove stmt.c
14419 (stmt.o): Do not depend on gt-stmt.h.
14420 * emit-rtl.c (emit_line_note): Do not call
14421 set_file_and_line_for_stmt.
14422 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
14423 do everything.
14424 * function.c (free_after_parsing): Do not free STMT field.
14425 (allocate_struct_function): Do not call init_stmt_for_function.
14426 (assign_stack_temp_for_type): Do not accept values of keep
14427 other than 0 or 1.
14428 (init_temp_slots): Do not initialize removed variables.
14429 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
14430 and X_VAR_TEMP_SLOT_LEVEL fields.
14431 * rtl.h (set_file_and_line_for_stmt): Remove.
14432 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
14433 struct stmt_status, cond_stack, case_stack, nesting_stack,
14434 nesting_depth, emit_locus, set_file_and_line_for_stmt,
14435 same_case_target_p, init_stmt_for_function, emit_nop,
14436 expand_start_cond, expand_start_elseif, expand_start_else,
14437 expand_elseif, expand_end_cond): Remove.
14438 (preserve_subexpressions_p): Remove references to CFUN->STMT.
14439 (expand_start_case, expand_end_case_type): Remove, merge into...
14440 (expand_case): ... this one, including other bits from
14441 expand_expr_real_1. Inline same_case_target_p. Turn members
14442 of CASE_STACK into local variables.
14443 (emit_case_bit_tests): Inline same_case_target_p.
14444 (add_case_node): Add HEAD argument, return new head of the list,
14445 do not handle default label here.
14446 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
14447 expand_start_elseif, current_nesting_level, expand_start_case,
14448 expand_end_case_type, expand_end_case, add_case_node,
14449 init_stmt_for_function, expand_elseif): Remove prototypes.
14450 (expand_case): Add prototype.
14451
14452 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
14453
14454 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
14455
14456 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
14457
14458 * expr.c (var_rtx): Remove.
14459 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
14460 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
14461 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
14462 Abort.
14463 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
14464 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
14465 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
14466
14467 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
14468 Ayal Zaks <zaks@il.ibm.com>
14469
14470 * common.opt (freschedule-modulo-scheduled-loops): New flag.
14471 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
14472 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
14473 when -freschedule-modulo-scheduled-loops flag is not specified.
14474 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
14475 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
14476 More accurate placing of insn in row of partial schedule.
14477 (ps_insn_find_column): New function.
14478 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
14479 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
14480 (schedule_region): Use sched_is_disabled_for_current_region_p.
14481 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
14482
14483 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
14484
14485 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
14486 change.
14487
14488 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
14489
14490 * config/i386/i386.c (ix86_expand_clrmem): Properly call
14491 gen_strset for 64bit target.
14492
14493 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
14494
14495 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
14496
14497 2004-08-07 Jason Merrill <jason@redhat.com>
14498
14499 Make return in memory explicit.
14500 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
14501 (assign_parm_find_data_types): Remove code for old front end
14502 invisible reference handling.
14503 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
14504 (expand_function_end): Likewise.
14505 * gimplify.c (gimplify_return_expr): Handle a dereferenced
14506 RESULT_DECL.
14507 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
14508 (declare_return_variable): Handle DECL_BY_REFERENCE.
14509 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
14510 (cp_genericize_r): Use convert_from_reference.
14511 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
14512 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
14513
14514 * c-common.c (c_warn_unused_result): Check TREE_USED before
14515 warning about a CALL_EXPR with an unused value.
14516
14517 2004-08-06 Mark Mitchell <mark@codesourcery.com>
14518
14519 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
14520 to the compiler. Use -fshort-wchar by default.
14521
14522 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
14523
14524 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
14525 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
14526 threshhold.
14527 * doc/invoke.texi (param): Document min-crossjump-insns.
14528
14529 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
14530
14531 PR c/13282
14532 * c.opt (Wmissing-field-initializers): New option.
14533 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
14534 * c-typeck.c (pop_init_level): Guard the missing field warning with
14535 warn_missing_field_initializers rather than extra_warnings.
14536 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
14537 some of the explanation from...
14538 (-Wextra): ...here. Say that the missing field warning can be
14539 seperately controlled by -Wmissing-field-initializers.
14540
14541 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
14542
14543 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
14544 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
14545 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
14546 * tree.def (ENTRY_VALUE_EXPR): Remove.
14547
14548 2004-08-06 Jakub Jelinek <jakub@redhat.com>
14549
14550 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
14551 the places where it is actually needed. Don't use repz; stosb
14552 for -Os with sufficiently small constant sizes.
14553 For sufficiently small repz; stos{l,q} repeat counts use a sequence
14554 of stos{l,q} instructions instead.
14555
14556 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14557
14558 PR tree-optimization/16807
14559 * loop-iv.c (dump_iv_info): Dump invariants correctly.
14560 (iv_subreg, iv_extend): Express value of invariant purely in
14561 base field.
14562
14563 2004-08-06 Mark Mitchell <mark@codesourcery.com>
14564
14565 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
14566 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
14567
14568 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
14569
14570 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
14571 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
14572 pre_dec_operand.
14573 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
14574 pattern until reload is finished to allow better code generation
14575 and split them completely into separate instrunctions.
14576 (*andsi3_split): New pattern.
14577
14578 2004-08-05 Mark Mitchell <mark@codesourcery.com>
14579
14580 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
14581 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
14582 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
14583 * tree.h (handle_dll_attribute): Declare. Test
14584 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
14585 * c-common.h (c_determine_visibility): Declare.
14586 * c-common.c (c_determine_visibility): New function.
14587 * c-decl.c (finish_decl): Use it.
14588 (finish_function): Likewise.
14589 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
14590 zero, by default. Use #if, not #ifdef, to test it.
14591 * config/arm/arm.c (arm_attribute_table): Use
14592 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
14593 #if.
14594 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
14595 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
14596 to 1.
14597 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
14598 * config/i386/i386.c (ix86_attribute_table): Use
14599 handle_dll_attribute for dllimport/dllexport. Test
14600 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
14601 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
14602 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
14603 it to 1.
14604 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
14605 with #if.
14606 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
14607 it to 1.
14608 * doc/extend.texi (dllexport): Clarify and correct documentation.
14609 (dllimport): Likewise.
14610 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
14611 handle_dll_attribute.
14612
14613 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14614
14615 * tree-ssa-loop-manip.c: New file.
14616 * Makefile.in (tree-ssa-loop-manip.o): Add.
14617 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
14618 Declare.
14619 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
14620 form.
14621 (tree_ssa_loop_done): Verify loop closed ssa form.
14622 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
14623
14624 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14625
14626 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
14627 pa_asm_output_aligned_local): New functions.
14628 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
14629 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
14630 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
14631 pa_asm_output_aligned_common.
14632 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
14633 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
14634 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
14635 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
14636 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
14637 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
14638 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
14639 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
14640 common data.
14641
14642 2004-08-05 Andrew Pinski <apinski@apple.com>
14643
14644 * objc/objc-act.c (build_objc_string_object): Mark the address
14645 expression as constant.
14646
14647 2004-08-05 David Edelsohn <edelsohn@gnu.org>
14648
14649 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
14650 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
14651 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
14652
14653 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
14654
14655 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
14656 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
14657 out, and associated obsolete comments.
14658
14659 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
14660
14661 * tree.h (force_fit_type): Return a tree, take three flags.
14662 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
14663 TREE_CONSTANT_OVERFLOW here.
14664 (int_const_binop, const_binop): Adjust.
14665 (size_int_type): Do sign extension here.
14666 (fold_convert_const, optimize_bit_field_compare,
14667 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
14668 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
14669 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
14670
14671 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14672
14673 PR tree-optimization/16864
14674 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
14675 for ssa names without default_def.
14676
14677 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
14678
14679 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
14680 frame pointer, restore eax with an ebp-relative address.
14681
14682 2004-08-04 Geoffrey Keating <geoffk@apple.com>
14683
14684 PR 14516
14685 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
14686 * c-common.h (make_rtl_for_local_static): Delete.
14687 * c-decl.c (shadow_tag_warned): Clean up comment.
14688 (finish_decl): Clean up spacing. Use set_user_assembler_name when
14689 appropriate. Don't pass asmspec to rest_of_decl_compilation.
14690 * c-semantics.c (make_rtl_for_local_static): Delete.
14691 * expr.c (init_block_move_fn): Use set_user_assembler_name.
14692 (init_block_clear_fn): Likewise.
14693 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
14694 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
14695 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
14696 * tree.h (make_decl_rtl): Remove second parameter.
14697 (set_user_assembler_name): New.
14698 * varasm.c (set_user_assembler_name): New.
14699 (make_decl_rtl): Remove second parameter. Update callers in many
14700 files.
14701
14702 2004-08-05 Adam Nemet <anemet@lnxw.com>
14703
14704 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
14705 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
14706 to LynxOS 4.0.
14707 * gthr-lynx.h: New file.
14708 * config/lynx-ng.h: Remove file.
14709 * config/lynx.h: Update to LynxOS 4.0.
14710 * config/t-lynx: New file.
14711 * config/i386/lynx-ng.h: Remove file.
14712 * config/i386/lynx.h: Update to LynxOS 4.0.
14713 * config/rs6000/lynxbase.h: Remove file.
14714 * config/rs6000/lynx.h: Update to LynxOS 4.0.
14715 * config/rs6000/t-lynx: New file.
14716 * doc/install.texi (Options specification): Remove reference to
14717 LynxOS from systems where --with-gnu-as makes a difference.
14718
14719 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
14720
14721 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
14722 __UINTMAX_TYPE__.
14723 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
14724 __INTMAX_MAX__.
14725 (c_cpp_builtins): Call it.
14726 * doc/cpp.texi: Update.
14727
14728 2004-08-04 David Edelsohn <edelsohn@gnu.org>
14729
14730 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
14731 cost.
14732
14733 2004-08-04 Jan Hubicka <jh@suse.cz>
14734
14735 * basic-block.h (profile_staus): New global variable.
14736 * cfg.c (profile_status): Declare.
14737 (check_bb_profile): Break out from ....; use profile_status
14738 (dump_flow_info): ... here.
14739 * cfgbuild.c (find_basic_blocks): Set profile_status.
14740 * cfgexpand.c (tree_expand_cfg): Likewise.
14741 * predict.c (estimate_probability): Likewise.
14742 * profile.c (branch_prob): Likewise.
14743 * tree-cfg.c (build_tree_cfg): Likewise.
14744 (dump_function_to_file): Use check_bb_profile.
14745 * tree-pretty-print (dump_bb_header): Likewise.
14746 * tree-profile.c (do_tree_profiling): Cleanup.
14747
14748 2004-08-04 Zack Weinberg <zack@codesourcery.com>
14749
14750 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
14751 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
14752 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
14753 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
14754 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
14755 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
14756 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
14757 (ggc-none.o, errors.o): Move rule to generators section;
14758 correct dependencies.
14759 (min-insn-modes.o): Move rule to generators section; remove
14760 unnecessary explicit command; correct dependencies.
14761 (print-rtl.o, print-rtl1.o): Correct dependencies.
14762 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
14763 (mostlyclean): Update.
14764
14765 * errors.c: Include bconfig.h not config.h. Correct comment.
14766 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
14767 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
14768 * print-rtl.c: Don't include tm_p.h.
14769
14770 * rtl.h: Move forward-decl of struct function down where it's
14771 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
14772 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
14773
14774 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14775 Jeff Law <law@redhat.com>
14776
14777 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
14778 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
14779 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
14780 manipulate the duplicated ssa names.
14781 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
14782 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
14783 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
14784 New functions.
14785 (release_ssa_name): Do not release ssa names that may have multiple
14786 definitions.
14787 * tree.h (release_ssa_name_force, mark_for_rewrite,
14788 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
14789 marked_ssa_names): Declare.
14790 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
14791 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
14792 Update call to rewrite_ssa_into_ssa.
14793
14794 2004-08-04 Mark Mitchell <mark@codesourcery.com>
14795
14796 * defaults.h (TARGET_DECLSPEC): New macro.
14797 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
14798 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
14799 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
14800 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
14801 __declspec support.
14802 (TARGET_DECLSPEC): Define.
14803 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
14804 __declspec support.
14805 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
14806 __declspec support.
14807 (TARGET_DECLSPEC): Define.
14808 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
14809 __declspec support.
14810 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
14811 support.
14812 * doc/tm.texi (TARGET_DECLSPEC): Document.
14813
14814 * doc/extend.texi: Fix typo in comment.
14815
14816 2004-08-04 Paul Brook <paul@codesourcery.com>
14817
14818 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
14819 (TARGET_CXX): Use it.
14820 * target.h (struct gcc_target): Add cdtor_returns_this.
14821 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
14822 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
14823 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
14824
14825 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
14826
14827 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
14828 low/high pair. Do range checking directly.
14829 (interpret_integer): Adjust.
14830
14831 2004-08-04 Nick Clifton <nickc@redhat.com>
14832
14833 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
14834 GCC ABI.
14835 * doc/invoke.texi: Document this new switch and also the -mrenesas
14836 switch.
14837
14838 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
14839
14840 * cfglayout.c (insn_locators_initialize): Update the current
14841 location before initializing a location.
14842
14843 2004-08-03 Zack Weinberg <zack@codesourcery.com>
14844
14845 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
14846 (dbxout_function_end): Return after emitting the "Lscope" symbol
14847 under the same conditions that this function formerly wasn't called.
14848 Add explanatory comments.
14849
14850 PR 14860
14851 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
14852 on the new decl.
14853
14854 PR 13956
14855 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
14856 functions, broken out of dbxout_block.
14857 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
14858 stabs too, if it contains symbols. Use the begin_label and
14859 the Lscope label (emitted by dbxout_function_end) for the
14860 range of this block.
14861
14862 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
14863
14864 * doc/install.texi: Update autoconf version requirements.
14865
14866 2004-08-03 Zack Weinberg <zack@codesourcery.com>
14867
14868 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
14869 * recog.c (general_operand, immediate_operand, nonmemory_operand)
14870 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
14871 * regclass.c (record_reg_classes): Likewise.
14872 * reload.c (find_reloads): Likewise.
14873 * reload1.c (reload): Likewise.
14874
14875 2004-08-03 Zack Weinberg <zack@codesourcery.com>
14876
14877 * gensupport.c (init_md_reader_args_cb): Renamed from
14878 init_md_reader_args. Add third option, callback function for
14879 parsing program-specific options. Add diagnosis of incorrect
14880 number of input files.
14881 (init_md_reader): Fold into init_md_reader_args_cb.
14882 (init_md_reader_args): Now a thin wrapper around
14883 init_md_reader_args_cb.
14884 * gensupport.h: Update prototypes.
14885
14886 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
14887 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
14888 * genrecog.c: No need to diagnose lack of an input file;
14889 init_md_reader_args will handle it.
14890 * genconditions.c: Likewise, and use init_md_reader_args.
14891 * genconstants.c: Likewise, and no need to call read_md_rtx.
14892
14893 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
14894
14895 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
14896 declarations.
14897
14898 2004-08-03 Mike Stump <mrs@apple.com>
14899
14900 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
14901 for frameworks.
14902 * doc/invoke.texi (Darwin Options): Update to reflect above.
14903
14904 2004-08-03 Roger Sayle <roger@eyesopen.com>
14905
14906 PR middle-end/16790
14907 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
14908 truncations, not just global truncations.
14909
14910 2004-08-03 Andrew Pinski <apinski@apple.com>
14911
14912 PR bootstrap/16865
14913 * loop-iv.c (simplify_using_assignment): Initialize lhs.
14914
14915 2004-08-03 Paul Brook <paul@codesourcery.com>
14916
14917 * gcc/doc/install.texi: Document MPFR requirement.
14918
14919 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
14920
14921 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
14922 and mmap() explicitly instead of relying on preset autoconf cache
14923 variables.
14924 * configure: Regenerate.
14925
14926 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
14927
14928 PR target/16570
14929 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
14930 to tmake_file.
14931 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
14932 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
14933 to tmake_file.
14934
14935 * config/i386/t-gmm_malloc: New file.
14936 * config/i386/t-pmm_malloc: Likewise.
14937
14938 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
14939
14940 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
14941 Tanguy Fautrà <tfautre@pandora.be>
14942
14943 * config/i386/pmm_malloc.h: New file.
14944
14945 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
14946
14947 * config/i386/gmm_malloc.h: New file.
14948
14949 2004-08-03 Dale Johannesen <dalej@apple.com>
14950
14951 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
14952 * c-common.c: Include opts.h.
14953 (c_common_get_alias_set): Fix check for a single input file.
14954 * toplev.c: Remove current_file_decl.
14955 * tree.h: Ditto.
14956
14957 2004-08-03 Mark Mitchell <mark@codesourcery.com>
14958
14959 * config.gcc (arm*-*-symbianelf*): New target.
14960 * config/arm/symbian.h: New file.
14961
14962 * gthr-gnat.c: Add visibility #pragmas.
14963 * gthr-gnat.h : Likewise.
14964 * gthr.h: Likewise.
14965 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
14966 (__ffsDI2): Likewise.
14967 (__clzSI2): Likewise.
14968 (__ctzSI2): Likewise.
14969 (__ctzDI2): Likewise.
14970 (__popcountSI2): Likewise.
14971 (__popcountDI2): Likewise.
14972 (__paritySI2): Likewise.
14973 (__parityDI2): Likewise.
14974 * libgcc2.h: Add visibility #pragmas.
14975 (__clzDI2): Add prototype.
14976 (__clzSI2): Likewise.
14977 (__ctzSI2): Likewise.
14978 (__ffsDI2): Likewise.
14979 (__ffsSI2): Likewise.
14980 (__ctzDI2): Likewise.
14981 (__popcountSI2): Likewise.
14982 (__popcountDI2): Likewise.
14983 (__paritySI2): Likewise.
14984 (__parityDI2): Likewise.
14985 * unwind-dw2-fde.h: Add visibility #pragmas.
14986 * unwind.h: Likewise.
14987
14988 2004-08-03 David Edelsohn <edelsohn@gnu.org>
14989 Dale Johannesen <dalej@apple.com>
14990 Roger Sayle <roger@eyesopen.com>
14991
14992 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
14993 constants more accurately. Adjust costs for FMA instructions.
14994 Add cases for most logical and float operations. Recurse into
14995 most operands.
14996
14997 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
14998
14999 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
15000
15001 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
15002
15003 * ra-build.c (conflicts_between_webs): For webs that cross a call add
15004 conflicts to regs_invalidated_by_call.
15005
15006 2004-08-03 Paul Brook <paul@codesourcery.com>
15007
15008 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
15009
15010 2004-08-03 Jan Hubicka <jh@suse.cz>
15011
15012 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
15013 ARRAY_REF argument.
15014
15015 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
15016
15017 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
15018 arm968es, arm10e, arm1020e, arm1022e.
15019 * invoke.texi: Update list of ARM cores.
15020 * arm-tune.md: Regenerate.
15021
15022 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
15023
15024 * arm/gentune.sh: New file.
15025 * arm/t-arm: New file.
15026 * arm/arm-tune.md: New file (autogenerated).
15027 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
15028 * arm.md (attribute tune): Delete. Include arm-tune.md.
15029
15030 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
15031
15032 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
15033 penultimate parameter. All callers adjusted.
15034 (struct prefix_list): Remove used_flag_ptr.
15035 (find_a_file): Do not set *pl->used_flag_ptr.
15036 (warn_B, warn_std_ptr): Remove.
15037
15038 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
15039 Mostafa Hagog <mustafa@il.ibm.com>
15040
15041 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
15042
15043 2004-08-02 Geoffrey Keating <geoffk@apple.com>
15044
15045 * dwarf2out.c (output_call_frame_info): Don't change data format
15046 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
15047 label. Use 'true' not '1'.
15048 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
15049 required.
15050
15051 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
15052
15053 * gdbinit.in: Reflect previous changes to rtunion_def.
15054
15055 2004-08-02 Roger Sayle <roger@eyesopen.com>
15056
15057 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
15058 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
15059
15060 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
15061
15062 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
15063 vec_p_reserve.
15064 * langhooks.h (lang_hooks::builtin_function): Rename parameter
15065 from "class" to "bt_class".
15066
15067 2004-08-02 Paul Brook <paul@codesourcery.com>
15068
15069 PR rtl-optimization/15068
15070 * flow.c (init_propagate_block_info): Check condition is reversible.
15071
15072 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
15073
15074 * gengtype.h (options::info): Change type to const char *.
15075 (enum gc_used_enum): Move out of struct type scope.
15076 * gengtype.c (create_option): Convert initializer for option::info to
15077 appropiate type.
15078 (adjust_field_type, walk_type, write_func_for_structure,
15079 write_root, write_roots): Remove pointless cast.
15080
15081 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
15082
15083 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
15084
15085 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
15086
15087 * rtl.h (union rtunion_def): Have all members start with the
15088 prefix "rt_".
15089 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
15090 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
15091 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
15092 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
15093 access.
15094 * gengtype.c (adjust_field_rtx_def): Likewise.
15095 * rtlanal.c (loc_mentioned_in_p): Likewise.
15096
15097 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
15098
15099 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
15100 Replace uses of mips/elf64.h with mips/elf.h
15101 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
15102 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
15103 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
15104 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
15105 (HANDLE_SYSV_PRAGMA): Delete.
15106 (ASM_OUTPUT_DEF): Fix formatting.
15107 * config/mips/elf64.h: Delete.
15108
15109 2004-08-01 Zack Weinberg <zack@codesourcery.com>
15110
15111 * config/ia64/ia64.c (got_symbolic_operand): Do require a
15112 symbol+offset operand to have its offset be zero mod 0x3fff
15113 when GOT entries are in use. Clarify logic in SYMBOL_REF
15114 case. Clarify comments.
15115 (ia64_expand_load_address): Split a symbol+offset load when
15116 the offset is nonzero mod 0x3fff, not 0x1fff.
15117
15118 2004-08-01 Geoffrey Keating <geoffk@apple.com>
15119
15120 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
15121 if trying to *store* to a non-offsettable address.
15122 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
15123 a nonoffsettable address.
15124 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
15125 Clean up.
15126 (movti_string): Don't move GPRs to a nonoffsettable address.
15127 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
15128
15129 2004-08-02 Ben Elliston <bje@au.ibm.com>
15130
15131 PR target/16155
15132 * config/rs6000/altivec.h: Replace typeof with __typeof__.
15133
15134 2004-08-01 Richard Henderson <rth@redhat.com>
15135
15136 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
15137 variable sized types.
15138
15139 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
15140
15141 * doc/invoke.texi: In the MIPS options section, remove the passage
15142 saying that -mexplicit-relocs is usually disabled for -mabicalls
15143 -fno-unit-at-a-time.
15144 * config/mips/mips.c (override_options): Remove the code that enforced
15145 this rule.
15146
15147 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
15148
15149 * config/mips/mips.md (cprestore): Provide two alternatives, one for
15150 an in-range offset and one for an out-of-range offset. Wrap the latter
15151 in .set macro/.set nomacro if it's inside a .set nomacro block.
15152
15153 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
15154
15155 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
15156 (mips_restore_gp): Declare.
15157 * config/mips/mips.c (mips_add_offset): Add a scratch register
15158 argument. Reimplement in rtl only, reusing MIPS16 logic from
15159 mips_output_mi_thunk.
15160 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
15161 to mips_add_offset.
15162 (mips_gp_save_slot): Delete.
15163 (mips_restore_gp): New function.
15164 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
15165 * config/mips/mips.md (exception_receiver): Turn into a
15166 define_insn_and_split. Use mips_restore_gp to do the split.
15167 (call_internal, call_value_internal, call_value_multiple_internal): Use
15168 mips_restore_gp to restore $gp.
15169
15170 2004-07-31 Andrew Pinski <apinski@apple.com>
15171
15172 PR other/16842
15173 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
15174
15175 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
15176
15177 * c-decl.c (diagnose_mismatched_decls): Give error for external
15178 redeclaration of identifier declared with no linkage, not just
15179 warning with -Wtraditional. Do not check DECL_CONTEXT to give
15180 error for redeclaration with no linkage.
15181
15182 2004-07-30 Geoffrey Keating <geoffk@apple.com>
15183 Fariborz Jahanian <fjahanian@apple.com>
15184
15185 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
15186 non-offsettable addresses even for DImode.
15187 (rs6000_split_multireg_move): Cope with non-offsettable addresses
15188 being moved into multiple GPRs.
15189
15190 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
15191 to 64.
15192 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
15193 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
15194 to 128.
15195 * config/rs6000/darwin-ldouble.c (isless): New macro.
15196 (inf): New macro.
15197 (nonfinite): New macro.
15198 (FPKINF): Delete.
15199 (_xlqadd): Completely rewrite.
15200 (_xlqmul): Correct overflow handling.
15201 (_xlqdiv): Correct overflow handling.
15202 * config/rs6000/darwin-ldouble-format: New file.
15203
15204 2004-07-30 Roger Sayle <roger@eyesopen.com>
15205 Richard Henderson <rth@redhat.com>
15206
15207 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
15208 9 into the equivalent lea instruction.
15209
15210 2004-07-30 Richard Henderson <rth@redhat.com>
15211
15212 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
15213 with DECL_INITIAL if fb_lvalue.
15214 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
15215 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
15216 with <Cxxx>.
15217 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
15218
15219 2004-07-30 Diego Novillo <dnovillo@redhat.com>
15220
15221 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
15222 pointer escapes through a function call, assume that the
15223 callee will dereference it.
15224 (add_pointed_to_var): Assume that VALUE is always an
15225 ADDR_EXPR.
15226 (collect_points_to_info_r): Only call add_pointed_to_var if
15227 the value is an ADDR_EXPR.
15228
15229 2004-07-30 Diego Novillo <dnovillo@redhat.com>
15230
15231 * tree-ssa-alias.c (create_alias_map_for): Do not get the
15232 alias set of the inner type of ARRAY_TYPEs.
15233
15234 2004-07-29 Diego Novillo <dnovillo@redhat.com>
15235
15236 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
15237 setting a non-register to UNDEFINED right before the call to
15238 set_lattice_value.
15239
15240 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
15241
15242 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
15243
15244 2004-07-29 Diego Novillo <dnovillo@redhat.com>
15245
15246 * tree-ssa.c (verify_flow_sensitive_alias_info): When
15247 comparing points-to sets of different pointers, make sure the
15248 second pointer is actually referenced in the code.
15249
15250 2004-07-29 Zack Weinberg <zack@codesourcery.com>
15251
15252 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
15253 (got_symbolic_operand): Remove unreachable code.
15254 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
15255 setjmp_operand; add entry for tls_symbolic_operand.
15256 * config/ia64/ia64-protos.h: Remove all prototypes of
15257 predicate functions.
15258
15259 2004-07-29 Mark Mitchell <mark@codesourcery.com>
15260
15261 * c-common.h (lang_post_pch_load): New variable.
15262 * c-pch.c (lang_post_pch_load): Define it.
15263 (c_common_read_pch): Use it.
15264 * cgraphunit.c (record_call_1): Give the front end a chance to
15265 record additional needed entities when a variable is marked as
15266 needed.
15267 * tlink.c (recompile_files): Robustify.
15268 (scan_linker_output): If a symbol is assigned to a file,
15269 but after recompilation is not present there, issue an error
15270 message.
15271
15272 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15273
15274 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
15275 Take orig_loop argument and pass it to set_level.
15276 (schedule_sm): Pass the correct orig_loop to force_move_till.
15277
15278 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15279
15280 * cfgloop.c (update_latch_info): Update dominator of the new block.
15281 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
15282 info.
15283 * dominance.c (verify_dominators): Check that the dominance tree is
15284 connected.
15285 (recount_dominator): Ignore unreachable blocks.
15286 (iterate_fix_dominators): Cleanup old dominance information before
15287 recomputing it.
15288
15289 2004-07-29 Diego Novillo <dnovillo@redhat.com>
15290
15291 * tree-ssa-operands.c (get_expr_operands): Revert changes
15292 to ADDR_EXPR processing introduced by:
15293 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15294 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
15295
15296 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
15297
15298 * doc/implement-c.texi: Add C90 subclause references. Point to
15299 preprocessor documentation instead of duplicating it. Add points
15300 only present in C90. Fill in documentation for all points.
15301
15302 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15303
15304 * pa.c (output_movb): Correct typo.
15305
15306 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
15307
15308 * ra.h (single_reg_in_regclass): Declare.
15309 * ra.c (single_reg_in_regclass): Define.
15310 (first_hard_reg): New.
15311 (init_ra): Initialize single_reg_in_regclass.
15312 * ra-colorize.c (ok_class): New.
15313 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
15314
15315 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
15316
15317 * gcov-io.h: Allow zero tag as EOF indicator.
15318 (gcov_is_eof): Remove.
15319 (gcov_truncate): Remove.
15320 * gcov-io.c (gcov_seek): Always SEEK_SET.
15321 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
15322 EOF tag.
15323 * coverage.c (read_counts_file): Don't use gcov_is_eof.
15324 * gcov-dump.c (dump_file): Likewise.
15325 * gcov.c (read_graph_file, read_count_file): Likewise.
15326
15327 * c-decl.c (complete_array_type): Don't gratuitously copy
15328 maxindex. Check it always has a type.
15329
15330 2004-07-29 Steven Bosscher <stevenb@suse.de>
15331
15332 * rtl.c (currently_expanding_to_rtl): New.
15333 * rtl.h (currently_expanding_to_rtl): Export it.
15334 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
15335
15336 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
15337 inliner hack.
15338 * config/sh/sh.c: Replace rtx_equal_function_value_matters
15339 with currently_expanding_to_rtl.
15340 * config/sh/sh.md: Likewise.
15341 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
15342
15343 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
15344
15345 Introduce sh2a support.
15346 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
15347 * config.gcc: Build multilibs for sh2a and sh2a-single by
15348 default.
15349 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
15350 default. Split their tests out of the corresponding SH4
15351 multilibs.
15352 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
15353 multilibs for SH2a.
15354 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
15355 * config.gcc: Handle sh2a multilibs and cpu selection.
15356 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
15357 * config/sh/t-mlib-sh2a: New.
15358 * config/sh/t-mlib-sh2a-nofpu: New.
15359 * config/sh/t-mlib-sh2a-single: New.
15360 * config/sh/t-mlib-sh2a-single-only: New.
15361 2004-07-09 Nick Clifton <nickc@redhat.com>
15362 Issue 43400
15363 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
15364 -ml and -m2a are used together.
15365 2004-03-23 DJ Delorie <dj@redhat.com>
15366 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
15367 when we have a double-sized FPU.
15368 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
15369 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
15370 is set.
15371 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
15372 -msh2a-single and -msh2a-single-only
15373 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
15374 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
15375 is set.
15376 2004-02-20 DJ Delorie <dj@delorie.com>
15377 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
15378 2004-02-20 Fred Fish <fnf@redhat.com>,
15379 Corinna Vinschen <vinschen@redhat.com>
15380 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
15381 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
15382 2004-02-18 DJ Delorie <dj@redhat.com>
15383 * config/sh/sh.c (broken_move): Add support for movi20.
15384 * config/sh/sh.h: Likewise.
15385 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
15386 * config/sh/sh.md (udivsi3_sh2a): New.
15387 (udivsi3): Call it.
15388 (divsi3_sh2a): New.
15389 (divsi3): Call it.
15390 (mul_r): New.
15391 (ashlsi3_sh2a): New.
15392 (ashrsi3_sh2a): New.
15393 (lshrsi3_sh2a): New.
15394 (movsi_i): Disable for sh2a.
15395 (movsi_ie): Add movi20.
15396 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
15397 sh2a, for -m2a-nofpu mode.
15398 2004-02-13 DJ Delorie <dj@redhat.com>
15399 * config/sh/lib1funcs.asm: Handle double vs single better.
15400 * config/sh/sh.h: Likewise.
15401 2004-02-09 DJ Delorie <dj@redhat.com>
15402 * config/sh/crt1.asm: Add support for sh2a.
15403 * config/sh/elf.h: Likewise.
15404 * config/sh/lib1funcs.asm: Likewise.
15405 * config/sh/sh.c: Likewise.
15406 * config/sh/sh.md: Likewise.
15407 * config/sh/sh.h: Likewise.
15408 * config/sh/t-sh: Likewise.
15409
15410 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
15411
15412 * config/frv/frv.md (movqi_internal, movhi_internal,
15413 movsi_internal): Add backup alternatives for memory inputs.
15414
15415 2004-07-28 Matt Austern <austern@apple.com>
15416
15417 * config/darwin.c (darwin_one_byte_bool): New global variable.
15418 * config/darwin.h (darwin_one_byte_bool): Declare.
15419 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
15420 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
15421 value of darwin_one_byte_bool.
15422 * doc/invoke.texi: Document -mone-byte-bool flag.
15423
15424 2004-07-28 Eric Christopher <echristo@redhat.com>
15425
15426 * c-common.c (c_common_unsafe_for_reeval): Delete.
15427 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
15428 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
15429 * calls.c (fix_unsafe_tree): Delete.
15430 (expand_call): Delete code which used above.
15431 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
15432 * expr.c (expand_expr_real_1): Ditto.
15433 * fold-const.c (non_lvalue): Ditto.
15434 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
15435 (lhd_unsafe_for_reeval): Ditto.
15436 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
15437 * langhooks.h (unsafe_for_reeval): Ditto.
15438 (unsave_expr_now): Adjust comment.
15439 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
15440 (estimate_num_insns_1): Ditto.
15441 * tree-pretty-print.c (dump_generic_node): Ditto.
15442 * tree.c (expr_align): Ditto.
15443 (unsave_expr): Delete.
15444 (unsafe_for_reeval): Ditto.
15445 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
15446 * tree.def (UNSAVE_EXPR): Delete.
15447 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
15448
15449 2004-07-28 Zack Weinberg <zack@codesourcery.com>
15450
15451 * tree.h (enum tls_model): Move ...
15452 * coretypes.h: ... here.
15453
15454 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
15455
15456 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
15457
15458 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
15459
15460 * cse.c (validate_canon_reg): New function, split out from...
15461 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
15462
15463 2004-07-28 Diego Novillo <dnovillo@redhat.com>
15464
15465 * tree-ssa-alias.c (maybe_create_global_var): Don't just
15466 return if .GLOBAL_VAR has been created.
15467
15468 2004-07-28 Diego Novillo <dnovillo@redhat.com>
15469
15470 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
15471 every variable that may have aliases, not just tags.
15472
15473 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
15474
15475 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
15476 move_from_CR_eq_bit.
15477 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
15478
15479
15480 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
15481 e500_flip_eq_bit.
15482
15483 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
15484 output_e500_flip_eq_bit.
15485
15486 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
15487 output_e500_flip_eq_bit.
15488 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
15489 output_e500_flip_eq_bit.
15490 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
15491 (print_operand): case D. Get to EQ bit.
15492
15493 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
15494
15495 * gcov.c (function_summary): Add missing \n.
15496
15497 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
15498
15499 Introduce sh4a support.
15500 * config.gcc: Handle sh4a multilibs and cpu selection.
15501 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
15502 * config/sh/t-mlib-sh4a: New.
15503 * config/sh/t-mlib-sh4al: New.
15504 * config/sh/t-mlib-sh4a-nofpu: New.
15505 * config/sh/t-mlib-sh4a-single: New.
15506 * config/sh/t-mlib-sh4a-single-only: New.
15507 2004-02-20 DJ Delorie <dj@redhat.com>
15508 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
15509 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
15510 2003-08-22 Eric Christopher <echristo@redhat.com>
15511 * config/sh/sh4a.md: Update for chip errata.
15512 2003-08-07 Eric Christopher <echristo@redhat.com>
15513 * config/sh/sh4a.md: New file. sh4a processor description.
15514 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
15515 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
15516 of -m4a-nofpu.
15517 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
15518 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
15519 * doc/invoke.texi (SH Options): Document -m4al.
15520 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
15521 * config/sh/sh.c (expand_block_move): Remove commented-out code
15522 checked in by mistake.
15523 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
15524 single elements from SFmode vectors.
15525 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
15526 register.
15527 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
15528 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
15529 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
15530 sh_fsca_int2sf): Remove variable declarations.
15531 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
15532 sh_fsca_int2sf): New functions.
15533 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
15534 sh_fsca_int2sf_rtx): New static variables.
15535 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
15536 sh_fsca_int2sf): Declare.
15537 * config/sh/sh.md: Adjust.
15538 * doc/invoke.texi (SH Options): Document new options.
15539 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
15540 compatibility from SH4 code.
15541 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
15542 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
15543 early.
15544 (memory_movsrc_operand): Renamed to...
15545 (unaligned_load_operand): ... this. Simplified.
15546 * config/sh/sh.h (PREDICATE_CODES): Adjust.
15547 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
15548 input operand to SImode, and adjust the others. Introduce
15549 post-increment by peephole.
15550 * config/sh/sh.c (expand_block_move): Give the target address the
15551 same mode as the temp reg.
15552 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
15553 copying.
15554 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
15555 Introduce support for SH4a.
15556 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
15557 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
15558 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
15559 sh_fsca_int2sf): New.
15560 (sh_init_builtins): Initialize them.
15561 (print_operand): Support `d'.
15562 (expand_block_move): Use movua if src is misaligned.
15563 (memory_movsrc_operand): New.
15564 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
15565 and one of the SH4 macros.
15566 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
15567 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
15568 SELECT_SH4A_SINGLE): New.
15569 (TARGET_NONE): Add SH4A_BIT.
15570 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
15571 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
15572 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
15573 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
15574 (enum processor_type): Added PROCESSOR_SH4A.
15575 (PREDICATE_CODES): Add memory_movsrc_operand.
15576 * config/sh/sh.md: Removed unused variables.
15577 (attr cpu): Add sh4a.
15578 (attr type): Add movua, fsrra and fsca.
15579 (prefetch): New, for SH4.
15580 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
15581 (toggle_sz): Set type to fp.
15582 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
15583 (movua, extv, extzv): New.
15584 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
15585 and 4a-single-only.
15586
15587 2004-07-28 Diego Novillo <dnovillo@redhat.com>
15588
15589 * tree-optimize.c (init_tree_optimization_passes): Schedule
15590 pass_may_alias right after the program is renamed into SSA.
15591 * tree-pass.h (PROP_alias): Define.
15592 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
15593 * tree-sra.c (pass_sra): Likewise.
15594 * tree-ssa-ccp.c (pass_ccp): Likewise.
15595 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
15596 * tree-ssa-dce.c (pass_dce): Likewise.
15597 * tree-ssa-dom.c (pass_dominator): Likewise.
15598 * tree-ssa-dse.c (pass_dse): Likewise.
15599 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
15600 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15601 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
15602 * tree-ssa-pre.c (pass_pre): Likewise.
15603 * tree-tailcall.c (pass_tail_recursion): Likewise.
15604 * tree-ssa.c (pass_redundant_phi): Likewise.
15605 * tree-ssa-alias.c (aliases_computed_p): Remove.
15606 Update all users.
15607 (init_alias_info): Do not mark all type tags for renaming
15608 unconditionally.
15609 Clear may_aliases from every symbol.
15610 (setup_pointers_and_addressables): If a pointer has not been
15611 dereferenced and it had a type tag, clear it and mark the old
15612 tag for renaming.
15613
15614 2004-07-28 Diego Novillo <dnovillo@redhat.com>
15615
15616 PR tree-optimization/16705
15617 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
15618 .GLOBAL_VAR.
15619
15620 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15621
15622 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
15623 check.
15624
15625 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
15626 don't make another one.
15627
15628 PR optimization/15077
15629 * function.h (struct function): Add field saved_static_chain_decl.
15630 Fix comment for static_chain_decl.
15631 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
15632 * tree-inline.h (save_body): Add new arg.
15633 * tree-optimize.c (tree_rest_of_compilation): Handle saving
15634 static_chain_decl.
15635
15636 2004-07-27 Richard Henderson <rth@redhat.com>
15637
15638 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
15639 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
15640 is_gimple_addressable.
15641 * tree-gimple.c (is_gimple_addressable): Rename from
15642 is_gimple_addr_expr_arg; accept INDIRECT_REF.
15643 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
15644 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
15645 rename to is_gimple_addressable.
15646
15647 2004-07-28 Alan Modra <amodra@bigpond.net.au>
15648
15649 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
15650
15651 2004-07-27 Richard Henderson <rth@redhat.com>
15652
15653 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
15654 before rounding.
15655
15656 2004-07-27 Zack Weinberg <zack@codesourcery.com>
15657
15658 * libgcc2.c: Change all conditionals testing
15659 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
15660 * libgcc2.h: Likewise.
15661 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
15662 TYPE_PRECISION of float80_type to 80.
15663 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
15664 of fpreg_type and float80_type to 80.
15665 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
15666 * config/m68k/netbsd-elf.h:
15667 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
15668 to evaluate to 80 whenever they would formerly have evaluated to 96.
15669 * config/i386/sco5.h: Remove unnecessary redefinition of
15670 LONG_DOUBLE_TYPE_SIZE.
15671 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
15672 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
15673 XFmode, with a bitsize of 80. Update commentary.
15674 * config/ia64/ia64-modes.def: Likewise.
15675 * config/m68k/m68k-modes.def: Likewise.
15676
15677 2004-07-27 Steven Bosscher <stevenb@suse.de>
15678
15679 * cfgexpand.c (tree_expand_cfg): Fix comment.
15680
15681 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
15682 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
15683 Remove.
15684 (prepare_function_start): Don't set rtx_equal_function_value_matters.
15685 * integrate.c (copy_rtx_and_substitute): Don't test for it.
15686 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
15687 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
15688 here again. Update leading comment.
15689 * rtl.c (rtx_equal_function_value_matters): Remove.
15690 (rtx_equal_p): Don't test for it.
15691 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
15692 Likewise.
15693
15694 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
15695 * rtl.c (note_insn_name): Likewise.
15696 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
15697 * final.c (final_scan_insn): Likewise.
15698
15699 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
15700 * passes.c (rest_of_handle_eh): Do it here.
15701
15702 * stmt.c (struct nesting): Remove struct nesting block member.
15703 (struct stmt_status): Remove x_block_start_count field.
15704 (current_block_start_count): Remove.
15705
15706 2004-07-27 Brian Booth <bbooth@redhat.com>
15707
15708 * tree-optimize.c (register_one_dump_file): Update condition that uses
15709 static_pass_number.
15710 (dup_pass_1): Replace with...
15711 (next_pass_1): This.
15712 (NEXT_PASS): Call next_pass_1.
15713 (DUP_PASS): Remove.
15714 (init_tree_optimization_passes): Remove uses of DUP_PASS.
15715 (execute_one_pass): Update condition that uses
15716 static_pass_number.
15717 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
15718 integer.
15719
15720 2004-07-27 Nick Clifton <nickc@redhat.com>
15721
15722 * config/m32r/m32r.c: Include integrate.h in order to get the
15723 prototype for get_hard_reg_initial_val().
15724
15725 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
15726 and tidy up indentation.
15727 (final_presence_set): Use absence_set instead, so that if there is
15728 nothing in the "o" pipe the "s" pipe can be scheduled.
15729
15730 2004-07-27 Diego Novillo <dnovillo@redhat.com>
15731
15732 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
15733 don't have PT_VARS nor PT_MALLOC set.
15734 Clear name tag from pointers that have not been dereferenced.
15735 (set_pt_anything, set_pt_malloc): Forward declare.
15736 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
15737 not type compatibility when determining if a pointer can be
15738 copy propagated.
15739
15740 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
15741
15742 * expr.h (canonicalize_condition, get_condition): Add an int argument.
15743 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
15744 it to check whether the condition is still valid at the jump insn.
15745 * ifcvt.c (noce_get_condition): Likewise.
15746 (noce_get_alt_condition): Update call to canonicalize_condition.
15747 * loop-iv.c (simplify_using_initial_values): Update call to
15748 get_condition. Remove FIXME.
15749 (check_simple_exit): Update call to get_condition.
15750 * loop-unswitch.c (may_unswitch_on): Likewise.
15751 * loop.c (check_dbra_loop): Likewise.
15752 (canonicalize_condition, get_condition): Add an argument to say whether
15753 the condition must still be valid at INSN.
15754 (get_condition_for_loop): Update call to get_condition. Require that
15755 the condition be valid at INSN.
15756 * predict.c (estimate_probability): Update call to get_condition.
15757 Remove unused earliest parameter.
15758 (expected_value_to_br_prob): Update call to canonicalize_condition.
15759
15760 2004-07-26 Eric Christopher <echristo@redhat.com>
15761
15762 * tree-dfa.c (add_referenced_var): Register initializers of global
15763 variables.
15764
15765 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
15766
15767 * config/i386/i386.c (function_arg): Always treat 8-
15768 and 16-byte wide vectors the same, even if MMX/SSE
15769 are disabled.
15770 (contains_128bit_aligned_vector_p): Add comment.
15771
15772 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
15773
15774 * ra.h (enum node_type): Rename to:
15775 (enum ra_node_type).
15776 * ra-colorize.c: Likewise.
15777
15778 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
15779
15780 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
15781 after simplifying the jump.
15782
15783 2004-06-26 Richard Henderson <rth@redhat.com>
15784
15785 * calls.c (combine_pending_stack_adjustment_and_call): Make
15786 preferred_unit_stack_boundary argument unsigned. Make
15787 unadjusted_alignment unsigned.
15788 (expand_call): Make preferred_stack_boundary and
15789 preferred_unit_stack_boundary variables unsigned.
15790 * function.c (assign_stack_local_1): Make alignment unsigned.
15791 * function.h (struct function): Make stack_alignment_needed,
15792 preferred_stack_boundary unsigned.
15793 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
15794 (ix86_compute_frame_layout): Make stack_alignment_needed,
15795 preferred_alignment variables unsigned.
15796 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
15797
15798 2004-07-26 Tom Tromey <tromey@redhat.com>
15799
15800 * tree.h: Fix typo in comment.
15801
15802 2004-07-26 Daniel Jacobowitz <dan@debian.org>
15803
15804 PR bootstrap/12804
15805 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
15806 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
15807 (ggc_free): Remove incorrect freeing.
15808 (sweep_pages): Advance PP for large pages. Fix indentation.
15809
15810 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
15811
15812 PR rtl-optimization/16643
15813 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
15814 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
15815 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
15816 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
15817 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
15818 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15819 * rtl.h (tracer): Add a flags parameter.
15820 * tracer.c (tracer): Pass it to cfg_layout_initialise.
15821 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
15822 (rest_of_handle_reorder_blocks): Update calls to tracer and
15823 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
15824 (rest_of_handle_tracer): Pass 0 to tracer.
15825 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
15826
15827 2004-07-25 David Edelsohn <edelsohn@gnu.org>
15828
15829 PR target/16239
15830 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
15831 f->f.
15832
15833 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
15834
15835 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
15836 (BINFO_BASE_ACCESS): Adjust.
15837 (BINFO_BASE_ACCESS_APPEND): New.
15838 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
15839 * dbxout.c (dbxout_type): Adjust binfo access accessing.
15840 * dwarf2out.c (gen_member_die): Likewise.
15841 * tree-dump.c (deque_and_dump): Likewise.
15842
15843 2004-07-26 Falk Hueffner <falk@debian.org>
15844
15845 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
15846 costs.
15847
15848 2004-07-25 Roger Sayle <roger@eyesopen.com>
15849
15850 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
15851 value off of the stack if TARGET_USE_FFREEP.
15852
15853 2004-07-26 Bernardo Innocenti <bernie@develer.com>
15854
15855 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
15856 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
15857 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
15858 check on invocation of XRESIZEVEC ().
15859
15860 2004-07-26 Bernardo Innocenti <bernie@develer.com>
15861
15862 * c-common.c (disable_builtin_function): Rename variable n to
15863 new_disabled_builtin.
15864 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
15865 Rename local variable old to old_decl.
15866 * gensupport.c (shift_output_template): Rename parameter old to src.
15867 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
15868 old_rtx and newx to new_rtx.
15869
15870 2004-07-26 Bernardo Innocenti <bernie@develer.com>
15871
15872 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
15873 of c-pragma.h.
15874 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
15875 enum cpp_ttype.
15876 * c-lex.c: Likewise.
15877
15878 2004-07-25 Roger Sayle <roger@eyesopen.com>
15879
15880 * fold-const.c (constant_boolean_node): Make extern.
15881 (make_range): Wrap long lines.
15882 (fold_cond_expr_with_comparison): Remove unnecessary call to
15883 pedantic_non_lvalue. Add missing calls to fold_convert.
15884 (fold_truthop): Add missing calls to fold_convert.
15885 (fold): Likewise.
15886 * tree.h (constant_boolean_node): Add prototype here.
15887 * builtins.c (expand_builtin_strncmp): Add missing calls to
15888 fold_convert.
15889 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
15890 Call fold_convert and constant_boolean_node to correct types.
15891 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
15892 missing call to fold_convert to correct types.
15893
15894 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
15895 Brian Ryner <bryner@brianryner.com>
15896
15897 PR c++/9283
15898 PR c++/15000
15899 * c-common.c (c_common_attribute_table): Allow
15900 handle_visibility_attribute to be called for types.
15901 (handle_visibility_attribute) When given a type, set the visibility
15902 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
15903 so that we can check later whether the attribute was present. Added
15904 warning if attribute applied to non class type.
15905 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
15906 decls and checking that they are consistent.
15907 * common.opt: Added -fvisibility.
15908 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
15909 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
15910 * flags.h, tree.h: Added assorted support defines for overall patch
15911 * opts.c: Added parsing support for -fvisibility.
15912 * tree.c (build_decl): Set visibility for all decls to be whatever
15913 is in force at that time.
15914 * varasm.c (default_binds_local_p_1): Reworked logic determining
15915 when to make a symbol locally bound.
15916 * doc/invoke.texi: Added documentation for -fvisibility and
15917 -fvisibility-inlines-hidden.
15918
15919 2004-07-25 Bernardo Innocenti <bernie@develer.com>
15920
15921 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
15922 * c-common.c: Add missing casts from void * to other types.
15923 * c-decl.c: Likewise.
15924 * c-format.c: Likewise.
15925 * c-lex.c: Likewise.
15926 * c-pragma.c: Likewise.
15927 * c-typeck.c: Likewise.
15928 * defaults.h: Likewise.
15929 * genconstants.c: Likewise.
15930 * gengtype-lex.l: Likewise.
15931 * genmodes.c: Likewise.
15932 * read-rtl.c: Likewise.
15933 * rtl.c: Likewise.
15934
15935 2004-07-25 Bernardo Innocenti <bernie@develer.com>
15936
15937 * bitmap.c: Use type-safe memory allocation macros from libiberty.
15938 * c-common.c: Likewise.
15939 * c-decl.c: Likewise.
15940 * c-lang.c: Likewise.
15941 * c-lex.c: Likewise.
15942 * c-opts.c: Likewise.
15943 * c-parse.in: Likewise.
15944 * c-typeck.c: Likewise.
15945 * genconditions.c: Likewise.
15946 * gengtype-lex.l: Likewise.
15947 * gengtype-yacc.y: Likewise.
15948 * gengtype.c: Likewise.
15949 * genmodes.c: Likewise.
15950 * gensupport.c: Likewise.
15951 * read-rtl.c: Likewise.
15952 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
15953 htab_find_slot().
15954
15955 2004-07-25 Bernardo Innocenti <bernie@develer.com>
15956
15957 * c-decl.c (groktypename, groktypename_in_param_context): Rename
15958 variable typename to type_name.
15959 * c-lex.c (interpret_float): Likewise.
15960
15961 2004-07-25 Roger Sayle <roger@eyesopen.com>
15962
15963 * convert.c (convert_to_real, convert_to_integer,
15964 convert_to_complex): Replace calls to build with calls to buildN.
15965 * coverage.c (tree_coverage_counter_ref): Likewise.
15966 * dojump.c (do_jump): Likewise.
15967 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
15968 * emit-rtl.c (component_ref_for_mem_expr,
15969 set_mem_attributes_minus_bitpos): Likewise.
15970 * explow.c (update_nonlocal_goto_save_area): Likewise.
15971 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
15972 expand_mult_add): Likewise.
15973 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
15974 store_constructor, get_inner_reference, expand_expr_real_1,
15975 try_casesi, try_tablejump): Likewise.
15976 * function.c (expand_function_start): Likewise.
15977 * stmt.c (emit_case_bit_tests, expand_end_case_type,
15978 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
15979 * stor-layout.c (place_union_field, layout_type): Likewise.
15980 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
15981 * varasm.c (copy_constant): Likewise.
15982
15983 2004-07-25 Bernardo Innocenti <bernie@develer.com>
15984
15985 * c-common.c: Rename all identifiers named `new'.
15986 * c-decl.c: Likewise.
15987 * gensupport.c: Likewise.
15988 * simplify-rtx.c: Likewise.
15989 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
15990 with XNEW().
15991 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
15992 with XNEWVEC().
15993
15994 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
15995
15996 PR c/15360
15997 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
15998 declarations until after calling pushdecl.
15999 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
16000 "extern" and not on whether the declaration is initialized.
16001
16002 2004-07-25 Daniel Jacobowitz <dan@debian.org>
16003
16004 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
16005 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
16006 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
16007 "cpplib.h", "c-pragma.h", "c-common.h".
16008 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
16009 (solaris_register_pragmas): New functions.
16010 * config/sol2-protos.h: New file.
16011 * config/sol2.c: New file.
16012 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
16013 (REGISTER_TARGET_PRAGMAS): New macros.
16014 (solaris_pending_aligns, solaris_pending_inits)
16015 (solaris_pending_finis): New variables.
16016 * config/t-sol2 (sol2-c.o): Update dependencies.
16017 (sol2.o): New rule.
16018 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
16019 SUBTARGET_INSERT_ATTRIBUTES.
16020 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
16021 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
16022 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
16023 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
16024 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
16025 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
16026 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
16027 * config/sparc/sparc.c (sparc_attribute_table): New.
16028 (TARGET_INSERT_ATTRIBUTES): Define in terms of
16029 SUBTARGET_INSERT_ATTRIBUTES.
16030 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
16031 is defined.
16032 * doc/extend.texi (Solaris Pragmas): New section.
16033
16034 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16035
16036 * c-common.c: Rename all identifiers named `class' to `cl'.
16037 * c-common.h: Likewise.
16038 * c-parse.in: Likewise.
16039 * c-typeck.c: Likewise.
16040 * genmodes.c: Likewise.
16041 * real.c: Likewise.
16042 * real.h: Likewise.
16043 * recog.c: Likewise.
16044 * recog.h: Likewise.
16045 * regrename.c: Likewise.
16046 * tree.h: Likewise.
16047 * c-common.c (builtin_function_2): Change type of 5th parameter from
16048 int to enum built_in_function. Change type of 8th parameter from int
16049 to bool.
16050 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
16051 with GGC_CNEW().
16052 * c-typeck.c (convert_arguments): Change type of formal_prec from
16053 int to unsigned int.
16054 * genmodes.c (blank_mode): Make a few negative constants unsigned.
16055 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
16056 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
16057 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
16058 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
16059 iterator to for_all_modes () instead of an enum because enums can't
16060 be incremented in C++.
16061
16062
16063 2004-07-25 Daniel Jacobowitz <dan@debian.org>
16064
16065 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
16066 hard registers.
16067
16068 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16069
16070 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
16071 Handle ARRAY_RANGE_REF like ARRAY_REF.
16072
16073 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
16074
16075 * c-typeck.c (digest_init): Don't allow arrays of signed or
16076 unsigned variants of wchar_t to be initialized by wide string
16077 constants. Do allow arrays of enumerated types compatible with
16078 wchar_t to be initialized by wide string constants. Refine tests
16079 distinguishing wide and narrow strings and arrays. Give specific
16080 error for arrays of other integer types initialized by string
16081 constants.
16082 (output_init_element, process_init_element): Check for
16083 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
16084 initializing with string constants.
16085
16086 2004-07-25 Richard Henderson <rth@redhat.com>
16087
16088 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
16089 on the RESULT_DECL.
16090 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
16091 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
16092 DECL_IGNORED_P to new decl.
16093
16094 2004-07-24 Zack Weinberg <zack@codesourcery.com>
16095
16096 * config/ia64/ia64.c (general_xfmode_operand)
16097 (destination_xfmode_operand): Delete.
16098 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
16099 * config/ia64/ia64.md (*movxf_internal): Use general_operand
16100 and destination_operand.
16101
16102 2004-07-24 Alexander Kabaev <kan@freebsd.org>
16103
16104 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
16105 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
16106
16107 2004-07-24 Alexander Kabaev <kan@freebsd.org>
16108 Zack Weinberg <zack@codesourcery.com
16109
16110 PR 16684
16111 * c-decl.c (diagnose_mismatched_decls): Don't issue a
16112 redundant-declaration warning the first time a builtin is
16113 declared explicitly.
16114
16115 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16116
16117 * tree.h (staticp): Change return type to bool.
16118
16119 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16120
16121 * c-common.c (c_staticp): Last episode of the staticp saga.
16122
16123 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16124
16125 * c-common.h (c_staticp): Change return type from int to bool.
16126 * tree.c (staticp): Likewise.
16127 * langhooks.h (staticp): Likewise.
16128
16129 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16130
16131 * langhooks-def.h (lhd_staticp): Change return type from int to
16132 bool in prototype to match definition.
16133
16134 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16135
16136 * system.h (bool, true, false): Don't redefine as preprocessor macros
16137 in C++.
16138
16139 2004-07-24 Roger Sayle <roger@eyesopen.com>
16140
16141 * expmed.c (init_expmed): A signed modulus by a power of two is
16142 considered cheap if its less than or equal to four instructions.
16143
16144 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16145
16146 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
16147 GGC_CNEWVAR): New macros.
16148
16149 2004-07-25 Bernardo Innocenti <bernie@develer.com>
16150
16151 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
16152 lists.
16153 * c-decl.c: Likewise.
16154 * c-format.c: Likewise.
16155 * c-lex.c: Likewise.
16156 * c-opts.c: Likewise.
16157 * c-pragma.c: Likewise.
16158 * c-typeck.c: Likewise.
16159 * gencheck.c: Likewise.
16160 * genconditions.c: Likewise.
16161 * genconfig.c: Likewise.
16162 * genflags.c: Likewise.
16163 * gengtype.c: Likewise.
16164 * gensupport.c: Likewise.
16165 * ggc-none.c: Likewise.
16166 * langhooks.c: Likewise.
16167 * statistics.h: Likewise.
16168 * stub-objc.c: Likewise.
16169 * java/decl.c: Likewise.
16170
16171 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
16172
16173 * config/m68k/m68k.c (output_scc_di): Fix coding style.
16174 (symbolic_operand): Fix prototype.
16175 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
16176 * config/m68k/m68k.md: Add constants for registers a0 and sp and
16177 use them, change from the "{...}" syntax to the simpler {...}
16178 syntax.
16179 (*cfv4_extendqisi2): Fix destination predicate.
16180 * config/m68k/m68k-protos.h: Remove various declarations also
16181 generated via PREDICATE_CODES.
16182
16183 2004-07-23 Mike Stump <mrs@apple.com>
16184
16185 * c-typeck.c (convert_for_assignment): Tightened up pointer
16186 converstions that differ in signedness.
16187
16188 2004-07-23 Zack Weinberg <zack@codesourcery.com>
16189
16190 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
16191
16192 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16193
16194 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
16195 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
16196
16197 * gimplify.c (gimplify_compound_lval): Check for no handled
16198 operations, rather than checking for explicit list of nodes.
16199 (is_gimple_addr_expr_arg_or_indirect): New function.
16200 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
16201 redundant setting of TREE_INVARIANT.
16202 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
16203 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
16204
16205 2004-07-23 Diego Novillo <dnovillo@redhat.com>
16206
16207 PR tree-optimization/16688
16208 PR tree-optimization/16689
16209 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
16210 unnecessary initialization of 'tag'.
16211 (get_tmt_for): Check that the new type tag has the same alias
16212 set as the pointed-to type.
16213 (group_aliases): Only regular variables need to be removed
16214 from the alias set of a name tag.
16215 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
16216 propagation if the two types are not compatible.
16217 (merge_alias_info): Rename from replace_ssa_names_ann.
16218 Add more checking.
16219 (replace_exp_1): If both arguments are SSA_NAMEs, check that
16220 the propagation can be done.
16221 Only call merge_alias_info on pointers.
16222 (propagate_value): Likewise.
16223 * tree-ssa-copyrename.c: Include langhooks.h.
16224 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
16225 to do the merging.
16226 Do not coalesce variables with incompatible types.
16227 (rename_ssa_copies): Call replace_ssa_name_symbol.
16228 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
16229 the same type as the underlying _DECL.
16230 * tree-ssanames.c (replace_ssa_name_symbol): New function.
16231 * tree.h (replace_ssa_name_symbol): Declare.
16232
16233 2004-07-23 Richard Henderson <rth@redhat.com>
16234
16235 PR c++/16277
16236 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
16237 unshare it properly.
16238 (gimplify_modify_expr_rhs): Push assignment from a conditional into
16239 the conditional for all non-register types.
16240
16241 2004-07-23 Richard Henderson <rth@redhat.com>
16242
16243 * expr.c (expand_expr_real_1): Don't handle non-local variables.
16244 * expr.h (fix_lexical_addr): Remove.
16245 * function.c (NEED_SEPARATE_AP): Remove.
16246 (fix_lexical_addr): Remove.
16247 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
16248 not null decl_function_context.
16249 (create_alias_vars): Likewise.
16250 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
16251 (simple_goto_p): Likewise.
16252 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
16253 * tree-ssa-ccp.c (get_default_value): Likewise.
16254 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
16255 * tree.c (needs_to_live_in_memory): Likewise.
16256 * tree-flow-inline.h (may_be_aliased): Move...
16257 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
16258 when TREE_STATIC variables may be addressable.
16259
16260 2004-07-24 Jakub Jelinek <jakub@redhat.com>
16261
16262 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
16263
16264 2004-07-23 Zack Weinberg <zack@codesourcery.com>
16265
16266 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
16267 bitmap contents if GENERATOR_FILE is defined.
16268 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
16269 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
16270
16271 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
16272
16273 * c-decl.c (start_function): Form composite type of function types
16274 rather than copying type from previous prototype declaration.
16275
16276 2004-07-23 Janis Johnson <janis187@us.ibm.com>
16277
16278 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
16279 the const qualifier for the second argument in the C++ functions.
16280
16281 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
16282 specific pointer types.
16283
16284 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
16285 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
16286 for vector bool and/or vector pixel, add C++ and C missing support.
16287 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
16288 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
16289 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
16290 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
16291 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
16292 missing C++ and C support for vector bool and/or vector pixel.
16293 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
16294 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
16295 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
16296 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
16297 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
16298 C++ and C types used for vector bool and/or vector pixel.
16299 (vec_st, vec_stl): Add C++ support for vector pixel.
16300 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
16301 (vec_all_ne): Add C++ support for vector pixel.
16302
16303 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
16304 (vec_vmulesb): Add missing C++ function.
16305 (vec_perm): Fix type of third argument in C++ function.
16306 (vec_vsum4shs): Fix C++ function name.
16307 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
16308 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
16309 argument passed to the error handler in C macro.
16310 (vec_nmsub): Remove extra parens around argument names in C macro.
16311 (vec_packpx): Add missing parens in C macro.
16312
16313 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
16314
16315 * machmode.def: Remove vector modes.
16316 * config/alpha/alpha-modes.def: Add supported vector modes.
16317 * config/arm/arm-modes.def: Likewise.
16318 * config/frv/frv-modes.def: Likewise.
16319 * config/i386/i386-modes.def: Likewise.
16320 * config/rs6000/rs6000-modes.def: Likewise.
16321 * config/sh/sh-modes.def: Likewise.
16322
16323 2004-07-23 Matthias Klose <doko@debian.org>
16324
16325 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
16326 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
16327 * config.h: Regenerate.
16328 * configure: Likewise.
16329
16330 2004-07-22 Mark Mitchell <mark@codesourcery.com>
16331
16332 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
16333 generated SYMBOL_REFs for labels.
16334 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
16335 Change prototype.
16336 (machopic_stub_name): Remove.
16337 (machopic_indirection_name): New function.
16338 (machopic_mcount_stub_name): Likewise.
16339 (machopic_classify_name): Remove.
16340 (machopic_function_base_sym): New function.
16341 (machpoic_classify_symbol): Likewise.
16342 (machopic_classify_ident): Remove.
16343 (machopic_define_ident): Likewise.
16344 (machopic_define_name): Likewise.
16345 (machopic_name_defined_p): Likewise.
16346 (machopic_ident_defined_p): Likewise.
16347 (darwin_strip_name_encoding): Likewise.
16348 (machopic_define_symbol): New function.
16349 * config/darwin.c (hashtab.h): Include.
16350 (machopic_defined_list): Remove.
16351 (machopic_classify_ident): Likewise.
16352 (machopic_classify_name): Likewise.
16353 (machopic_ident_defined_p): Likewise.
16354 (machopic_define_ident): Likewise.
16355 (machopic_define_name): Likewise.
16356 (machopic_symbol_defined_p): New function.
16357 (machopic_classify_symbol): Likewise.
16358 (machopic_data_defined_p): Use machopic_classify_symbol.
16359 (machopic_define_symbol): New function.
16360 (machopic_function_base_sym): New function.
16361 (machopic_non_lazy_pointers): Remove.
16362 (machopic_non_lazy_ptr_name): Likewise.
16363 (machopic_stubs): Likewise.
16364 (machopic_stub_name): Likewise.
16365 (NON_LAZY_POINTER_SUFFIX): New macro.
16366 (STUB_SUFFIX): Likewise.
16367 (machopic_indirection): New structure.
16368 (machopic_indirections): New variable.
16369 (machopic_indirection_hash): New function.
16370 (machopic_indirection_eq): Likewise.
16371 (machopic_indirection_name): Likewise.
16372 (machopic_mcount_stub_name): New function.
16373 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
16374 hash table.
16375 (machopic_indirect_data_reference): Rework to use new functions.
16376 (machopic_indirect_call_target): Likewise.
16377 (machopic_legitimize_pic_address): Likewise.
16378 (machopic_output_indirection): New function.
16379 (machopic_finish): Use it.
16380 (machopic_operand_p): Rework to use new functions.
16381 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
16382 (darwin_strip_name_encoding): Remove.
16383 (update_non_lazy_ptrs): Remove.
16384 (update_stubs): Likewise.
16385 (darwin_non_lazy_pcrel): Use new functions.
16386 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
16387 (ASM_OUTPUT_LABELREF): Likewise.
16388 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
16389 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
16390 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
16391 (TARGET_STRIP_NAME_ENCODING): Do not use
16392 darwin_strip_name_encoding.
16393 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
16394 darwin_strip_name_encoding.
16395 * config/i386/darwin.h (FUNCTION_PROFILER): Use
16396 machopic_mcount_stub_name.
16397 * config/i386/i386.c (x86_output_mi_thunk): Use
16398 machopic_indirection_name, not machopic_stub_name.
16399 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
16400 machopic_function_base_sym.
16401 (print_operand): Use machopic_classify_symbol.
16402 (rs6000_emit_prologue): Use machopic_function_base_sym.
16403 (output_profile_hook): Do not use machopic_stub_name.
16404 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
16405
16406 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
16407
16408 PR c/7284
16409 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
16410 as multiplication.
16411
16412 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
16413
16414 * doc/implement-c.texi: New file.
16415 * doc/extend.texi (C Implementation): Move to there.
16416 * doc/gcc.texi: Include implement-c.texi.
16417 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
16418
16419 2004-07-22 Jason Merrill <jason@redhat.com>
16420
16421 * integrate.c (copy_decl_for_inlining): Remove invisible reference
16422 handling.
16423 * tree-inline.c (setup_one_parameter): Likewise.
16424
16425 2004-07-22 Brian Booth <bbooth@redhat.com>
16426
16427 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
16428 (substitute_and_fold): Propigate into VUSE operands when possible.
16429 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
16430 (cp_lattice_meet): Handle merging of latticevalues when
16431 UNKNOWN_VAL is present.
16432 (visit_stmt): Visit assignments with V_MUST_DEFs.
16433 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
16434 (ccp_fold): Deal with RHS' that are constant and virtual.
16435 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
16436 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
16437 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
16438 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
16439 computing immediate uses.
16440 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
16441 transition.
16442 (replace_vuse_in): New function.
16443 (likely_value): Add check of vuse operands.
16444 (get_default_value): Set the default value of virtually defined
16445 variables to UKNOWN_VAL instead of VARYING.
16446
16447 2004-07-22 Richard Henderson <rth@redhat.com>
16448
16449 * expr.c (emit_push_insn): Don't use set_mem_attributes.
16450
16451 2004-07-22 Richard Henderson <rth@redhat.com>
16452
16453 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
16454 variables due to conditional compilation.
16455
16456 2004-07-22 Diego Novillo <dnovillo@redhat.com>
16457
16458 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
16459 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
16460 Release SSA names that have been re-renamed.
16461 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
16462 variable.
16463 * tree-ssa-alias.c (init_alias_info): If aliases have been
16464 computed before, clear existing alias information.
16465 (create_name_tags): Do no fixup PT_ANYTHING pointers.
16466 If the new name tag for a pointer is different than the one it
16467 had before, mark the old tag for renaming.
16468 (replace_may_alias): New function.
16469 (group_aliases): Call it.
16470 (setup_pointers_and_addressables): Always call get_tmt_for.
16471 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
16472 once.
16473 (set_pt_anything): New local function.
16474 (set_pt_malloc): New local function.
16475 (merge_pointed_to_info): Don't merge pointed-to variables from
16476 the original pointer if the destination is pointing to an
16477 unknown location.
16478 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
16479 (add_pointed_to_var): Do not add a variable to the points-to
16480 set if the pointer is already pointing to anywhere.
16481 (collect_points_to_info_r): If the defining statement is a PHI
16482 node, only merge pointed-to information if the argument has
16483 already been visited.
16484 (get_tmt_for): Only create a new tag if the pointer didn't
16485 have one already.
16486 (dump_alias_info): Emit more information.
16487 (dump_points_to_info_for): Likewise.
16488 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
16489 try to get the annotation of an SSA_NAME.
16490 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
16491 alias sets when checking is enabled.
16492 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
16493 (eliminate): Mark basic blocks that will need
16494 EH information cleaned up.
16495 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
16496 predecessor.
16497 Initialize need_eh_cleanup.
16498 (fini_pre): Call tree_purge_all_dead_eh_edges and
16499 cleanup_tree_cfg if needed.
16500 Free need_eh_cleanup.
16501 * tree-ssa.c (verify_ssa_name): New function.
16502 (verify_def): Call it.
16503 Re-arrange to avoid printing too many error messages.
16504 (verify_use): Likewise.
16505 (verify_phi_args): Likewise.
16506 (verify_flow_insensitive_alias_info): New function.
16507 (verify_flow_sensitive_alias_info): New function.
16508 (verify_alias_info): New function.
16509 (verify_ssa): Call verify_alias_info.
16510 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
16511 program.
16512 Re-arrange to avoid printing too many error messages.
16513 * tree-ssanames.c (make_ssa_name): Clear
16514 SSA_NAME_IN_FREE_LIST.
16515 (release_ssa_name): Never release a default definition.
16516 (release_defs): New function.
16517 * tree.h: Declare it.
16518 * tree-ssa-dce.c (remove_dead_stmt): Call it.
16519
16520 2004-07-22 Diego Novillo <dnovillo@redhat.com>
16521
16522 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
16523 If true, do a depth-first search. Do a breadht-first search,
16524 otherwise.
16525 (walk_use_def_chains): Add new argument IS_DFS.
16526 Update all users.
16527 * tree-flow.h (walk_use_def_chains): Update prototype.
16528
16529 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
16530
16531 * config/cris/cris.md: Tweak formatting.
16532 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
16533 (mover2side, moverside, movemside, movei, op3, andu): Replace
16534 live define_peephole:s with define_peephole2 near-equivalents.
16535 Delete the rest.
16536 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
16537 word-size modes.
16538 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
16539 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
16540 "*mov_sidesi_mem" respectively.
16541
16542 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
16543
16544 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
16545 (gimplify_build1): Move from tree-complex.c do_unop.
16546 (gimplify_build2): Move from tree-complex.c do_binop.
16547 (gimplify_build3): New.
16548 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
16549 Adjust throughout to call the functions above.
16550 * tree-flow.h: Declare the functions above.
16551 * tree-nested.c (gimplify_val): Rename to...
16552 (tsi_gimplify_val): ... this.
16553
16554 * Makefile.in (tree_complex.o): Update dependencies.
16555 (stor-layout.o): Depend on regs.h.
16556 * c-common.c (handle_vector_size_attribute): Update for
16557 vector types without corresponding vector modes.
16558 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
16559 a corresponding vector mode is not available.
16560 * print-tree.c (print_node): Print nunits for vector types
16561 * regclass.c (have_regs_of_mode): New.
16562 (init_reg_sets_1): Initialize it and use it instead
16563 of allocatable_regs_of_mode.
16564 * regs.h (have_regs_of_mode): Declare it.
16565 * stor-layout.c (layout_type): Pick a mode for vector types.
16566 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
16567 build_replicated_const, do_unop, do_binop, do_plus_minus,
16568 do_negate, expand_vector_piecewise, expand_vector_parallel,
16569 expand_vector_addition, expand_vector_operations_1,
16570 expand_vector_operations, tree_lower_operations,
16571 pass_lower_vector_ssa, pass_pre_expand): New.
16572 (expand_complex_operations, pass_lower_complex): Remove.
16573 * tree-optimize.c (init_tree_optimization_passes): Adjust
16574 pass ordering for changes in tree-complex.c.
16575 * tree-pass.h: Declare new passes.
16576 * tree.c (finish_vector_type): Remove.
16577 (make_vector_type): New.
16578 (build_vector_type_for_mode, build_vector_type): Rewritten.
16579 * tree.def (VECTOR_TYPE): Document where the number of
16580 subparts is stored.
16581 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
16582 (make_vector): Remove declaration.
16583
16584 2004-07-21 Richard Henderson <rth@redhat.com>
16585
16586 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
16587 TREE_THIS_VOLATILE, may_aliases, or optimization level.
16588 (remove_useless_vars): Dump debugging info.
16589 (expand_used_vars): Move ...
16590 * cfgexpand.c (expand_used_vars): ... here. Make static.
16591 * tree-flow-inline.h (set_is_used): New.
16592 (set_default_def): Use get_var_ann.
16593 * tree-flow.h: Update decls.
16594 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
16595 (create_ssa_var_map): Use it.
16596 * tree-ssa.c (set_is_used): Remove.
16597
16598 2004-07-22 Ben Elliston <bje@au.ibm.com>
16599
16600 * gdbinit.in: Set a breakpoint on internal_error.
16601
16602 2004-07-21 Richard Henderson <rth@redhat.com>
16603
16604 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
16605 to create a new basic block.
16606
16607 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
16608
16609 PR c/15052
16610 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
16611 return type on function definitions. Move other warnings for
16612 qualified return type to -Wreturn-type. Do not condition any such
16613 warnings on -pedantic. Update comments.
16614 (start_function): Only copy function type from previous prototype
16615 declaration if return types are compatible.
16616 * c-typeck.c (function_types_compatible_p): Don't condition
16617 warning for incompatibility of volatile qualifiers on the return
16618 type on -pedantic. Update comment.
16619 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
16620
16621 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
16622
16623 * c-typeck.c (set_init_index): Require designator to be of integer
16624 type.
16625
16626 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
16627
16628 PR c/11250
16629 * c-parse.in (init): Change to exprtype.
16630 (primary): Set original_code for STRING to STRING_CST.
16631 Call maybe_warn_string_init for compound literals.
16632 (initdcl, notype_initdcl): Call maybe_warn_string_init.
16633 (initval): Update.
16634 * c-tree.h (maybe_warn_string_init): New.
16635 (pop_init_level, process_init_element): Use struct c_expr.
16636 (struct c_expr): Update comment.
16637 * c-typeck.c (maybe_warn_string_init): New function.
16638 (digest_init): Call it. Additional parameter strict_string. All
16639 callers changed.
16640 (output_init_element): Likewise.
16641 (struct constructor_stack): Use struct c_expr for
16642 replacement_value.
16643 (really_start_incremental_init, push_init_level): Update.
16644 (pop_init_level): Update. Return struct c_expr.
16645 (process_init_level): Update. Take struct c_expr argument.
16646
16647 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
16648
16649 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
16650 commit.
16651
16652 2004-07-21 Eric Christopher <echristo@redhat.com>
16653
16654 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
16655 removal.
16656 * c-decl.c (pop_scope): Ditto.
16657 * calls.c (expand_call): Remove call to current_nesting_level,
16658 update comment accordingly. Remove calls to expand_start_target_temps
16659 and expand_end_target_temps.
16660 * cfgexpand.c (construct_init_block): Remove call to
16661 expand_start_bindings_and_block.
16662 (construct_exit_block): Remove call to expand_end_bindings.
16663 * expr.c (safe_from_p): Remove BIND_EXPR handling.
16664 (expand_expr_real_1): Ditto. Fix formatting.
16665 (expand_vars): Delete.
16666 * stmt.c (POPSTACK): Remove block_stack.
16667 (stmt_status): Remove x_block_stack.
16668 (block_stack): Delete.
16669 (expand_start_bindings_and_block): Ditto.
16670 (expand_start_target_temps): Ditto.
16671 (expand_end_target_temps): Ditto.
16672 (current_nesting_level): Ditto.
16673 (warn_about_unused_variables): Ditto.
16674 (expand_end_bindings): Ditto.
16675 * tree.h: Remove declarations for above.
16676
16677 2004-07-21 Steven Bosscher <stevenb@suse.de>
16678
16679 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
16680 * rtl.c (note_insn_name): Likewise.
16681 * print-rtl.c (print_rtx): Don't print it.
16682 * cfgrtl.h (can_delete_note_p): Don't handle it.
16683 (rtl_delete_block): Likewise.
16684 * passes.c (rest_of_handle_guess_branch_prob): Remove.
16685 (rest_of_compilation): Don't call it.
16686 * predict.c (process_note_predictions, process_note_prediction,
16687 note_prediction_to_br_prob): Remove.
16688 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
16689 * stmt.c (return_prediction): Remove.
16690 (expand_value_return): Don't call it. Don't add prediction
16691 notes for return statements.
16692
16693 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
16694
16695 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
16696 once.
16697
16698 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
16699
16700 * c-common.c (vector_types_convertible_p): Use vector types'
16701 TYPE_SIZE and TREE_TYPE instead of their mode.
16702 * convert.c (convert_to_integer): Likewise.
16703 (convert_to_vector): Likewise.
16704 * fold-const.c (fold_convert): Likewise.
16705 * varasm.c (output_constant): Likewise.
16706 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
16707 Allow a VECTOR_TYPE initializer to be made of several vectors.
16708 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
16709 of cleared and need_to_clear, and use fold_convert.
16710 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
16711 integer vectors.
16712
16713 2004-07-20 Richard Henderson <rth@redhat.com>
16714
16715 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
16716 (expand_gimple_basic_block): out from here. Renamed from expand_block.
16717
16718 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
16719
16720 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
16721 enormous cost if not TARGET_HARD_MUL.
16722
16723 2004-07-20 Andrew Pinski <apinski@apple.com>
16724
16725 PR target/16557
16726 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
16727 (ASM_SPEC): here.
16728
16729 2004-07-21 Paul brook <paul@codesourcery.com>
16730
16731 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
16732
16733 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16734
16735 * fold-const.c (operand_equal_p): Temporarily support NULL args.
16736 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
16737 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
16738
16739 2004-07-20 Zack Weinberg <zack@codesourcery.com>
16740
16741 * rtl.h (plus_constant): Delete.
16742 (plus_constant_wide): Rename to plus_constant.
16743 (plus_constant_for_output_wide): Delete vestigial prototype.
16744 (GEN_INT): Remove unnecessary cast.
16745 * tree.h (build_int_2, size_int_type): Delete.
16746 (build_int_2_wide): Rename to build_int_2.
16747 (size_int_wide): Rename to size_int_kind.
16748 (size_int_type_wide): Rename to size_int_type.
16749 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
16750 Remove unnecessary cast.
16751 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
16752 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
16753 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
16754 (size_int_type_wide): Rename size_int_type.
16755 (int_const_binop): Use size_int_type.
16756 * c-lex.c (interpret_integer): Use build_int_2.
16757 * final.c (split_double): Remove unnecessary casts.
16758 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
16759
16760 2004-07-20 Richard Henderson <rth@redhat.com>
16761
16762 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
16763 (gimplify_compound_lval): Use is_gimple_tmp_reg.
16764 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
16765 (is_gimple_tmp_reg): New.
16766 * tree-gimple.h (is_gimple_tmp_reg): Declare.
16767
16768 2004-07-20 Richard Henderson <rth@redhat.com>
16769
16770 * tree-pretty-print.c (dump_generic_node): Dump
16771 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
16772
16773 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
16774
16775 * tree-mudflap.c (mf_set_options_fndecl): New tree.
16776 (mudflap_init): Set it.
16777 (mudflap_register_call): Remove __mf_init call.
16778 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
16779 to pass "-ignore-reads" option to libmudflap if needed.
16780
16781 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
16782
16783 PR c++/14607
16784 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
16785 (MAKE_DECL_ONE_ONLY): Undefine.
16786 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
16787 readonly_data, one_only_data_section, forget_section): New prototypes.
16788 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
16789 functions.
16790 (pa_select_section): Add one-only (COMDAT) support.
16791 * pa.h (struct machine_function): Define.
16792 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
16793 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
16794 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
16795 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
16796 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
16797 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
16798 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
16799 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
16800 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
16801 for EXTRA_SECTION_FUNCTIONS.
16802 * doc/install.texi: Update binutils requirements.
16803
16804 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
16805
16806 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
16807 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
16808 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
16809 size_t.
16810 (struct VEC): Use unsigned for num and alloc.
16811 * vec.c (struct vec_prefix): Likewise.
16812 (vec_o_reserve): Adjust.
16813
16814 * dbxout.c (dbxout_type): Fix printf format.
16815
16816 * tree.h (binfo_member): Remove.
16817 * tree.c (binfo_member): Remove.
16818
16819 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
16820
16821 * tree.h: Include vec.h
16822 (DEF_VEC_P(tree)): New type.
16823 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
16824 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
16825 (BINFO_LANG_SLOT): Remove.
16826 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
16827 (struct tree_binfo): Turn base_binfos into a trailing
16828 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
16829 (binfo_lang_slots): Remove.
16830 * tree.c (binfo_lang_slots): Remove.
16831 (make_tree_binfo_stat): Take a base binfo count, not a
16832 lang slot count. Adjust.
16833 * Makefile.in (TREE_H): Add vec.h
16834 * alias.c (record_component_aliases): Adjust BINFO access.
16835 * dbxout.c (dbxout_type): Likewise.
16836 * dwarf2out.c (gen_member_die): Likewise.
16837 * sdbout.c (sdbout_one_type): Likewise.
16838 * tree-dump.c (deque_and_dump): Likewise.
16839 * config/i386/i386.c (classify_argument,
16840 contains_128bit_aligned_vector_p): Likewise.
16841 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
16842 * doc/c-tree.texi (Classes): Update BINFO documentation.
16843
16844 2004-07-20 Steven Bosscher <stevenb@suse.de>
16845
16846 * c-common.h (check_case_value): Remove prototype.
16847 (c_add_case_label): Adjust prototype.
16848 * c-common.c (check_case_value): Make static.
16849 (check_case_bounds): New function.
16850 (c_add_case_label): Use it. Take new argument orig_type.
16851 * c-typeck.c (struct c_switch): New orig_type field.
16852 (c_start_case): Set it.
16853 (do_case): Pass it to c_add_case_label.
16854 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
16855 cases from here. Add the labels in reverse order.
16856 * stmt.c (struct case_node): Adjust comment. Remove balance field.
16857 (add_case_node): Return nothing, don't check for duplicate cases.
16858 Insert new case nodes in a list, not in an AVL tree.
16859 (expand_end_case_type): Don't turn a case tree into a case list.
16860 (case_tree2list): Remove.
16861 * tree.h (add_case_node): Adjust prototype.
16862
16863 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
16864
16865 * genattr.c (struct range, struct function_unit,
16866 write_units, extend_range, init_range): Remove them.
16867 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
16868 Output "#define INSN_SCHEDULING" here.
16869 * genattrtab.c (struct range, struct function_unit_op,
16870 struct function_unit, struct dimension, enum operator,
16871 operate_exp, expand_units, simplify_knowing,
16872 encode_units_mask, simplify_by_exploding,
16873 find_and_mark_used_attributes, unmark_used_attributes,
16874 add_values_to_cover, increment_current_value,
16875 test_for_current_value, simplify_with_current_value,
16876 simplify_with_current_value_aux, gen_unit,
16877 write_unit_name, write_function_unit_info,
16878 write_complex_function, write_toplevel_expr,
16879 find_single_value, extend_range): Remove.
16880 (write_attr_get): Do not handle common_av->value
16881 being an FFS.
16882 (struct attr_desc): Remove func_units_p and blockage_p.
16883 (write_attr_valueq): Do not handle them.
16884 (find_attr): Do not clear them.
16885 (make_internal_attr): Do not initialize them.
16886 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
16887 * sched-vis.c (init_target_units, insn_print_units,
16888 init_block_visualization, print_block_visualization,
16889 visualize_scheduled_insns, visualize_no_unit,
16890 visualize_stall_cycles, visualize_alloc,
16891 visualize_free, target_units, get_visual_tbl_length,
16892 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
16893 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
16894 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
16895 * haifa-sched.c (blockage_range, clear_units,
16896 schedule_unit, actual_hazard, potential_hazard,
16897 insn_unit, unit_last_insn, unit_tick,
16898 actual_hazard_this_instance, potential_hazard,
16899 schedule_unit, max_insn_queue_index_value): Remove.
16900 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
16901 max_insn_queue_index.
16902 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
16903 * doc/md.texi (Processor pipeline description): Remove
16904 references to old pipeline descriptions.
16905 (Automaton pipeline description): Merge with the above.
16906 (Old pipeline description, Comparison of the two descriptions):
16907 Remove.
16908
16909 * bt-load.c (migrate_btr_def): Remove references to
16910 use_pipeline_interface.
16911 * haifa-sched.c (insn_cost, schedule_insn,
16912 schedule_block, advance_one_cycle, sched_init,
16913 queue_to_ready, sched_finish): Likewise.
16914 * modulo-sched.c (sms_schedule, advance_one_cycle,
16915 ps_has_conflicts): Likewise.
16916 * sched-rgn.c (init_ready): Likewise.
16917 (debug_dependencies): Likewise, and remove an "if (1)".
16918 * target.h (use_dfa_pipeline_interface): Remove.
16919 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16920 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16921 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16922 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16923 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16924 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16925 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16926 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16927 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16928 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16929 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16930 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16931 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16932 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16933 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16934 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16935 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16936 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16937 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
16938
16939 2004-07-19 Roger Sayle <roger@eyesopen.com>
16940
16941 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
16942
16943 2004-07-19 Jeff Law <law@redhat.com>
16944
16945 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
16946 (get_eq_expr_value): Use it. Simplify slightly.
16947
16948 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
16949
16950 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
16951 (umulsidi3_32bit_r4000): Likewise.
16952
16953 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
16954
16955 * vec.h: Propagate location information properly.
16956 (VEC_T_iterate): Add result pointer parameter.
16957 (VEC_T_space): New.
16958 (VEC_T_reserve): Use it.
16959
16960 2004-07-19 Daniel Jacobowitz <dan@debian.org>
16961
16962 * Makefile.in (c-format.o): Depend on c-format.h.
16963 * c-format.h: New file.
16964 (struct format_char_info): Add CHAIN member.
16965 * c-format.c: Move some types and constants to c-format.h.
16966 (format_type_error): Set to -1.
16967 (struct function_format_info): Use an int for format_type.
16968 (decode_format_type): Return an int. Return format_type_error
16969 on error.
16970 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
16971 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
16972 (scan_char_table, time_char_table, monetary_char_table): Initialize
16973 CHAIN to NULL.
16974 (n_format_types): New variable.
16975 (check_format_info_main): Handle CHAIN in format_char_info.
16976 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
16977 TARGET_N_FORMAT_TYPES.
16978 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
16979 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
16980 * config/sol2-c.c: New file.
16981 * config/t-sol2: New file.
16982 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
16983 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
16984 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
16985
16986 * doc/extend.texi (Target Format Checks): New section.
16987 (Function Attributes): Mention it.
16988 * doc/invoke.texi: Mention target format checks.
16989 * doc/sourcebuild.texi: Mention target format checks.
16990 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
16991 TARGET_FORMAT_TYPES.
16992
16993 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
16994
16995 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
16996 added.
16997 * config/s390/s390.c (regclass_map initializer): Register 35 added to
16998 ADDR_REGS.
16999 (load_multiple_operation, store_multiple_operation): Removed
17000 pointless sanity check.
17001 (s390_decompose_address): Added check for return_address_pointer_rtx.
17002 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
17003 (s390_return_address_offset): New function.
17004 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
17005 (FRAME_REGNO_P): Added check for register 35.
17006 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
17007 REG_ALLOC_ORDER): Appended entry for register 35.
17008 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
17009 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
17010 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
17011 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
17012 is eliminable using stack pointer or hard frame pointer.
17013 (REGISTER_NAMES): Added name for register 35.
17014 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
17015 pointless sanity check.
17016
17017 2004-07-19 Roger Sayle <roger@eyesopen.com>
17018
17019 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
17020 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
17021 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
17022 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
17023 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
17024 (fold_relational_const): Tidy up handling of floating point
17025 comparisons by calling real_compare. Remove tree_expr_nonzero_p
17026 transformation; fold_relational_const assumes constant operands.
17027
17028 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
17029
17030 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
17031 directory.
17032
17033 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
17034
17035 * c-tree.h (struct c_expr): Define.
17036 (C_SET_EXP_ORIGINAL_CODE): Remove.
17037 (parser_build_binary_op, build_compound_expr): Update prototypes.
17038 * c-parse.in (%union): Add exprtype.
17039 (FUNC_NAME): Mark as ttype.
17040 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
17041 exprtype.
17042 (expr): Update. Define directly in terms of expr_no_commas
17043 instead of using nonnull_exprlist.
17044 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
17045 offsetof_member_designator, typespec_nonreserved_nonattr, init,
17046 initval, designator, component_declarator,
17047 component_notype_declarator, enumerator, array_declarator,
17048 condition, exexpr, switch_statement, stmt_nocomp, stmt,
17049 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
17050 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
17051 where appropriate.
17052 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
17053 * c-common.c (c_common_truthvalue_conversion): Don't check
17054 C_EXP_ORIGINAL_CODE.
17055 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
17056 Don't use C_EXP_ORIGINAL_CODE.
17057 (default_conversion, default_function_array_conversion): Don't use
17058 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
17059 (internal_build_compound_expr): Merge into build_compound_expr.
17060 (build_compound_expr): Take two operands instead of a TREE_LIST.
17061 * objc/objc-act.c (get_super_receiver): Update calls to
17062 build_compound_expr.
17063
17064 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
17065
17066 * config/sh/sh.c (sh_use_dfa_interface): Remove.
17067 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
17068 hook_int_void_1.
17069 * config/sh/sh.md: Extract pipeline descriptions
17070 into separate files.
17071 * config/sh/sh1.md: New file, extracted from sh.md.
17072 * config/sh/sh4.md: New file, extracted from sh.md.
17073 * config/sh/shmedia.md: New file, extracted from sh.md
17074 and rewritten using new-style pipeline description.
17075
17076 2004-07-18 Zack Weinberg <zack@codesourcery.com>
17077
17078 * config/pa/pa.md: Delete the two remaining define_peephole
17079 patterns.
17080
17081 2004-07-18 Steven Bosscher <stevenb@suse.de>
17082 Joseph S. Myers <jsm@polyomino.org.uk>
17083
17084 * c-common.c (c_common_truthvalue_conversion): Don't warn if
17085 TREE_NO_WARNING is set.
17086
17087 2004-07-18 Roger Sayle <roger@eyesopen.com>
17088
17089 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
17090 simplify_builtin_strncmp): Delete.
17091 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
17092 Change argument to accept an arglist instead of an "exp". Assume
17093 that the return type is always integer_type_node. Copy missing
17094 transformations from their now obsolete simplify_builtin_*
17095 equivalents.
17096 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
17097 fold_builtin_strcmp and fold_builtin_strncmp.
17098 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
17099 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
17100 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
17101
17102 2004-07-18 Daniel Jacobowitz <dan@debian.org>
17103
17104 * Makefile.in (tree-alias-common.o): Update dependencies.
17105
17106 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
17107
17108 * cfgloop.c (flow_loop_nested_p): Fix comment.
17109
17110 2004-07-17 Jason Merrill <jason@redhat.com>
17111
17112 PR c++/16115
17113 * stor-layout.c (relayout_decl): New fn.
17114 * tree.h: Declare it.
17115 (DECL_BY_REFERENCE): New macro.
17116
17117 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
17118
17119 * libgcc2.c (__enable_execute_stack): New symbol.
17120 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
17121 and declare __enable_execute_stack.
17122 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
17123 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
17124 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
17125 ENABLE_EXECUTE_STACK.
17126 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
17127 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
17128 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
17129 ENABLE_EXECUTE_STACK.
17130 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
17131 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
17132 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
17133 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
17134 ENABLE_EXECUTE_STACK.
17135 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
17136 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
17137 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
17138 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
17139 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
17140 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
17141 (sparc64_initialize_trampoline): Likewise.
17142 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
17143
17144 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
17145
17146 * langhooks.h (builtin_function): New langhook.
17147 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
17148 (LANG_HOOKS_INITIALIZER): Update.
17149 * tree.h (builtin_function): Remove.
17150 * doc/tm.texi: Update.
17151 * c-tree.h (builtin_function): Declare.
17152 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
17153 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
17154 config/ia64/ia64.c, config/iq2000/iq2000.c,
17155 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
17156 config/stormy16/stormy16.c: All callers of builtin_function
17157 changed.
17158
17159 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
17160
17161 PR target/16556
17162 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
17163 Remove white space after the backslash.
17164
17165 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
17166
17167 PR rtl-optimization/16294
17168 * resource.c (return_insn_p): New predicate.
17169 (mark_target_live_regs): Use it. Special-case return insns.
17170 (init_resource_info): Use it. Don't scan the epilogue past
17171 a return.
17172
17173 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17174
17175 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
17176 destroy dominance information.
17177 * passes.c (rest_of_handle_loop2): Free dominance information.
17178 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
17179 jump threading.
17180 (thread_jumps): Update dominance information and remove unreachable
17181 blocks.
17182 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
17183 information and remove the unreachable block.
17184
17185 2004-07-17 Graham Stott <graham.stott@btinternet.com>
17186
17187 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
17188
17189 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
17190
17191 * doc/sourcebuild.texi: Remove libf2c entry.
17192
17193 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
17194
17195 * config/i386/i386.md (movv16qi_internal): Fix typo.
17196
17197 2004-07-17 Steven Bosscher <stevenb@suse.de>
17198
17199 * final.c (final_scan_insn): Fix broken commit from previous
17200 patch.
17201
17202 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
17203
17204 * c-typeck.c (parser_build_binary_op): Condition warnings for
17205 X<=Y<=Z on -Wparentheses instead of -Wextra.
17206 * doc/invoke.texi: Update. Document that most of -Wparentheses is
17207 supported for C only.
17208
17209 2004-07-17 Steven Bosscher <stevenb@suse.de>
17210
17211 * cfgcleanup.c (try_simplify_condjump): Don't remove line
17212 notes to avoid unreachable code warnings.
17213 * toplev.c (backend_init): Don't emit line notes for
17214 unreachable code warnings.
17215
17216 * combine.c (distribute_notes): Don't distribute a
17217 REG_VTABLE_REF note.
17218 * final.c (final_scan_insn): Don't handle it.
17219 * rtl.c (reg_note_name): Remove it.
17220 * rtl.h (enum reg_node): Dito.
17221
17222 * emit-rtl.c (force_line_numbers, restore_line_number_status):
17223 Remove.
17224 * rtl.h (force_line_numbers, restore_line_number_status):
17225 Remove prototypes.
17226
17227 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
17228 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
17229 (using_eh_for_cleanups): Also moved here.
17230
17231 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
17232 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
17233 to expand_start_case and add_case_node.
17234 * stmt.c (struct nesting): Cleanup unused fields condition_code,
17235 last_unconditional_cleanup, nominal_type, printname, and
17236 line_number_status.
17237 (struct fixup_goto): Remove.
17238 (struct stmt_status): Remove x_goto_fixup_chain field.
17239 (goto_fixup_chain): Remove.
17240 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
17241 pushcase, pushcase_range): Remove.
17242 (expand_start_bindings_and_block): Don't set unused fields in
17243 the nesting stack.
17244 (expand_start_case, add_case_node): Cleanup unused formal arguments.
17245 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
17246 instead of emit_jump_if_reachable.
17247 (emit_case_nodes): Likewise.
17248 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
17249 static.
17250 (update_eh_label): Work around left-over exception handing regions.
17251 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
17252 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
17253 (pass_cleanup_cfg_post_optimizing): New pass.
17254 (init_tree_optimization_passes): Run the new pass after all
17255 optimizations.
17256 * tree.h (pushcase, pushcase_range): Remove prototypes.
17257 (expand_start_case, add_case_node): Update prototypes.
17258
17259 2004-07-16 Krister Walfridsson <cato@df.lth.se>
17260
17261 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
17262
17263 2004-07-16 Richard Henderson <rth@redhat.com>
17264
17265 * builtins.c (std_expand_builtin_va_arg): Remove.
17266 (expand_builtin_va_arg): Remove.
17267 * expr.h: Don't declare them.
17268 * gimplify.c (mark_decls_volatile_r): Remove.
17269 (copy_if_shared_r): Don't call it.
17270 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
17271 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
17272 * gimple-low.c (lower_stmt): Likewise.
17273 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
17274 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
17275 * tree-ssa-operands.c (get_expr_operands): Likewise.
17276 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
17277 EXPAND_BUILTIN_VA_ARG.
17278 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
17279 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
17280 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
17281 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
17282
17283 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
17284
17285 * tree-ssa-pre.c (insert_aux): Break out if we hit
17286 a critical edge.
17287
17288 2004-07-16 Richard Henderson <rth@redhat.com>
17289
17290 * basic-block.h (remove_fake_exit_edges): Declare.
17291 * cfganal.c (remove_fake_predecessors): Rename from
17292 remove_fake_successors; iterate over predecessors.
17293 (remove_fake_exit_edges): New.
17294 * cfgcleanup.c (try_optimize_cfg): Use it.
17295 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
17296 * predict.c (estimate_probability): Likewise.
17297 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
17298 * tree-cfg.c (make_edges): Likewise.
17299 * tree-ssa-pre.c (fini_pre): Likewise.
17300 * profile.c (instrument_edges): Don't remove_fake_edges.
17301 (branch_prob): Do it earlier here.
17302
17303 2004-07-16 Richard Henderson <rth@redhat.com>
17304
17305 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
17306 switchification wrt CONSTRUCTOR. Document the reason.
17307
17308 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
17309
17310 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
17311 that prevented descriptive __mf_check source location strings.
17312
17313 2004-07-16 Richard Henderson <rth@redhat.com>
17314
17315 * tree-def (WITH_SIZE_EXPR): New.
17316 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
17317 * expr.c (expand_expr_real_1): Likewise.
17318 * gimplify.c (maybe_with_size_expr): New.
17319 (gimplify_arg, gimplify_modify_expr): Use it.
17320 (gimplify_modify_expr_to_memcpy): Take size parameter.
17321 (gimplify_modify_expr_to_memset): Likewise.
17322 (gimplify_expr): Handle WITH_SIZE_EXPR.
17323 * tree-alias-common.c (find_func_aliases): Likewise.
17324 * tree-eh.c (tree_could_trap_p): Likewise.
17325 (tree_could_throw_p): Likewise.
17326 * tree-gimple.c (is_gimple_lvalue): Likewise.
17327 (get_call_expr_in): Likewise.
17328 * tree-inline.c (estimate_num_insns_1): Likewise.
17329 (expand_calls_inline): Likewise.
17330 * tree-nested.c (convert_call_expr): Likewise.
17331 * tree-pretty-print.c (dump_generic_node): Likewise.
17332 * tree-sra.c (sra_walk_expr): Likewise.
17333 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
17334 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
17335 * tree-ssa-operands.c (get_expr_operands): Likewise.
17336 * tree-tailcall.c (find_tail_calls): Likewise.
17337
17338 * calls.c (expand_call): Reset old_stack_allocated after
17339 calling emit_stack_restore.
17340
17341 2004-07-16 Richard Henderson <rth@redhat.com>
17342
17343 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
17344 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
17345 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
17346 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
17347 copy_res_decl_for_inlining.
17348
17349 * tree-inline.c (declare_return_variable): New modify_dest argument.
17350 Use it as the return value, when possible or manditory. Handle
17351 TREE_ADDRESSABLE types.
17352 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
17353 replacement of CALL_EXPR.
17354
17355 2004-07-16 Richard Henderson <rth@redhat.com>
17356
17357 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
17358 * gimple-low.c (expand_var_p): Don't check it.
17359 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
17360 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
17361 * tree-ssa-operands.c (add_stmt_operand): Likewise.
17362 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
17363 (find_referenced_vars): Don't call them.
17364 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
17365
17366 2004-07-16 Richard Henderson <rth@redhat.com>
17367
17368 * function.c (pass_by_reference): True for all variable sized types.
17369
17370 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
17371
17372 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
17373 * tree-pretty-print.c: Include tree-chrec.h.
17374 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
17375 and POLYNOMIAL_CHREC nodes.
17376
17377 2004-07-16 Steve Ellcey <sje@cup.hp.com>
17378
17379 * builtins.c (expand_builtin_stpcpy): Do not create temporary
17380 reg with VOIDmode.
17381
17382 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
17383
17384 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
17385
17386 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
17387
17388 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
17389 to BASE_REGNUM.
17390 * config/s390/s390.c: Likewise.
17391 * config/s390/s390.h: Likewise.
17392
17393 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
17394
17395 * config/mips/mips.md (addsi3, adddi3): Remove special handling
17396 of $sp adds. Remove REGNO checks from mips16 patterns.
17397
17398 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
17399
17400 * config/mips/mips.md: Delete outdated comment.
17401
17402 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
17403
17404 * config/mips/mips.c (get_float_compare_codes): Delete.
17405 (mips_emit_compare): New function, mostly extracted from
17406 get_float_compare_codes and gen_conditional_branch.
17407 (gen_conditional_branch, gen_conditional_move): Use it.
17408
17409 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
17410
17411 * genautomata.c (add_vect): Speedup by using integers as
17412 bit-vectors for walking through the comb_vect and finding
17413 a match.
17414
17415 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
17416
17417 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
17418 operand is an uns_arith_operand; use subtraction otherwise.
17419 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
17420 not just arith_operands.
17421
17422 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
17423
17424 * config/mips/mips-protos.h (gen_int_relational): Delete.
17425 (mips_emit_scc): Declare.
17426 * config/mips/mips.c (internal_test): Delete.
17427 (sle_operand, sleu_operand): New functions.
17428 (map_test_to_internal_test, gen_int_relational): Delete.
17429 (mips_emit_binary, mips_relational_operand_ok_p)
17430 (mips_emit_int_relational, mips_zero_if_equal)
17431 (mips_emit_scc): New functions.
17432 (gen_conditional_branch): Rework to use mips_emit_int_relational.
17433 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
17434 sleu_operand.
17435 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
17436 (sltu, sleu): Use mips_emit_scc.
17437 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
17438 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
17439 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
17440
17441 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
17442
17443 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
17444
17445 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
17446
17447 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
17448 (*sne_[sd]i): Likewise sne_[sd]i_zero.
17449 (*sgt_[sd]i): ...and sgt_[sd]i.
17450 (*slt_[sd]i): ...and slt_[sd]i.
17451 (*sgtu_[sd]i): ...and sgtu_[sd]i.
17452 (*sltu_[sd]i): ...and sltu_[sd]i.
17453 (*sleu_[sd]i): ...and sleu_[sd]i_const.
17454 Name previously unnamed mips16 patterns. Formatting fixes.
17455
17456 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
17457
17458 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
17459 (branch_type): Delete.
17460 (gen_conditional_branch, gen_conditional_move)
17461 (mips_gen_conditional_trap): Update after name change. Get the
17462 comparison mode from cmp_operands[0].
17463 * config/mips/mips.h (cmp_type, branch_type): Delete.
17464 (cmp_operands): Renamed from branch_cmp.
17465 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
17466 name change. Don't set branch_type.
17467 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
17468 mode class of cmp_operands[0] rather than branch_type. Update after
17469 name change.
17470
17471 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
17472
17473 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
17474 of 0...255 to 0 when inside a SET.
17475
17476 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
17477
17478 * config/mips/mips.md: Remove mips16 define_peepholes.
17479
17480 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
17481
17482 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
17483 (fini_pre): Remove fake edges.
17484
17485 2004-07-15 Richard Henderson <rth@redhat.com>
17486
17487 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
17488 (get_indirect_ref_operands, get_call_expr_operands): ... these.
17489
17490 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
17491
17492 * vec.h (VEC_address): New function.
17493
17494 2004-07-14 Jason Merrill <jason@redhat.com>
17495
17496 PR middle-end/15885
17497 * gimplify.c (gimplify_arg): New fn, split out from...
17498 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
17499
17500 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
17501
17502 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
17503 generate code which is generated by pushqi1 now
17504 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
17505
17506 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
17507
17508 * combine.c (simplify_set): match the mode of the constant 0 with
17509 the tested operand to match the compare behaviour and the
17510 simplify_relational_operation() expectation.
17511
17512 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
17513
17514 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
17515 ("bordered"): Same.
17516
17517 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
17518
17519 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
17520 unconditionally.
17521 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
17522
17523 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
17524
17525 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
17526 calls in mips16 code.
17527
17528 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
17529
17530 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
17531 the destination of the li as well as for the neg.
17532
17533 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
17534
17535 g++/15861
17536 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
17537 * cgraph.h: Update declaration.
17538 * c-decl.c (build_cdtor): Update call with default priority.
17539 * coverage.c (create_coverage): Ditto.
17540 * tree-mudflap.c (mf_init_fndecl): New tree.
17541 (mudflap_init): Set it.
17542 (mudflap_register_call): Arrange to call __mf_init before the first
17543 __mf_register call.
17544 (mudflap_finish_file): Mark the mudflap static initializer as extra
17545 high priority, to beat all C++ static constructors.
17546
17547 2004-07-15 Jeff Law <law@redhat.com>
17548
17549 * loop.c (check_insn_for_givs): Restore check for code labels that was
17550 accidentally deleted by a recent checkin.
17551
17552 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
17553
17554 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
17555 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
17556
17557 2004-07-14 Richard Henderson <rth@redhat.com>
17558
17559 * print-tree.c (print_node): Fix casts last change.
17560
17561 2004-07-15 Paul Brook <paul@codesourcery.com>
17562
17563 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
17564 to TARGET_UNWIND_INFO.
17565 * except.c (output_function_exception_table): Ditto.
17566 * except.h: Ditto.
17567 * opts.c (decode_options): Ditto.
17568 * passes.c (rest_of_handle_final): Ditto.
17569 * final.c (final_start_function): Ditto.
17570 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
17571 target hook.
17572 * targhooks.h (default_unwind_emit): Declare.
17573 * targhooks.c (default_unwind_emit): New function.
17574 * target-def.h: Define and use TARGET_UNWIND_EMIT.
17575 * target.h (struct gcc_target): Add unwind_emit.
17576 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
17577 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
17578 Remove IA64_UNWIND_EMIT.
17579 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
17580
17581 2004-07-14 Richard Henderson <rth@redhat.com>
17582
17583 * print-tree.c (print_node): Handle SSA_NAME.
17584
17585 2004-07-14 James E Wilson <wilson@specifixinc.com>
17586
17587 PR target/16325
17588 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
17589 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
17590
17591 2004-07-15 Jakub Jelinek <jakub@redhat.com>
17592
17593 * expr.c (expand_assignment): Reenable bitfield += optimizations.
17594 Use alias set 0 for memory, do proper mode calculations and adjust
17595 address for memories.
17596
17597 2004-07-14 Per Bothner <per@bothner.com>
17598
17599 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
17600 structure with extra column field.
17601 * tree.c (expand_location): Also fill in column field.
17602 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
17603 gets confused by the two conditionally-compiled definitions.
17604
17605 2004-07-14 Eric Christopher <echristo@redhat.com>
17606
17607 * calls.c (expand_call): Fix typo in comment.
17608
17609 2004-07-14 Steve Ellcey <sje@cup.hp.com>
17610
17611 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
17612 comparision of TFmode.
17613
17614 2004-07-14 Richard Henderson <rth@redhat.com>
17615
17616 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
17617 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
17618 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
17619 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
17620 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
17621 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17622 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
17623 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
17624 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
17625
17626 2004-07-14 Mike Stump <mrs@apple.com>
17627
17628 * config/darwin.h (WINT_TYPE): Define to be int to match
17629 system header files.
17630
17631 2004-07-14 Bob Wilson <bob.wilson@acm.org>
17632
17633 * config/xtensa/xtensa.c (function_arg_advance): Check for args
17634 that must be passed in the stack.
17635 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
17636 arguments if the size is not a constant.
17637
17638 2004-07-14 Per Bothner <per@bothner.com>
17639
17640 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
17641 instead of EXPR_LOCUS in a boolean context, which is always true
17642 if --enable-mapped-location.
17643 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
17644
17645 2004-07-14 Richard Henderson <rth@redhat.com>
17646
17647 * dominance.c (struct dom_info): Add fake_exit_edge.
17648 (init_dom_info): Allocate it.
17649 (free_dom_info): Free it.
17650 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
17651 in two passes.
17652 (calc_idoms): Honor fake_exit_edge.
17653
17654 2004-07-13 Jason Merrill <jason@redhat.com>
17655
17656 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
17657 (rhs_test_for): New fn.
17658 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
17659 * tree-gimple.h: Declare them.
17660 * gimplify.c (gimplify_modify_expr): Use the new fns.
17661
17662 2004-07-14 Richard Henderson <rth@redhat.com>
17663
17664 * config/arm/arm-protos.h (arm_va_arg): Remove.
17665 * config/arm/arm.c (arm_va_arg): Remove.
17666 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
17667 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
17668
17669 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17670
17671 * pa.c (fix_range): New function to mark a range(s) of registers as
17672 fixed registers.
17673 (override_options): Call fix_range if the -mfixed-range option string
17674 is not empty.
17675 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
17676 * doc/invoke.texi (-mfixed-range): Document new option.
17677
17678 2004-07-14 David Edelsohn <edelsohn@gnu.org>
17679
17680 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
17681 for TARGET_64BIT.
17682 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
17683
17684 2004-07-14 Roger Sayle <roger@eyesopen.com>
17685
17686 * expmed.c (expand_sdiv_pow2): New function to expand signed division
17687 by a positive power of two, split out from expand_divmod. Provide
17688 an alternate implementation when shifts are expensive. Lower the
17689 threshold for using a branchless implementation to BRANCH_COST >= 2.
17690 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
17691
17692 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
17693
17694 * tree-dfa.c (make_rename_temp): *Really* work just
17695 like create_tmp_var if called while outside SSA form.
17696
17697 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
17698
17699 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
17700 for division by zero.
17701 ("umodsi3"): Likewise.
17702
17703 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
17704
17705 * config/mips/mips.c (mips_output_move): When generating mips16 code,
17706 force loads of negative constants to be split.
17707 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
17708 Generalize SImode li/neg splitter to cope with other modes.
17709
17710 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
17711
17712 * expmed.c: Remove more references to QUEUED in the comments.
17713 * expr.c: Likewise.
17714
17715 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
17716
17717 Revert:
17718 2004-07-13 Richard Henderson <rth@redhat.com>
17719 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
17720 correctly.
17721
17722 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
17723
17724 * tree-dfa.c (make_rename_temp): Work just like
17725 create_tmp_var if called while outside SSA form.
17726
17727 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
17728
17729 * expr.c (enqueue_insn, finish_expr_for_function,
17730 protect_from_queue, queued_subexp_p, mark_queue,
17731 emit_insns_enqueued_after_mark, emit_queue,
17732 expand_increment): Remove.
17733 (store_constructor): Expand increment as an assignment.
17734 (expand_expr_real_1 <case PREINCREMENT_EXPR,
17735 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
17736 case POSTDECREMENT_EXPR>): Abort.
17737 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
17738 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
17739 protect_from_queue, emit_queue, queued_subexp_p): Remove.
17740 * function.h (pending_chain, x_pending_chain): Remove.
17741 * rtl.def (QUEUED): Remove.
17742
17743 * emit-rtl.c (copy_insn_1, copy_most_rtx,
17744 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
17745 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
17746 encode_units_mask): Likewise.
17747 * local-alloc.c (equiv_init_varies_p): Likewise.
17748 * rtl.c (copy_rtx): Likewise.
17749 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
17750 * simplify-rtx.c (simplify_gen_subreg): Likewise.
17751 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
17752
17753 * builtins.c (expand_builtin, expand_builtin_apply,
17754 expand_builtin_mathfn, expand_builtin_mathfn_2,
17755 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
17756 Remove calls to emit_queue and protect_from_queue.
17757 * calls.c (expand_call, precompute_arguments,
17758 precompute_register_parameters, rtx_for_function_call,
17759 store_one_arg): Likewise.
17760 * dojump.c (do_compare_and_jump, do_jump): Likewise.
17761 * explow.c (memory_address): Likewise.
17762 * expmed.c (clear_by_pieces_1, clear_storage,
17763 clear_storage_via_libcall, emit_group_load,
17764 emit_group_store, emit_store_flag,
17765 expand_expr_real_1, store_by_pieces,
17766 store_constructor, store_expr, try_casesi,
17767 try_tablejump): Likewise.
17768 * function.c (expand_pending_sizes): Likewise.
17769 * optabs.c (emit_cmp_and_jump_insns,
17770 emit_conditional_add, emit_conditional_move,
17771 expand_fix, expand_float, prepare_cmp_insn): Likewise.
17772 * stmt.c (emit_case_bit_tests,
17773 expand_asm_expr, expand_computed_goto,
17774 expand_decl_init, expand_end_case_type,
17775 expand_end_stmt_expr, expand_expr_stmt_value,
17776 expand_return, expand_start_case,
17777 optimize_tail_recursion): Likewise.
17778 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
17779 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
17780
17781 2004-07-14 Ben Elliston <bje@au.ibm.com>
17782
17783 * vec.h: Comment fix.
17784
17785 2004-07-13 Richard Henderson <rth@redhat.com>
17786
17787 * target.h (struct gcc_target): Add calls.pass_by_reference.
17788 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
17789 * function.c (pass_by_reference): Use the hook.
17790 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
17791 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
17792 (hook_pass_by_reference_must_pass_in_stack): New.
17793 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
17794 (alpha_pass_by_reference): New.
17795 (TARGET_PASS_BY_REFERENCE): New.
17796 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17797 * config/arc/arc.c (arc_pass_by_reference): New.
17798 (TARGET_PASS_BY_REFERENCE): New.
17799 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17800 (FUNCTION_ARG_CALLEE_COPIES): True.
17801 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
17802 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
17803 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
17804 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17805 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17806 * config/cris/cris.c (cris_pass_by_reference): New.
17807 (TARGET_PASS_BY_REFERENCE): New.
17808 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
17809 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
17810 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17811 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
17812 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17813 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
17814 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
17815 (frv_function_arg_pass_by_reference): Remove.
17816 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17817 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
17818 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
17819 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
17820 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17821 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
17822 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
17823 (ia64_pass_by_reference): Rename from
17824 ia64_function_arg_pass_by_reference.
17825 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17826 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17827 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
17828 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
17829 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
17830 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17831 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
17832 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
17833 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
17834 (m32r_pass_by_reference): Adjust prototype. Make static.
17835 Handle mode sizes correctly.
17836 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17837 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
17838 (m68hc11_function_arg_pass_by_reference): Remove.
17839 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17840 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
17841 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
17842 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17843 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
17844 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
17845 (mips_va_arg): Use pass_by_reference.
17846 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
17847 Handle mode sizes correctly.
17848 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17849 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
17850 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
17851 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
17852 (mmix_pass_by_reference): Rename from
17853 mmix_function_arg_pass_by_reference.
17854 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17855 (FUNCTION_ARG_CALLEE_COPIES): True.
17856 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
17857 (mn10300_pass_by_reference): New.
17858 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17859 (FUNCTION_ARG_CALLEE_COPIES): True.
17860 * config/pa/pa.c (pa_pass_by_reference): New.
17861 (TARGET_PASS_BY_REFERENCE): New.
17862 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17863 (FUNCTION_ARG_CALLEE_COPIES): True.
17864 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
17865 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
17866 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
17867 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17868 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
17869 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
17870 (s390_pass_by_reference): Rename from
17871 s390_function_arg_pass_by_reference.
17872 (s390_function_arg_advance): Don't query pass-by-ref.
17873 (s390_function_arg): Likewise.
17874 (s390_gimplify_va_arg): Use pass_by_reference.
17875 (s390_call_saved_register_used): Likewise.
17876 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17877 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
17878 (shcompact_byref, sh_pass_by_reference): New.
17879 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17880 (SHCOMPACT_BYREF): Remove.
17881 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
17882 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
17883 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
17884 (sparc_gimplify_va_arg): Use pass_by_reference.
17885 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17886 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17887 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
17888 (v850_pass_by_reference): New.
17889 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
17890 (FUNCTION_ARG_CALLEE_COPIES): True.
17891 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
17892 FUNCTION_ARG_PASS_BY_REFERENCE docs.
17893
17894 2004-07-14 Richard Henderson <rth@redhat.com>
17895 Richard Sandiford <rsandifo@redhat.com>
17896
17897 * config/mips/mips-protos.h (mips_va_arg): Delete.
17898 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
17899 * config/mips/mips.c: Include tree-gimple.h.
17900 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
17901 (mips_arg_info): Remove special handling of must_pass_in_stck args.
17902 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
17903 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
17904
17905 2004-07-13 Bob Wilson <bob.wilson@acm.org>
17906
17907 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
17908 arguments for COND_EXPR in big-endian adjustment code.
17909
17910 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17911
17912 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
17913 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
17914 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
17915 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
17916
17917 2004-07-13 Diego Novillo <dnovillo@redhat.com>
17918
17919 PR tree-optimization/16443
17920 * tree-ssa-alias.c: Add more description for
17921 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
17922 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
17923 clobbering of call-clobbered and addressable variables. If
17924 there are any before aliases have been computed, add them.
17925
17926 2004-07-13 Diego Novillo <dnovillo@redhat.com>
17927
17928 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
17929 verification.
17930
17931 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
17932
17933 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
17934 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
17935 to the same type.
17936
17937 2004-07-13 Per Bothner <per@bothner.com>
17938
17939 * collect2.c (main): Handle --no-demangle and --demangle flags.
17940
17941 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
17942
17943 * Makefile.in (OBJS-common): Add tree-data-ref.o.
17944 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
17945 (tree-data-ref.o): New rule.
17946 * lambda.h: New file.
17947 * tree-data-ref.c: New file.
17948 * tree-data-ref.h: New file.
17949 * tree.c (int_cst_value, tree_fold_gcd): New functions.
17950 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
17951
17952 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
17953
17954 PR target/13926
17955 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
17956 * config/sparc/sparc.c (output_ubranch): New function.
17957 * config/sparc/sparc.md (jump pattern): Use it.
17958
17959 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
17960
17961 PR target/16494
17962 * config/sparc/sparc.c (output_cbranch): Properly guard
17963 the code handling far branches with TARGET_V9.
17964 * config/sparc/sparc.md (length attribute): Document the
17965 side-effect of having a length greater or equal to 3.
17966
17967 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
17968 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
17969
17970 PR target/15186
17971 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
17972 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
17973
17974 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
17975 Martin Sebor <sebor@roguewave.com>
17976
17977 PR target/12602
17978 * doc/invoke.texi (SPARC options): Document -threads
17979 and -pthreads on Solaris.
17980
17981 2004-07-13 Richard Henderson <rth@redhat.com>
17982
17983 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
17984 by reference.
17985 (ind_gimplify_va_arg_expr): Remove.
17986 * tree.h (ind_gimplify_va_arg_expr): Remove.
17987 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
17988 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
17989 argsp to be null.
17990
17991 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
17992 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
17993 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
17994 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
17995 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
17996
17997 2004-07-13 Richard Henderson <rth@redhat.com>
17998
17999 * function.c (pass_by_reference): New.
18000 (assign_parm_find_data_types): Use it.
18001 * calls.c (initialize_argument_information): Likewise.
18002 (emit_library_call_value_1): Likewise.
18003 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
18004 * function.h (pass_by_reference): Declare.
18005
18006 2004-07-13 Richard Henderson <rth@redhat.com>
18007
18008 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
18009 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
18010 * expr.h (MUST_PASS_IN_STACK): Remove.
18011 * system.h (MUST_PASS_IN_STACK): Poison.
18012 * tree.h (must_pass_in_stack_var_size): Declare.
18013 (must_pass_in_stack_var_size_or_pad): Declare.
18014 * calls.c (must_pass_in_stack_var_size): New.
18015 (must_pass_in_stack_var_size_or_pad): Rename from
18016 default_must_pass_in_stack.
18017 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
18018 (TARGET_MUST_PASS_IN_STACK): New.
18019 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
18020 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
18021 (TARGET_MUST_PASS_IN_STACK): New.
18022 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
18023 * config/frv/frv.c (frv_must_pass_in_stack): New.
18024 (TARGET_MUST_PASS_IN_STACK): New.
18025 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
18026 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
18027 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
18028 (ix86_must_pass_in_stack): Make static.
18029 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
18030 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
18031 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
18032 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
18033 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
18034 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
18035 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
18036 (mcore_must_pass_on_stack): Remove.
18037 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
18038 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
18039 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
18040 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
18041 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
18042 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
18043 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
18044 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
18045 (TARGET_MUST_PASS_IN_STACK): New.
18046 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
18047 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
18048 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
18049 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
18050 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
18051 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
18052 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
18053 MUST_PASS_IN_STACK.
18054
18055 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
18056 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
18057 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
18058 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
18059 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
18060 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
18061 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
18062 config/xtensa/xtensa.c: Use target hook.
18063
18064 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
18065
18066 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
18067 * configure: Rebuilt.
18068
18069 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
18070
18071 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
18072 * config/mips/mips.h (mips_reg_names): Don't declare.
18073 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
18074 (TARGET_NAME_REGS): Delete.
18075 (TARGET_SWITCHES): Remove -mrnames.
18076 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
18077 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
18078 in REGISTER_NAMES.
18079 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
18080 (override_options): Remove handling of TARGET_NAME_REGS.
18081
18082 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
18083
18084 * config/mips/mips.h (TARGET_*): Boolify.
18085
18086 2004-07-12 Nick Clifton <nickc@redhat.com>
18087
18088 * config.gcc: Add sh-*-symbianelf target.
18089 * config/sh/sh.c: Add new target macros:
18090 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
18091 TARGET_CXX_IMPORT_EXPORT_CLASS.
18092 (sh_file_start): Create a definition of the .directive section.
18093 (sh_attribute): Add dllimport and dllexport attributes.
18094 * config/sh/symbian-pre.h: New file.
18095 * config/sh/symbian-post.h: New file.
18096 * config/sh/symbian.c: New file. Contains Symbian specific
18097 functions.
18098 * config/sh/sh-protos.h: Add prototypes for new functions
18099 provided by symbian.c.
18100 * config/sh/t-symbian: New file.
18101 * doc/extend.texi: Document support for dllimport and dllexport
18102 attributes by the sh-symbianelf target.
18103
18104 2004-07-12 James E Wilson <wilson@specifixinc.com>
18105
18106 * Makefile.in (AR): Use @AR@ not ar.
18107 (NM): New.
18108 (AR_FOR_TARGET): Use $(AR) not ar for native.
18109 (NM_FOR_TARGET): Use $(NM) not nm for native.
18110 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
18111 * configure: Regenerate.
18112
18113 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
18114
18115 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
18116 special case.
18117 (ashldi3_sp64): Likewise.
18118
18119 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18120
18121 PR target/16477
18122 * pa.c (function_arg): Update comment.
18123 * pa.h (BLOCK_REG_PADDING): Define.
18124
18125 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18126
18127 PR tree-optimization/16461
18128 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
18129 arguments of phi nodes.
18130
18131 2004-07-12 Devang Patel <dpatel@apple.com>
18132
18133 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
18134
18135 2004-07-12 Steve Ellcey <sje@cup.hp.com>
18136
18137 * function.c (expand_function_start): Ensure r_save is in Pmode.
18138 * calls.c (prepare_call_address): Ensure static_chain_value is
18139 in Pmode.
18140 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
18141 r_save_area are in Pmode.
18142 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
18143 fnaddr, and static_chain are in Pmode.
18144
18145 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
18146
18147 PR target/16445
18148 * config/ia64/ia64.c (bundling): Don't count ignored insns.
18149
18150 2004-07-12 Richard Henderson <rth@redhat.com>
18151
18152 * target.h (struct gcc_target): Move gimplify_va_arg_expr
18153 next to build_builtin_va_list.
18154 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
18155 * builtins.c (gimplify_va_arg_expr): Likewise.
18156 * gimplify.c (copy_if_shared_r): Likewise.
18157
18158 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
18159
18160 * passes.c (rest_of_decl_compilation): Don't defer call of
18161 assemble_variable if its DECL_RTL is already set.
18162
18163 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
18164
18165 * cfgloop.h (struct loop): Add nb_iterations field.
18166 (current_loops): Declare.
18167 * tree-chrec.c (chrec_not_analyzed_yet,
18168 chrec_dont_know, chrec_known, count_ev_in_wider_type,
18169 chrec_contains_symbols_defined_in_loop): Remove the temporary
18170 hooks.
18171 * tree-flow-inline.h (loop_containing_stmt): New function.
18172 * tree-scalar-evolution.c: Add implementation.
18173 * tree-scalar-evolution.h: Add declarations.
18174
18175 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
18176
18177 PR rtl-optimization/15921
18178 * Makefile.in (global.o): Add recog.h.
18179
18180 * global.c (recog.h): Add the include-clause.
18181 (bb_info): New member earlyclobber.
18182 (allocate_bb_info, free_bb_info): Initialize/finish the new
18183 member.
18184 (earlyclobber_regclass, earlyclobber_regclass_length): The new
18185 global variables.
18186 (check_earlyclobber, regclass_intersect,
18187 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
18188 New functions.
18189 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
18190 (make_accurate_live_analysis): Modify pavin.
18191
18192 2004-07-12 Diego Novillo <dnovillo@redhat.com>
18193
18194 * tree-cfg.c (find_taken_edge): Statically compute the truth
18195 value of a predicate comparing an SSA_NAME to itself.
18196
18197 2004-07-12 Roger Sayle <roger@eyesopen.com>
18198
18199 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
18200 rs6000 doesn't have shift-and-add or shift-and-sub instructions
18201 by returning the cost of a multiplication plus an addition.
18202
18203 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
18204
18205 PR tree-optimization/14107
18206 * gimplify.c (gimplify_return_expr): Accept a
18207 RETURN_EXPR with an error argument.
18208 * tree-optimize.c (init_tree_optimization_passes):
18209 Run pass_warn_function_return at -O0.
18210
18211 2004-07-12 Roger Sayle <roger@eyesopen.com>
18212
18213 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
18214 index entry.
18215
18216 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
18217
18218 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
18219 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
18220 * config/mips/3000.md: Add copyright notice. Remove automota and
18221 function units; use generic ones instead. Only define reservations
18222 for things that are different from generic.md. Extend each clause
18223 to include r3900.
18224 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
18225 * config/mips/mips.md: Include them. Remove define_function_units.
18226 (alu, imuldiv): New automata and units.
18227
18228 2004-07-12 Ben Elliston <bje@au.ibm.com>
18229
18230 * doc/invoke.texi (Optimize Options): Document -frename-registers
18231 not being enabled by default at -O3.
18232
18233 2004-07-11 Roger Sayle <roger@eyesopen.com>
18234
18235 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
18236 floating point additions, to keep real immediate constant positive.
18237 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
18238 into X + C, and leave positive real constants as X - C.
18239
18240 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18241
18242 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
18243
18244 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18245
18246 PR tree-optimization/15654
18247 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
18248
18249 2004-07-11 Roger Sayle <roger@eyesopen.com>
18250
18251 * builtins.c (fold_builtin_fputs): Don't bother converting the
18252 return type to integer_type_node, as we've already checked that
18253 the result will be ignored.
18254
18255 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
18256 that signed addition, subtraction, multiplication, division,
18257 remainder, negation and absolute value may potentially trap.
18258
18259 * fold-const.c (fold_ignored_result): New function to strip
18260 non-side-effecting tree nodes from an expression whose result
18261 is ignored.
18262 (fold_convert): Call fold_ignored_result when casting a value
18263 to VOID_TYPE.
18264 (omit_one_operand): Call fold_ignored_result on the "omitted"
18265 operand when building a COMPOUND_EXPR.
18266 (pedantic_omit_one_operand): Likewise.
18267 * tree.h (fold_ignored_result): Prototype here.
18268 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
18269 when we're going to ignore the result.
18270
18271 2004-07-11 Richard Henderson <rth@redhat.com>
18272
18273 PR tree-opt/16383
18274 * tree-ssa-ccp.c (fold_stmt_r): Split out...
18275 * tree.c (fields_compatible_p, find_compatible_field): ... new.
18276 * tree.h (fields_compatible_p, find_compatible_field): Declare.
18277 * tree-sra.c (sra_hash_tree): Hash fields by offset.
18278 (sra_elt_eq): Use fields_compatible_p.
18279 (generate_one_element_ref): Use find_compatible_field.
18280
18281 2004-07-11 Richard Henderson <rth@redhat.com>
18282
18283 PR tree-opt/16422
18284 * tree-sra.c (generate_one_element_init): New.
18285 (generate_element_init): Use it.
18286 (scalarize_init): Push/pop gimplify context around it.
18287 (find_new_referenced_vars_1, find_new_referenced_vars): New.
18288 * gimplify.c (gimplify_expr): Allow SSA_NAME.
18289
18290 2004-07-11 Roger Sayle <roger@eyesopen.com>
18291
18292 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
18293 combine.c's combine_insn_cost.
18294 * rtl.h (insn_rtx_cost): Prototype here.
18295 * combine.c (combine_insn_cost): Delete function.
18296 (combine_validate_cost): Update callers of combine_insn_cost to
18297 call insn_rtx_cost instead.
18298 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
18299 requesting the rtx_cost of call and/or jump instructions.
18300
18301 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
18302 rtx_cost directly. Don't request/use the cost of call or jump
18303 instructions. Return -1 if the cost of any instruction can't be
18304 determined (or the BB contains a function call).
18305 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
18306 -1 (i.e. can't determine the cost of any instruction or the basic
18307 block contains a subroutine call).
18308 (find_if_case_2): Likewise.
18309
18310 2004-07-11 Roger Sayle <roger@eyesopen.com>
18311
18312 * rs6000.c (struct processor_costs): Change semantics of fields to
18313 include the COST_N_INSNS scaling, and update all initializers.
18314 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
18315 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
18316 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
18317 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
18318
18319 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
18320
18321 * LANGUAGES: Remove obsolete information.
18322
18323 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
18324
18325 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
18326 SIGBUS signal frames, the PSW address points *to* the faulting
18327 instruction, not after it.
18328
18329 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
18330
18331 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
18332 added to TLS symbol addresses.
18333
18334 2004-07-11 Richard Henderson <rth@redhat.com>
18335
18336 * expmed.c (init_expmed): Use stack-local structures for
18337 temporary rtl. Don't recognize shifts.
18338
18339 2004-07-11 Richard Henderson <rth@redhat.com>
18340
18341 * expr.c (store_expr): Don't fiddle subreg promotion for types
18342 with precision smaller than the mode.
18343
18344 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
18345
18346 * tree.h (all_types_permanent): Remove.
18347
18348 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
18349
18350 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
18351 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
18352 * langhooks.c (lhd_clear_binding_stack): Remove.
18353 * langhooks-def.h (lhd_clear_binding_stack,
18354 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
18355 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
18356 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
18357 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
18358 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
18359 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
18360 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
18361 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
18362 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
18363 * tree.h (poplevel): Don't declare.
18364 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
18365 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
18366 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
18367 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
18368 Remove.
18369
18370 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
18371
18372 PR tree-optimization/16437
18373 * c-common.c (shorten_compare): Don't mark result of conversion to
18374 narrower signed type as overflowing.
18375 * fold-const.c (decode_field_reference): Determine whether
18376 signedness comes from outer type using precision rather than size.
18377
18378 2004-07-11 Phil Edwards <phil@codesourcery.com>
18379
18380 * configure.ac: Alphabetize --enable-checking list, add
18381 missing valgrind entry.
18382 * configure: Regenerate.
18383
18384 2004-07-11 Phil Edwards <phil@codesourcery.com>
18385
18386 * doc/install.texi (Testing): Fix syntax in "make check" example.
18387
18388 2004-07-10 James E Wilson <wilson@specifixinc.com>
18389
18390 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
18391
18392 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18393
18394 PR rtl-optimization/16001
18395 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
18396 niter_expr.
18397
18398 2004-07-10 Geoffrey Keating <geoffk@apple.com>
18399
18400 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
18401
18402 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
18403 James Morrison <phython@gcc.gnu.org>
18404
18405 * doc/contrib.texi (Contributors): Add gfortran contributors and
18406 fix a couple of typos.
18407
18408 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18409
18410 PR rtl-optimization/15387
18411 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
18412 to incoming args space correctly.
18413
18414 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18415
18416 * pa.c (output_indirect_call): Only use %r2 as the link register in
18417 indirect calls with the long PA 2.0 pc-relative branch.
18418
18419 2004-07-10 Daniel Jacobowitz <dan@debian.org>
18420
18421 * config/i386/i386.c (override_options): Pick a 64-bit CPU
18422 for the default tuning if TARGET_64BIT.
18423
18424 2004-07-10 Richard Henderson <rth@redhat.com>
18425
18426 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
18427 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
18428
18429 2004-07-10 Jakub Jelinek <jakub@redhat.com>
18430
18431 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
18432 * expmed.c (store_bit_field, extract_bit_field): Remove last
18433 argument.
18434 * builtins.c (expand_builtin_signbit): Adjust callers.
18435 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
18436 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
18437 * ifcvt.c (noce_emit_move_insn): Likewise.
18438 * stmt.c (expand_return): Likewise.
18439 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
18440 store_field, expand_expr_real_1): Likewise.
18441
18442 2004-07-10 Richard Henderson <rth@redhat.com>
18443
18444 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
18445
18446 2004-07-09 Mike Stump <mrs@apple.com>
18447
18448 * config/darwin.c (no_dead_strip): Add.
18449 (HAVE_DEAD_STRIP): Add.
18450 (darwin_emit_unwind_label): Ensure that we don't dead code strip
18451 the .eh label.
18452
18453 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18454
18455 * tree-ssa-loop-im.c: New file.
18456 * Makefile.in (tree-ssa-loop-im.o): Add.
18457 * cfgloop.c (superloop_at_depth): New function.
18458 * cfgloop.h (superloop_at_depth): Declare.
18459 * common.opt (ftree-lim): New flag.
18460 * expr.c (array_ref_up_bound): New function.
18461 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
18462 * timevar.def (TV_LIM): New timevar.
18463 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
18464 computing immediate uses of a phi node.
18465 * tree-flow.h (struct tree_ann_common_d): Add aux field.
18466 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
18467 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
18468 * tree-pass.h (pass_lim): Declare.
18469 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
18470 functions.
18471 (pass_lim): New pass structure.
18472 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
18473 * tree.c (in_array_bounds_p): New function.
18474 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
18475 (in_array_bounds_p, array_ref_up_bound): Declare.
18476 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
18477 * doc/passes.texi (tree-ssa-loop-im.c): Document.
18478
18479 2004-07-09 Richard Henderson <rth@redhat.com>
18480
18481 * builtins.c (expand_builtin_stpcpy): Don't modify len.
18482
18483 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
18484 with prejudice.
18485
18486 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
18487
18488 * flags.h: Delete redundant prototypes that are being generated
18489 in options.h from common.opt.
18490 * common.opt: Add in the expository comments formerly in flags.h.
18491
18492 2004-07-09 Jan Beulich <jbeulich@novell.com>
18493
18494 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
18495 available for use only when TARGET_MMX/_SSE is set, and check for
18496 variable argument function if any register count is non-zero.
18497 (function_arg): Correctly suppress repeated warnings for passing SSE
18498 vectors are arguments without SSE enabled.
18499 (ix86_function_arg_boundary): Without SSE enabled, the use of what
18500 would be SSE register modes does no longer influence the alignment.
18501
18502 2004-07-09 Richard Henderson <rth@redhat.com>
18503
18504 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
18505 Always align upward to arg boundary. Use size_in_bytes/round_up.
18506 Maintain type-correctness of constants.
18507 * stor-layout.c (round_up, round_down): Special-case powers of 2.
18508
18509 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
18510
18511 * config/sparc/sparc.c (*_costs): Scale instruction costs
18512 by COSTS_N_INSNS.
18513 (sparc_rtx_costs): Adjust as appropriate.
18514
18515 2004-07-09 Jan Beulich <jbeulich@novell.com>
18516
18517 * config/i386/mm3dnow.h: New.
18518 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
18519
18520 2004-07-09 Richard Henderson <rth@redhat.com>
18521
18522 * simplify-rtx.c (simplify_const_relational_operation): Only
18523 look at bounds of scalar integers.
18524
18525 2004-07-09 Jan Beulich <jbeulich@novell.com>
18526
18527 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
18528
18529 2004-07-09 Andrew Pinski <apinski@apple.com>
18530
18531 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
18532 always referenced.
18533 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
18534 UOBJC_METACLASS_decl.
18535
18536 2004-07-09 James E Wilson <wilson@specifixinc.com>
18537
18538 PR target/16364
18539 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
18540 do return a parallel if hfa_mode == XFmode and mode == TImode.
18541
18542 2004-07-09 Jan Beulich <jbeulich@novell.com>
18543
18544 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
18545 permissible for unary plus.
18546
18547 2004-07-09 Jan Beulich <jbeulich@novell.com>
18548
18549 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
18550 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
18551 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
18552 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
18553 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
18554 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
18555 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
18556 (BUILTIN_xxxIMAX): New.
18557 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
18558 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
18559 BUILT_IN_PARITYIMAX.
18560
18561 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
18562
18563 * config/sparc/sparc.h (processor_costs): Define.
18564 (sparc_costs): Declare.
18565 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
18566 hypersparc_costs, sparclet_costs, ultrasparc_costs,
18567 ultrasparc3_costs): New.
18568 (sparc_override_options): Set sparc_costs as appropriate.
18569 (sparc_rtx_costs): Use sparc_costs instead of messy
18570 conditionals.
18571
18572 2004-07-09 Steven Bosscher <stevenb@suse.de>
18573
18574 * doc/md.texi (Processor pipeline description): Mention that
18575 the old pipeline description is deprecated.
18576
18577 * config/rs6000/7450.md (automaton ppc7450): Split up, move
18578 mciu_7450 function unit to...
18579 (automaton ppc7450mciu): ...new automaton.
18580
18581 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
18582 (schedule_block): Don't consider inserting bubbles.
18583 (sched_init): Don't initialize DFA bubbles.
18584 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
18585 TARGET_SCHED_DFA_BUBBLE): Remove.
18586 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
18587 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
18588 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
18589
18590 * stmt.c (conditional_context): Remove prototype.
18591 * tree.h (conditional_context): Remove.
18592 * tree-cfg.c (pre_insert_on_edge): Remove.
18593
18594 * c-common.h (c_expand_asm_operands): Remove prototype.
18595 * c-typeck.c (c_expand_asm_operands): Remove.
18596
18597 2004-07-09 Jan Beulich <jbeulich@novell.com>
18598
18599 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
18600 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
18601 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
18602 and V8QI are class SSE. All sufficiently small remaining vector modes
18603 must be passed in one or two integer registers.
18604 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
18605 returned in memory.
18606 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
18607 __builtin_ia32_pmuludq128 have non-uniform argument and return types
18608 and must thus be handled explicitly.
18609 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
18610 MMX and XMM regs.
18611 (movv8qi_internal, movv4hi_internal, movv2si_internal,
18612 movv2sf_internal): Permit moving between MMX and XMM registers (since
18613 MMX areguments and return values are passed in XMM registers).
18614 (sse2_umulsidi3): Correct type and mode.
18615
18616 2004-07-09 Richard Henderson <rth@redhat.com>
18617
18618 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
18619
18620 2004-07-09 Eric Christopher <echristo@redhat.com>
18621
18622 * config/rs6000/40x.md: Split into two automatons.
18623
18624 2004-07-09 Zack Weinberg <zack@codesourcery.com>
18625 Andrew Pinski <apinski@apple.com>
18626
18627 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
18628 on when we have more than one input file.
18629 (c_common_parse_file): Restore loop over all input files.
18630 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
18631
18632 * c-decl.c (set_type_context): New function.
18633 (pop_scope): Use it to set context of types. When we
18634 encounter a TYPE_DECL, set the context of the attached type too.
18635 (pop_file_scope): Don't call cpp_undef_all here.
18636 (diagnose_mismatched_decls): Do not complain about a second
18637 definition of an 'extern inline' function if it's not in the
18638 same translation unit. Do not complain about inline
18639 declaration after use if the use was in a different
18640 translation unit.
18641 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
18642 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
18643 the external scope.
18644 (pushdecl_top_level): Likewise.
18645 (grokdeclarator): Clarify what is going on with setting
18646 DECL_EXTERNAL on function types, a little.
18647 (c_write_global_declarations): Don't do anything if
18648 -fsyntax-only or errors have been encountered.
18649
18650 2004-07-09 Zack Weinberg <zack@codesourcery.com>
18651
18652 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
18653
18654 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18655
18656 PR target/16459
18657 * pa.c (output_indirect_call): Use %r2 as the link register when
18658 calling $$dyncall with a pc-relative branch.
18659
18660 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
18661
18662 * doc/install.texi (Binaries): Mention OpenPKG.
18663
18664 2004-07-09 Diego Novillo <dnovillo@redhat.com>
18665
18666 Fix PR tree-optimization/15555
18667 * tree-dfa.c (dump_variable): If the variable is a pointer
18668 SSA_NAME, also dump its points-to information.
18669 * tree-flow.h (struct ptr_info_def): Add field
18670 is_dereferenced.
18671 (dump_points_to_info_for): Declare.
18672 (debug_points_to_info_for): Declare.
18673 * tree-optimize.c (init_tree_optimization_passes): Add a
18674 second alias analysis pass after DOM2.
18675 Move pass_del_pta to a later spot.
18676 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
18677 create a name tags when we find a dereferenced pointer. Just
18678 mark the pointer dereferenced.
18679 (collect_points_to_info_for): Move code to clear points-to
18680 information to create_name_tags.
18681 (create_name_tags): New function.
18682 (compute_flow_sensitive_aliasing): Call it.
18683 (setup_pointers_and_addressables): Mark type tags for renaming
18684 here instead of ...
18685 (create_memory_tag): ... here.
18686 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
18687 (dump_points_to_info_for): Declare extern.
18688 (debug_points_to_info_for): New function.
18689
18690 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
18691
18692 * config/arc/arc.md: Switch to DFA-based scheduler description.
18693 * config/arc/arc.c: Switch to DFA-based scheduler description.
18694
18695 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
18696
18697 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
18698 pointer.
18699
18700 2004-07-09 Richard Henderson <rth@redhat.com>
18701
18702 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
18703 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18704 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
18705 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
18706
18707 * config/v850/v850-protos.h (v850_va_arg): Remove.
18708 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18709 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
18710 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
18711 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
18712 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
18713
18714 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
18715
18716 PR target/12133
18717 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
18718 and DImode to use +/-4k offset.
18719
18720 2004-07-09 Richard Henderson <rth@redhat.com>
18721
18722 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
18723 Remove.
18724 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18725 (xstormy16_gimplify_va_arg_expr): Rewrite from
18726 xstormy16_expand_builtin_va_arg.
18727 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
18728
18729 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
18730 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
18731
18732 * config/sh/sh-protos.h (sh_va_arg): Remove.
18733 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18734 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
18735 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
18736
18737 * config/pa/pa-protos.h (hppa_va_arg): Remove.
18738 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18739 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
18740 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
18741
18742 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
18743 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18744 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
18745 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
18746
18747 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
18748
18749 * config/sparc/sparc.md (return): Rewrite length formula.
18750 * config/sparc/sparc.c (output_return): Pass 1 as 5th
18751 argument to final_scan_insn when in a delay slot.
18752 (output_sibcall): Likewise.
18753
18754 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
18755
18756 * arm.c (arm_cpp_interwork): New variable.
18757 (arm_override_options): Set it if TARGET_INTERWORK was on the command
18758 line.
18759 * arm.h (arm_cpp_interwork): Declare it.
18760 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
18761 __THUMB_INTERWORK__ in the preprocessor.
18762
18763 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
18764
18765 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
18766
18767 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
18768
18769 PR target/16416
18770 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
18771 Override default settings to account for -m32 and -m64.
18772
18773 2004-07-08 Randolph Chung <tausq@debian.org>
18774
18775 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
18776
18777 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
18778
18779 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
18780 before comparing it as such.
18781
18782 2004-07-08 Richard Henderson <rth@redhat.com>
18783
18784 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
18785 temporary. Use bit arithmetic to align.
18786
18787 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
18788
18789 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
18790 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
18791 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
18792 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
18793 add_labels_and_missing_jumps, find_jump_block,
18794 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
18795 Likewise.
18796 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
18797 link_btr_uses, move_btr_def): Likewise.
18798 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
18799 expand_builtin_expect_jump): Likewise.
18800 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
18801 * calls.c (expand_call, emit_library_call_value_1): Likewise.
18802 * cfganal.c (forwarder_block_p): Likewise.
18803 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
18804 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
18805 find_bb_boundaries): Likewise.
18806 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
18807 merge_blocks_move_predecessor_nojumps,
18808 merge_blocks_move_successor_nojumps, insns_match_p,
18809 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
18810 try_optimize_cfg): Likewise.
18811 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
18812 * cfglayout.c (skip_insns_after_block, label_for_bb,
18813 record_effective_endpoints, insn_locators_initialize,
18814 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
18815 * cfgmainloop.c (create_loop_notes): Likewise.
18816 * cfgrtl.c (delete_insn, delete_insn_chain,
18817 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
18818 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
18819 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
18820 redirect_branch_edge, force_nonfallthru_and_redirect,
18821 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
18822 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
18823 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
18824 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
18825 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
18826 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
18827 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
18828 * combine.c (combine_instructions, can_combine_p, try_combine,
18829 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
18830 distribute_notes, distribute_links, insn_cuid): Likewise.
18831 * cse.c (fold_rtx, cse_insn, cse_around_loop,
18832 invalidate_skipped_block, cse_set_around_loop,
18833 cse_end_of_basic_block, cse_main, cse_basic_block,
18834 cse_condition_code_reg): Likewise.
18835 * cselib.c (cselib_process_insn): Likewise.
18836 * ddg.c (create_ddg): Likewise.
18837 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
18838 Likewise.
18839 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
18840 gen_label_die, dwarf2out_var_location): Likewise.
18841 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
18842 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
18843 last_call_insn, active_insn_p, next_label, prev_label,
18844 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
18845 add_insn_before, remove_insn, add_function_usage_to,
18846 reorder_insns, find_line_note, remove_unnecessary_notes,
18847 emit_insn_after_1, classify_insn): Likewise.
18848 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
18849 connect_post_landing_pads, sjlj_mark_call_sites,
18850 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
18851 can_throw_internal, can_throw_external, set_nothrow_function_flags,
18852 convert_to_eh_region_ranges): Likewise.
18853 * explow.c (optimize_save_area_alloca): Likewise.
18854 * expr.c (expand_expr_real): Likewise.
18855 * final.c (insn_current_reference_address, compute_alignments,
18856 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
18857 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
18858 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
18859 propagate_block_delete_insn, propagate_one_insn,
18860 init_propagate_block_info, propagate_block, libcall_dead_p,
18861 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
18862 Likewise.
18863 * function.c (instantiate_virtual_regs, reorder_blocks_1,
18864 expand_function_start, expand_function_end, contains,
18865 thread_prologue_and_epilogue_insns,
18866 reposition_prologue_and_epilogue_notes): Likewise.
18867 * gcse.c (constprop_register, bypass_conditional_jumps,
18868 insert_insn_end_bb, gcse_after_reload): Likewise.
18869 * genemit.c (gen_expand, gen_split): Likewise.
18870 * genpeep.c (gen_peephole, main): Likewise.
18871 * global.c (build_insn_chain): Likewise.
18872 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
18873 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
18874 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
18875 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
18876 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
18877 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
18878 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
18879 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
18880 dead_or_predicable): Likewise.
18881 * integrate.c (try_constants): Likewise.
18882 * jump.c (rebuild_jump_labels, cleanup_barriers,
18883 purge_line_number_notes, init_label_info, mark_all_labels,
18884 squeeze_notes, get_label_before, get_label_after,
18885 reversed_comparison_code_parts, simplejump_p, pc_set,
18886 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
18887 delete_barrier, delete_prior_computation, delete_computation,
18888 delete_related_insns, delete_for_peephole, redirect_jump):
18889 Likewise.
18890 * lcm.c (optimize_mode_switching): Likewise.
18891 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
18892 Likewise.
18893 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
18894 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
18895 * loop-iv.c (simplify_using_assignment): Likewise.
18896 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
18897 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
18898 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
18899 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
18900 check_insn_for_givs, check_final_value, update_giv_derive,
18901 basic_induction_var, product_cheap_p, check_dbra_loop,
18902 loop_insn_first_p, last_use_this_basic_block,
18903 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
18904 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
18905 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
18906 sms_schedule_by_order): Likewise.
18907 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
18908 * postreload.c (reload_cse_simplify_operands, reload_combine,
18909 reload_cse_move2add): Likewise.
18910 * predict.c (can_predict_insn_p, estimate_probability,
18911 expected_value_to_br_prob, process_note_predictions): Likewise.
18912 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
18913 * profile.c (branch_prob): Likewise.
18914 * ra-build.c (live_out_1, livethrough_conflicts_bb,
18915 detect_webs_set_in_cond_jump): Likewise.
18916 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
18917 ra_print_rtl_with_bb): Likewise.
18918 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
18919 * recog.c (next_insn_tests_no_inequality, find_single_use,
18920 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
18921 * reg-stack.c (next_flags_user, record_label_references,
18922 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
18923 compensate_edge, convert_regs_1): Likewise.
18924 * regclass.c (scan_one_insn): Likewise.
18925 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
18926 regmove_optimize, fixup_match_1, single_set_for_csa,
18927 combine_stack_adjustments_for_block): Likewise.
18928 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
18929 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
18930 find_equiv_reg): Likewise.
18931 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
18932 reload_as_needed, emit_input_reload_insns, do_output_reload,
18933 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
18934 Likewise.
18935 * reorg.c (find_end_label, emit_delay_sequence,
18936 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
18937 get_jump_flags, rare_destination, mostly_true_jump,
18938 try_merge_delay_insns, redundant_insn, own_thread_p,
18939 fill_simple_delay_slots, fill_slots_from_thread,
18940 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
18941 dbr_schedule): Likewise.
18942 * resource.c (find_basic_block, next_insn_no_annul,
18943 find_dead_or_set_registers, mark_target_live_regs): Likewise.
18944 * rtl.h (RTX_PREV): Likewise.
18945 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
18946 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
18947 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
18948 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
18949 tablejump_p, computed_jump_p, insns_safe_to_move_p,
18950 find_first_parameter_load, can_hoist_insn_p): Likewise.
18951 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
18952 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
18953 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
18954 schedule_ebbs): Likewise.
18955 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
18956 is_conditionally_protected, can_schedule_ready_p,
18957 add_branch_dependences, debug_dependencies): Likewise.
18958 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
18959 Likewise.
18960 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
18961 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
18962 set_dominates_use, ujump_to_loop_cont): Likewise.
18963 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
18964 * varasm.c (output_constant_pool_1): Likewise.
18965
18966 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18967
18968 * tree-scalar-evolution.c: New file.
18969 * tree-scalar-evolution.h: New file.
18970 * tree-ssa-loop-niter.c: New file.
18971 * Makefile.in (SCEV_H): New.
18972 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
18973 * cfgloop.h (struct loop): Add bounds field.
18974 * tree-flow.h (struct tree_niter_desc): New type.
18975 (number_of_iterations_cond, number_of_iterations_exit,
18976 loop_niter_by_eval, find_loop_niter_by_eval,
18977 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
18978 free_numbers_of_iterations_estimates): Declare.
18979 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
18980 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
18981 * doc/invoke.texi (max-iterations-to-track): Document.
18982
18983 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
18984
18985 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
18986 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
18987 (MODE_AFTER): Add cast appropriately.
18988 * config/sh/sh.md (movdi splitter): Likewise.
18989 (casesi_worker_2): Add const qualifier appropriately.
18990 (eh_return): Remove unused variable.
18991 (insv): Initialize v;
18992
18993 2004-07-08 Richard Henderson <rth@redhat.com>
18994
18995 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
18996 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
18997 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
18998 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
18999 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
19000
19001 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
19002 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19003 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
19004 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
19005
19006 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
19007 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19008 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
19009 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
19010
19011 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
19012 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19013 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
19014 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
19015
19016 * config/i860/i860-protos.h (i860_va_arg): Remove.
19017 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19018 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
19019 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
19020
19021 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
19022
19023 * system.h: Prototype getpagesize if missing.
19024 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
19025 * configure: Regenerate.
19026 * config.in: Regenerate.
19027
19028 2004-07-08 Richard Henderson <rth@redhat.com>
19029
19030 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
19031 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19032 (fr30_gimplify_va_arg_expr): New.
19033 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
19034 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
19035
19036 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
19037
19038 PR target/16414
19039 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
19040 of asm_noperands result.
19041
19042 2004-07-08 Richard Henderson <rth@redhat.com>
19043
19044 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
19045 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19046 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
19047 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
19048
19049 2004-07-08 Richard Henderson <rth@redhat.com>
19050
19051 * builtins.c (ind_gimplify_va_arg_expr): New.
19052 * tree.h (ind_gimplify_va_arg_expr): Declare.
19053 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
19054
19055 2004-07-08 Jan Beulich <jbeulich@novell.com>
19056
19057 * expmed.c (extract_bit_field): Correct condition to use vec_extract
19058 patterns also on vector elements other than the first one.
19059 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
19060 break statements.
19061
19062 2004-07-08 Geoffrey Keating <geoffk@apple.com>
19063
19064 * config/rs6000/darwin-ldouble.c: Correct reference
19065 to the Linnainmaa paper.
19066
19067 2004-07-08 Richard Henderson <rth@redhat.com>
19068
19069 * config/arc/arc-protos.h (arc_va_arg): Remove.
19070 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19071 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
19072 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
19073
19074 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
19075 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
19076 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
19077 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
19078
19079 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19080
19081 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
19082
19083 2004-07-08 Zack Weinberg <zack@codesourcery.com>
19084
19085 * c-decl.c (static_ctors, static_dtors): Make static.
19086 (pop_file_scope): Call c_common_write_pch and
19087 cgraph_finalize_compilation_unit here.
19088 (build_cdtor): Moved here from c-objc-common.c; simplify.
19089 (c_write_global_declarations_1): Clarify comment.
19090 (c_write_global_declarations): Close the external scope before
19091 doing anything else. Call build_cdtor, cgraph_optimize, and
19092 mudflap_finish_file here.
19093 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
19094 Clarify comment.
19095 * c-objc-common.c: No need to include cgraph.h.
19096 (build_cdtor): Moved to c-decl.c.
19097 (c_objc_common_finish_file): Delete.
19098 * c-tree.h: Update to match.
19099 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
19100 (generate_static_references): Set TREE_USED before calling finish_decl.
19101 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
19102 on the static_instances_decl.
19103
19104 2004-07-08 Zack Weinberg <zack@codesourcery.com>
19105
19106 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
19107 decls when there is only one input translation unit.
19108 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
19109 change of 2004-07-05; do not treat declarations with
19110 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
19111 * opts.c (cur_in_fname): Delete.
19112 * opts.h: Likewise.
19113 * tree.c: Revert changes of 2004-07-05; no special treatment
19114 for TRANSLATION_UNIT_DECLs.
19115 * Makefile.in (tree.o): Update dependencies.
19116
19117 2004-07-08 Roger Sayle <roger@eyesopen.com>
19118
19119 * builtins.c (fold_builtin_strcpy): Merge functionality from
19120 simplify_builtin_strcpy. Add additional len argument. No longer
19121 static. Remove function prototype.
19122 (fold_builtin_strncpy): Likewise integrate functionality from
19123 simplify_builtin_strncpy. Add additional slen argument. No
19124 longer static. Remove function prototype.
19125 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
19126 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
19127 types of "ignore" and "unlocked" parameters to bool.
19128 (fold_builtin_1): Add additional ignore argument. Call renamed
19129 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
19130 builtins. Update arguments to fold_builtin_strncpy and
19131 fold_builtin_strcpy. Add function prototype.
19132 (fold_builtin): Add additional Boolean ignore argument to pass
19133 to fold_builtin_1.
19134 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
19135 and fold_builtin_strncpy instead of simplify_builtin_fputs,
19136 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
19137
19138 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
19139 simplify_builtin_strncpy): Delete function prototypes.
19140 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
19141 fold_builtin_strncpy): Add function prototypes here.
19142 (fold_builtin): Update function prototype with new "bool ignore".
19143
19144 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
19145 (ccp_fold_builtin): Update call to fold_builtin. Call
19146 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
19147 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
19148 simplify_builtin_strncpy respectively.
19149 * fold-const.c (fold): Update call to fold_builtin.
19150
19151 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
19152
19153 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
19154 to strcpy.
19155
19156 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
19157 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
19158 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
19159 * calls.c: Remove ifdefs of macros above.
19160 * functions.c: Likewise.
19161 * expr.c: Likewise.
19162
19163 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
19164
19165 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
19166 (arch attribute): Delete.
19167 (current_function_calls_alloca attribute): Rename into calls_alloca.
19168 (calls_eh_return): New attribute.
19169 (leaf_function): Likewise.
19170 (length attribute): Fix formula for sibcalls.
19171 (return insn): Correctly compute the 'length' attribute.
19172 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
19173
19174 2004-07-08 Richard Henderson <rth@redhat.com>
19175
19176 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
19177 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
19178 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
19179 * tree-eh.c (lower_eh_constructs_1): Likewise.
19180 * tree-sra.c (sra_walk_modify_expr): Likewise.
19181 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
19182 (eliminate_unnecessary_stmts): Likewise.
19183 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
19184 * tree-tailcall.c (optimize_tail_call): Likewise.
19185 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
19186
19187 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
19188 Jakub Jelinek <jakub@redhat.com>
19189
19190 * config/i386/i386.c (override_options): Enable
19191 SSE prefetches with -mtune, as long as we are
19192 compiling for i686 or higher. All i686 processors
19193 accept SSE prefetches as NOPS, some i586's don't.
19194
19195 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
19196
19197 PR target/10567
19198 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
19199
19200 2004-07-08 Diego Novillo <dnovillo@redhat.com>
19201
19202 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
19203 the handling of clobbering ASM_EXPRs.
19204
19205 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
19206
19207 PR target/16430
19208 * config/sparc/sparc.c (function_value): In 64-bit mode,
19209 return the aggregates larger than 16 bytes like unions.
19210
19211 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
19212
19213 PR target/16199
19214 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
19215 'temp' is zero, generate new pseudos as needed and emit the
19216 sequence of insns in single-assignment form. Resync comments
19217 with code.
19218 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
19219 function before reload.
19220
19221 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
19222
19223 * vec.c (vec_assert_fail): Remove duplicate 'function'.
19224
19225 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
19226
19227 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
19228 Allocation is signed.
19229 (VEC_reserve): Return flag, allocation is signed.
19230
19231 2004-07-08 Richard Henderson <rth@redhat.com>
19232
19233 * tree-ssa-ccp.c (fold_stmt): Get type directly from
19234 OBJ_TYPE_REF_OBJECT.
19235
19236 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
19237 Neil Booth <neil@daikokuya.co.uk>
19238
19239 PR c/2511
19240 PR c/3325
19241 * c-decl.c (finish_struct): Ensure bit-fields are given the
19242 correct type.
19243 * c-common.c (c_common_signed_or_unsigned_type): For C, require
19244 the precision to match as well as the mode.
19245 * expr.c (reduce_to_bit_field_precision): New function.
19246 (expand_expr_real_1): Reduce expressions of bit-field type to
19247 proper precision.
19248 * langhooks.h (reduce_bit_field_operations): New hook.
19249 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
19250 Define.
19251 * c-lang.c, objc/objc-lang.c
19252 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
19253 * objc/objc-act.c (check_ivars): Convert types to bit-field types
19254 before checking.
19255 * tree.c (build_nonstandard_integer_type): New function.
19256 * tree.h (build_nonstandard_integer_type): New prototype.
19257 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
19258 conversions between integer and boolean types as useless.
19259
19260 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
19261
19262 * c-common.c (c_common_nodes_and_builtins): Do not
19263 create __builtin_ptrdiff_t and __builtin_size_t.
19264
19265 2004-07-08 Andrew Pinski <apinski@apple.com>
19266
19267 * Makefile.in (libbackend.o): Add -combine to the gcc
19268 command line.
19269
19270 2004-07-08 Nick Clifton <nickc@redhat.com>
19271
19272 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
19273 Set to -Os.
19274
19275 2004-07-08 Richard Henderson <rth@redhat.com>
19276
19277 * except.c (expand_eh_region_start, expand_eh_region_end,
19278 expand_eh_handler, expand_eh_region_end_cleanup,
19279 expand_start_all_catch, expand_start_catch, expand_end_catch,
19280 expand_end_all_catch, expand_eh_region_end_allowed,
19281 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
19282 expand_eh_region_end_fixup): Remove.
19283 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
19284 cleanups, outer_cleanups, label_chain, exception_region.
19285 (struct goto_fixup): Remove stack_level, cleanup_list_list.
19286 (struct label_chain): Remove.
19287 (struct stmt_status): Remove x_stack_block_stack.
19288 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
19289 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
19290 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
19291 end_cleanup_deferral, last_cleanup_this_contour,
19292 containing_blocks_have_cleanups_or_stack_level,
19293 any_pending_cleanups): Remove.
19294 (expand_null_return_1): Take no arguments.
19295 (expand_label, expand_naked_return, expand_return,
19296 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
19297 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
19298 expand_end_case_type): Don't use any of them.
19299 * calls.c (expand_call): Likewise.
19300 * dojump.c (do_jump): Likewise.
19301 * function.c (expand_function_end): Likewise.
19302 * expr.c (store_expr, expand_expr_real_1): Likewise.
19303 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
19304 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
19305 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
19306 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
19307 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
19308 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
19309 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
19310 for WITH_CLEANUP_EXPR.
19311 (gimple_push_cleanup): Likewise.
19312 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
19313 * print-tree.c (print_node): Likewise.
19314 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
19315 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
19316 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
19317 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
19318 (GOTO_SUBROUTINE_EXPR): Remove.
19319 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
19320 (DECL_TOO_LATE): Remove.
19321 * except.h, tree.h: Update decls.
19322
19323 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
19324
19325 * explow.c (optimize_save_area_alloca): Do not accept parameters.
19326 * passes.c (rest_of_handle_final): Handle symout.
19327 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
19328 Push timevar here.
19329 (rest_of_handle_sched): Break out SMS. Remove ifs for
19330 flag_schedule_insns and flag_modulo_sched.
19331 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
19332 collect at the end.
19333 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
19334 (rest_of_handle_partition_blocks, rest_of_handle_sms,
19335 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
19336 rest_of_handle_mode_switching, rest_of_handle_jump,
19337 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
19338 rest_of_handle_jump2, rest_of_handle_postreload,
19339 rest_of_handle_flow2, rest_of_clean_state,
19340 rest_of_handle_shorten_branches,
19341 rest_of_handle_prologue_epilogue,
19342 rest_of_handle_branch_target_load_optimize): New.
19343 (rest_of_compilation): Call the above. Remove ggc_collect
19344 calls moved to rest_of_handle_*.
19345 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
19346
19347 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
19348 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
19349 * except.h (set_nothrow_function_flags): Update comment.
19350 * function.c (current_function_nothrow): Remove.
19351 * output.h (current_function_nothrow): Remove.
19352 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
19353 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
19354
19355 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
19356
19357 PR bootstrap/16326
19358 * reorg.c: Revert 2004-06-30 change.
19359 (find_end_label): If HAVE_epilogue and !HAVE_return,
19360 return 0 instead of creating a label at the end of the insn chain.
19361 (optimize_skip): Account for the failure mode of find_end_label.
19362 (fill_simple_delay_slots): Likewise.
19363 (fill_slots_from_thread): Likewise.
19364 (relax_delay_slots): Likewise.
19365
19366 2004-07-08 Diego Novillo <dnovillo@redhat.com>
19367
19368 * tree-flow.h (addressable_vars): Declare.
19369 * tree-ssa-alias.c (addressable_vars): Define.
19370 (setup_pointers_and_addressables): Add addressable variables
19371 to addressable_vars.
19372 * tree-ssa-operands.c (get_stmt_operands): Move
19373 handling of ASM_EXPRs ...
19374 (get_asm_expr_operands): ... here.
19375 When the ASM_EXPR clobbers memory, also clobber addressable
19376 variables.
19377 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
19378 (delete_tree_ssa): Reset addressable_vars.
19379
19380 2004-07-07 Jan Beulich <jbeulich@novell.com>
19381 Richard Henderson <rth@redhat.com>
19382
19383 * varasm.c (assemble_variable): Use assemble_zeros for
19384 zero-initialized variables.
19385 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
19386 for SECCAT_BSS and SECCAT_TBSS.
19387
19388 2004-07-07 Jan Beulich <jbeulich@novell.com>
19389
19390 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
19391
19392 * expmed.c (emit_store_flag): Also special-case double-word
19393 (in-)equality comparison against -1.
19394
19395 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
19396 passing arguments the containers for which are registers.
19397
19398 * calls.c (emit_library_call_value_1): Use mode of function parameter
19399 rather than that of argument since constants have none.
19400
19401 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
19402
19403 Introduce H8SX support.
19404 * expr.c (expand_strcpy): Renamed and moved to...
19405 * builtins.c (expand_movstr): ... here. Tweak.
19406 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
19407 computed or has side effects.
19408 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
19409 unused, or if mempcpy fails. Adjust the return value in the
19410 latter case. Use movstr if everything else fails.
19411 * doc/md.texi (movstr): Document.
19412 (movmemM, clrmemM): Fix explanation of memory block operands.
19413 * config/h8300/h8300.md (stpcpy): Renamed to...
19414 (movstr): ... this. Adjust.
19415 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
19416 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
19417 movmem* and clrstr* to clrmem*.
19418 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
19419 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
19420 GENERAL_REGS, always.
19421 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
19422 getting the stack pointer as addr.
19423 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
19424 from general_operand_dst.
19425 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
19426 variant of...
19427 (movmd_internal): ... this. Add modes to operands. Disparage `D'
19428 instead of requiring it to match only before reload.
19429 (stpcpy_internal_normal): New, normal-mode variant of...
19430 (stpcpy_internal): ... this. Add modes to operands. Disparage
19431 `D' instead of requiring it to match only before reload.
19432 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
19433 mode argument.
19434 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
19435 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
19436 h8300_get_index.
19437 * config/h8300/h8300.md (attr type): Add call.
19438 (attr can_delay): If type is call, set it no.
19439 (call, call_value): Set type to call.
19440 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
19441 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
19442 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
19443 * tree.c (get_narrower): Don't narrow integral types into
19444 non-integral types.
19445 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
19446 frame_size *before* the first use.
19447 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
19448 on input.
19449 (peephole2): Don't widen instructions that push SP. Move
19450 decrement of SP to the end of all stm-generating peepholes.
19451 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
19452 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
19453 and OR to set it to all ones.
19454 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
19455 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
19456 (call, call_value): Set can_delay to "no".
19457 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
19458 * config/h8300/h8300.md (extzv): Make subreg check more robust.
19459 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
19460 * config/h8300/h8300.md (*brabit): Remove.
19461 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
19462 zero_extract. Use bit_memory_operand as the predicate for
19463 operand 1 and 'WU' as the constraint. Check the difference
19464 between the base length and the final one when deciding which
19465 type of branch to use.
19466 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
19467 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
19468 Use convert_move to extend the result for TARGET_H8300SX. Check
19469 for QImode memory references. Optimize the case where the
19470 destination is a paradoxical subreg.
19471 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
19472 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
19473 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
19474 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
19475 * config/h8300/h8300.md: Include mova.md
19476 (length_table): Add mova and mova_zero.
19477 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
19478 after all constant addresses for '%R', '%X', '%T' and '%S'.
19479 (h8300_mova_length): New function.
19480 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
19481 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
19482 dependencies for s-config, etc.
19483 * config/h8300/gemova.sh: New file.
19484 * config/h8300/mova.md: Generated.
19485 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
19486 * config/h8300/h8300.c (h8300_bitfield_length): New.
19487 (nibble_operand): Adjust.
19488 (h8300_binary_length): Handle conditional binary op.
19489 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
19490 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
19491 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
19492 and P#<0, unused so far. W and Y are now prefixes to multi-letter
19493 constraints. WU is introduced as a variant of U that requires a
19494 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
19495 * config/h8300/h8300.md (attr type): Added bitbranch.
19496 (attr length_table): Added bitfield and bitbranch.
19497 (attr length): Compute bitbranch length.
19498 (andqi): Separate pattern for H8300SX. Use bfld for loading the
19499 least-significant bit of a byte.
19500 (brabit, brabc, brabs): New.
19501 (insv, extzv): Emit bfst and bfld on H8300SX.
19502 (bfld, bfst, seq, sne): New.
19503 (bstzhireg, cmpstz, bstz, bistz): New.
19504 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
19505 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
19506 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
19507 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
19508 (h8sx_unary_memory_operator): New function.
19509 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
19510 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
19511 * config/h8300/h8300.md: Add peepholes to combine reloads and
19512 arithmetic insns.
19513 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
19514 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
19515 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
19516 (and?i, ior?i, xor?i): Likewise.
19517 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
19518 * config/h8300/h8300.c: Move enums and prototypes to head of file.
19519 Various whitespace fixes.
19520 (h8300_constant_length): New function, split out from...
19521 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
19522 (h8300_classify_operand): Use IN_RANGE.
19523 (h8300_classify_operand): Use h8300_constant_length.
19524 (h8300_short_move_mem_p): Tighten size check.
19525 (h8sx_mergeable_memrefs_p): Tighten equality check.
19526 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
19527 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
19528 for -msx.
19529 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
19530 * config/h8300/crtn.asm: Likewise.
19531 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
19532 if __H8300SX__ is defined.
19533 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
19534 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
19535 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
19536 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
19537 addresses as mode-dependent.
19538 * config/h8300/h8300.c (print_operand_address): Update call to
19539 h8300_get_index.
19540 (h8300_get_index): Take a mode argument. Rework to fix an
19541 earlier misunderstanding.
19542 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
19543 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
19544 into a register if TARGET_H8300SX.
19545 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
19546 TARGET_H8300SX. Also disable related define_splits.
19547 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
19548 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
19549 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
19550 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
19551 * config/h8300/h8300.h (OK_FOR_Z): New macro.
19552 (EXTRA_CONSTRAINT_STR): Check it.
19553 * config/h8300/h8300.c (h8300_classify_operand): Accept null
19554 class arguments.
19555 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
19556 * config/h8300/h8300.md (length_table): Add mov_imm4.
19557 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
19558 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
19559 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
19560 be a label.
19561 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
19562 * config/h8300/h8300.c (h8300_reorg): New function.
19563 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19564 * config/h8300/h8300.md (length): Subtract the length of the
19565 delay slot from (pc) when checking the range of forward branches.
19566 (delay_slot, can_delay): New attributes.
19567 (define_delay): Add bra/s handling.
19568 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
19569 (jump): Add delayed-branch handling.
19570 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
19571 * expr.c (expand_strcpy): New function.
19572 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
19573 (expand_builtin_stpcpy): Likewise.
19574 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
19575 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
19576 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
19577 handling to improve register allocation for -fno-omit-frame-pointer.
19578 (h8sx_split_movmd): Delete, moving er6 handling into...
19579 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
19580 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
19581 (movmd): Add calls to copy_rtx.
19582 (movmd_internal): In the second alternative, allow the initial and
19583 final destination registers to be different . Update the splitter
19584 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
19585 instead of h8sx_split_movmd.
19586 (stpcpy, movsd): New expanders.
19587 (movsd_internal): New define_insn.
19588 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
19589 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
19590 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
19591 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
19592 and DESTINATION_REGS.
19593 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
19594 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
19595 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
19596 (h8300_move_ratio): Declare.
19597 (MOVE_RATIO): Use it.
19598 * config/h8300/h8300.c (h8300_move_ratio): New variable.
19599 (h8300_init_once): Initialize it.
19600 (h8300_reg_class_from_letter): New function.
19601 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
19602 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
19603 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
19604 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
19605 (movstrsi, movmd): New expanders.
19606 (movmd_internal): New insn.
19607 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
19608 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
19609 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
19610 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
19611 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
19612 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
19613 * config/h8300/h8300.c (nibble_operand): Fix warning.
19614 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
19615 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
19616 (movsf_h8300h): Disable for TARGET_H8300SX.
19617 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
19618 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
19619 h8300_stm_parallel and h8300_return_parallel.
19620 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
19621 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
19622 h8300_stm_parallel, h8300_return_parallel): New functions.
19623 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
19624 if TARGET_H8300SX. Use h8300_push_pop.
19625 (h8300_expand_epilogue): Likewise. Try to merge the return insn
19626 and final pop when generating h8sx code. Always emit some form
19627 of return insn.
19628 * config/h8300/h8300.md: Don't enforce register alignment in
19629 stm peepholes if TARGET_H8300SX.
19630 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
19631 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
19632 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
19633 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
19634 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
19635 (MULTILIB_DIRNAMES): Add a directory for it.
19636 (MULTILIB_MATCHES): Delete.
19637 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
19638 * final.c (walk_alter_subreg): Handle addresses with subregs
19639 inside a ZERO_EXTEND or AND.
19640 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
19641 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
19642 if TARGET_H8300SX.
19643 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
19644 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
19645 @(dd,Rn.w) and @(dd,ERn.L).
19646 (h8300_displacement_size): Take the whole address as argument.
19647 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
19648 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
19649 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
19650 (h8sx_mergeable_memrefs_p): Declare.
19651 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
19652 (HAVE_PRE_INCREMENT): Likewise.
19653 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
19654 addresses for TARGET_H8300SX,
19655 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
19656 and POST_DEC.
19657 (movb_length_table, movl_length_table): New tables.
19658 (movw_length_table): Define to movb_length_table.
19659 (h8300_displacement_size): New, split out from...
19660 (h8300_classify_address): ...here. Handle pre/post inc/dec.
19661 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
19662 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
19663 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
19664 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
19665 (compute_plussi_length, compute_plussi_cc): Update accordingly.
19666 (h8sx_unary_shift_operator): Get the mode from the operator.
19667 (binary_shift_operator): Likewise.
19668 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
19669 a memory reference, check whether the reference is offsettable.
19670 (length_table): Add movb, movw and movl.
19671 (movqi): Add new h8sx pattern. Don't force one operand to be a
19672 register when generating h8sx code.
19673 (movhi, movsi, movsf): Likewise.
19674 (movstrictqi): Use the length_table attribute.
19675 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
19676 (addqi3): Split into a define_expand and define_insn. Don't accept
19677 memory operands in the expander. Use h8300_operands_match_p to
19678 check for matching operands in the define_insn.
19679 (subqi3, negqi2, one_cmplqi2): Likewise.
19680 (add[hs]i3): Don't accept memory operands in the expander. Likewise
19681 in any patterns that are unused in h8sx code. In the h8sx patterns,
19682 use h8300_operands_match_p to check whether operands match.
19683 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
19684 one_cmpl[hs]i3): Likewise.
19685 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
19686 in the expander.
19687 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
19688 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
19689 (h8300_insn_length_from_table): Add a second parameter.
19690 (output_h8sx_shift): Declare.
19691 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
19692 (EXTRA_CONSTRAINT): Replace with...
19693 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
19694 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
19695 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
19696 and h8sx_binary_shift_operator.
19697 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
19698 for TARGET_H8300SX.
19699 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
19700 (bit_memory_operand, fix_bit_operand): Likewise.
19701 (h8300_length_table_for_insn): Remove.
19702 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
19703 instructions.
19704 (h8300_short_immediate_length, h8300_binary_length): New functions.
19705 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
19706 (output_plussi): Use sub to add negative constants.
19707 (compute_plussi_length): Adjust accordingly.
19708 (h8sx_single_shift_type): New enum.
19709 (h8sx_single_shift, h8sx_unary_shift_operator,
19710 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
19711 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
19712 single h8sx instruction. Return false in this case.
19713 * config/h8300/h8300.md (length_table): Add short_immediate.
19714 (length): Pass the operand array to h8300_insn_length_from_table.
19715 (adjust_length): Assume "no" for insns with a length_table attribute.
19716 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
19717 (*addhi3_h8300hs): Don't use for h8sx.
19718 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
19719 and sub.w #xx:3.
19720 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
19721 1's predicate to nonimmediate_operand. Only skip default expansion
19722 if expand_a_shift or expand_a_rotate returns true. Add new patterns
19723 for single h8sx shift instructions.
19724 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
19725 * config/h8300/h8300.c (nibble_operand): Split out of...
19726 (reg_or_nibble_operand): ... this.
19727 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
19728 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
19729 umulhisi3): Introduce expand, and introduce separate insns for
19730 sign- or zero-extended REG and already-extended CONST_INT.
19731 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
19732 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
19733 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
19734 (subhi3): Likewise. Don't accept immediates for operand 1.
19735 Remove the early clobber from second alternative of the h8300s pattern.
19736 (subsi3): Generalize for h8sx. Force operand 2 into a register
19737 on plain h8300 targets.
19738 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
19739 (subsi3_h8300h): Generalize for h8sx.
19740 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
19741 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
19742 * config/h8300/h8300.c (reg_or_nibble_operand): New.
19743 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
19744 (TARGET_H8300SXMUL): New.
19745 (CONST_OK_FOR_P): New.
19746 (CONST_OK_FOR_LETTER_P): Adjust.
19747 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
19748 umulhisi3): Accept 4-bit immediate on H8SX.
19749 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
19750 (udivsi3, divhi3, udivsi3, divsi3): New.
19751 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
19752 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
19753 * config/h8300/h8300.h (OK_FOR_Q): New macro.
19754 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
19755 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
19756 Add ADDRESSOF to the bit_operand entry.
19757 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
19758 (h8300_src_operand): Likewise.
19759 (bit_operand): Check nonimmediate_operand rather than general_operand.
19760 Accept any nonimmediate_operand in h8sx code.
19761 (h8300_and_costs): Initialize operands[1].
19762 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
19763 (h8300_operand_class): New enum.
19764 (h8300_length_table): New typedef.
19765 (addb_length_table, addw_length_table, addl_length_table,
19766 logicl_length_table): New tables.
19767 (logicb_length_table, logicw_length_table): New macros.
19768 (h8300_classify_operand, h8300_length_from_table,
19769 h8300_length_table_for_insn, h8300_unary_length,
19770 h8300_insn_length_from_table): New functions.
19771 (output_plussi): Only use adds and subs for register destinations.
19772 Disable redundant clause.
19773 (compute_plussi_cc): Likewise.
19774 (compute_plussi_length): Likewise. Use h8300_length_from_table
19775 to work out the length of an insn.
19776 (output_logical_op): Only use narrower immediate instructions
19777 if the destination is a register.
19778 (compute_logical_op_cc): Likewise.
19779 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
19780 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
19781 * config/h8300/h8300.md (length_table): New attribute.
19782 (length): When an instruction has a length_table attribute, use
19783 h8300_insn_length_from_table to calculate its default length.
19784 (cmpqi): Use h8300_dst_operand for the first operand and
19785 h8300_src_operand for the second.
19786 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
19787 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
19788 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
19789 iorsi3, xorhi3, xorsi3): Likewise.
19790 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
19791 so that it allows any combination of operands for TARGET_H8300SX.
19792 (iorqi3, xorqi3): Likewise.
19793 (cmpqi): Use the length_table attribute.
19794 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
19795 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
19796 (cmpqi): Add 'Q' constraint.
19797 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
19798 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
19799 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
19800 * config/h8300/h8300.h (MASK_H8300SX): New macro.
19801 (TARGET_H8300S): True for both -ms and -msx.
19802 (TARGET_H8300SX): New macro.
19803 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
19804 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
19805 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
19806 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
19807 [Temporary change.]
19808 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
19809 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
19810 16-bit pointers and 32-bit ints.
19811 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
19812 CONST_DOUBLE with mode no wider than SImode.
19813 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
19814 output operand.
19815 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
19816 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
19817 or SUBREG thereof.
19818 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
19819 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
19820 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
19821
19822 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
19823
19824 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
19825
19826 2004-07-07 Per Bothner <per@bothner.com>
19827
19828 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
19829
19830 2004-07-07 Mike Stump <mrs@apple.com>
19831
19832 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
19833 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
19834 (machopic_finish): Likewise.
19835
19836 2004-07-07 Richard Henderson <rth@redhat.com>
19837
19838 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
19839 through any value-preserving cast.
19840
19841 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
19842
19843 * function.c (assign_parm_find_data_types): Call
19844 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
19845
19846 2004-07-07 Steven Bosscher <stevenb@suse.de>
19847
19848 * tree-cfg.c (group_case_labels): Remove case labels that have
19849 the same target as the default case.
19850
19851 2004-07-07 Steven Bosscher <stevenb@suse.de>
19852
19853 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
19854 regardless of DECL_LANG_SPECIFIC being present or not.
19855 * tree.h (DECL_NUM_STMTS): Purge.
19856
19857 2004-07-07 Andrew Pinski <apinski@apple.com>
19858
19859 * configure: Regenerate with the right autoconf.
19860
19861 2004-07-07 David Edelsohn <edelsohn@gnu.org>
19862
19863 * ifcvt.c (total_bb_rtx_cost): New function.
19864 (find_if_case_1): Compare rtx_cost of basic block to cost of
19865 BRANCH_COST insns.
19866 (find_if_case_2): Same.
19867
19868 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19869
19870 PR target/10567
19871 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
19872 (output_return): Likewise.
19873 (output_sibcall): Abort if !flag_delayed_branch.
19874 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
19875 (emit_and_preserve): New function.
19876 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
19877 indirect jump to the thunked-to function if !flag_delayed_branch.
19878 * config/sparc/sparc.md (delayed_branch): New attribute.
19879 (load_pcrel_sym): Honor flag_delayed_branch. Use above
19880 attribute to compute the length of the insn.
19881 (goto_handler_and_restore): Likewise.
19882
19883 2004-07-07 Andrew Pinski <apinski@apple.com>
19884
19885 PR tree-optimization/15777
19886 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
19887
19888 * expr.c (expand_expr_real_1): Fix formating.
19889 BUFFER_REF and IN_EXPR are dead.
19890 * fold-const.c (non_lvalue): BUFFER_REF is dead.
19891 * tree-inline.c (estimate_num_insns_1): Likewise.
19892 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
19893 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
19894 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
19895
19896 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
19897
19898 * collect2.c (dump_file): Don't call cplus_demangle if
19899 HAVE_LD_DEMANGLE is defined.
19900 (main): Pass "--demangle" to ld if no_demangle is not 0 and
19901 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
19902 if HAVE_LD_DEMANGLE is defined.
19903
19904 * configure.ac (--with-demangler-in-ld): Added
19905 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
19906 --with-demangler-in-ld is used.
19907 * config.in: Regenerated.
19908 * configure: Likewise.
19909
19910 2004-07-07 Roger Sayle <roger@eyesopen.com>
19911
19912 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
19913 for simple floating point operations "fp", double precision
19914 multiplication "dmul", and single and double precision division
19915 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
19916 (ppc630_cost): New table split from ppc620_cost, to distinguish
19917 differences in floating point latencies.
19918 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
19919 (rs6000_rtx_costs): Add support for single and double precision
19920 floating point addition, subtraction, multiplication, division,
19921 fused-multiply-add, fused-multiply-sub, negation, absolute value
19922 and negative absolute value. Tweak MEM case to use prefered idiom.
19923
19924 2004-07-07 Richard Henderson <rth@redhat.com>
19925
19926 * tree-flow-inline.h (may_propagate_copy): Move...
19927 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
19928 attempt to copy between types requiring conversion.
19929 * tree-flow.h (may_propagate_copy): Update decl.
19930 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
19931
19932 2004-07-07 Jakub Jelinek <jakub@redhat.com>
19933
19934 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
19935 from -mtune= option.
19936
19937 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
19938
19939 * builtins.c: Rename movstr*, except for movstrict*, to
19940 movmem* and clrstr* to clrmem*.
19941 * expr.c: Likewise.
19942 * expr.h: Likewise.
19943 * genopinit.c: Likewise.
19944 * integrate.c: Likewise.
19945 * local-alloc.c: Likewise.
19946 * optabs.c: Likewise.
19947 * optabs.h: Likewise.
19948 * config/alpha/alpha.h: Likewise.
19949 * config/alpha/alpha.md: Likewise.
19950 * config/arm/arm-protos.h: Likewise.
19951 * config/arm/arm.c: Likewise.
19952 * config/arm/arm.md: Likewise.
19953 * config/avr/avr.md: Likewise.
19954 * config/c4x/c4x.c: Likewise.
19955 * config/c4x/c4x.md: Likewise.
19956 * config/frv/frv.md: Likewise.
19957 * config/i386/i386-protos.h: Likewise.
19958 * config/i386/i386.c: Likewise.
19959 * config/i386/i386.h: Likewise.
19960 * config/i386/i386.md: Likewise.
19961 * config/i860/i860.c: Likewise.
19962 * config/i860/i860.md: Likewise.
19963 * config/ip2k/ip2k.md: Likewise.
19964 * config/ip2k/libgcc.S: Likewise.
19965 * config/ip2k/t-ip2k: Likewise.
19966 * config/m32r/m32r.c: Likewise.
19967 * config/m32r/m32r.md: Likewise.
19968 * config/mcore/mcore.md: Likewise.
19969 * config/mips/mips.c: Likewise.
19970 * config/mips/mips.md: Likewise.
19971 * config/ns32k/ns32k.c: Likewise.
19972 * config/ns32k/ns32k.h: Likewise.
19973 * config/ns32k/ns32k.md: Likewise.
19974 * config/pa/pa.c: Likewise.
19975 * config/pa/pa.md: Likewise.
19976 * config/pdp11/pdp11.h: Likewise.
19977 * config/pdp11/pdp11.md: Likewise.
19978 * config/rs6000/rs6000.c: Likewise.
19979 * config/rs6000/rs6000.md: Likewise.
19980 * config/s390/s390-protos.h: Likewise.
19981 * config/s390/s390.c: Likewise.
19982 * config/s390/s390.md: Likewise.
19983 * config/sh/lib1funcs.asm: Likewise.
19984 * config/sh/sh.c: Likewise.
19985 * config/sh/sh.md: Likewise.
19986 * config/sh/t-sh: Likewise.
19987 * config/sparc/sparc.h: Likewise.
19988 * config/vax/vax.md: Likewise.
19989 * config/xtensa/xtensa.c: Likewise.
19990 * config/xtensa/xtensa.md: Likewise.
19991 * doc/invoke.texi: Likewise.
19992 * doc/md.texi: Likewise.
19993 * doc/rtl.texi: Likewise.
19994
19995 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
19996
19997 PR target/16407
19998 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
19999 * config/mips/mips.c (mips_declare_common_object): New function,
20000 mostly split out from...
20001 (mips_output_aligned_decl_common): ...here.
20002 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
20003 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
20004 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
20005 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
20006
20007 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20008
20009 PR c/16392
20010 * function.c (assign_parms): Fix typo from previous change.
20011
20012 2004-07-07 Jason Merrill <jason@redhat.com>
20013
20014 PR c++/15815
20015 * doc/extend.texi (C++ Interface): Correct information and
20016 discourage use.
20017
20018 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
20019
20020 PR target/16130
20021 PR target/16142
20022 PR target/16143
20023 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
20024 insn.
20025
20026 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
20027
20028 PR target/1679.
20029 * config/m32r/m32r.c (m32r_function_symbol): New function:
20030 Generate a symbol name RTX with the correct m32r specific flags
20031 set.
20032 (block_move_call): Use new function to generate correct symbol.
20033 * config/m32r/m32r-protos.h: Add prototype for new funcion.
20034 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
20035 function.
20036
20037 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
20038
20039 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
20040 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
20041 TYPE_BINFO_BASETYPE): Remove.
20042 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
20043 to ...
20044 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
20045 here.
20046 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
20047 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
20048 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
20049 (struct tree_binfo): Rename base_types to base_binfos.
20050 * alias.c (record_component_aliases): Adjust BINFO macros.
20051 * dbxout.c (dbxout_type): Likewise.
20052 * dwarf2out.c (gen_member_die): Likewise.
20053 * sdbout.c (sdbout_one_type): Likewise.
20054 * tree-dump.c (deque_and_dump): Likewise.
20055 * config/i386/i386.c (classify_argument,
20056 contains_128bit_aligned_vector_p): Likewise.
20057
20058 2004-07-07 Nick Clifton <nickc@redhat.com>
20059
20060 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
20061 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
20062
20063 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
20064
20065 * vec.h: Fix the example use.
20066
20067 2004-07-06 Richard Henderson <rth@redhat.com>
20068
20069 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
20070 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
20071 * tree-inline.c (copy_body_r, setup_one_parameter,
20072 initialize_inlined_parameters, expand_call_inline,
20073 declare_inline_vars): Don't check it.
20074 (expand_calls_inline): Remove old version, rename new version
20075 from gimple_expand_calls_inline.
20076 * tree-optimize.c (execute_gimple): Remove.
20077 (pass_gimple): Don't run anything.
20078
20079 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
20080
20081 * doc/sourcebuild.texi: Use semicolons instead of commas in
20082 section title.
20083
20084 2004-07-06 Richard Henderson <rth@redhat.com>
20085
20086 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
20087 (sra_walk_modify_expr, scan_init): Likewise.
20088 (generate_element_zero): Check visited before scanning children.
20089 (generate_element_init): Set visited on error.
20090 (scalarize_init): Handle generate_element_init failure similar
20091 to use_block_copy.
20092
20093 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
20094
20095 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
20096 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
20097
20098 2004-07-06 Richard Henderson <rth@redhat.com>
20099
20100 * config/i386/i386.c (legitimize_pic_address): Make static.
20101 (legitimize_address): Handle CONST with TLS operand.
20102 (ix86_expand_move): Don't call legitimize_pic_address directly.
20103 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
20104
20105 2004-07-06 Roger Sayle <roger@eyesopen.com>
20106
20107 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
20108 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
20109 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
20110 is currently executed unconditionally, i.e. not in "else_bb".
20111
20112 2004-07-06 Steven Bosscher <stevenb@suse.de>
20113
20114 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
20115 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20116 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
20117 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20118 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
20119 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20120 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
20121 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20122 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
20123 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20124 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
20125 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20126 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
20127 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20128 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
20129 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
20130
20131 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
20132
20133 * dojump.c (do_jump): REFERENCE_EXPR is dead.
20134 * expr.c (expand_expr_real_1): Ditto.
20135 * tree-inline.c (estimate_num_insns_1): Ditto.
20136 * tree-pretty-print.c (dump_generic_node): Ditto.
20137 (op_symbol): Ditto.
20138 * tree.def: Ditto.
20139
20140 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
20141
20142 * tree-ssa-pre.c (reference_node_pool): New pool.
20143 (find_or_generate_expression): Class 'r' is okay too.
20144 (create_value_expr_from): Ditto.
20145 (add_to_sets): LHS should not include vuses.
20146 (eliminate): Ditto.
20147 (compute_avail): Reverse ordering of tests.
20148 Valuize INDIRECT_REF as well.
20149
20150 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
20151
20152 PR rtl-optimization/16380
20153 * loop.c (check_dbra_loop): Sink comparison instructions if they
20154 do something other than set cc0.
20155
20156 2004-07-06 James E Wilson <wilson@specifixinc.com>
20157
20158 * doc/interface.texi (longjmp and automatic variables): Delete
20159 paragraph recommending taking the address of a variable.
20160
20161 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
20162
20163 * vec.h (VEC_embedded_alloc): Remove.
20164 (VEC_embedded_size, VEC_embedded_init): New.
20165 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
20166 MEM_STAT_INFO.
20167 (VEC_truncate): New.
20168 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
20169 (vec_embedded_alloc): Remove.
20170 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
20171 (vec_embedded_alloc): Remove.
20172
20173 2004-07-06 Mark Mitchell <mark@codesourcery.com>
20174
20175 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
20176 (gt-langhooks.h): Remove.
20177
20178 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
20179
20180 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
20181
20182 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
20183
20184 * config/sparc/sparc.c (get_pc_symbol): Rename into
20185 add_pc_to_pic_symbol.
20186 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
20187 (load_pic_register): Account for previous changes.
20188 Use reg_names. Don't create the label twice.
20189 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
20190 UNSPEC_LOAD_PCREL_SYM.
20191 (get_pc): Rename into load_pcrel_sym. Add predicate to
20192 operands. Remove condition.
20193
20194 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
20195
20196 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
20197 RECORD, UNION & QUAL_UNION is actually a binfo.
20198
20199 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
20200 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
20201 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
20202 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
20203 * dwarf2out.c (add_data_member_location_attribute): Likewise.
20204 (gen_inheritance_die): Likewise.
20205 * tree-dump.c (deque_and_dump): Likewise.
20206 * doc/c-tree.texi (Binfos): Add under reconstruction note.
20207
20208 2004-07-06 Steven Bosscher <stevenb@suse.de>
20209
20210 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
20211 Define.
20212 * config/mcore/mcore.md: Model memory latency with a simple DFA
20213 pipeline description instead of a define_function_unit.
20214
20215 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20216
20217 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
20218 * langhooks.h (var_mod_type_p): Likewise.
20219 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
20220 * expr.c (count_type_elements): Properly handle return from
20221 array_type_nelts and properly test for overflow.
20222 * gimplify.c (gimplify_init_constructor): Properly handle return
20223 from array_type_nelts.
20224 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
20225 * integrate.c (copy_decl_for_inlining): Correct comments.
20226 * tree-inline.c (remap_decl): Update comments, remove dead code,
20227 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
20228 (remap_type): Only remap if variably modified by vars in function
20229 being inlined.
20230 (copy_body_r): Use compatible_type langhooks to see when can fold.
20231 (setup_one_parameter): Don't remap type.
20232 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
20233 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
20234 compute TREE_INVARIANT for decl case.
20235 (find_var_from_fn): New function.
20236 (variably_modified_type_p): Add arg and call new function.
20237 * tree.h (variably_modified_type_p): Add extra arg.
20238
20239 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
20240
20241 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
20242 (goto_handler_and_restore_v9): Delete disabled insn.
20243 (goto_handler_and_restore_v9_sp64): Likewise.
20244
20245 2004-07-05 Roger Sayle <roger@eyesopen.com>
20246
20247 * calls.c (load_register_parameters): Call expand_shift instead
20248 of expand_binop with ashl_optab (or other shift optab) directly.
20249 * expr.c (emit_group_load, emit_group_store): Likewise.
20250 * function.c (assign_parm_setup_block): Likewise.
20251 * stmt.c (shift_return_value): Likewise.
20252
20253 2004-07-05 Jakub Jelinek <jakub@redhat.com>
20254
20255 * expr.c (expand_assignment): Disable the bitfield += optimizations.
20256
20257 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
20258
20259 * doc/sourcebuild.texi: Revert previous patch.
20260
20261 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
20262
20263 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
20264 TARGET_MEM_FUNCTIONS.
20265 * system.h: Poison TARGET_MEM_FUNCTIONS.
20266 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
20267 bcmp_libfunc, bzero_libfunc): Remove.
20268 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
20269 bzero_libfunc.
20270 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
20271 * doc/standards.texi: Don't mention calling BSD string functions.
20272 * doc/invoke.texi: Likewise. Mention that memmove may be called.
20273 * config/vax/t-memfuncs: New.
20274 * config/memcmp.c, config/memcpy.c, config/memmove.c,
20275 config/memset.c: New.
20276 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
20277 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
20278 vax/t-memfuncs.
20279 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
20280 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
20281 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
20282 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
20283 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
20284 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
20285 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
20286 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
20287 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
20288 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
20289
20290 2004-07-05 Richard Henderson <rth@redhat.com>
20291
20292 * function.c (assign_parm_setup_reg): Properly rename variables in
20293 FUNCTION_ARG_CALLEE_COPIES section.
20294
20295 2004-07-05 Zack Weinberg <zack@codesourcery.com>
20296
20297 * tree-mudflap.c: Include cgraph.h.
20298 (mf_init_extern_trees): Rename to mudflap_init. Export.
20299 Rewrite to create synthetic declarations instead of looking
20300 up declarations from mf-runtime.h.
20301 (mf_make_builtin, mf_make_cache_struct_type): New functions.
20302 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
20303 Correct commentary.
20304 (execute_mudflap_function_decls, mudflap_register_call):
20305 Don't call mf_init_extern_trees.
20306 (mudflap_finish_file): Use cgraph_build_static_cdtor.
20307
20308 * tree-mudflap.h: Update prototypes.
20309 * c-mudflap.c: Delete file.
20310 * c-common.c: Include tree-mudflap.h.
20311 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
20312 * Makefile.in: Remove all references to c-mudflap.o.
20313 Update dependencies.
20314
20315 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20316
20317 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
20318 displacements with the spatial-locality cache-control completer.
20319
20320 2004-07-05 Zack Weinberg <zack@codesourcery.com>
20321
20322 * langhooks.c: Don't include gt-langhooks.h.
20323 (var_labelno): Delete.
20324 (lhd_set_decl_assembler_name): Do not append a distinguishing
20325 number to file-scope internal-linkage declarations for the first
20326 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
20327 the declaration itself (if at block scope), or its containing
20328 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
20329 number.
20330
20331 * opts.c (cur_in_fname): New global.
20332 * opts.h: Declare it.
20333 * tree.c: Include opts.h.
20334 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
20335 DECL_UID equal to cur_in_fname.
20336 (copy_node_stat): Do not change DECL_UID when copying a
20337 TRANSLATION_UNIT_DECL.
20338 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
20339 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
20340
20341 * c-decl.c (c_static_assembler_name): Delete.
20342 * c-tree.h (c_static_assembler_name): Delete prototype.
20343 * c-lang.c, objc/objc-lang.c: Don't override
20344 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
20345
20346 * Makefile.in (tree.o): Update dependencies.
20347 (GTFILES): Remove langhooks.c.
20348
20349 2004-07-05 Roger Sayle <roger@eyesopen.com>
20350
20351 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
20352 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
20353 Normalize "X % C" as "X % -C" for signed modulus and negative C.
20354 Optimize "X % -Y" as "X % Y" for signed modulus.
20355 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
20356 into "((unsigned) X % Y) == 0".
20357
20358 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
20359
20360 * sourcebuild.texi (Config Fragments): Use @comma{} in
20361 cross-reference to section title.
20362
20363 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20364
20365 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
20366 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
20367 (gimplify_target_expr, gimplify_expr): Likewise.
20368 (copy_if_shared_r): No longer need special case for BIND_EXPR.
20369 (unshare_body, unvisit_body): Only look at nested if BODY_P is
20370 whole function.
20371 (gimplify_compound_lval): See if we can strip any useless conversion.
20372 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
20373 from RHS, not LHS.
20374 (gimplify_modify_expr_to_memset): Likewise.
20375 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
20376 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
20377 (declare_inline_vars): Likewise.
20378 (walk_type_fields): New function.
20379 (walk_tree): Use it.
20380 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
20381
20382 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
20383 (sra_walk_modify_expr): Allow init function to fail.
20384 (scan_init): Now returns bool.
20385 (generate_element_init): If can't understand INIT, return false.
20386 (scalarize_init): Return false if generate_element_init does.
20387
20388 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
20389 print bounds.
20390
20391 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
20392 bounds if bounds aren't constant.
20393
20394 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
20395
20396 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
20397 to type hooks; remove bogus PARAMS.
20398
20399 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
20400
20401 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
20402 * dwarf2out.c (add_data_member_location_attribute): Check for
20403 TREE_BINFO.
20404 * tree.c (tree_node_kinds): Add "binfos".
20405 (binfo_lang_slots): New.
20406 (make_node_stat): Add TREE_BINFO.
20407 (make_tree_binfo_stat): New.
20408 (tree_node_structure): Add TREE_BINFO.
20409 * tree.def (TREE_BINFO): New.
20410 * tree.h (REC_OR_UNION_CHECK): Rename to ...
20411 (RECORD_OR_UNION_CHECK): ... here.
20412 (NOT_RECORD_OR_UNION_CHECK): New.
20413 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
20414 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
20415 RECORD_OR_UNION_CHECK.
20416 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
20417 (TYPE_LANG_SLOT_1): New.
20418 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
20419 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
20420 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
20421 (BINFO_ELTS): Remove.
20422 (BINFO_LANG_SLOT): New.
20423 (struct tree_binfo): New.
20424 (binfo_lang_slots): Declare.
20425 (enum tree_node_structure_enum): Add TS_BINFO.
20426 (union tree_node): Add binfo.
20427 (make_tree_binfo_stat): Declare.
20428 (make_tree_binfo): New.
20429 (enum tree_node_kind): Add binfo_kind.
20430
20431 * objc/objc-act.c (start_class, objc_declare_protocols,
20432 start_protocols): Use TYPE_LANG_SLOT_1.
20433 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
20434 to ...
20435 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
20436 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
20437 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
20438 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
20439
20440 2004-07-05 Steven Bosscher <stevenb@suse.de>
20441
20442 * rtl.h (struct rtx_def): Remove the integrated flag.
20443 Use the return_val flag for MEM_SCALAR_P.
20444 Reshuffle and update flags in CLEAR_RTX_FLAGS.
20445
20446 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
20447
20448 PR target/16357
20449 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
20450 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
20451 move_by_pieces.
20452
20453 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
20454
20455 * var-tracking.c: Fix some comments.
20456 (frame_stack_adjust): New.
20457 (vt_stack_adjustments): Init stack_adjust of entry block to
20458 minus stack adjustment of function prologue.
20459 (adjust_stack_reference): Do not adjust if adjustment == 0.
20460 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
20461 (emit_notes_in_bb): Likewise.
20462 (vt_add_function_parameters): Do not adjust locations of
20463 function arguments.
20464 (vt_initialize): Compute the stack adjustment of function
20465 prologue and offset the initial "location" of frame_base_decl
20466 from the stack pointer after prologue.
20467
20468 2004-07-04 Richard Henderson <rth@redhat.com>
20469
20470 * function.c (struct assign_parm_data_all): New.
20471 (struct assign_parm_data_one): New.
20472 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
20473 assign_parm_find_data_types, assign_parms_setup_varargs,
20474 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
20475 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
20476 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
20477 assign_parm_setup_block, assign_parm_setup_reg,
20478 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
20479 (assign_parms): ... here.
20480
20481 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
20482
20483 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
20484 now are bitmap_set_t's.
20485 (bitmap_insert_into_set): No point in inserting the value if
20486 it's invariant.
20487 (bitmap_set_contains): New function.
20488 (bitmap_set_replace_value): Add comment on why we do it
20489 this way.
20490 (set_contains): Removed.
20491 (bitmap_set_subtract_from_value_set): New name of
20492 set_subtract now that it's arguments are two different
20493 types of sets.
20494 Update callers.
20495 (bitmap_find_leader): Change algorithm used.
20496 (find_or_generate_expression): Update use of functions for new
20497 bitmap sets.
20498 (create_expression_by_pieces): Ditto.
20499 (insert_aux): Ditto.
20500 (insert): Ditto.
20501 (add_to_sets): Ditto.
20502 (init_pre): Ditto.
20503 (execute_pre): Ditto.
20504 (compute_avail): Ditto.
20505 Also ignore virtual phis.
20506
20507 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
20508
20509 * combine.c (simplify_comparison): Fix comment typo.
20510
20511 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
20512
20513 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
20514 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
20515 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
20516 (output_restore): Change parameter from 'insn' to 'pat'.
20517 (output_return): Adjust call to output_restore.
20518 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
20519 Adjust call to output_restore.
20520
20521 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
20522
20523 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
20524 and assert system is bsd.
20525
20526 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
20527
20528 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
20529 (TARGET_SWITCHES): Remove -mdebugc.
20530 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
20531 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
20532 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
20533 (sle_[sd]i_reg): Delete.
20534
20535 2004-07-04 Steven Bosscher <stevenb@suse.de>
20536
20537 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
20538 Define.
20539 * config/iq2000/iq2000.md: Translate old pipeline description to an
20540 equivalent new one.
20541
20542 2004-07-04 Roger Sayle <roger@eyesopen.com>
20543
20544 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
20545 Ensure the replacement rhs is valid gimple before performing
20546 the substitution. Return false if these sanity checks fail.
20547 (fold_stmt): Only set changed to true, if set_rhs returns true.
20548 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
20549 succeeds.
20550
20551 2004-07-04 Richard Henderson <rth@redhat.com>
20552
20553 PR c/16348
20554 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
20555
20556 2004-07-04 Mark Mitchell <mark@codesourcery.com>
20557
20558 * configure.ac (ranlib_flags): New variable.
20559 * Makefile.in (RANLIB_FLAGS): New variable.
20560 (libbackend.a): Use it.
20561 * configure: Regenerated.
20562
20563 2004-07-04 Roger Sayle <roger@eyesopen.com>
20564
20565 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
20566 a "sign mask" instead of using ashr_optab directly.
20567
20568 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
20569
20570 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
20571 * doc/cppopts.texi: Clarify processing of command-line defines.
20572
20573 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
20574
20575 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
20576
20577 2004-07-04 Richard Henderson <rth@redhat.com>
20578
20579 * rtl.def (ADDRESSOF): Remove.
20580 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
20581 (find_base_term, memrefs_conflict_p): Likewise.
20582 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
20583 (fold_rtx, cse_insn, set_live_p): Likewise.
20584 * dwarf2out.c (mem_loc_descriptor): Likewise.
20585 (add_location_or_const_value_attribute): Likewise.
20586 * emit-rtl.c (copy_insn_1): Likewise.
20587 * explow.c (memory_address): Likewise.
20588 * expmed.c (store_split_bit_field): Likewise.
20589 * expr.c (expand_expr_real_1): Likewise.
20590 * function.c (instantiate_decl
20591 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
20592 * genrecog.c (preds, validate_pattern): Likewise.
20593 * integrate.c (copy_rtx_and_substitute): Likewise.
20594 * recog.c (general_operand, register_operand): Likewise.
20595 (memory_address_p): Likwise.
20596 * reload1.c (eliminate_regs, elimination_effects): Likewise.
20597 * rtl.c (copy_rtx): Likewise.
20598 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
20599 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
20600 * rtlhooks.c (gen_lowpart_general): Likewise.
20601 * stmt.c (expand_asm_operands): Likewise.
20602 * web.c (entry_register, replace_ref, web_main): Likewise.
20603 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
20604 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
20605 * config/arm/arm.c (thumb_rtx_costs): Likewise.
20606 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
20607 * config/frv/frv.c (move_destination_operand, move_source_operand,
20608 condexec_dest_operand, condexec_source_operand,
20609 condexec_memory_operand): Likewise.
20610 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
20611 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
20612 (destination_xfmode_operand): Likewise.
20613 * config/mips/mips.h (PREDICATE_CODES): Likewise.
20614 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
20615 * config/s390/s390.c (general_s_operand): Likewise.
20616 * config/s390/s390.md (mov*): Likewise.
20617 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
20618
20619 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
20620 * expr.c (expand_expr_real_1): Likewise.
20621 * stmt.c (expand_decl): Likewise.
20622 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
20623
20624 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
20625 postponed_insns, put_var_into_stack, put_reg_into_stack,
20626 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
20627 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
20628 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
20629 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
20630 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
20631 purge_bitfield_addressof_replacements, purge_addressof_replacements,
20632 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
20633 struct insns_for_mem_walk_info, insns_for_mem_walk,
20634 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
20635 setjmp_protect_args): Remove.
20636 (push_function_context_to): Don't handle var_refs_queue.
20637 (pop_function_context_from, free_after_compilation): Likewise.
20638 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
20639 (assign_parms, allocate_struct_function): Likewise.
20640 (use_register_for_decl): New.
20641 (expand_function_end): Don't setjmp_protect.
20642 * function.h (struct emit_status): Update commentary.
20643 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
20644 (max_parm_reg, parm_reg_stack_loc): Remove.
20645 * passes.c (DFI_addressof): Remove.
20646 (dump_file_info): Remove addressof.
20647 (rest_of_handle_addressof): Remove.
20648 (rest_of_compilation): Don't call it.
20649 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
20650 * stmt.c (expand_decl): Use use_register_for_decl.
20651 * tree.h: Update decls.
20652 * web.c (mark_addressof): Remove.
20653 * doc/invoke.texi (-dF): Remove.
20654
20655 2004-07-03 Richard Henderson <rth@redhat.com>
20656
20657 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
20658 instead of gen_mem_addressof.
20659 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
20660 TImode output register.
20661
20662 2004-07-03 Richard Henderson <rth@redhat.com>
20663
20664 PR tree-optimization/16341
20665 * tree-sra.c (sra_walk_function): Increment to next stmt before
20666 processing the current stmt.
20667 (sra_insert_after): Always use BSI_SAME_STMT.
20668
20669 2004-07-03 Richard Henderson <rth@redhat.com>
20670
20671 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
20672 fp plus with minus.
20673
20674 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
20675
20676 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
20677 with tree_int_cst_equal.
20678
20679 2004-07-03 Andreas Schwab <schwab@suse.de>
20680
20681 * config/ia64/ia64.md: Define new attribute "empty".
20682 (prologue_use, nop_x, insn_group_barrier): Set it.
20683
20684 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
20685 skip over "empty" insns.
20686
20687 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20688
20689 * tree-inline.c (initialize_inlined_parameters): Pass proper function
20690 context to gimplify_body.
20691 (walk_tree): Don't walk into types twice.
20692 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
20693
20694 * tree-sra.c (generate_element_init): Remove any useless conversions.
20695
20696 * gimplify.c (gimplify_conversion): Remove stripping useless
20697 conversions from here.
20698 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
20699 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
20700 Unshare before substituting PLACEHOLDER_EXPR.
20701 (gimplify_modify_expr_to_memset): Likewise.
20702 Pass address of TO to memset, not TO itself.
20703 (gimplify_init_constructor): Make copy of OBJECT so we have it each
20704 time we make an expression (to match a PLACEHOLDER_EXPR).
20705
20706 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
20707 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
20708 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
20709 * tree-ssa-dom.c (local_fold): Likewise.
20710
20711 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
20712 * langhooks.h (strct lang_hooks): New field type_max_size.
20713 * function.c (assign_temp): Call it.
20714
20715 2004-07-03 Steven Bosscher <stevenb@suse.de>
20716
20717 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
20718 * config/sh/sh.md: Convert the SH1 pipeline description to
20719 a DFA model.
20720
20721 2004-07-02 Zack Weinberg <zack@codesourcery.com>
20722
20723 * c-decl.c (struct c_binding): Remove contour field; add
20724 depth, invisible, nested fields.
20725 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
20726 (B_IN_EXTERNAL_SCOPE): New convenience macros.
20727 (bind): Add invisible and nested arguments. Initialize
20728 new fields of struct c_binding; adjust loop scanning for
20729 insertion point.
20730 (free_binding_and_advance): Clear structure with memset.
20731 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
20732 in file scope, even if it's in external scope too.
20733 (pushdecl): Adjust to match. Create invisible file-scope
20734 declarations for block-scope forward declarations of static functions.
20735 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
20736 (undeclared_variable, lookup_label, declare_label, define_label)
20737 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
20738 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
20739 (store_parm_decls_oldstyle): Adjust to match.
20740 (diagnose_mismatched_decls): Correct handling of linkage clashes.
20741 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
20742
20743 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
20744 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
20745
20746 2004-07-02 Richard Henderson <rth@redhat.com>
20747
20748 * c-decl.c (grokdeclarator): Don't frob current_function_decl
20749 around variable_size.
20750 (set_decl_nonlocal): Remove.
20751 (store_parm_decls): Add stmts for pending sizes.
20752 * calls.c (calls_function, calls_function_1): Remove.
20753 (precompute_arguments): Don't call it.
20754 * cfgexpand.c (set_save_expr_context): Remove.
20755 (tree_expand_cfg): Don't call it.
20756 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
20757 (dwarf2out_finish): Likewise.
20758 * expr.c (emit_block_move): Adjust addresses to BLKmode.
20759 (store_constructor): Don't pre-evaluate SAVE_EXPR.
20760 (safe_from_p): Don't queue SAVE_EXPRs.
20761 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
20762 or build plain VAR_DECLs.
20763 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
20764 (fold): Likewise.
20765 (fold_checksum_tree): Don't special-case SAVE_EXPR.
20766 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
20767 (put_var_into_stack): Don't handle SAVE_EXPR.
20768 (gen_mem_addressof): Likewise.
20769 * function.h (struct function): Remove x_save_expr_regs.
20770 (save_expr_regs): Remove.
20771 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
20772 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
20773 * stor-layout.c (variable_size): Don't set it.
20774 (force_type_save_exprs, force_type_save_exprs_1): Remove.
20775 * tree-inline.c (remap_save_expr): Remove fn argument. Update
20776 all callers. Don't set SAVE_EXPR_CONTEXT.
20777 * tree-inline.h (remap_save_expr): Update decl.
20778 * tree.c (save_expr): Update build size.
20779 (first_rtl_op): Don't handle SAVE_EXPR.
20780 (unsave_expr_1, contains_placeholder_p): Likewise.
20781 (decl_function_context): Likewise.
20782 * tree.def (SAVE_EXPR): Remove args 1 and 2.
20783 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
20784 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
20785
20786 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
20787
20788 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
20789 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
20790 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
20791 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
20792 some first-person references and patronizing comments. Based on
20793 printed manual.
20794 * doc/invoke.texi: Don't reference fortran@gnu.org.
20795 * doc/trouble.texi (Warning when a non-void function value is
20796 ignored): Rewrite. From Russ Allbery and Chris Devers.
20797
20798 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
20799
20800 * tree-ssa-pre.c (bitmap_set_t): New.
20801 (bb_value_sets): avail_out is now a bitmap_set_t.
20802 (bitmap_find_leader): New function.
20803 (bitmap_value_insert_into_set): Ditto.
20804 (bitmap_set_copy): Ditto.
20805 (bitmap_value_replace_in_set): Ditto.
20806 (bitmap_set_contains_value): Ditto.
20807 (bitmap_set_new): Ditto.
20808 (bitmap_set_pool): New pool.
20809 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
20810 (insert_aux): Ditto.
20811 (add_to_sets): Ditto.
20812 (compute_avail): Ditto
20813 (eliminate): Ditto.
20814 (init_pre): Ditto.
20815 (fini_pre): Ditto.
20816 (execute_pre): Ditto.
20817
20818 2004-07-02 Roger Sayle <roger@eyesopen.com>
20819
20820 * config/rs6000/rs6000.c (struct processor_costs): New structure
20821 used to hold instruction latencies/sizes for processor types.
20822 (rs6000_cost): New global variable pointing to current CPU's costs.
20823 (rs6000_override_options): Initialize rs6000_cost to point to the
20824 appropriate cost table based upon rs6000_cpu and optimize_size.
20825 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
20826 timings inline.
20827
20828 2004-07-02 Richard Henderson <rth@redhat.com>
20829
20830 * expmed.c (make_tree): Don't use SET_DECL_RTL.
20831
20832 2004-07-02 Steven Bosscher <stevenb@suse.de>
20833
20834 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
20835
20836 2004-07-01 Richard Henderson <rth@redhat.com>
20837
20838 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
20839 (alpha_gp_save_rtx): Use assign_stack_local instead of
20840 gen_mem_addressof.
20841
20842 2004-07-01 Richard Henderson <rth@redhat.com>
20843
20844 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
20845 (alpha_rtx_cost_data): Update to match.
20846 (alpha_rtx_cost_size): New.
20847 (alpha_rtx_costs): Honor optimize_size.
20848
20849 2004-07-01 Richard Henderson <rth@redhat.com>
20850
20851 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
20852 * cfgexpand.c (tree_expand_cfg): Do it here.
20853 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
20854 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
20855 * config/mips/mips.c (mips_output_mi_thunk): And here.
20856 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
20857 * config/sh/sh.c (sh_output_mi_thunk): And here.
20858 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
20859
20860 2004-07-01 Richard Henderson <rth@redhat.com>
20861
20862 * tree.def (RTL_EXPR): Remove.
20863 * c-typeck.c (lvalue_p): Don't handle it.
20864 * expr.c (safe_from_p): Likewise.
20865 (expand_expr_real_1): Likewise.
20866 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
20867 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
20868 * gengtype.c (adjust_field_tree_exp): Likewise.
20869 * stmt.c (warn_if_unused_value): Likewise.
20870 * tree-gimple.c (recalculate_side_effects): Likewise.
20871 * tree-pretty-print.c (dump_generic_node): Likewise.
20872 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
20873 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
20874 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
20875
20876 * stmt.c (struct stmt_status): Remove x_last_expr_type,
20877 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
20878 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
20879 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
20880 all the bits that tracked last_expr.
20881 (expand_end_bindings): Don't track last_expr.
20882 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
20883 (clear_last_expr): Remove.
20884 (expand_asm): Don't call it.
20885 (expand_asm_operands, expand_end_cond): Likewise.
20886 (expand_naked_return, expand_null_return_1): Likewise.
20887 * c-typeck.c (c_begin_compound_stmt): Likewise.
20888 * cfgexpand.c (expand_block): Use expand_expr_stmt.
20889 * expr.c (expand_expr_real_1): Likewise.
20890 * tree.h: Update prototypes.
20891
20892 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
20893 (struct emit_status): Remove sequence_rtl_expr.
20894 (struct function): Remove x_rtl_expr_chain.
20895 (seq_rtl_expr, rtl_expr_chain): Remove.
20896 * function.c (struct temp_slot): Remove rtl_expr.
20897 (assign_stack_temp_for_type): Don't set it.
20898 (free_temp_slots, pop_temp_slots): Don't check it.
20899 (free_after_compilation): Don't clear x_rtl_expr_chain.
20900 (fixup_var_refs): Don't search it.
20901 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
20902 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
20903 or seq_rtl_expr.
20904 (push_topmost_sequence): Likewise.
20905 (end_sequence, init_emit): Likewise.
20906 (start_sequence_for_rtl_expr): Remove.
20907 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
20908 * rtl.h (preserve_rtl_expr_result): Remove.
20909
20910 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
20911
20912 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
20913 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
20914 typos.
20915
20916 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
20917
20918 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
20919 (STANDARD_STARTFILE_PREFIX_2): Define.
20920 (standard_startfile_prefix_1): Initialize to
20921 STANDARD_STARTFILE_PREFIX_1.
20922 (standard_startfile_prefix_2): Initialize to
20923 STANDARD_STARTFILE_PREFIX_2.
20924 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
20925 (STANDARD_STARTFILE_PREFIX_1): Define.
20926 (STANDARD_STARTFILE_PREFIX_2): Define.
20927 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
20928 (STANDARD_STARTFILE_PREFIX_2): Document.
20929
20930 2004-07-01 Richard Henderson <rth@redhat.com>
20931
20932 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
20933 in order to disable scalarization. Instead set a flag and wait
20934 for a candidate decl.
20935
20936 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
20937
20938 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
20939 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
20940 Use terminology "testsuite" and "enumerated".
20941
20942 2004-07-01 Richard Henderson <rth@redhat.com>
20943
20944 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
20945 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
20946 (initial_return_save): Likewise.
20947 (flush_queued_reg_saves): Remap register numbers.
20948 (dwarf2out_return_reg): Likewise.
20949
20950 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20951
20952 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
20953
20954 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
20955 access functions for lower bound and element size and only output
20956 if lower bound nonzero or element size not same as that of type.
20957 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
20958
20959 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
20960
20961 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
20962
20963 2004-07-01 Per Bothner <per@bothner.com>
20964
20965 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
20966
20967 2004-07-01 Jakub Jelinek <jakub@redhat.com>
20968
20969 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
20970 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
20971 first operand. Don't optimize if the bitfield is volatile.
20972
20973 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
20974
20975 * c-pretty-print.c (pp_c_postfix_expression): Handle
20976 floating-point comparison operators.
20977 (pp_c_expression): Pass floating-point comparison
20978 operators to pp_c_postfix_expression.
20979
20980 2004-07-01 Roger Sayle <roger@eyesopen.com>
20981
20982 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
20983 rtx_cost instead of "had_mult" to determine whether the transformed
20984 expression is cheaper than the original.
20985
20986 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
20987
20988 * alias.c (get_alias_set, canon_rtx, get_addr,
20989 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
20990 Use MEM_P.
20991 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
20992 expand_builtin): Likewise.
20993 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
20994 Likewise.
20995 * combine.c (can_combine_p, combinable_i3pat, try_combine,
20996 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
20997 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
20998 record_dead_and_set_regs_1, get_last_value_validate,
20999 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
21000 * cse.c (check_dependence, canon_hash, equiv_constant,
21001 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
21002 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
21003 count_reg_usage): Likewise.
21004 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
21005 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
21006 cselib_record_sets): Likewise.
21007 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
21008 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
21009 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
21010 * df.c (df_uses_record): Likewise.
21011 * dojump (do_jump): Likewise.
21012 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
21013 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
21014 decl_start_label): Likewise.
21015 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
21016 operand_subword, change_address_1, make_safe_from): Likewise.
21017 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
21018 stabilize, force_not_mem): Likewise.
21019 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
21020 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
21021 * expr.c (convert_move, convert_modes, emit_block_move,
21022 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
21023 emit_move_insn_1, expand_assignment, store_expr,
21024 store_constructor_field, store_constructor, store_field,
21025 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
21026 Likewise.
21027 * final.c (cleanup_subreg_operands, alter_subreg,
21028 get_mem_expr_from_op): Likewise.
21029 * flow.c (notice_stack_pointer_modification_1,
21030 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
21031 Likewise.
21032 * function.c (mark_temp_addr_taken, preserve_temp_slots,
21033 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
21034 optimize_bit_field, flush_addressof, purge_addressof_1,
21035 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
21036 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
21037 keep_stack_depressed): Likewise.
21038 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
21039 noce_process_if_block, find_memory): Likewise.
21040 * integrate.c (subst_constants, allocate_initial_values): Likewise.
21041 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
21042 update_equiv_regs): Likewise.
21043 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
21044 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
21045 * optabs.c (expand_abs, emit_unop_insn): Likewise.
21046 * passes.c (rest_of_handle_final): Likewise.
21047 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21048 move2add_note_store): Likewise.
21049 * ra-build.c (detect_remat_webs): Likewise.
21050 * ra-debug.c (dump_static_insn_cost): Likewise.
21051 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
21052 * recog.c (validate_change, apply_change_group, cancel_changes,
21053 validate_replace_rtx_1, general_operand, register_operand,
21054 nonmemory_operand, push_operand, pop_operand, memory_operand,
21055 indirect_operand, asm_operand_ok, offsettable_memref_p,
21056 offsettable_nonstrict_memref_p, constrain_operands,
21057 store_data_bypass_p): Likewise.
21058 * reg-stack.c (subst_stack_regs_pat): Likewise.
21059 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
21060 copy_cost, reg_scan_mark_refs): Likewise.
21061 * regmove.c (optimize_reg_copy_3, stack_memref_p,
21062 combine_stack_adjustments_for_block): Likewise.
21063 * regrename.c (copyprop_hardreg_forward_1): Likewise.
21064 * reload.c (can_reload_into, push_reload, decompose, immune_p,
21065 find_reloads, find_reloads_address, find_reloads_address_1,
21066 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
21067 find_equiv_reg): Likewise.
21068 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
21069 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
21070 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
21071 delete_address_reloads): Likewise.
21072 * resource.c (mark_referenced_resources): Likewise.
21073 * rtlanal.c (get_jump_table_offset, count_occurrences,
21074 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
21075 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
21076 num_sign_bit_copies1): Likewise.
21077 * rtlhooks.c (gen_lowpart_general): Likewise.
21078 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
21079 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
21080 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
21081 sdbout_global_decl): Likewise.
21082 * simplify-rtx.c (simplify_subreg): Likewise.
21083 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
21084 expand_anon_union_decl, expand_end_case_type): Likewise.
21085 * unroll.c (calculate_giv_inc): Likewise.
21086 * var-tracking.c (stack_adjust_offset_pre_post,
21087 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
21088 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
21089 vt_add_function_parameters): Likewise.
21090 * varasm.c (make_var_volatile, notice_global_symbol,
21091 assemble_external, decode_addr_const, mark_weak,
21092 default_encode_section_info): Likewise.
21093
21094 2004-07-01 Steven Bosscher <stevenb@suse.de>
21095
21096 * stmt.c (check_seenlabel): Remove.
21097 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
21098
21099 2004-07-01 Richard Henderson <rth@redhat.com>
21100
21101 * function.h (struct function): Remove x_function_call_count.
21102 (function_call_count): Remove.
21103 * calls.c (expand_call): Don't set it.
21104 * integrate.c (copy_rtx_and_substitute): Likewise.
21105
21106 * function.h (struct function): Remove x_cleanup_label.
21107 (cleanup_label): Remove.
21108 * stmt.c (expand_value_return): Don't use it.
21109 * function.c (free_after_compilation): Don't set it.
21110 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
21111 * cfgexpand.c (tree_expand_cfg): Update call.
21112 * tree.h (expand_function_start): Update decl.
21113
21114 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
21115
21116 PR c/1027
21117 * c-lang.c (c_initialize_diagnostics): Move from here ...
21118 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
21119 (c_tree_printer): Use pretty-printer to format %T.
21120 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
21121 before '*' if not C++.
21122 (pp_c_direct_abstract_declarator): Don't try to print array upper
21123 bound for flexible array members.
21124 * c-tree.h: Include "diagnostic.h".
21125 (c_initialize_diagnostics): Declare.
21126 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
21127 * c-format.c (format_type_warning): New function. Improve
21128 diagnostics for incorrect format argument types.
21129 (check_format_types): Use it. Add two parameters. Use the
21130 TYPE_MAIN_VARIANT of wanted_type.
21131 (check_format_info_main): Pass new parameters to
21132 check_format_types.
21133 (struct format_wanted_type): Update comment.
21134
21135 2004-07-01 Nick Clifton <nickc@redhat.com>
21136
21137 * target.h (struct gcc_target): Add new field to struct cxx:
21138 import_export_class.
21139 * target-def.h (TARGET_CXX): Initialise the new field.
21140 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
21141 the new field.
21142 * doc/tm.texi: Document the new target hook.
21143
21144 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
21145
21146 * builtins.c (fold_builtin_classify): Fix typo.
21147
21148 2004-07-01 Richard Henderson <rth@redhat.com>
21149
21150 * function.c (identify_blocks, identify_blocks_1): Remove.
21151 * function.h (identify_blocks): Remove.
21152 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
21153
21154 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
21155
21156 * builtins.c (fold_builtin_classify): New.
21157 (fold_builtin_unordered_cmp): Fix commentary.
21158 (fold_builtin): Use it.
21159 * builtins.def: Define builtins for isnan,
21160 isnanf, isnanl, finite, finitef, finitel,
21161 isinf, isinff, isinfl.
21162
21163 2004-07-01 Richard Henderson <rth@redhat.com>
21164
21165 * function.h (struct function): Remove dont_emit_block_notes.
21166 * gimple-low.c (lower_function_body): Don't set it.
21167 * cfgexpand.c (expand_block): Don't check it.
21168 * cfglayout.c (insn_locators_initialize): Likewise.
21169 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
21170 * passes.c (rest_of_compilation): Likewise.
21171 * stmt.c (expand_start_bindings_and_block): Likewise.
21172 (expand_end_bindings): Likewise.
21173
21174 2004-07-01 Richard Henderson <rth@redhat.com>
21175
21176 * cgraph.h (cgraph_build_static_cdtor): Declare.
21177 * cgraphunit.c (cgraph_build_static_cdtor): New.
21178 * c-objc-common.c (build_cdtor): Use it.
21179 * coverage.c (create_coverage): Likewise.
21180 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
21181 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
21182
21183 See ChangeLog.11 for earlier changes.